]> git.saurik.com Git - wxWidgets.git/blame - configure
quote an underscore
[wxWidgets.git] / configure
CommitLineData
a848cd7e
SC
1#! /bin/sh
2# From configure.in Id: configure.in.
3# Guess values for system-dependent variables and create Makefiles.
dd8df4fc 4# Generated by GNU Autoconf 2.59 for wxWidgets 2.7.0.
a848cd7e 5#
77ffb593 6# Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e 7#
ac1cb8d3 8# Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24fi
ac1cb8d3 25DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
26
27# Support unset when possible.
ac1cb8d3 28if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
29 as_unset=unset
30else
31 as_unset=false
32fi
33
34
35# Work around bugs in pre-3.0 UWIN ksh.
36$as_unset ENV MAIL MAILPATH
37PS1='$ '
38PS2='> '
39PS4='+ '
40
41# NLS nuisances.
42for as_var in \
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 LC_TELEPHONE LC_TIME
46do
ac1cb8d3 47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
51 fi
52done
53
54# Required to use basename.
55if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57else
58 as_expr=false
59fi
60
61if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63else
64 as_basename=false
65fi
66
67
68# Name of the executable.
69as_me=`$as_basename "$0" ||
70$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
74echo X/"$0" |
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
78 s/.*/./; q'`
79
80
81# PATH needs CR, and LINENO needs CR and PATH.
82# Avoid depending upon Character Ranges.
83as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86as_cr_digits='0123456789'
87as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89# The user is always right.
90if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
93 chmod +x conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95 PATH_SEPARATOR=';'
96 else
97 PATH_SEPARATOR=:
98 fi
99 rm -f conf$$.sh
100fi
101
102
103 as_lineno_1=$LINENO
104 as_lineno_2=$LINENO
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
109 # relative or not.
110 case $0 in
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113for as_dir in $PATH
114do
115 IFS=$as_save_IFS
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118done
119
120 ;;
121 esac
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
125 as_myself=$0
126 fi
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
130 fi
131 case $CONFIG_SHELL in
132 '')
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135do
136 IFS=$as_save_IFS
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
139 case $as_dir in
140 /*)
141 if ("$as_dir/$as_base" -c '
142 as_lineno_1=$LINENO
143 as_lineno_2=$LINENO
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
150 export CONFIG_SHELL
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 fi;;
153 esac
154 done
155done
156;;
157 esac
158
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
168 sed '
169 N
170 s,$,-,
171 : loop
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 t loop
174 s,-$,,
175 s,^['$as_cr_digits']*\n,,
176 ' >$as_me.lineno &&
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
180
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
184 . ./$as_me.lineno
185 # Exit status is that of the last command.
186 exit
187}
188
189
190case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
192' ECHO_T=' ' ;;
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195esac
196
197if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199else
200 as_expr=false
201fi
202
203rm -f conf$$ conf$$.exe conf$$.file
204echo >conf$$.file
205if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
210 as_ln_s='cp -p'
211 else
212 as_ln_s='ln -s'
213 fi
214elif ln conf$$.file conf$$ 2>/dev/null; then
215 as_ln_s=ln
216else
217 as_ln_s='cp -p'
218fi
219rm -f conf$$ conf$$.exe conf$$.file
220
221if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223else
ac1cb8d3 224 test -d ./-p && rmdir ./-p
a848cd7e
SC
225 as_mkdir_p=false
226fi
227
228as_executable_p="test -f"
229
230# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 231as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
232
233# Sed expression to map a string onto a valid variable name.
ac1cb8d3 234as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
235
236
237# IFS
238# We need space, tab and new line, in precisely that order.
239as_nl='
240'
241IFS=" $as_nl"
242
243# CDPATH.
244$as_unset CDPATH
245
246
247# Name of the host.
248# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249# so uname gets run too.
250ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251
252exec 6>&1
253
254#
255# Initializations.
256#
257ac_default_prefix=/usr/local
258ac_config_libobj_dir=.
259cross_compiling=no
260subdirs=
261MFLAGS=
262MAKEFLAGS=
263SHELL=${CONFIG_SHELL-/bin/sh}
264
265# Maximum number of lines to put in a shell here document.
266# This variable seems obsolete. It should probably be removed, and
267# only ac_max_sed_lines should be used.
268: ${ac_max_here_lines=38}
269
270# Identity of this package.
77ffb593
JS
271PACKAGE_NAME='wxWidgets'
272PACKAGE_TARNAME='wxwidgets'
dd8df4fc
VZ
273PACKAGE_VERSION='2.7.0'
274PACKAGE_STRING='wxWidgets 2.7.0'
77ffb593 275PACKAGE_BUGREPORT='wx-dev@lists.wxwidgets.org'
a848cd7e
SC
276
277ac_unique_file="wx-config.in"
278# Factoring default headers for most tests.
279ac_includes_default="\
280#include <stdio.h>
281#if HAVE_SYS_TYPES_H
282# include <sys/types.h>
283#endif
284#if HAVE_SYS_STAT_H
285# include <sys/stat.h>
286#endif
287#if STDC_HEADERS
288# include <stdlib.h>
289# include <stddef.h>
290#else
291# if HAVE_STDLIB_H
292# include <stdlib.h>
293# endif
294#endif
295#if HAVE_STRING_H
296# if !STDC_HEADERS && HAVE_MEMORY_H
297# include <memory.h>
298# endif
299# include <string.h>
300#endif
301#if HAVE_STRINGS_H
302# include <strings.h>
303#endif
304#if HAVE_INTTYPES_H
305# include <inttypes.h>
306#else
307# if HAVE_STDINT_H
308# include <stdint.h>
309# endif
310#endif
311#if HAVE_UNISTD_H
312# include <unistd.h>
313#endif"
314
315ac_subdirs_all="$ac_subdirs_all src/expat"
3ecd9f92 316ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR ac_ct_AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP ac_ct_STRIP WINDRES ac_ct_WINDRES DLLTOOL ac_ct_DLLTOOL IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS ac_pt_PKG_CONFIG PANGOX_CFLAGS PANGOX_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS REZ DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS LIBGNOMEPRINTUI_CFLAGS LIBGNOMEPRINTUI_LIBS GNOMEVFS_CFLAGS GNOMEVFS_LIBS HILDON_CFLAGS HILDON_LIBS GST_CFLAGS GST_LIBS CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WX_FLAVOUR WX_LIB_FLAVOUR WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL EXTRALIBS_GNOMEPRINT EXTRALIBS_GNOMEVFS EXTRALIBS_HILDON UNICODE BUILD DEBUG_INFO DEBUG_FLAG TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX CPPUNIT_CFLAGS CPPUNIT_LIBS SET_MAKE MAKE_SET NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOS PLATFORM_MACOSX PLATFORM_OS2 PLATFORM_BEOS SO_SUFFIX SO_SUFFIX_MODULE DLLIMP_SUFFIX LIBPREFIX LIBEXT DLLPREFIX DLLPREFIX_MODULE dlldir AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG WINDOWS_IMPLIB USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_SOVERCYGWIN USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH ICC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_ICC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1 COND_MONOLITHIC_0_USE_MEDIA_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_ COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF COND_PLATFORM_MACOSX_1_TOOLKIT_X11 COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MACOS_1 COND_PLATFORM_MAC_1 COND_PLATFORM_MSDOS_0 COND_PLATFORM_MSDOS_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_USE_XRC_1 COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_SHARED_1_USE_XRC_1 COND_TOOLKIT_ COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_TOOLKIT_VERSION_ COND_TOOLKIT_GTK_TOOLKIT_VERSION_2 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE COND_TOOLKIT_WINCE_USE_GUI_1 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_OPENGL_1 COND_USE_PCH_1 COND_USE_PLUGINS_0 COND_USE_RTTI_0 COND_USE_RTTI_1 COND_USE_SOSYMLINKS_1 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_USE_THREADS_0 COND_USE_THREADS_1 COND_USE_XRC_1 COND_WINDOWS_IMPLIB_1 COND_WITH_PLUGIN_SDL_1 COND_WXUNIV_0 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_CPPFLAGS WXCONFIG_CFLAGS WXCONFIG_CXXFLAGS WXCONFIG_LIBS WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WXCONFIG_RESFLAGS EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESCOMP RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES POSTLINK_COMMAND MACSETFILE GCC CPPUNIT_CONFIG LIBOBJS LTLIBOBJS'
a848cd7e
SC
317ac_subst_files=''
318
319# Initialize some variables set by options.
320ac_init_help=
321ac_init_version=false
322# The variables have the same names as the options, with
323# dashes changed to underlines.
324cache_file=/dev/null
325exec_prefix=NONE
326no_create=
327no_recursion=
328prefix=NONE
329program_prefix=NONE
330program_suffix=NONE
331program_transform_name=s,x,x,
332silent=
333site=
334srcdir=
335verbose=
336x_includes=NONE
337x_libraries=NONE
338
339# Installation directory options.
340# These are left unexpanded so users can "make install exec_prefix=/foo"
341# and all the variables that are supposed to be based on exec_prefix
342# by default will actually change.
343# Use braces instead of parens because sh, perl, etc. also accept them.
344bindir='${exec_prefix}/bin'
345sbindir='${exec_prefix}/sbin'
346libexecdir='${exec_prefix}/libexec'
347datadir='${prefix}/share'
348sysconfdir='${prefix}/etc'
349sharedstatedir='${prefix}/com'
350localstatedir='${prefix}/var'
351libdir='${exec_prefix}/lib'
352includedir='${prefix}/include'
353oldincludedir='/usr/include'
354infodir='${prefix}/info'
355mandir='${prefix}/man'
356
357ac_prev=
358for ac_option
359do
360 # If the previous option needs an argument, assign it.
361 if test -n "$ac_prev"; then
362 eval "$ac_prev=\$ac_option"
363 ac_prev=
364 continue
365 fi
366
367 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368
369 # Accept the important Cygnus configure options, so we can diagnose typos.
370
371 case $ac_option in
372
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 ac_prev=bindir ;;
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 bindir=$ac_optarg ;;
377
378 -build | --build | --buil | --bui | --bu)
379 ac_prev=build_alias ;;
380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
381 build_alias=$ac_optarg ;;
382
383 -cache-file | --cache-file | --cache-fil | --cache-fi \
384 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385 ac_prev=cache_file ;;
386 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
388 cache_file=$ac_optarg ;;
389
390 --config-cache | -C)
391 cache_file=config.cache ;;
392
393 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394 ac_prev=datadir ;;
395 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 | --da=*)
397 datadir=$ac_optarg ;;
398
399 -disable-* | --disable-*)
400 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
401 # Reject names that are not valid shell variable names.
402 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404 { (exit 1); exit 1; }; }
405 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406 eval "enable_$ac_feature=no" ;;
407
408 -enable-* | --enable-*)
409 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
410 # Reject names that are not valid shell variable names.
411 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413 { (exit 1); exit 1; }; }
414 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415 case $ac_option in
416 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 *) ac_optarg=yes ;;
418 esac
419 eval "enable_$ac_feature='$ac_optarg'" ;;
420
421 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423 | --exec | --exe | --ex)
424 ac_prev=exec_prefix ;;
425 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427 | --exec=* | --exe=* | --ex=*)
428 exec_prefix=$ac_optarg ;;
429
430 -gas | --gas | --ga | --g)
431 # Obsolete; use --with-gas.
432 with_gas=yes ;;
433
434 -help | --help | --hel | --he | -h)
435 ac_init_help=long ;;
436 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437 ac_init_help=recursive ;;
438 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439 ac_init_help=short ;;
440
441 -host | --host | --hos | --ho)
442 ac_prev=host_alias ;;
443 -host=* | --host=* | --hos=* | --ho=*)
444 host_alias=$ac_optarg ;;
445
446 -includedir | --includedir | --includedi | --included | --include \
447 | --includ | --inclu | --incl | --inc)
448 ac_prev=includedir ;;
449 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450 | --includ=* | --inclu=* | --incl=* | --inc=*)
451 includedir=$ac_optarg ;;
452
453 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 ac_prev=infodir ;;
455 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
456 infodir=$ac_optarg ;;
457
458 -libdir | --libdir | --libdi | --libd)
459 ac_prev=libdir ;;
460 -libdir=* | --libdir=* | --libdi=* | --libd=*)
461 libdir=$ac_optarg ;;
462
463 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464 | --libexe | --libex | --libe)
465 ac_prev=libexecdir ;;
466 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467 | --libexe=* | --libex=* | --libe=*)
468 libexecdir=$ac_optarg ;;
469
470 -localstatedir | --localstatedir | --localstatedi | --localstated \
471 | --localstate | --localstat | --localsta | --localst \
472 | --locals | --local | --loca | --loc | --lo)
473 ac_prev=localstatedir ;;
474 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
477 localstatedir=$ac_optarg ;;
478
479 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 ac_prev=mandir ;;
481 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 mandir=$ac_optarg ;;
483
484 -nfp | --nfp | --nf)
485 # Obsolete; use --without-fp.
486 with_fp=no ;;
487
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489 | --no-cr | --no-c | -n)
490 no_create=yes ;;
491
492 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 no_recursion=yes ;;
495
496 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498 | --oldin | --oldi | --old | --ol | --o)
499 ac_prev=oldincludedir ;;
500 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
503 oldincludedir=$ac_optarg ;;
504
505 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 ac_prev=prefix ;;
507 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508 prefix=$ac_optarg ;;
509
510 -program-prefix | --program-prefix | --program-prefi | --program-pref \
511 | --program-pre | --program-pr | --program-p)
512 ac_prev=program_prefix ;;
513 -program-prefix=* | --program-prefix=* | --program-prefi=* \
514 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
515 program_prefix=$ac_optarg ;;
516
517 -program-suffix | --program-suffix | --program-suffi | --program-suff \
518 | --program-suf | --program-su | --program-s)
519 ac_prev=program_suffix ;;
520 -program-suffix=* | --program-suffix=* | --program-suffi=* \
521 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
522 program_suffix=$ac_optarg ;;
523
524 -program-transform-name | --program-transform-name \
525 | --program-transform-nam | --program-transform-na \
526 | --program-transform-n | --program-transform- \
527 | --program-transform | --program-transfor \
528 | --program-transfo | --program-transf \
529 | --program-trans | --program-tran \
530 | --progr-tra | --program-tr | --program-t)
531 ac_prev=program_transform_name ;;
532 -program-transform-name=* | --program-transform-name=* \
533 | --program-transform-nam=* | --program-transform-na=* \
534 | --program-transform-n=* | --program-transform-=* \
535 | --program-transform=* | --program-transfor=* \
536 | --program-transfo=* | --program-transf=* \
537 | --program-trans=* | --program-tran=* \
538 | --progr-tra=* | --program-tr=* | --program-t=*)
539 program_transform_name=$ac_optarg ;;
540
541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542 | -silent | --silent | --silen | --sile | --sil)
543 silent=yes ;;
544
545 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546 ac_prev=sbindir ;;
547 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548 | --sbi=* | --sb=*)
549 sbindir=$ac_optarg ;;
550
551 -sharedstatedir | --sharedstatedir | --sharedstatedi \
552 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553 | --sharedst | --shareds | --shared | --share | --shar \
554 | --sha | --sh)
555 ac_prev=sharedstatedir ;;
556 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559 | --sha=* | --sh=*)
560 sharedstatedir=$ac_optarg ;;
561
562 -site | --site | --sit)
563 ac_prev=site ;;
564 -site=* | --site=* | --sit=*)
565 site=$ac_optarg ;;
566
567 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 ac_prev=srcdir ;;
569 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570 srcdir=$ac_optarg ;;
571
572 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573 | --syscon | --sysco | --sysc | --sys | --sy)
574 ac_prev=sysconfdir ;;
575 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
577 sysconfdir=$ac_optarg ;;
578
579 -target | --target | --targe | --targ | --tar | --ta | --t)
580 ac_prev=target_alias ;;
581 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
582 target_alias=$ac_optarg ;;
583
584 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 verbose=yes ;;
586
587 -version | --version | --versio | --versi | --vers | -V)
588 ac_init_version=: ;;
589
590 -with-* | --with-*)
591 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
592 # Reject names that are not valid shell variable names.
593 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594 { echo "$as_me: error: invalid package name: $ac_package" >&2
595 { (exit 1); exit 1; }; }
596 ac_package=`echo $ac_package| sed 's/-/_/g'`
597 case $ac_option in
598 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 *) ac_optarg=yes ;;
600 esac
601 eval "with_$ac_package='$ac_optarg'" ;;
602
603 -without-* | --without-*)
604 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
605 # Reject names that are not valid shell variable names.
606 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607 { echo "$as_me: error: invalid package name: $ac_package" >&2
608 { (exit 1); exit 1; }; }
609 ac_package=`echo $ac_package | sed 's/-/_/g'`
610 eval "with_$ac_package=no" ;;
611
612 --x)
613 # Obsolete; use --with-x.
614 with_x=yes ;;
615
616 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617 | --x-incl | --x-inc | --x-in | --x-i)
618 ac_prev=x_includes ;;
619 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
621 x_includes=$ac_optarg ;;
622
623 -x-libraries | --x-libraries | --x-librarie | --x-librari \
624 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625 ac_prev=x_libraries ;;
626 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
628 x_libraries=$ac_optarg ;;
629
630 -*) { echo "$as_me: error: unrecognized option: $ac_option
631Try \`$0 --help' for more information." >&2
632 { (exit 1); exit 1; }; }
633 ;;
634
635 *=*)
636 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637 # Reject names that are not valid shell variable names.
638 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640 { (exit 1); exit 1; }; }
641 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642 eval "$ac_envvar='$ac_optarg'"
643 export $ac_envvar ;;
644
645 *)
646 # FIXME: should be removed in autoconf 3.0.
647 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 ;;
652
653 esac
654done
655
656if test -n "$ac_prev"; then
657 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658 { echo "$as_me: error: missing argument to $ac_option" >&2
659 { (exit 1); exit 1; }; }
660fi
661
662# Be sure to have absolute paths.
663for ac_var in exec_prefix prefix
664do
665 eval ac_val=$`echo $ac_var`
666 case $ac_val in
667 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669 { (exit 1); exit 1; }; };;
670 esac
671done
672
673# Be sure to have absolute paths.
674for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
ac1cb8d3 675 localstatedir libdir includedir oldincludedir infodir mandir
a848cd7e
SC
676do
677 eval ac_val=$`echo $ac_var`
678 case $ac_val in
679 [\\/$]* | ?:[\\/]* ) ;;
680 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681 { (exit 1); exit 1; }; };;
682 esac
683done
684
685# There might be people who depend on the old broken behavior: `$host'
686# used to hold the argument of --host etc.
687# FIXME: To remove some day.
688build=$build_alias
689host=$host_alias
690target=$target_alias
691
692# FIXME: To remove some day.
693if test "x$host_alias" != x; then
694 if test "x$build_alias" = x; then
695 cross_compiling=maybe
696 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697 If a cross compiler is detected then cross compile mode will be used." >&2
698 elif test "x$build_alias" != "x$host_alias"; then
699 cross_compiling=yes
700 fi
701fi
702
703ac_tool_prefix=
704test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706test "$silent" = yes && exec 6>/dev/null
707
708
709# Find the source files, if location was not specified.
710if test -z "$srcdir"; then
711 ac_srcdir_defaulted=yes
712 # Try the directory containing this script, then its parent.
713 ac_confdir=`(dirname "$0") 2>/dev/null ||
714$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
719echo X"$0" |
720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722 /^X\(\/\/\)$/{ s//\1/; q; }
723 /^X\(\/\).*/{ s//\1/; q; }
724 s/.*/./; q'`
725 srcdir=$ac_confdir
726 if test ! -r $srcdir/$ac_unique_file; then
727 srcdir=..
728 fi
729else
730 ac_srcdir_defaulted=no
731fi
732if test ! -r $srcdir/$ac_unique_file; then
733 if test "$ac_srcdir_defaulted" = yes; then
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735 { (exit 1); exit 1; }; }
736 else
737 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738 { (exit 1); exit 1; }; }
739 fi
740fi
741(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743 { (exit 1); exit 1; }; }
744srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745ac_env_build_alias_set=${build_alias+set}
746ac_env_build_alias_value=$build_alias
747ac_cv_env_build_alias_set=${build_alias+set}
748ac_cv_env_build_alias_value=$build_alias
749ac_env_host_alias_set=${host_alias+set}
750ac_env_host_alias_value=$host_alias
751ac_cv_env_host_alias_set=${host_alias+set}
752ac_cv_env_host_alias_value=$host_alias
753ac_env_target_alias_set=${target_alias+set}
754ac_env_target_alias_value=$target_alias
755ac_cv_env_target_alias_set=${target_alias+set}
756ac_cv_env_target_alias_value=$target_alias
757ac_env_CC_set=${CC+set}
758ac_env_CC_value=$CC
759ac_cv_env_CC_set=${CC+set}
760ac_cv_env_CC_value=$CC
761ac_env_CFLAGS_set=${CFLAGS+set}
762ac_env_CFLAGS_value=$CFLAGS
763ac_cv_env_CFLAGS_set=${CFLAGS+set}
764ac_cv_env_CFLAGS_value=$CFLAGS
765ac_env_LDFLAGS_set=${LDFLAGS+set}
766ac_env_LDFLAGS_value=$LDFLAGS
767ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768ac_cv_env_LDFLAGS_value=$LDFLAGS
769ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_env_CPPFLAGS_value=$CPPFLAGS
771ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773ac_env_CPP_set=${CPP+set}
774ac_env_CPP_value=$CPP
775ac_cv_env_CPP_set=${CPP+set}
776ac_cv_env_CPP_value=$CPP
777ac_env_CXX_set=${CXX+set}
778ac_env_CXX_value=$CXX
779ac_cv_env_CXX_set=${CXX+set}
780ac_cv_env_CXX_value=$CXX
781ac_env_CXXFLAGS_set=${CXXFLAGS+set}
782ac_env_CXXFLAGS_value=$CXXFLAGS
783ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
784ac_cv_env_CXXFLAGS_value=$CXXFLAGS
785ac_env_CXXCPP_set=${CXXCPP+set}
786ac_env_CXXCPP_value=$CXXCPP
787ac_cv_env_CXXCPP_set=${CXXCPP+set}
788ac_cv_env_CXXCPP_value=$CXXCPP
3ecd9f92
MW
789ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
790ac_env_PKG_CONFIG_value=$PKG_CONFIG
791ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
792ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
793ac_env_PANGOX_CFLAGS_set=${PANGOX_CFLAGS+set}
794ac_env_PANGOX_CFLAGS_value=$PANGOX_CFLAGS
795ac_cv_env_PANGOX_CFLAGS_set=${PANGOX_CFLAGS+set}
796ac_cv_env_PANGOX_CFLAGS_value=$PANGOX_CFLAGS
797ac_env_PANGOX_LIBS_set=${PANGOX_LIBS+set}
798ac_env_PANGOX_LIBS_value=$PANGOX_LIBS
799ac_cv_env_PANGOX_LIBS_set=${PANGOX_LIBS+set}
800ac_cv_env_PANGOX_LIBS_value=$PANGOX_LIBS
801ac_env_PANGOFT2_CFLAGS_set=${PANGOFT2_CFLAGS+set}
802ac_env_PANGOFT2_CFLAGS_value=$PANGOFT2_CFLAGS
803ac_cv_env_PANGOFT2_CFLAGS_set=${PANGOFT2_CFLAGS+set}
804ac_cv_env_PANGOFT2_CFLAGS_value=$PANGOFT2_CFLAGS
805ac_env_PANGOFT2_LIBS_set=${PANGOFT2_LIBS+set}
806ac_env_PANGOFT2_LIBS_value=$PANGOFT2_LIBS
807ac_cv_env_PANGOFT2_LIBS_set=${PANGOFT2_LIBS+set}
808ac_cv_env_PANGOFT2_LIBS_value=$PANGOFT2_LIBS
809ac_env_PANGOXFT_CFLAGS_set=${PANGOXFT_CFLAGS+set}
810ac_env_PANGOXFT_CFLAGS_value=$PANGOXFT_CFLAGS
811ac_cv_env_PANGOXFT_CFLAGS_set=${PANGOXFT_CFLAGS+set}
812ac_cv_env_PANGOXFT_CFLAGS_value=$PANGOXFT_CFLAGS
813ac_env_PANGOXFT_LIBS_set=${PANGOXFT_LIBS+set}
814ac_env_PANGOXFT_LIBS_value=$PANGOXFT_LIBS
815ac_cv_env_PANGOXFT_LIBS_set=${PANGOXFT_LIBS+set}
816ac_cv_env_PANGOXFT_LIBS_value=$PANGOXFT_LIBS
817ac_env_LIBGNOMEPRINTUI_CFLAGS_set=${LIBGNOMEPRINTUI_CFLAGS+set}
818ac_env_LIBGNOMEPRINTUI_CFLAGS_value=$LIBGNOMEPRINTUI_CFLAGS
819ac_cv_env_LIBGNOMEPRINTUI_CFLAGS_set=${LIBGNOMEPRINTUI_CFLAGS+set}
820ac_cv_env_LIBGNOMEPRINTUI_CFLAGS_value=$LIBGNOMEPRINTUI_CFLAGS
821ac_env_LIBGNOMEPRINTUI_LIBS_set=${LIBGNOMEPRINTUI_LIBS+set}
822ac_env_LIBGNOMEPRINTUI_LIBS_value=$LIBGNOMEPRINTUI_LIBS
823ac_cv_env_LIBGNOMEPRINTUI_LIBS_set=${LIBGNOMEPRINTUI_LIBS+set}
824ac_cv_env_LIBGNOMEPRINTUI_LIBS_value=$LIBGNOMEPRINTUI_LIBS
825ac_env_GNOMEVFS_CFLAGS_set=${GNOMEVFS_CFLAGS+set}
826ac_env_GNOMEVFS_CFLAGS_value=$GNOMEVFS_CFLAGS
827ac_cv_env_GNOMEVFS_CFLAGS_set=${GNOMEVFS_CFLAGS+set}
828ac_cv_env_GNOMEVFS_CFLAGS_value=$GNOMEVFS_CFLAGS
829ac_env_GNOMEVFS_LIBS_set=${GNOMEVFS_LIBS+set}
830ac_env_GNOMEVFS_LIBS_value=$GNOMEVFS_LIBS
831ac_cv_env_GNOMEVFS_LIBS_set=${GNOMEVFS_LIBS+set}
832ac_cv_env_GNOMEVFS_LIBS_value=$GNOMEVFS_LIBS
833ac_env_HILDON_CFLAGS_set=${HILDON_CFLAGS+set}
834ac_env_HILDON_CFLAGS_value=$HILDON_CFLAGS
835ac_cv_env_HILDON_CFLAGS_set=${HILDON_CFLAGS+set}
836ac_cv_env_HILDON_CFLAGS_value=$HILDON_CFLAGS
837ac_env_HILDON_LIBS_set=${HILDON_LIBS+set}
838ac_env_HILDON_LIBS_value=$HILDON_LIBS
839ac_cv_env_HILDON_LIBS_set=${HILDON_LIBS+set}
840ac_cv_env_HILDON_LIBS_value=$HILDON_LIBS
841ac_env_GST_CFLAGS_set=${GST_CFLAGS+set}
842ac_env_GST_CFLAGS_value=$GST_CFLAGS
843ac_cv_env_GST_CFLAGS_set=${GST_CFLAGS+set}
844ac_cv_env_GST_CFLAGS_value=$GST_CFLAGS
845ac_env_GST_LIBS_set=${GST_LIBS+set}
846ac_env_GST_LIBS_value=$GST_LIBS
847ac_cv_env_GST_LIBS_set=${GST_LIBS+set}
848ac_cv_env_GST_LIBS_value=$GST_LIBS
a848cd7e
SC
849
850#
851# Report the --help message.
852#
853if test "$ac_init_help" = "long"; then
854 # Omit some internal or obsolete options to make the list less imposing.
855 # This message is too long to be a string in the A/UX 3.1 sh.
856 cat <<_ACEOF
dd8df4fc 857\`configure' configures wxWidgets 2.7.0 to adapt to many kinds of systems.
a848cd7e
SC
858
859Usage: $0 [OPTION]... [VAR=VALUE]...
860
861To assign environment variables (e.g., CC, CFLAGS...), specify them as
862VAR=VALUE. See below for descriptions of some of the useful variables.
863
864Defaults for the options are specified in brackets.
865
866Configuration:
867 -h, --help display this help and exit
868 --help=short display options specific to this package
869 --help=recursive display the short help of all the included packages
870 -V, --version display version information and exit
871 -q, --quiet, --silent do not print \`checking...' messages
872 --cache-file=FILE cache test results in FILE [disabled]
873 -C, --config-cache alias for \`--cache-file=config.cache'
874 -n, --no-create do not create output files
875 --srcdir=DIR find the sources in DIR [configure dir or \`..']
876
877_ACEOF
878
879 cat <<_ACEOF
880Installation directories:
881 --prefix=PREFIX install architecture-independent files in PREFIX
ac1cb8d3 882 [$ac_default_prefix]
a848cd7e 883 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ac1cb8d3 884 [PREFIX]
a848cd7e
SC
885
886By default, \`make install' will install all the files in
887\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
888an installation prefix other than \`$ac_default_prefix' using \`--prefix',
889for instance \`--prefix=\$HOME'.
890
891For better control, use the options below.
892
893Fine tuning of the installation directories:
894 --bindir=DIR user executables [EPREFIX/bin]
895 --sbindir=DIR system admin executables [EPREFIX/sbin]
896 --libexecdir=DIR program executables [EPREFIX/libexec]
897 --datadir=DIR read-only architecture-independent data [PREFIX/share]
898 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
899 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
900 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
901 --libdir=DIR object code libraries [EPREFIX/lib]
902 --includedir=DIR C header files [PREFIX/include]
903 --oldincludedir=DIR C header files for non-gcc [/usr/include]
904 --infodir=DIR info documentation [PREFIX/info]
905 --mandir=DIR man documentation [PREFIX/man]
906_ACEOF
907
908 cat <<\_ACEOF
909
910X features:
911 --x-includes=DIR X include files are in DIR
912 --x-libraries=DIR X library files are in DIR
913
914System types:
915 --build=BUILD configure for building on BUILD [guessed]
916 --host=HOST cross-compile to build programs to run on HOST [BUILD]
917 --target=TARGET configure for building compilers for TARGET [HOST]
918_ACEOF
919fi
920
921if test -n "$ac_init_help"; then
922 case $ac_init_help in
dd8df4fc 923 short | recursive ) echo "Configuration of wxWidgets 2.7.0:";;
a848cd7e
SC
924 esac
925 cat <<\_ACEOF
926
927Optional Features:
928 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
929 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
930 --enable-gui use GUI classes
77ffb593
JS
931 --enable-monolithic build wxWidgets as single library
932 --enable-plugins build parts of wxWidgets as loadable components
933 --enable-universal use wxWidgets GUI controls instead of native ones
a848cd7e 934 --enable-nanox use NanoX
f34ca037 935 --disable-gtk2 use GTK+ 1.2 instead of 2.0
a848cd7e
SC
936 --enable-gpe use GNOME PDA Environment features if possible
937 --enable-shared create shared library code
938 --enable-optimise create optimised code
939 --enable-debug same as debug_flag and debug_info
940 --enable-stl use STL for containers
941 --enable-omf use OMF object format
942 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
943 --enable-debug_info create code with debugging information
944 --enable-debug_gdb create code with extra GDB debugging information
945 --enable-debug_cntxt use wxDebugContext
946 --enable-mem_tracing create code with memory tracing
947 --enable-profile create code with profiling information
948 --enable-no_rtti create code without RTTI information
949 --enable-no_exceptions create code without C++ exceptions handling
950 --enable-permissive compile code disregarding strict ANSI
951 --enable-no_deps create code without dependency information
95768535 952 --enable-universal_binary[=SDK] create Mac PowerPC and Intel Universal binary (not yet working)
dee1a63f
MB
953 --enable-compat24 enable wxWidgets 2.4 compatibility
954 --disable-compat26 disable wxWidgets 2.6 compatibility
ffa0583f 955 --disable-rpath disable use of rpath for uninstalled builds
a848cd7e
SC
956 --enable-intl use internationalization system
957 --enable-config use wxConfig (and derived) classes
958 --enable-protocols use wxProtocol and derived classes
959 --enable-ftp use wxFTP (requires wxProtocol
960 --enable-http use wxHTTP (requires wxProtocol
961 --enable-fileproto use wxFileProto class (requires wxProtocol
962 --enable-sockets use socket/network classes
963 --enable-ole use OLE classes (Win32 only)
964 --enable-dataobj use data object classes
965 --enable-ipc use interprocess communication (wxSocket etc.)
966 --enable-apple_ieee use the Apple IEEE codec
81f90336 967 --enable-arcstream use wxArchive streams
eaff0f0d 968 --enable-backtrace use wxStackWalker class for getting backtraces
36b6448c 969 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
a848cd7e
SC
970 --enable-cmdline use wxCmdLineParser class
971 --enable-datetime use wxDateTime class
36b6448c 972 --enable-debugreport use wxDebugReport class
a848cd7e
SC
973 --enable-dialupman use dialup network classes
974 --enable-dynlib use wxLibrary class for DLL loading
975 --enable-dynamicloader use (new) wxDynamicLibrary class
976 --enable-exceptions build exception-safe library
977 --enable-ffile use wxFFile class
978 --enable-file use wxFile class
979 --enable-filesystem use virtual file systems classes
980 --enable-fontmap use font encodings conversion classes
981 --enable-fs_inet use virtual HTTP/FTP filesystems
982 --enable-fs_zip use virtual ZIP filesystems
983 --enable-geometry use geometry class
984 --enable-log use logging system
985 --enable-longlong use wxLongLong class
986 --enable-mimetype use wxMimeTypesManager
987 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
988 --enable-snglinst use wxSingleInstanceChecker class
a848cd7e 989 --enable-std_iostreams use standard C++ stream classes
59746b65 990 --enable-std_string use standard C++ string classes
07158944 991 --enable-stdpaths use wxStandardPaths class
a848cd7e 992 --enable-stopwatch use wxStopWatch class
07158944 993 --enable-streams use wxStream etc classes
a848cd7e
SC
994 --enable-sysoptions use wxSystemOptions
995 --enable-textbuf use wxTextBuffer class
996 --enable-textfile use wxTextFile class
997 --enable-timer use wxTimer class
998 --enable-unicode compile wxString with Unicode support
999 --enable-sound use wxSound class
3b57de8b 1000 --enable-mediactrl use wxMediaCtrl class
f10e38c4 1001 --enable-gstreamer8 force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix
8b6682b9 1002 --enable-printfposparam use wxVsnprintf() which supports positional parameters
81f90336 1003 --enable-zipstream use wxZip streams
a848cd7e
SC
1004 --enable-url use wxURL class
1005 --enable-protocol use wxProtocol class
1006 --enable-protocol-http HTTP support in wxProtocol
1007 --enable-protocol-ftp FTP support in wxProtocol
1008 --enable-protocol-file FILE support in wxProtocol
1009 --enable-threads use threads
1010 --enable-docview use document view architecture
1011 --enable-help use help subsystem
1012 --enable-mshtmlhelp use MS HTML Help (win32)
1013 --enable-html use wxHTML sub-library
1014 --enable-htmlhelp use wxHTML-based help
9a8f0513 1015 --enable-xrc use XRC resources sub-library
3f60522a 1016 --enable-aui use AUI docking library
a848cd7e
SC
1017 --enable-constraints use layout-constraints system
1018 --enable-printarch use printing architecture
1019 --enable-mdi use multiple document interface architecture
8a7b1113 1020 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
1021 --enable-loggui use standard GUI logger
1022 --enable-logwin use wxLogWindow
1023 --enable-logdialog use wxLogDialog
646b6ec1 1024 --enable-webkit use wxWebKitCtrl (Mac)
91dea314 1025 --enable-richtext use wxRichTextCtrl
a848cd7e
SC
1026 --enable-postscript use wxPostscriptDC device context (default for gtk+)
1027 --enable-prologio not available; see contrib
1028 --enable-resources not available; see contrib
1029 --enable-clipboard use wxClipboard class
1030 --enable-dnd use Drag'n'Drop classes
1031 --enable-metafile use win32 metafiles
1032 --enable-controls use all usual controls
1033 --enable-accel use accelerators
1034 --enable-button use wxButton class
1035 --enable-bmpbutton use wxBitmapButton class
1036 --enable-calendar use wxCalendarCtrl class
1037 --enable-caret use wxCaret class
1038 --enable-checkbox use wxCheckBox class
1039 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
1040 --enable-choice use wxChoice class
92bbdbcd 1041 --enable-choicebook use wxChoicebook class
e9263684 1042 --enable-colourpicker use wxColourPickerCtrl class
a848cd7e 1043 --enable-combobox use wxComboBox class
a57d600f 1044 --enable-comboctrl use wxComboCtrl class
da98e9be 1045 --enable-datepick use wxDatePickerCtrl class
e9263684 1046 --enable-dirpicker use wxDirPickerCtrl class
a848cd7e 1047 --enable-display use wxDisplay class
e9263684
VZ
1048 --enable-filepicker use wxFilePickerCtrl class
1049 --enable-fontpicker use wxFontPickerCtrl class
a848cd7e
SC
1050 --enable-gauge use wxGauge class
1051 --enable-grid use wxGrid class
20e34ecc 1052 --enable-dataviewctrl, use wxDataViewCtrl class
6954625c 1053 --enable-hyperlink use wxHyperlinkCtrl class
a848cd7e
SC
1054 --enable-imaglist use wxImageList class
1055 --enable-listbook use wxListbook class
1056 --enable-listbox use wxListBox class
1057 --enable-listctrl use wxListCtrl class
1058 --enable-notebook use wxNotebook class
a57d600f 1059 --enable-odcombobox use wxOwnerDrawnComboBox class
a848cd7e
SC
1060 --enable-radiobox use wxRadioBox class
1061 --enable-radiobtn use wxRadioButton class
1062 --enable-sash use wxSashWindow class
1063 --enable-scrollbar use wxScrollBar class and scrollable windows
1064 --enable-slider use wxSlider class
1065 --enable-spinbtn use wxSpinButton class
1066 --enable-spinctrl use wxSpinCtrl class
1067 --enable-splitter use wxSplitterWindow class
1068 --enable-statbmp use wxStaticBitmap class
1069 --enable-statbox use wxStaticBox class
1070 --enable-statline use wxStaticLine class
1071 --enable-stattext use wxStaticText class
1072 --enable-statusbar use wxStatusBar class
1073 --enable-tabdialog use wxTabControl class
1074 --enable-textctrl use wxTextCtrl class
1075 --enable-togglebtn use wxToggleButton class
1076 --enable-toolbar use wxToolBar class
1077 --enable-tbarnative use native wxToolBar class
0093c2fc 1078 --enable-treebook use wxTreebook class
5ec3bc43 1079 --enable-toolbook use wxToolbook class
a848cd7e
SC
1080 --enable-treectrl use wxTreeCtrl class
1081 --enable-tipwindow use wxTipWindow class
1082 --enable-popupwin use wxPopUpWindow class
1083 --enable-commondlg use all common dialogs
1084 --enable-choicedlg use wxChoiceDialog
1085 --enable-coldlg use wxColourDialog
1086 --enable-filedlg use wxFileDialog
1087 --enable-finddlg use wxFindReplaceDialog
1088 --enable-fontdlg use wxFontDialog
1089 --enable-dirdlg use wxDirDialog
1090 --enable-msgdlg use wxMessageDialog
1091 --enable-numberdlg use wxNumberEntryDialog
1092 --enable-splash use wxSplashScreen
1093 --enable-textdlg use wxTextDialog
1094 --enable-tipdlg use startup tips
1095 --enable-progressdlg use wxProgressDialog
1096 --enable-wizarddlg use wxWizard
1097 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1098 --enable-miniframe use wxMiniFrame class
1099 --enable-tooltips use wxToolTip class
1100 --enable-splines use spline drawing code
fbe2ca43 1101 --enable-mousewheel use mousewheel
a848cd7e
SC
1102 --enable-validators use wxValidator and derived classes
1103 --enable-busyinfo use wxBusyInfo
4cb1d3da 1104 --enable-joystick use wxJoystick
38b4a946 1105 --enable-metafiles use wxMetaFile (Win32 only)
a848cd7e
SC
1106 --enable-dragimage use wxDragImage
1107 --enable-accessibility enable accessibility support
38b4a946 1108 --enable-dccache cache temporary wxDC objects (Win32 only)
a848cd7e
SC
1109 --enable-palette use wxPalette class
1110 --enable-image use wxImage class
1111 --enable-gif use gif images (GIF file format)
1112 --enable-pcx use pcx images (PCX file format)
1113 --enable-iff use iff images (IFF file format)
1114 --enable-pnm use pnm images (PNM file format)
1115 --enable-xpm use xpm images (XPM file format)
1116 --enable-icocur use Windows ICO and CUR formats
77ffb593 1117 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1118 --enable-vendor=VENDOR vendor name (win32 DLL only)
1119 --disable-largefile omit support for large files
1120 --disable-gtktest do not try to compile and run a test GTK+ program
1121 --disable-gtktest Do not try to compile and run a test GTK program
1122 --disable-sdltest Do not try to compile and run a test SDL program
1123 --enable-omf use OMF object format (OS/2)
f10e38c4
VZ
1124 --disable-dependency-tracking
1125 don't use dependency tracking even if the compiler
1126 can
ebee3cd0
VS
1127 --disable-precomp-headers
1128 don't use precompiled headers even if compiler can
a848cd7e
SC
1129
1130Optional Packages:
1131 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1132 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1c14217d 1133 --without-subdirs don't generate makefiles for samples/demos/...
f34ca037 1134 --with-gtk[=VERSION] use GTK+, VERSION can be 2 (default), 1 or "any"
a848cd7e
SC
1135 --with-motif use Motif/Lesstif
1136 --with-mac use Mac OS X
1137 --with-cocoa use Cocoa
1138 --with-wine use Wine
1139 --with-msw use MS-Windows
1140 --with-pm use OS/2 Presentation Manager
1141 --with-mgl use SciTech MGL
1142 --with-microwin use MicroWindows
1143 --with-x11 use X11
1144 --with-libpng use libpng (PNG image format)
1145 --with-libjpeg use libjpeg (JPEG file format)
1146 --with-libtiff use libtiff (TIFF file format)
1147 --with-libxpm use libxpm (XPM file format)
1148 --with-libmspack use libmspack (CHM help files loading)
1149 --with-sdl use SDL for audio on Unix
2b850ae1
RR
1150 --with-gnomeprint use GNOME print for printing under GNOME
1151 --with-gnomevfs use GNOME VFS for associating MIME types
3565d135 1152 --with-hildon use Hildon framework for Nokia 770
a848cd7e
SC
1153 --with-opengl use OpenGL (or Mesa)
1154 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1155 --with-regex enable support for wxRegEx class
1156 --with-zlib use zlib for LZW compression
1157 --with-odbc use the IODBC and wxODBC classes
1158 --with-expat enable XML support using expat parser
ceec2216 1159 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1160 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1161 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1162 --with-x use the X Window System
1163 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1164 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1165 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1166 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1167 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1168
1169Some influential environment variables:
dcc1b6ad
VS
1170 CC C compiler command
1171 CFLAGS C compiler flags
1172 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1173 nonstandard directory <lib dir>
1174 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1175 headers in a nonstandard directory <include dir>
1176 CPP C preprocessor
1177 CXX C++ compiler command
1178 CXXFLAGS C++ compiler flags
1179 CXXCPP C++ preprocessor
3ecd9f92
MW
1180 PKG_CONFIG path to pkg-config utility
1181 PANGOX_CFLAGS
1182 C compiler flags for PANGOX, overriding pkg-config
1183 PANGOX_LIBS linker flags for PANGOX, overriding pkg-config
1184 PANGOFT2_CFLAGS
1185 C compiler flags for PANGOFT2, overriding pkg-config
1186 PANGOFT2_LIBS
1187 linker flags for PANGOFT2, overriding pkg-config
1188 PANGOXFT_CFLAGS
1189 C compiler flags for PANGOXFT, overriding pkg-config
1190 PANGOXFT_LIBS
1191 linker flags for PANGOXFT, overriding pkg-config
1192 LIBGNOMEPRINTUI_CFLAGS
1193 C compiler flags for LIBGNOMEPRINTUI, overriding pkg-config
1194 LIBGNOMEPRINTUI_LIBS
1195 linker flags for LIBGNOMEPRINTUI, overriding pkg-config
1196 GNOMEVFS_CFLAGS
1197 C compiler flags for GNOMEVFS, overriding pkg-config
1198 GNOMEVFS_LIBS
1199 linker flags for GNOMEVFS, overriding pkg-config
1200 HILDON_CFLAGS
1201 C compiler flags for HILDON, overriding pkg-config
1202 HILDON_LIBS linker flags for HILDON, overriding pkg-config
1203 GST_CFLAGS C compiler flags for GST, overriding pkg-config
1204 GST_LIBS linker flags for GST, overriding pkg-config
a848cd7e
SC
1205
1206Use these variables to override the choices made by `configure' or to help
1207it to find libraries and programs with nonstandard names/locations.
1208
77ffb593 1209Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1210_ACEOF
1211fi
1212
1213if test "$ac_init_help" = "recursive"; then
1214 # If there are subdirs, report their specific --help.
1215 ac_popdir=`pwd`
1216 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1217 test -d $ac_dir || continue
1218 ac_builddir=.
1219
1220if test "$ac_dir" != .; then
1221 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1222 # A "../" for each directory in $ac_dir_suffix.
1223 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1224else
1225 ac_dir_suffix= ac_top_builddir=
1226fi
1227
1228case $srcdir in
1229 .) # No --srcdir option. We are building in place.
1230 ac_srcdir=.
1231 if test -z "$ac_top_builddir"; then
1232 ac_top_srcdir=.
1233 else
1234 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1235 fi ;;
1236 [\\/]* | ?:[\\/]* ) # Absolute path.
1237 ac_srcdir=$srcdir$ac_dir_suffix;
1238 ac_top_srcdir=$srcdir ;;
1239 *) # Relative path.
1240 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1241 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1242esac
ac1cb8d3
VS
1243
1244# Do not use `cd foo && pwd` to compute absolute paths, because
1245# the directories may not exist.
1246case `pwd` in
1247.) ac_abs_builddir="$ac_dir";;
1248*)
1249 case "$ac_dir" in
1250 .) ac_abs_builddir=`pwd`;;
1251 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1252 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1253 esac;;
1254esac
1255case $ac_abs_builddir in
1256.) ac_abs_top_builddir=${ac_top_builddir}.;;
1257*)
1258 case ${ac_top_builddir}. in
1259 .) ac_abs_top_builddir=$ac_abs_builddir;;
1260 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1261 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1262 esac;;
1263esac
1264case $ac_abs_builddir in
1265.) ac_abs_srcdir=$ac_srcdir;;
1266*)
1267 case $ac_srcdir in
1268 .) ac_abs_srcdir=$ac_abs_builddir;;
1269 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1270 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1271 esac;;
1272esac
1273case $ac_abs_builddir in
1274.) ac_abs_top_srcdir=$ac_top_srcdir;;
1275*)
1276 case $ac_top_srcdir in
1277 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1278 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1279 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1280 esac;;
1281esac
a848cd7e
SC
1282
1283 cd $ac_dir
1284 # Check for guested configure; otherwise get Cygnus style configure.
1285 if test -f $ac_srcdir/configure.gnu; then
1286 echo
1287 $SHELL $ac_srcdir/configure.gnu --help=recursive
1288 elif test -f $ac_srcdir/configure; then
1289 echo
1290 $SHELL $ac_srcdir/configure --help=recursive
1291 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1292 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1293 echo
1294 $ac_configure --help
1295 else
1296 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1297 fi
c9a66001 1298 cd "$ac_popdir"
a848cd7e
SC
1299 done
1300fi
1301
1302test -n "$ac_init_help" && exit 0
1303if $ac_init_version; then
1304 cat <<\_ACEOF
dd8df4fc 1305wxWidgets configure 2.7.0
ac1cb8d3 1306generated by GNU Autoconf 2.59
a848cd7e 1307
ac1cb8d3 1308Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1309This configure script is free software; the Free Software Foundation
1310gives unlimited permission to copy, distribute and modify it.
1311_ACEOF
1312 exit 0
1313fi
1314exec 5>config.log
1315cat >&5 <<_ACEOF
1316This file contains any messages produced by compilers while
1317running configure, to aid debugging if configure makes a mistake.
1318
dd8df4fc 1319It was created by wxWidgets $as_me 2.7.0, which was
ac1cb8d3 1320generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1321
1322 $ $0 $@
1323
1324_ACEOF
1325{
1326cat <<_ASUNAME
1327## --------- ##
1328## Platform. ##
1329## --------- ##
1330
1331hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1332uname -m = `(uname -m) 2>/dev/null || echo unknown`
1333uname -r = `(uname -r) 2>/dev/null || echo unknown`
1334uname -s = `(uname -s) 2>/dev/null || echo unknown`
1335uname -v = `(uname -v) 2>/dev/null || echo unknown`
1336
1337/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1338/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1339
1340/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1341/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1342/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1343hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1344/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1345/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1346/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1347
1348_ASUNAME
1349
1350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1351for as_dir in $PATH
1352do
1353 IFS=$as_save_IFS
1354 test -z "$as_dir" && as_dir=.
1355 echo "PATH: $as_dir"
1356done
1357
1358} >&5
1359
1360cat >&5 <<_ACEOF
1361
1362
1363## ----------- ##
1364## Core tests. ##
1365## ----------- ##
1366
1367_ACEOF
1368
1369
1370# Keep a trace of the command line.
1371# Strip out --no-create and --no-recursion so they do not pile up.
1372# Strip out --silent because we don't want to record it for future runs.
1373# Also quote any args containing shell meta-characters.
1374# Make two passes to allow for proper duplicate-argument suppression.
1375ac_configure_args=
1376ac_configure_args0=
1377ac_configure_args1=
1378ac_sep=
1379ac_must_keep_next=false
1380for ac_pass in 1 2
1381do
1382 for ac_arg
1383 do
1384 case $ac_arg in
1385 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1386 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1387 | -silent | --silent | --silen | --sile | --sil)
1388 continue ;;
1389 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1390 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1391 esac
1392 case $ac_pass in
1393 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1394 2)
1395 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1396 if test $ac_must_keep_next = true; then
ac1cb8d3 1397 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1398 else
ac1cb8d3
VS
1399 case $ac_arg in
1400 *=* | --config-cache | -C | -disable-* | --disable-* \
1401 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1402 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1403 | -with-* | --with-* | -without-* | --without-* | --x)
1404 case "$ac_configure_args0 " in
1405 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1406 esac
1407 ;;
1408 -* ) ac_must_keep_next=true ;;
1409 esac
a848cd7e
SC
1410 fi
1411 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1412 # Get rid of the leading space.
1413 ac_sep=" "
1414 ;;
1415 esac
1416 done
1417done
1418$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1419$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1420
1421# When interrupted or exit'd, cleanup temporary files, and complete
1422# config.log. We remove comments because anyway the quotes in there
1423# would cause problems or look ugly.
1424# WARNING: Be sure not to use single quotes in there, as some shells,
1425# such as our DU 5.0 friend, will then `close' the trap.
1426trap 'exit_status=$?
1427 # Save into config.log some information that might help in debugging.
1428 {
1429 echo
1430
1431 cat <<\_ASBOX
1432## ---------------- ##
1433## Cache variables. ##
1434## ---------------- ##
1435_ASBOX
1436 echo
1437 # The following way of writing the cache mishandles newlines in values,
1438{
1439 (set) 2>&1 |
1440 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1441 *ac_space=\ *)
1442 sed -n \
ac1cb8d3
VS
1443 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1444 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1445 ;;
1446 *)
1447 sed -n \
ac1cb8d3 1448 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1449 ;;
1450 esac;
1451}
1452 echo
1453
1454 cat <<\_ASBOX
1455## ----------------- ##
1456## Output variables. ##
1457## ----------------- ##
1458_ASBOX
1459 echo
1460 for ac_var in $ac_subst_vars
1461 do
1462 eval ac_val=$`echo $ac_var`
1463 echo "$ac_var='"'"'$ac_val'"'"'"
1464 done | sort
1465 echo
1466
1467 if test -n "$ac_subst_files"; then
1468 cat <<\_ASBOX
1469## ------------- ##
1470## Output files. ##
1471## ------------- ##
1472_ASBOX
1473 echo
1474 for ac_var in $ac_subst_files
1475 do
1476 eval ac_val=$`echo $ac_var`
ac1cb8d3 1477 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1478 done | sort
1479 echo
1480 fi
1481
1482 if test -s confdefs.h; then
1483 cat <<\_ASBOX
1484## ----------- ##
1485## confdefs.h. ##
1486## ----------- ##
1487_ASBOX
1488 echo
1489 sed "/^$/d" confdefs.h | sort
1490 echo
1491 fi
1492 test "$ac_signal" != 0 &&
1493 echo "$as_me: caught signal $ac_signal"
1494 echo "$as_me: exit $exit_status"
1495 } >&5
ac1cb8d3 1496 rm -f core *.core &&
a848cd7e
SC
1497 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1498 exit $exit_status
1499 ' 0
1500for ac_signal in 1 2 13 15; do
1501 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1502done
1503ac_signal=0
1504
1505# confdefs.h avoids OS command line length limits that DEFS can exceed.
1506rm -rf conftest* confdefs.h
1507# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1508echo >confdefs.h
1509
1510# Predefined preprocessor variables.
1511
1512cat >>confdefs.h <<_ACEOF
1513#define PACKAGE_NAME "$PACKAGE_NAME"
1514_ACEOF
1515
1516
1517cat >>confdefs.h <<_ACEOF
1518#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1519_ACEOF
1520
1521
1522cat >>confdefs.h <<_ACEOF
1523#define PACKAGE_VERSION "$PACKAGE_VERSION"
1524_ACEOF
1525
1526
1527cat >>confdefs.h <<_ACEOF
1528#define PACKAGE_STRING "$PACKAGE_STRING"
1529_ACEOF
1530
1531
1532cat >>confdefs.h <<_ACEOF
1533#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1534_ACEOF
1535
1536
1537# Let the site file select an alternate cache file if it wants to.
1538# Prefer explicitly selected file to automatically selected ones.
1539if test -z "$CONFIG_SITE"; then
1540 if test "x$prefix" != xNONE; then
1541 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1542 else
1543 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1544 fi
1545fi
1546for ac_site_file in $CONFIG_SITE; do
1547 if test -r "$ac_site_file"; then
1548 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1549echo "$as_me: loading site script $ac_site_file" >&6;}
1550 sed 's/^/| /' "$ac_site_file" >&5
1551 . "$ac_site_file"
1552 fi
1553done
1554
1555if test -r "$cache_file"; then
1556 # Some versions of bash will fail to source /dev/null (special
1557 # files actually), so we avoid doing that.
1558 if test -f "$cache_file"; then
1559 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1560echo "$as_me: loading cache $cache_file" >&6;}
1561 case $cache_file in
1562 [\\/]* | ?:[\\/]* ) . $cache_file;;
1563 *) . ./$cache_file;;
1564 esac
1565 fi
1566else
1567 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1568echo "$as_me: creating cache $cache_file" >&6;}
1569 >$cache_file
1570fi
1571
1572# Check that the precious variables saved in the cache have kept the same
1573# value.
1574ac_cache_corrupted=false
1575for ac_var in `(set) 2>&1 |
ac1cb8d3 1576 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1577 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1578 eval ac_new_set=\$ac_env_${ac_var}_set
1579 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1580 eval ac_new_val="\$ac_env_${ac_var}_value"
1581 case $ac_old_set,$ac_new_set in
1582 set,)
1583 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1584echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1585 ac_cache_corrupted=: ;;
1586 ,set)
1587 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1588echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1589 ac_cache_corrupted=: ;;
1590 ,);;
1591 *)
1592 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1593 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1594echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1595 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1596echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1597 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1598echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1599 ac_cache_corrupted=:
a848cd7e
SC
1600 fi;;
1601 esac
1602 # Pass precious variables to config.status.
1603 if test "$ac_new_set" = set; then
1604 case $ac_new_val in
1605 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1606 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1607 *) ac_arg=$ac_var=$ac_new_val ;;
1608 esac
1609 case " $ac_configure_args " in
1610 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1611 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1612 esac
1613 fi
1614done
1615if $ac_cache_corrupted; then
1616 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1617echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1618 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1619echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1620 { (exit 1); exit 1; }; }
1621fi
1622
1623ac_ext=c
1624ac_cpp='$CPP $CPPFLAGS'
1625ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1626ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1627ac_compiler_gnu=$ac_cv_c_compiler_gnu
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658ac_aux_dir=
1659for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1660 if test -f $ac_dir/install-sh; then
1661 ac_aux_dir=$ac_dir
1662 ac_install_sh="$ac_aux_dir/install-sh -c"
1663 break
1664 elif test -f $ac_dir/install.sh; then
1665 ac_aux_dir=$ac_dir
1666 ac_install_sh="$ac_aux_dir/install.sh -c"
1667 break
1668 elif test -f $ac_dir/shtool; then
1669 ac_aux_dir=$ac_dir
1670 ac_install_sh="$ac_aux_dir/shtool install -c"
1671 break
1672 fi
1673done
1674if test -z "$ac_aux_dir"; then
1675 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1676echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1677 { (exit 1); exit 1; }; }
1678fi
1679ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1680ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1681ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1682
1683# Make sure we can run config.sub.
1684$ac_config_sub sun4 >/dev/null 2>&1 ||
1685 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1686echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1687 { (exit 1); exit 1; }; }
1688
1689echo "$as_me:$LINENO: checking build system type" >&5
1690echo $ECHO_N "checking build system type... $ECHO_C" >&6
1691if test "${ac_cv_build+set}" = set; then
1692 echo $ECHO_N "(cached) $ECHO_C" >&6
1693else
1694 ac_cv_build_alias=$build_alias
1695test -z "$ac_cv_build_alias" &&
1696 ac_cv_build_alias=`$ac_config_guess`
1697test -z "$ac_cv_build_alias" &&
1698 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1699echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1700 { (exit 1); exit 1; }; }
1701ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1702 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1703echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1704 { (exit 1); exit 1; }; }
1705
1706fi
1707echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1708echo "${ECHO_T}$ac_cv_build" >&6
1709build=$ac_cv_build
1710build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1711build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1712build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1713
1714
1715echo "$as_me:$LINENO: checking host system type" >&5
1716echo $ECHO_N "checking host system type... $ECHO_C" >&6
1717if test "${ac_cv_host+set}" = set; then
1718 echo $ECHO_N "(cached) $ECHO_C" >&6
1719else
1720 ac_cv_host_alias=$host_alias
1721test -z "$ac_cv_host_alias" &&
1722 ac_cv_host_alias=$ac_cv_build_alias
1723ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1724 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1725echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1726 { (exit 1); exit 1; }; }
1727
1728fi
1729echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1730echo "${ECHO_T}$ac_cv_host" >&6
1731host=$ac_cv_host
1732host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1733host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1734host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1735
1736
1737echo "$as_me:$LINENO: checking target system type" >&5
1738echo $ECHO_N "checking target system type... $ECHO_C" >&6
1739if test "${ac_cv_target+set}" = set; then
1740 echo $ECHO_N "(cached) $ECHO_C" >&6
1741else
1742 ac_cv_target_alias=$target_alias
1743test "x$ac_cv_target_alias" = "x" &&
1744 ac_cv_target_alias=$ac_cv_host_alias
1745ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1746 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1747echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1748 { (exit 1); exit 1; }; }
1749
1750fi
1751echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1752echo "${ECHO_T}$ac_cv_target" >&6
1753target=$ac_cv_target
1754target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1755target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1756target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1757
1758
1759# The aliases save the names the user supplied, while $host etc.
1760# will get canonicalized.
1761test -n "$target_alias" &&
1762 test "$program_prefix$program_suffix$program_transform_name" = \
1763 NONENONEs,x,x, &&
1764 program_prefix=${target_alias}-
1765
1766
1767
ceec2216 1768wx_major_version_number=2
dd8df4fc
VZ
1769wx_minor_version_number=7
1770wx_release_number=0
1771wx_subrelease_number=0
a848cd7e 1772
ceec2216
RL
1773WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1774WX_VERSION=$WX_RELEASE.$wx_release_number
1775WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1776
ceec2216 1777WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1778
a848cd7e
SC
1779
1780
1781
1782USE_UNIX=1
1783USE_OS2=0
1784USE_WIN32=0
1785USE_DOS=0
1786USE_BEOS=0
1787USE_MAC=0
1788
1789USE_AIX=
1790USE_BSD= USE_DARWIN= USE_FREEBSD=
1791USE_GNU= USE_HPUX=
1792USE_LINUX=
1793USE_NETBSD=
1794USE_OPENBSD=
1795USE_OSF= USE_SGI=
1796USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1797USE_ULTRIX=
1798USE_UNIXWARE=
1799
1800USE_ALPHA=
1801
1802NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1803
1804ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1805
1806DEFAULT_wxUSE_COCOA=0
1807DEFAULT_wxUSE_GTK=0
1808DEFAULT_wxUSE_MAC=0
1809DEFAULT_wxUSE_MGL=0
1810DEFAULT_wxUSE_MICROWIN=0
1811DEFAULT_wxUSE_MOTIF=0
1812DEFAULT_wxUSE_MSW=0
1813DEFAULT_wxUSE_PM=0
1814DEFAULT_wxUSE_X11=0
1815
1816DEFAULT_DEFAULT_wxUSE_COCOA=0
1817DEFAULT_DEFAULT_wxUSE_GTK=0
1818DEFAULT_DEFAULT_wxUSE_MAC=0
1819DEFAULT_DEFAULT_wxUSE_MGL=0
1820DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1821DEFAULT_DEFAULT_wxUSE_MOTIF=0
1822DEFAULT_DEFAULT_wxUSE_MSW=0
1823DEFAULT_DEFAULT_wxUSE_PM=0
1824DEFAULT_DEFAULT_wxUSE_X11=0
1825
1826PROGRAM_EXT=
1827SO_SUFFIX=so
1828SAMPLES_RPATH_FLAG=
1829SAMPLES_RPATH_POSTLINK=
1830
a03b8b04
RD
1831DEFAULT_STD_FLAG=yes
1832
a848cd7e
SC
1833case "${host}" in
1834 *-hp-hpux* )
1835 USE_HPUX=1
1836 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1837 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1838 SO_SUFFIX=sl
1839 cat >>confdefs.h <<\_ACEOF
1840#define __HPUX__ 1
1841_ACEOF
1842
2eef8513 1843
c92ad099 1844 CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
a848cd7e
SC
1845 ;;
1846 *-*-linux* )
1847 USE_LINUX=1
1848 cat >>confdefs.h <<\_ACEOF
1849#define __LINUX__ 1
1850_ACEOF
1851
1852 TMP=`uname -m`
1853 if test "x$TMP" = "xalpha"; then
1854 USE_ALPHA=1
1855 cat >>confdefs.h <<\_ACEOF
1856#define __ALPHA__ 1
1857_ACEOF
1858
1859 fi
1860 DEFAULT_DEFAULT_wxUSE_GTK=1
1861 ;;
1862 *-*-gnu* | *-*-k*bsd*-gnu )
1863 USE_GNU=1
1864 TMP=`uname -m`
1865 if test "x$TMP" = "xalpha"; then
1866 USE_ALPHA=1
1867 cat >>confdefs.h <<\_ACEOF
1868#define __ALPHA__ 1
1869_ACEOF
1870
1871 fi
1872 DEFAULT_DEFAULT_wxUSE_GTK=1
1873 ;;
1874 *-*-irix5* | *-*-irix6* )
1875 USE_SGI=1
1876 USE_SVR4=1
1877 cat >>confdefs.h <<\_ACEOF
1878#define __SGI__ 1
1879_ACEOF
1880
1881 cat >>confdefs.h <<\_ACEOF
1882#define __SVR4__ 1
1883_ACEOF
1884
1885 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1886 ;;
1887 *-*-solaris2* )
1888 USE_SUN=1
1889 USE_SOLARIS=1
1890 USE_SVR4=1
1891 cat >>confdefs.h <<\_ACEOF
1892#define __SUN__ 1
1893_ACEOF
1894
1895 cat >>confdefs.h <<\_ACEOF
1896#define __SOLARIS__ 1
1897_ACEOF
1898
1899 cat >>confdefs.h <<\_ACEOF
1900#define __SVR4__ 1
1901_ACEOF
1902
1903 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1904 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1905 ;;
1906 *-*-sunos4* )
1907 USE_SUN=1
1908 USE_SUNOS=1
1909 USE_BSD=1
1910 cat >>confdefs.h <<\_ACEOF
1911#define __SUN__ 1
1912_ACEOF
1913
1914 cat >>confdefs.h <<\_ACEOF
1915#define __SUNOS__ 1
1916_ACEOF
1917
1918 cat >>confdefs.h <<\_ACEOF
1919#define __BSD__ 1
1920_ACEOF
1921
1922 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1923 ;;
1924 *-*-freebsd*)
1925 USE_BSD=1
1926 USE_FREEBSD=1
1927 cat >>confdefs.h <<\_ACEOF
1928#define __FREEBSD__ 1
1929_ACEOF
1930
1931 cat >>confdefs.h <<\_ACEOF
1932#define __BSD__ 1
1933_ACEOF
1934
1935 DEFAULT_DEFAULT_wxUSE_GTK=1
1936 ;;
c9a66001 1937 *-*-openbsd*|*-*-mirbsd*)
a848cd7e
SC
1938 USE_BSD=1
1939 USE_OPENBSD=1
1940 cat >>confdefs.h <<\_ACEOF
1941#define __OPENBSD__ 1
1942_ACEOF
1943
1944 cat >>confdefs.h <<\_ACEOF
1945#define __BSD__ 1
1946_ACEOF
1947
1948 DEFAULT_DEFAULT_wxUSE_GTK=1
1949 ;;
1950 *-*-netbsd*)
1951 USE_BSD=1
1952 USE_NETBSD=1
1953 cat >>confdefs.h <<\_ACEOF
1954#define __NETBSD__ 1
1955_ACEOF
1956
1957 cat >>confdefs.h <<\_ACEOF
1958#define __BSD__ 1
1959_ACEOF
1960
1961 DEFAULT_DEFAULT_wxUSE_GTK=1
728258f4 1962 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
def7c04a 1963
def7c04a 1964 CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
a848cd7e
SC
1965 ;;
1966 *-*-osf* )
1967 USE_ALPHA=1
1968 USE_OSF=1
1969 cat >>confdefs.h <<\_ACEOF
1970#define __ALPHA__ 1
1971_ACEOF
1972
1973 cat >>confdefs.h <<\_ACEOF
1974#define __OSF__ 1
1975_ACEOF
1976
1977 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1978 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1979 ;;
1980 *-*-dgux5* )
1981 USE_ALPHA=1
1982 USE_SVR4=1
1983 cat >>confdefs.h <<\_ACEOF
1984#define __ALPHA__ 1
1985_ACEOF
1986
1987 cat >>confdefs.h <<\_ACEOF
1988#define __SVR4__ 1
1989_ACEOF
1990
1991 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1992 ;;
1993 *-*-sysv5* )
1994 USE_SYSV=1
1995 USE_SVR4=1
1996 cat >>confdefs.h <<\_ACEOF
1997#define __SYSV__ 1
1998_ACEOF
1999
2000 cat >>confdefs.h <<\_ACEOF
2001#define __SVR4__ 1
2002_ACEOF
2003
2004 DEFAULT_DEFAULT_wxUSE_MOTIF=1
2005 ;;
2006 *-*-aix* )
2007 USE_AIX=1
2008 USE_SYSV=1
2009 USE_SVR4=1
2010 SO_SUFFIX=a
2011 cat >>confdefs.h <<\_ACEOF
2012#define __AIX__ 1
2013_ACEOF
2014
2015 cat >>confdefs.h <<\_ACEOF
2016#define __SYSV__ 1
2017_ACEOF
2018
2019 cat >>confdefs.h <<\_ACEOF
2020#define __SVR4__ 1
2021_ACEOF
2022
2023 DEFAULT_DEFAULT_wxUSE_MOTIF=1
2024 ;;
2025
2026 *-*-*UnixWare*)
2027 USE_SYSV=1
2028 USE_SVR4=1
2029 USE_UNIXWARE=1
2030 cat >>confdefs.h <<\_ACEOF
2031#define __UNIXWARE__ 1
2032_ACEOF
2033
2034 ;;
2035
2036 *-*-cygwin* | *-*-mingw32* )
2037 SO_SUFFIX=dll
2038 PROGRAM_EXT=".exe"
a848cd7e 2039 DEFAULT_DEFAULT_wxUSE_MSW=1
a03b8b04 2040 DEFAULT_STD_FLAG=no
a848cd7e
SC
2041 ;;
2042
2043 *-pc-msdosdjgpp )
2044 USE_UNIX=0
2045 USE_DOS=1
2046 cat >>confdefs.h <<\_ACEOF
2047#define __DOS__ 1
2048_ACEOF
2049
2050 PROGRAM_EXT=".exe"
2051 DEFAULT_DEFAULT_wxUSE_MGL=1
a848cd7e
SC
2052 ;;
2053
2054 *-pc-os2_emx | *-pc-os2-emx )
2055 cat >>confdefs.h <<\_ACEOF
2056#define __EMX__ 1
2057_ACEOF
2058
2059 USE_OS2=1
2060 cat >>confdefs.h <<\_ACEOF
2061#define __OS2__ 1
2062_ACEOF
2063
2064 PROGRAM_EXT=".exe"
2065 DEFAULT_DEFAULT_wxUSE_PM=1
2066 CXX=gcc
2067 LDFLAGS="$LDFLAGS -Zcrtdll"
2068 ac_executable_extensions=".exe"
2069 export ac_executable_extensions
2070 ac_save_IFS="$IFS"
2071 IFS='\\'
2072 ac_TEMP_PATH=
2073 for ac_dir in $PATH; do
2074 IFS=$ac_save_IFS
2075 if test -z "$ac_TEMP_PATH"; then
2076 ac_TEMP_PATH="$ac_dir"
2077 else
2078 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
2079 fi
2080 done
2081 export PATH="$ac_TEMP_PATH"
2082 unset ac_TEMP_PATH
a03b8b04 2083 DEFAULT_STD_FLAG=no
a848cd7e
SC
2084 ;;
2085
cfda0ea8 2086 *-*-darwin* )
a848cd7e
SC
2087 USE_BSD=1
2088 USE_DARWIN=1
2089 SO_SUFFIX=dylib
2090 cat >>confdefs.h <<\_ACEOF
2091#define __BSD__ 1
2092_ACEOF
2093
2094 cat >>confdefs.h <<\_ACEOF
2095#define __DARWIN__ 1
a848cd7e
SC
2096_ACEOF
2097
2098 cat >>confdefs.h <<\_ACEOF
2099#define TARGET_CARBON 1
2100_ACEOF
2101
2102 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2103 DEFAULT_STD_FLAG=no
a848cd7e 2104 ;;
1e9e8aba
DE
2105 powerpc-apple-macos* )
2106 USE_UNIX=0
2107 ac_cv_c_bigendian=yes
2108 SO_SUFFIX=shlib
2109 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2110 DEFAULT_STD_FLAG=no
1e9e8aba 2111 ;;
a848cd7e
SC
2112
2113 *-*-beos* )
2114 USE_BEOS=1
2115 cat >>confdefs.h <<\_ACEOF
2116#define __BEOS__ 1
2117_ACEOF
2118
2119 ;;
2120
2121 *)
c9a66001
VZ
2122 { echo "$as_me:$LINENO: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&5
2123echo "$as_me: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&2;}
2124 { echo "$as_me:$LINENO: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&5
2125echo "$as_me: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&2;}
5acfd58d
MW
2126
2127 DEFAULT_DEFAULT_wxUSE_X11=1
2128 DEFAULT_wxUSE_SHARED=no
a848cd7e
SC
2129esac
2130
2131
2132
2133
2134 wx_arg_cache_file="configarg.cache"
2135 echo "loading argument cache $wx_arg_cache_file"
2136 rm -f ${wx_arg_cache_file}.tmp
2137 touch ${wx_arg_cache_file}.tmp
2138 touch ${wx_arg_cache_file}
2139
2140
2141DEBUG_CONFIGURE=0
2142if test $DEBUG_CONFIGURE = 1; then
2143 DEFAULT_wxUSE_UNIVERSAL=no
2144 DEFAULT_wxUSE_STL=no
2145
2146 DEFAULT_wxUSE_NANOX=no
2147
2148 DEFAULT_wxUSE_THREADS=yes
2149
5acfd58d 2150 DEFAULT_wxUSE_SHARED=${DEFAULT_wxUSE_SHARED:-yes}
a848cd7e
SC
2151 DEFAULT_wxUSE_OPTIMISE=no
2152 DEFAULT_wxUSE_PROFILE=no
2153 DEFAULT_wxUSE_NO_DEPS=no
2154 DEFAULT_wxUSE_NO_RTTI=no
2155 DEFAULT_wxUSE_NO_EXCEPTIONS=no
7afc46ab 2156 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
ffa0583f 2157 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2158 DEFAULT_wxUSE_PERMISSIVE=no
2159 DEFAULT_wxUSE_DEBUG_FLAG=yes
2160 DEFAULT_wxUSE_DEBUG_INFO=yes
2161 DEFAULT_wxUSE_DEBUG_GDB=yes
2162 DEFAULT_wxUSE_MEM_TRACING=no
2163 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2164 DEFAULT_wxUSE_DMALLOC=no
2165 DEFAULT_wxUSE_APPLE_IEEE=no
2166
2167 DEFAULT_wxUSE_EXCEPTIONS=no
2168 DEFAULT_wxUSE_LOG=yes
2169 DEFAULT_wxUSE_LOGWINDOW=no
2170 DEFAULT_wxUSE_LOGGUI=no
2171 DEFAULT_wxUSE_LOGDIALOG=no
2172
2173 DEFAULT_wxUSE_GUI=yes
2174 DEFAULT_wxUSE_CONTROLS=no
2175
2176 DEFAULT_wxUSE_REGEX=no
2177 DEFAULT_wxUSE_XML=no
2178 DEFAULT_wxUSE_EXPAT=no
2179 DEFAULT_wxUSE_ZLIB=no
2180 DEFAULT_wxUSE_LIBPNG=no
2181 DEFAULT_wxUSE_LIBJPEG=no
2182 DEFAULT_wxUSE_LIBTIFF=no
2183 DEFAULT_wxUSE_LIBXPM=no
2184 DEFAULT_wxUSE_LIBMSPACK=no
2185 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2186 DEFAULT_wxUSE_LIBGNOMEPRINT=no
2b850ae1 2187 DEFAULT_wxUSE_LIBGNOMEVFS=no
3565d135 2188 DEFAULT_wxUSE_LIBHILDON=no
a848cd7e
SC
2189 DEFAULT_wxUSE_ODBC=no
2190 DEFAULT_wxUSE_OPENGL=no
2191
2192 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
eaff0f0d 2193 DEFAULT_wxUSE_STACKWALKER=no
36b6448c 2194 DEFAULT_wxUSE_DEBUGREPORT=no
a848cd7e
SC
2195 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2196 DEFAULT_wxUSE_STD_IOSTREAM=no
59746b65 2197 DEFAULT_wxUSE_STD_STRING=no
a848cd7e
SC
2198 DEFAULT_wxUSE_CMDLINE_PARSER=no
2199 DEFAULT_wxUSE_DATETIME=no
2200 DEFAULT_wxUSE_TIMER=no
2201 DEFAULT_wxUSE_STOPWATCH=no
2202 DEFAULT_wxUSE_FILE=no
2203 DEFAULT_wxUSE_FFILE=no
07158944 2204 DEFAULT_wxUSE_STDPATHS=no
a848cd7e
SC
2205 DEFAULT_wxUSE_TEXTBUFFER=no
2206 DEFAULT_wxUSE_TEXTFILE=no
2207 DEFAULT_wxUSE_SOUND=no
3b57de8b 2208 DEFAULT_wxUSE_MEDIACTRL=no
f10e38c4 2209 DEFAULT_wxUSE_GSTREAMER8=no
8f3773fd 2210 DEFAULT_wxUSE_PRINTF_POS_PARAMS=no
a848cd7e
SC
2211 DEFAULT_wxUSE_INTL=no
2212 DEFAULT_wxUSE_CONFIG=no
2213 DEFAULT_wxUSE_FONTMAP=no
2214 DEFAULT_wxUSE_STREAMS=no
2215 DEFAULT_wxUSE_SOCKETS=no
2216 DEFAULT_wxUSE_OLE=no
2217 DEFAULT_wxUSE_DATAOBJ=no
2218 DEFAULT_wxUSE_DIALUP_MANAGER=no
2219 DEFAULT_wxUSE_JOYSTICK=no
2220 DEFAULT_wxUSE_DYNLIB_CLASS=no
2221 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2222 DEFAULT_wxUSE_LONGLONG=no
2223 DEFAULT_wxUSE_GEOMETRY=no
2224
2225 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2226 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2227 DEFAULT_wxUSE_POSTSCRIPT=no
2228
2229 DEFAULT_wxUSE_CLIPBOARD=no
2230 DEFAULT_wxUSE_TOOLTIPS=no
2231 DEFAULT_wxUSE_DRAG_AND_DROP=no
2232 DEFAULT_wxUSE_DRAGIMAGE=no
2233 DEFAULT_wxUSE_SPLINES=no
fbe2ca43 2234 DEFAULT_wxUSE_MOUSEWHEEL=no
a848cd7e 2235
8a7b1113 2236 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2237 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2238 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2239 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2240
2241 DEFAULT_wxUSE_RESOURCES=no
2242 DEFAULT_wxUSE_CONSTRAINTS=no
2243 DEFAULT_wxUSE_IPC=no
2244 DEFAULT_wxUSE_HELP=no
2245 DEFAULT_wxUSE_MS_HTML_HELP=no
2246 DEFAULT_wxUSE_WXHTML_HELP=no
2247 DEFAULT_wxUSE_TREELAYOUT=no
2248 DEFAULT_wxUSE_METAFILE=no
2249 DEFAULT_wxUSE_MIMETYPE=no
2250 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2251 DEFAULT_wxUSE_PROTOCOL=no
2252 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2253 DEFAULT_wxUSE_PROTOCOL_FTP=no
2254 DEFAULT_wxUSE_PROTOCOL_FILE=no
2255 DEFAULT_wxUSE_URL=no
2256
2257 DEFAULT_wxUSE_COMMONDLGS=no
2258 DEFAULT_wxUSE_CHOICEDLG=no
2259 DEFAULT_wxUSE_COLOURDLG=no
2260 DEFAULT_wxUSE_DIRDLG=no
2261 DEFAULT_wxUSE_FILEDLG=no
2262 DEFAULT_wxUSE_FINDREPLDLG=no
2263 DEFAULT_wxUSE_FONTDLG=no
2264 DEFAULT_wxUSE_MSGDLG=no
2265 DEFAULT_wxUSE_NUMBERDLG=no
2266 DEFAULT_wxUSE_TEXTDLG=no
2267 DEFAULT_wxUSE_SPLASH=no
2268 DEFAULT_wxUSE_STARTUP_TIPS=no
2269 DEFAULT_wxUSE_PROGRESSDLG=no
2270 DEFAULT_wxUSE_WIZARDDLG=no
2271
2272 DEFAULT_wxUSE_MENUS=no
2273 DEFAULT_wxUSE_MINIFRAME=no
2274 DEFAULT_wxUSE_HTML=no
91dea314 2275 DEFAULT_wxUSE_RICHTEXT=no
9a8f0513 2276 DEFAULT_wxUSE_XRC=no
3f60522a 2277 DEFAULT_wxUSE_AUI=no
646b6ec1 2278 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2279 DEFAULT_wxUSE_FILESYSTEM=no
2280 DEFAULT_wxUSE_FS_INET=no
2281 DEFAULT_wxUSE_FS_ZIP=no
2282 DEFAULT_wxUSE_BUSYINFO=no
9e8e867f 2283 DEFAULT_wxUSE_ARCHIVE_STREAMS=no
a848cd7e 2284 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2285 DEFAULT_wxUSE_VALIDATORS=no
2286
2287 DEFAULT_wxUSE_ACCEL=no
2288 DEFAULT_wxUSE_BUTTON=no
2289 DEFAULT_wxUSE_BMPBUTTON=no
2290 DEFAULT_wxUSE_CALCTRL=no
2291 DEFAULT_wxUSE_CARET=no
2292 DEFAULT_wxUSE_CHECKBOX=no
2293 DEFAULT_wxUSE_CHECKLST=no
2294 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2295 DEFAULT_wxUSE_CHOICEBOOK=no
e9263684 2296 DEFAULT_wxUSE_COLOURPICKERCTRL=no
a848cd7e 2297 DEFAULT_wxUSE_COMBOBOX=no
a57d600f 2298 DEFAULT_wxUSE_COMBOCTRL=no
da98e9be 2299 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e 2300 DEFAULT_wxUSE_DISPLAY=no
e9263684
VZ
2301 DEFAULT_wxUSE_DIRPICKERCTRL=no
2302 DEFAULT_wxUSE_FILEPICKERCTRL=no
2303 DEFAULT_wxUSE_FONTPICKERCTRL=no
a848cd7e
SC
2304 DEFAULT_wxUSE_GAUGE=no
2305 DEFAULT_wxUSE_GRID=no
6954625c 2306 DEFAULT_wxUSE_HYPERLINKCTRL=no
20e34ecc 2307 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
2308 DEFAULT_wxUSE_IMAGLIST=no
2309 DEFAULT_wxUSE_LISTBOOK=no
2310 DEFAULT_wxUSE_LISTBOX=no
2311 DEFAULT_wxUSE_LISTCTRL=no
2312 DEFAULT_wxUSE_NOTEBOOK=no
a57d600f 2313 DEFAULT_wxUSE_ODCOMBOBOX=no
a848cd7e
SC
2314 DEFAULT_wxUSE_RADIOBOX=no
2315 DEFAULT_wxUSE_RADIOBTN=no
2316 DEFAULT_wxUSE_SASH=no
2317 DEFAULT_wxUSE_SCROLLBAR=no
2318 DEFAULT_wxUSE_SLIDER=no
2319 DEFAULT_wxUSE_SPINBTN=no
2320 DEFAULT_wxUSE_SPINCTRL=no
2321 DEFAULT_wxUSE_SPLITTER=no
2322 DEFAULT_wxUSE_STATBMP=no
2323 DEFAULT_wxUSE_STATBOX=no
2324 DEFAULT_wxUSE_STATLINE=no
2325 DEFAULT_wxUSE_STATTEXT=no
2326 DEFAULT_wxUSE_STATUSBAR=yes
f10e38c4 2327 DEFAULT_wxUSE_TAB_DIALOG=no
a848cd7e
SC
2328 DEFAULT_wxUSE_TEXTCTRL=no
2329 DEFAULT_wxUSE_TOGGLEBTN=no
2330 DEFAULT_wxUSE_TOOLBAR=no
2331 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
0093c2fc 2332 DEFAULT_wxUSE_TREEBOOK=no
5ec3bc43 2333 DEFAULT_wxUSE_TOOLBOOK=no
a848cd7e
SC
2334 DEFAULT_wxUSE_TREECTRL=no
2335 DEFAULT_wxUSE_POPUPWIN=no
2336 DEFAULT_wxUSE_TIPWINDOW=no
2337
2338 DEFAULT_wxUSE_UNICODE=no
2339 DEFAULT_wxUSE_UNICODE_MSLU=no
2340 DEFAULT_wxUSE_WCSRTOMBS=no
2341
2342 DEFAULT_wxUSE_PALETTE=no
2343 DEFAULT_wxUSE_IMAGE=no
2344 DEFAULT_wxUSE_GIF=no
2345 DEFAULT_wxUSE_PCX=no
2346 DEFAULT_wxUSE_PNM=no
2347 DEFAULT_wxUSE_IFF=no
2348 DEFAULT_wxUSE_XPM=no
2349 DEFAULT_wxUSE_ICO_CUR=no
2350 DEFAULT_wxUSE_ACCESSIBILITY=no
2351
2352 DEFAULT_wxUSE_MONOLITHIC=no
2353 DEFAULT_wxUSE_PLUGINS=no
2354 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2355else
2356 DEFAULT_wxUSE_UNIVERSAL=no
2357 DEFAULT_wxUSE_STL=no
2358
2359 DEFAULT_wxUSE_NANOX=no
2360
2361 DEFAULT_wxUSE_THREADS=yes
2362
5acfd58d 2363 DEFAULT_wxUSE_SHARED=${DEFAULT_wxUSE_SHARED:-yes}
a848cd7e
SC
2364 DEFAULT_wxUSE_OPTIMISE=yes
2365 DEFAULT_wxUSE_PROFILE=no
2366 DEFAULT_wxUSE_NO_DEPS=no
2367 DEFAULT_wxUSE_NO_RTTI=no
2368 DEFAULT_wxUSE_NO_EXCEPTIONS=no
7afc46ab 2369 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
ffa0583f 2370 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2371 DEFAULT_wxUSE_PERMISSIVE=no
2372 DEFAULT_wxUSE_DEBUG_FLAG=no
2373 DEFAULT_wxUSE_DEBUG_INFO=no
2374 DEFAULT_wxUSE_DEBUG_GDB=no
2375 DEFAULT_wxUSE_MEM_TRACING=no
2376 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2377 DEFAULT_wxUSE_DMALLOC=no
2378 DEFAULT_wxUSE_APPLE_IEEE=yes
2379
2380 DEFAULT_wxUSE_EXCEPTIONS=yes
2381 DEFAULT_wxUSE_LOG=yes
2382 DEFAULT_wxUSE_LOGWINDOW=yes
2383 DEFAULT_wxUSE_LOGGUI=yes
2384 DEFAULT_wxUSE_LOGDIALOG=yes
2385
2386 DEFAULT_wxUSE_GUI=yes
2387
2388 DEFAULT_wxUSE_REGEX=yes
2389 DEFAULT_wxUSE_XML=yes
2390 DEFAULT_wxUSE_EXPAT=yes
2391 DEFAULT_wxUSE_ZLIB=yes
2392 DEFAULT_wxUSE_LIBPNG=yes
2393 DEFAULT_wxUSE_LIBJPEG=yes
2394 DEFAULT_wxUSE_LIBTIFF=yes
2395 DEFAULT_wxUSE_LIBXPM=yes
2396 DEFAULT_wxUSE_LIBMSPACK=yes
2397 DEFAULT_wxUSE_LIBSDL=no
a03b8b04 2398 DEFAULT_wxUSE_LIBGNOMEPRINT=no
2b850ae1 2399 DEFAULT_wxUSE_LIBGNOMEVFS=no
3565d135 2400 DEFAULT_wxUSE_LIBHILDON=no
a848cd7e 2401 DEFAULT_wxUSE_ODBC=no
52cb607e 2402 DEFAULT_wxUSE_OPENGL=no
a848cd7e
SC
2403
2404 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
eaff0f0d 2405 DEFAULT_wxUSE_STACKWALKER=yes
6671c68b 2406 DEFAULT_wxUSE_DEBUGREPORT=yes
a848cd7e 2407 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
a03b8b04
RD
2408 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2409 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
a848cd7e
SC
2410 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2411 DEFAULT_wxUSE_DATETIME=yes
2412 DEFAULT_wxUSE_TIMER=yes
2413 DEFAULT_wxUSE_STOPWATCH=yes
2414 DEFAULT_wxUSE_FILE=yes
2415 DEFAULT_wxUSE_FFILE=yes
07158944 2416 DEFAULT_wxUSE_STDPATHS=yes
a848cd7e
SC
2417 DEFAULT_wxUSE_TEXTBUFFER=yes
2418 DEFAULT_wxUSE_TEXTFILE=yes
2419 DEFAULT_wxUSE_SOUND=yes
3b57de8b 2420 DEFAULT_wxUSE_MEDIACTRL=no
f10e38c4 2421 DEFAULT_wxUSE_GSTREAMER8=no
8f3773fd 2422 DEFAULT_wxUSE_PRINTF_POS_PARAMS=no
a848cd7e
SC
2423 DEFAULT_wxUSE_INTL=yes
2424 DEFAULT_wxUSE_CONFIG=yes
2425 DEFAULT_wxUSE_FONTMAP=yes
2426 DEFAULT_wxUSE_STREAMS=yes
2427 DEFAULT_wxUSE_SOCKETS=yes
2428 DEFAULT_wxUSE_OLE=yes
2429 DEFAULT_wxUSE_DATAOBJ=yes
2430 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2431 DEFAULT_wxUSE_JOYSTICK=yes
2432 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2433 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2434 DEFAULT_wxUSE_LONGLONG=yes
2435 DEFAULT_wxUSE_GEOMETRY=yes
2436
2437 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2438 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2439 DEFAULT_wxUSE_POSTSCRIPT=yes
2440
2441 DEFAULT_wxUSE_CLIPBOARD=yes
2442 DEFAULT_wxUSE_TOOLTIPS=yes
2443 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2444 DEFAULT_wxUSE_DRAGIMAGE=yes
2445 DEFAULT_wxUSE_SPLINES=yes
fbe2ca43 2446 DEFAULT_wxUSE_MOUSEWHEEL=yes
a848cd7e 2447
8a7b1113 2448 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2449 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2450 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2451 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2452
2453 DEFAULT_wxUSE_RESOURCES=no
2454 DEFAULT_wxUSE_CONSTRAINTS=yes
2455 DEFAULT_wxUSE_IPC=yes
2456 DEFAULT_wxUSE_HELP=yes
2457 DEFAULT_wxUSE_MS_HTML_HELP=yes
2458 DEFAULT_wxUSE_WXHTML_HELP=yes
2459 DEFAULT_wxUSE_TREELAYOUT=yes
2460 DEFAULT_wxUSE_METAFILE=yes
2461 DEFAULT_wxUSE_MIMETYPE=yes
2462 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2463 DEFAULT_wxUSE_PROTOCOL=yes
2464 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2465 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2466 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2467 DEFAULT_wxUSE_URL=yes
2468
2469 DEFAULT_wxUSE_COMMONDLGS=yes
2470 DEFAULT_wxUSE_CHOICEDLG=yes
2471 DEFAULT_wxUSE_COLOURDLG=yes
2472 DEFAULT_wxUSE_DIRDLG=yes
2473 DEFAULT_wxUSE_FILEDLG=yes
2474 DEFAULT_wxUSE_FINDREPLDLG=yes
2475 DEFAULT_wxUSE_FONTDLG=yes
2476 DEFAULT_wxUSE_MSGDLG=yes
2477 DEFAULT_wxUSE_NUMBERDLG=yes
2478 DEFAULT_wxUSE_TEXTDLG=yes
2479 DEFAULT_wxUSE_SPLASH=yes
2480 DEFAULT_wxUSE_STARTUP_TIPS=yes
2481 DEFAULT_wxUSE_PROGRESSDLG=yes
2482 DEFAULT_wxUSE_WIZARDDLG=yes
2483
2484 DEFAULT_wxUSE_MENUS=yes
2485 DEFAULT_wxUSE_MINIFRAME=yes
2486 DEFAULT_wxUSE_HTML=yes
91dea314 2487 DEFAULT_wxUSE_RICHTEXT=yes
9a8f0513 2488 DEFAULT_wxUSE_XRC=yes
3f60522a 2489 DEFAULT_wxUSE_AUI=yes
646b6ec1 2490 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2491 DEFAULT_wxUSE_FILESYSTEM=yes
2492 DEFAULT_wxUSE_FS_INET=yes
2493 DEFAULT_wxUSE_FS_ZIP=yes
2494 DEFAULT_wxUSE_BUSYINFO=yes
9e8e867f 2495 DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
a848cd7e 2496 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2497 DEFAULT_wxUSE_VALIDATORS=yes
2498
2499 DEFAULT_wxUSE_ACCEL=yes
2500 DEFAULT_wxUSE_BUTTON=yes
2501 DEFAULT_wxUSE_BMPBUTTON=yes
2502 DEFAULT_wxUSE_CALCTRL=yes
2503 DEFAULT_wxUSE_CARET=yes
2504 DEFAULT_wxUSE_CHECKBOX=yes
2505 DEFAULT_wxUSE_CHECKLST=yes
2506 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2507 DEFAULT_wxUSE_CHOICEBOOK=yes
e9263684 2508 DEFAULT_wxUSE_COLOURPICKERCTRL=yes
a848cd7e 2509 DEFAULT_wxUSE_COMBOBOX=yes
a57d600f 2510 DEFAULT_wxUSE_COMBOCTRL=yes
da98e9be 2511 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e 2512 DEFAULT_wxUSE_DISPLAY=yes
e9263684
VZ
2513 DEFAULT_wxUSE_DIRPICKERCTRL=yes
2514 DEFAULT_wxUSE_FILEPICKERCTRL=yes
2515 DEFAULT_wxUSE_FONTPICKERCTRL=yes
a848cd7e
SC
2516 DEFAULT_wxUSE_GAUGE=yes
2517 DEFAULT_wxUSE_GRID=yes
6954625c 2518 DEFAULT_wxUSE_HYPERLINKCTRL=yes
20e34ecc 2519 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
2520 DEFAULT_wxUSE_IMAGLIST=yes
2521 DEFAULT_wxUSE_LISTBOOK=yes
2522 DEFAULT_wxUSE_LISTBOX=yes
2523 DEFAULT_wxUSE_LISTCTRL=yes
2524 DEFAULT_wxUSE_NOTEBOOK=yes
a57d600f 2525 DEFAULT_wxUSE_ODCOMBOBOX=yes
a848cd7e
SC
2526 DEFAULT_wxUSE_RADIOBOX=yes
2527 DEFAULT_wxUSE_RADIOBTN=yes
2528 DEFAULT_wxUSE_SASH=yes
2529 DEFAULT_wxUSE_SCROLLBAR=yes
2530 DEFAULT_wxUSE_SLIDER=yes
2531 DEFAULT_wxUSE_SPINBTN=yes
2532 DEFAULT_wxUSE_SPINCTRL=yes
2533 DEFAULT_wxUSE_SPLITTER=yes
2534 DEFAULT_wxUSE_STATBMP=yes
2535 DEFAULT_wxUSE_STATBOX=yes
2536 DEFAULT_wxUSE_STATLINE=yes
2537 DEFAULT_wxUSE_STATTEXT=yes
2538 DEFAULT_wxUSE_STATUSBAR=yes
f10e38c4 2539 DEFAULT_wxUSE_TAB_DIALOG=no
a848cd7e
SC
2540 DEFAULT_wxUSE_TEXTCTRL=yes
2541 DEFAULT_wxUSE_TOGGLEBTN=yes
2542 DEFAULT_wxUSE_TOOLBAR=yes
2543 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
0093c2fc 2544 DEFAULT_wxUSE_TREEBOOK=yes
5ec3bc43 2545 DEFAULT_wxUSE_TOOLBOOK=yes
a848cd7e
SC
2546 DEFAULT_wxUSE_TREECTRL=yes
2547 DEFAULT_wxUSE_POPUPWIN=yes
2548 DEFAULT_wxUSE_TIPWINDOW=yes
2549
78de529b 2550 DEFAULT_wxUSE_UNICODE=no
a848cd7e
SC
2551 DEFAULT_wxUSE_UNICODE_MSLU=yes
2552 DEFAULT_wxUSE_WCSRTOMBS=no
2553
2554 DEFAULT_wxUSE_PALETTE=yes
2555 DEFAULT_wxUSE_IMAGE=yes
2556 DEFAULT_wxUSE_GIF=yes
2557 DEFAULT_wxUSE_PCX=yes
2558 DEFAULT_wxUSE_IFF=no
2559 DEFAULT_wxUSE_PNM=yes
2560 DEFAULT_wxUSE_XPM=yes
2561 DEFAULT_wxUSE_ICO_CUR=yes
2562 DEFAULT_wxUSE_ACCESSIBILITY=no
2563
2564 DEFAULT_wxUSE_MONOLITHIC=no
2565 DEFAULT_wxUSE_PLUGINS=no
2566 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e 2567
f34ca037 2568 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2569fi
2570
2571
2572
f34ca037 2573
a848cd7e
SC
2574for toolkit in `echo $ALL_TOOLKITS`; do
2575 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2576 if test "x$LINE" != "x" ; then
2577 has_toolkit_in_cache=1
2578 eval "DEFAULT_$LINE"
2579 eval "CACHE_$toolkit=1"
f34ca037
MW
2580
2581 LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2582 if test "x$LINE" != "x" ; then
2583 eval "DEFAULT_$LINE"
2584 fi
a848cd7e
SC
2585 fi
2586done
2587
2588
2589
2590 enablestring=
2591 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2592echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2593 no_cache=0
2594 # Check whether --enable-gui or --disable-gui was given.
2595if test "${enable_gui+set}" = set; then
2596 enableval="$enable_gui"
2597
2598 if test "$enableval" = yes; then
2599 ac_cv_use_gui='wxUSE_GUI=yes'
2600 else
2601 ac_cv_use_gui='wxUSE_GUI=no'
2602 fi
2603
2604else
2605
2606 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2607 if test "x$LINE" != x ; then
2608 eval "DEFAULT_$LINE"
2609 else
2610 no_cache=1
2611 fi
2612
2613 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2614
2615fi;
2616
2617 eval "$ac_cv_use_gui"
2618 if test "$no_cache" != 1; then
2619 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2620 fi
2621
2622 if test "$wxUSE_GUI" = yes; then
2623 echo "$as_me:$LINENO: result: yes" >&5
2624echo "${ECHO_T}yes" >&6
2625 else
2626 echo "$as_me:$LINENO: result: no" >&5
2627echo "${ECHO_T}no" >&6
2628 fi
2629
2630
2631 enablestring=
2632 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2633echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2634 no_cache=0
2635 # Check whether --enable-monolithic or --disable-monolithic was given.
2636if test "${enable_monolithic+set}" = set; then
2637 enableval="$enable_monolithic"
2638
2639 if test "$enableval" = yes; then
2640 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2641 else
2642 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2643 fi
2644
2645else
2646
2647 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2648 if test "x$LINE" != x ; then
2649 eval "DEFAULT_$LINE"
2650 else
2651 no_cache=1
2652 fi
2653
2654 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2655
2656fi;
2657
2658 eval "$ac_cv_use_monolithic"
2659 if test "$no_cache" != 1; then
2660 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2661 fi
2662
2663 if test "$wxUSE_MONOLITHIC" = yes; then
2664 echo "$as_me:$LINENO: result: yes" >&5
2665echo "${ECHO_T}yes" >&6
2666 else
2667 echo "$as_me:$LINENO: result: no" >&5
2668echo "${ECHO_T}no" >&6
2669 fi
2670
2671
2672 enablestring=
2673 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2674echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2675 no_cache=0
2676 # Check whether --enable-plugins or --disable-plugins was given.
2677if test "${enable_plugins+set}" = set; then
2678 enableval="$enable_plugins"
2679
2680 if test "$enableval" = yes; then
2681 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2682 else
2683 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2684 fi
2685
2686else
2687
2688 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2689 if test "x$LINE" != x ; then
2690 eval "DEFAULT_$LINE"
2691 else
2692 no_cache=1
2693 fi
2694
2695 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2696
2697fi;
2698
2699 eval "$ac_cv_use_plugins"
2700 if test "$no_cache" != 1; then
2701 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2702 fi
2703
2704 if test "$wxUSE_PLUGINS" = yes; then
2705 echo "$as_me:$LINENO: result: yes" >&5
2706echo "${ECHO_T}yes" >&6
2707 else
2708 echo "$as_me:$LINENO: result: no" >&5
2709echo "${ECHO_T}no" >&6
2710 fi
2711
2712
1c14217d
VZ
2713 withstring=without
2714 echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
2715echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6
2716 no_cache=0
2717
2718# Check whether --with-subdirs or --without-subdirs was given.
2719if test "${with_subdirs+set}" = set; then
2720 withval="$with_subdirs"
2721
2722 if test "$withval" = yes; then
2723 ac_cv_use_subdirs='wxWITH_SUBDIRS=yes'
2724 else
2725 ac_cv_use_subdirs='wxWITH_SUBDIRS=no'
2726 fi
2727
2728else
2729
2730 LINE=`grep "wxWITH_SUBDIRS" ${wx_arg_cache_file}`
2731 if test "x$LINE" != x ; then
2732 eval "DEFAULT_$LINE"
2733 else
2734 no_cache=1
2735 fi
2736
2737 ac_cv_use_subdirs='wxWITH_SUBDIRS='$DEFAULT_wxWITH_SUBDIRS
2738
2739fi;
2740
2741 eval "$ac_cv_use_subdirs"
2742 if test "$no_cache" != 1; then
2743 echo $ac_cv_use_subdirs >> ${wx_arg_cache_file}.tmp
2744 fi
2745
2746 if test "$wxWITH_SUBDIRS" = yes; then
2747 echo "$as_me:$LINENO: result: yes" >&5
2748echo "${ECHO_T}yes" >&6
2749 else
2750 echo "$as_me:$LINENO: result: no" >&5
2751echo "${ECHO_T}no" >&6
2752 fi
2753
2754
a848cd7e
SC
2755if test "$wxUSE_GUI" = "yes"; then
2756
2757
2758 enablestring=
2759 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2760echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2761 no_cache=0
2762 # Check whether --enable-universal or --disable-universal was given.
2763if test "${enable_universal+set}" = set; then
2764 enableval="$enable_universal"
2765
2766 if test "$enableval" = yes; then
2767 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2768 else
2769 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2770 fi
2771
2772else
2773
2774 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2775 if test "x$LINE" != x ; then
2776 eval "DEFAULT_$LINE"
2777 else
2778 no_cache=1
2779 fi
2780
2781 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2782
2783fi;
2784
2785 eval "$ac_cv_use_universal"
2786 if test "$no_cache" != 1; then
2787 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2788 fi
2789
2790 if test "$wxUSE_UNIVERSAL" = yes; then
2791 echo "$as_me:$LINENO: result: yes" >&5
2792echo "${ECHO_T}yes" >&6
2793 else
2794 echo "$as_me:$LINENO: result: no" >&5
2795echo "${ECHO_T}no" >&6
2796 fi
2797
2798
2799# Check whether --with-gtk or --without-gtk was given.
2800if test "${with_gtk+set}" = set; then
2801 withval="$with_gtk"
2802 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2803fi;
2804
2805# Check whether --with-motif or --without-motif was given.
2806if test "${with_motif+set}" = set; then
2807 withval="$with_motif"
2808 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2809fi;
2810
2811# Check whether --with-mac or --without-mac was given.
2812if test "${with_mac+set}" = set; then
2813 withval="$with_mac"
c228d3a4 2814 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2815fi;
2816
2817# Check whether --with-cocoa or --without-cocoa was given.
2818if test "${with_cocoa+set}" = set; then
2819 withval="$with_cocoa"
c228d3a4 2820 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2821fi;
2822
2823# Check whether --with-wine or --without-wine was given.
2824if test "${with_wine+set}" = set; then
2825 withval="$with_wine"
2826 wxUSE_WINE="$withval" CACHE_WINE=1
2827fi;
2828
2829# Check whether --with-msw or --without-msw was given.
2830if test "${with_msw+set}" = set; then
2831 withval="$with_msw"
2832 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2833fi;
2834
2835# Check whether --with-pm or --without-pm was given.
2836if test "${with_pm+set}" = set; then
2837 withval="$with_pm"
2838 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2839fi;
2840
2841# Check whether --with-mgl or --without-mgl was given.
2842if test "${with_mgl+set}" = set; then
2843 withval="$with_mgl"
2844 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2845fi;
2846
2847# Check whether --with-microwin or --without-microwin was given.
2848if test "${with_microwin+set}" = set; then
2849 withval="$with_microwin"
2850 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2851fi;
2852
2853# Check whether --with-x11 or --without-x11 was given.
2854if test "${with_x11+set}" = set; then
2855 withval="$with_x11"
2856 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2857fi;
2858
2859 enablestring=
2860 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2861echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2862 no_cache=0
2863 # Check whether --enable-nanox or --disable-nanox was given.
2864if test "${enable_nanox+set}" = set; then
2865 enableval="$enable_nanox"
2866
2867 if test "$enableval" = yes; then
2868 ac_cv_use_nanox='wxUSE_NANOX=yes'
2869 else
2870 ac_cv_use_nanox='wxUSE_NANOX=no'
2871 fi
2872
2873else
2874
2875 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2876 if test "x$LINE" != x ; then
2877 eval "DEFAULT_$LINE"
2878 else
2879 no_cache=1
2880 fi
2881
2882 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2883
2884fi;
2885
2886 eval "$ac_cv_use_nanox"
2887 if test "$no_cache" != 1; then
2888 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2889 fi
2890
2891 if test "$wxUSE_NANOX" = yes; then
2892 echo "$as_me:$LINENO: result: yes" >&5
2893echo "${ECHO_T}yes" >&6
2894 else
2895 echo "$as_me:$LINENO: result: no" >&5
2896echo "${ECHO_T}no" >&6
2897 fi
2898
2899
f34ca037
MW
2900# Check whether --enable-gtk2 or --disable-gtk2 was given.
2901if test "${enable_gtk2+set}" = set; then
2902 enableval="$enable_gtk2"
2903 wxUSE_GTK2="$enableval"
2904fi;
a848cd7e 2905
a848cd7e
SC
2906 enablestring=
2907 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2908echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2909 no_cache=0
2910 # Check whether --enable-gpe or --disable-gpe was given.
2911if test "${enable_gpe+set}" = set; then
2912 enableval="$enable_gpe"
2913
2914 if test "$enableval" = yes; then
2915 ac_cv_use_gpe='wxUSE_GPE=yes'
2916 else
2917 ac_cv_use_gpe='wxUSE_GPE=no'
2918 fi
2919
2920else
2921
2922 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2923 if test "x$LINE" != x ; then
2924 eval "DEFAULT_$LINE"
2925 else
2926 no_cache=1
2927 fi
2928
2929 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2930
2931fi;
2932
2933 eval "$ac_cv_use_gpe"
2934 if test "$no_cache" != 1; then
2935 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2936 fi
2937
2938 if test "$wxUSE_GPE" = yes; then
2939 echo "$as_me:$LINENO: result: yes" >&5
2940echo "${ECHO_T}yes" >&6
2941 else
2942 echo "$as_me:$LINENO: result: no" >&5
2943echo "${ECHO_T}no" >&6
2944 fi
2945
2946
2947
2948 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2949echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2950 no_cache=0
2951
2952# Check whether --with-libpng or --without-libpng was given.
2953if test "${with_libpng+set}" = set; then
2954 withval="$with_libpng"
2955
2956 if test "$withval" = yes; then
2957 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2958 elif test "$withval" = no; then
2959 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2960 elif test "$withval" = sys; then
2961 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2962 elif test "$withval" = builtin; then
2963 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2964 else
2965 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2966echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2967 { (exit 1); exit 1; }; }
2968 fi
2969
2970else
2971
2972 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2973 if test "x$LINE" != x ; then
2974 eval "DEFAULT_$LINE"
2975 else
2976 no_cache=1
2977 fi
2978
2979 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2980
2981fi;
2982
2983 eval "$ac_cv_use_libpng"
2984 if test "$no_cache" != 1; then
2985 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2986 fi
2987
2988 if test "$wxUSE_LIBPNG" = yes; then
2989 echo "$as_me:$LINENO: result: yes" >&5
2990echo "${ECHO_T}yes" >&6
2991 elif test "$wxUSE_LIBPNG" = no; then
2992 echo "$as_me:$LINENO: result: no" >&5
2993echo "${ECHO_T}no" >&6
2994 elif test "$wxUSE_LIBPNG" = sys; then
2995 echo "$as_me:$LINENO: result: system version" >&5
2996echo "${ECHO_T}system version" >&6
2997 elif test "$wxUSE_LIBPNG" = builtin; then
2998 echo "$as_me:$LINENO: result: builtin version" >&5
2999echo "${ECHO_T}builtin version" >&6
3000 else
3001 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3002echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3003 { (exit 1); exit 1; }; }
3004 fi
3005
3006
3007 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
3008echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
3009 no_cache=0
3010
3011# Check whether --with-libjpeg or --without-libjpeg was given.
3012if test "${with_libjpeg+set}" = set; then
3013 withval="$with_libjpeg"
3014
3015 if test "$withval" = yes; then
3016 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
3017 elif test "$withval" = no; then
3018 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
3019 elif test "$withval" = sys; then
3020 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
3021 elif test "$withval" = builtin; then
3022 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
3023 else
3024 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3025echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3026 { (exit 1); exit 1; }; }
3027 fi
3028
3029else
3030
3031 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
3032 if test "x$LINE" != x ; then
3033 eval "DEFAULT_$LINE"
3034 else
3035 no_cache=1
3036 fi
3037
3038 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
3039
3040fi;
3041
3042 eval "$ac_cv_use_libjpeg"
3043 if test "$no_cache" != 1; then
3044 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
3045 fi
3046
3047 if test "$wxUSE_LIBJPEG" = yes; then
3048 echo "$as_me:$LINENO: result: yes" >&5
3049echo "${ECHO_T}yes" >&6
3050 elif test "$wxUSE_LIBJPEG" = no; then
3051 echo "$as_me:$LINENO: result: no" >&5
3052echo "${ECHO_T}no" >&6
3053 elif test "$wxUSE_LIBJPEG" = sys; then
3054 echo "$as_me:$LINENO: result: system version" >&5
3055echo "${ECHO_T}system version" >&6
3056 elif test "$wxUSE_LIBJPEG" = builtin; then
3057 echo "$as_me:$LINENO: result: builtin version" >&5
3058echo "${ECHO_T}builtin version" >&6
3059 else
3060 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3061echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3062 { (exit 1); exit 1; }; }
3063 fi
3064
3065
3066 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
3067echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
3068 no_cache=0
3069
3070# Check whether --with-libtiff or --without-libtiff was given.
3071if test "${with_libtiff+set}" = set; then
3072 withval="$with_libtiff"
3073
3074 if test "$withval" = yes; then
3075 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
3076 elif test "$withval" = no; then
3077 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
3078 elif test "$withval" = sys; then
3079 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
3080 elif test "$withval" = builtin; then
3081 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
3082 else
3083 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3084echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3085 { (exit 1); exit 1; }; }
3086 fi
3087
3088else
3089
3090 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
3091 if test "x$LINE" != x ; then
3092 eval "DEFAULT_$LINE"
3093 else
3094 no_cache=1
3095 fi
3096
3097 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
3098
3099fi;
3100
3101 eval "$ac_cv_use_libtiff"
3102 if test "$no_cache" != 1; then
3103 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
3104 fi
3105
3106 if test "$wxUSE_LIBTIFF" = yes; then
3107 echo "$as_me:$LINENO: result: yes" >&5
3108echo "${ECHO_T}yes" >&6
3109 elif test "$wxUSE_LIBTIFF" = no; then
3110 echo "$as_me:$LINENO: result: no" >&5
3111echo "${ECHO_T}no" >&6
3112 elif test "$wxUSE_LIBTIFF" = sys; then
3113 echo "$as_me:$LINENO: result: system version" >&5
3114echo "${ECHO_T}system version" >&6
3115 elif test "$wxUSE_LIBTIFF" = builtin; then
3116 echo "$as_me:$LINENO: result: builtin version" >&5
3117echo "${ECHO_T}builtin version" >&6
3118 else
3119 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3120echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3121 { (exit 1); exit 1; }; }
3122 fi
3123
3124
3125 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3126echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
3127 no_cache=0
3128
3129# Check whether --with-libxpm or --without-libxpm was given.
3130if test "${with_libxpm+set}" = set; then
3131 withval="$with_libxpm"
3132
3133 if test "$withval" = yes; then
3134 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
3135 elif test "$withval" = no; then
3136 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
3137 elif test "$withval" = sys; then
3138 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
3139 elif test "$withval" = builtin; then
3140 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3141 else
3142 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3143echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3144 { (exit 1); exit 1; }; }
3145 fi
3146
3147else
3148
3149 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
3150 if test "x$LINE" != x ; then
3151 eval "DEFAULT_$LINE"
3152 else
3153 no_cache=1
3154 fi
3155
3156 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
3157
3158fi;
3159
3160 eval "$ac_cv_use_libxpm"
3161 if test "$no_cache" != 1; then
3162 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
3163 fi
3164
3165 if test "$wxUSE_LIBXPM" = yes; then
3166 echo "$as_me:$LINENO: result: yes" >&5
3167echo "${ECHO_T}yes" >&6
3168 elif test "$wxUSE_LIBXPM" = no; then
3169 echo "$as_me:$LINENO: result: no" >&5
3170echo "${ECHO_T}no" >&6
3171 elif test "$wxUSE_LIBXPM" = sys; then
3172 echo "$as_me:$LINENO: result: system version" >&5
3173echo "${ECHO_T}system version" >&6
3174 elif test "$wxUSE_LIBXPM" = builtin; then
3175 echo "$as_me:$LINENO: result: builtin version" >&5
3176echo "${ECHO_T}builtin version" >&6
3177 else
3178 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3179echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3180 { (exit 1); exit 1; }; }
3181 fi
3182
3183
1c14217d
VZ
3184 withstring=
3185 echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3186echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6
a848cd7e
SC
3187 no_cache=0
3188
3189# Check whether --with-libmspack or --without-libmspack was given.
3190if test "${with_libmspack+set}" = set; then
3191 withval="$with_libmspack"
3192
3193 if test "$withval" = yes; then
3194 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3195 else
3196 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3197 fi
3198
3199else
3200
3201 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3202 if test "x$LINE" != x ; then
3203 eval "DEFAULT_$LINE"
3204 else
3205 no_cache=1
3206 fi
3207
3208 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3209
3210fi;
3211
3212 eval "$ac_cv_use_libmspack"
3213 if test "$no_cache" != 1; then
3214 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3215 fi
3216
3217 if test "$wxUSE_LIBMSPACK" = yes; then
3218 echo "$as_me:$LINENO: result: yes" >&5
3219echo "${ECHO_T}yes" >&6
3220 else
3221 echo "$as_me:$LINENO: result: no" >&5
3222echo "${ECHO_T}no" >&6
3223 fi
3224
3225
1c14217d
VZ
3226 withstring=
3227 echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
3228echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6
a848cd7e
SC
3229 no_cache=0
3230
3231# Check whether --with-sdl or --without-sdl was given.
3232if test "${with_sdl+set}" = set; then
3233 withval="$with_sdl"
3234
3235 if test "$withval" = yes; then
3236 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3237 else
3238 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3239 fi
3240
3241else
3242
3243 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3244 if test "x$LINE" != x ; then
3245 eval "DEFAULT_$LINE"
3246 else
3247 no_cache=1
3248 fi
3249
3250 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3251
3252fi;
3253
3254 eval "$ac_cv_use_sdl"
3255 if test "$no_cache" != 1; then
3256 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3257 fi
3258
3259 if test "$wxUSE_LIBSDL" = yes; then
3260 echo "$as_me:$LINENO: result: yes" >&5
3261echo "${ECHO_T}yes" >&6
3262 else
3263 echo "$as_me:$LINENO: result: no" >&5
3264echo "${ECHO_T}no" >&6
3265 fi
3266
3267
1c14217d
VZ
3268 withstring=
3269 echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3270echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6
d1c38808
VZ
3271 no_cache=0
3272
3273# Check whether --with-gnomeprint or --without-gnomeprint was given.
3274if test "${with_gnomeprint+set}" = set; then
3275 withval="$with_gnomeprint"
3276
3277 if test "$withval" = yes; then
3278 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3279 else
3280 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3281 fi
3282
3283else
3284
3285 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3286 if test "x$LINE" != x ; then
3287 eval "DEFAULT_$LINE"
3288 else
3289 no_cache=1
3290 fi
3291
3292 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3293
3294fi;
3295
3296 eval "$ac_cv_use_gnomeprint"
3297 if test "$no_cache" != 1; then
3298 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3299 fi
3300
3301 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3302 echo "$as_me:$LINENO: result: yes" >&5
3303echo "${ECHO_T}yes" >&6
3304 else
3305 echo "$as_me:$LINENO: result: no" >&5
3306echo "${ECHO_T}no" >&6
3307 fi
3308
3309
2b850ae1
RR
3310 withstring=
3311 echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
3312echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6
3313 no_cache=0
3314
3315# Check whether --with-gnomevfs or --without-gnomevfs was given.
3316if test "${with_gnomevfs+set}" = set; then
3317 withval="$with_gnomevfs"
3318
3319 if test "$withval" = yes; then
3320 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
3321 else
3322 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
3323 fi
3324
3325else
3326
3327 LINE=`grep "wxUSE_LIBGNOMEVFS" ${wx_arg_cache_file}`
3328 if test "x$LINE" != x ; then
3329 eval "DEFAULT_$LINE"
3330 else
3331 no_cache=1
3332 fi
3333
3334 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS='$DEFAULT_wxUSE_LIBGNOMEVFS
3335
3336fi;
3337
3338 eval "$ac_cv_use_gnomevfs"
3339 if test "$no_cache" != 1; then
3340 echo $ac_cv_use_gnomevfs >> ${wx_arg_cache_file}.tmp
3341 fi
3342
3343 if test "$wxUSE_LIBGNOMEVFS" = yes; then
3344 echo "$as_me:$LINENO: result: yes" >&5
3345echo "${ECHO_T}yes" >&6
3346 else
3347 echo "$as_me:$LINENO: result: no" >&5
3348echo "${ECHO_T}no" >&6
3349 fi
3350
3351
3565d135
RR
3352 withstring=
3353 echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
3354echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6
3355 no_cache=0
3356
3357# Check whether --with-hildon or --without-hildon was given.
3358if test "${with_hildon+set}" = set; then
3359 withval="$with_hildon"
3360
3361 if test "$withval" = yes; then
3362 ac_cv_use_hildon='wxUSE_LIBHILDON=yes'
3363 else
3364 ac_cv_use_hildon='wxUSE_LIBHILDON=no'
3365 fi
3366
3367else
3368
3369 LINE=`grep "wxUSE_LIBHILDON" ${wx_arg_cache_file}`
3370 if test "x$LINE" != x ; then
3371 eval "DEFAULT_$LINE"
3372 else
3373 no_cache=1
3374 fi
3375
3376 ac_cv_use_hildon='wxUSE_LIBHILDON='$DEFAULT_wxUSE_LIBHILDON
3377
3378fi;
3379
3380 eval "$ac_cv_use_hildon"
3381 if test "$no_cache" != 1; then
3382 echo $ac_cv_use_hildon >> ${wx_arg_cache_file}.tmp
3383 fi
3384
3385 if test "$wxUSE_LIBHILDON" = yes; then
3386 echo "$as_me:$LINENO: result: yes" >&5
3387echo "${ECHO_T}yes" >&6
3388 else
3389 echo "$as_me:$LINENO: result: no" >&5
3390echo "${ECHO_T}no" >&6
3391 fi
3392
3393
1c14217d
VZ
3394 withstring=
3395 echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
3396echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6
a848cd7e
SC
3397 no_cache=0
3398
3399# Check whether --with-opengl or --without-opengl was given.
3400if test "${with_opengl+set}" = set; then
3401 withval="$with_opengl"
3402
3403 if test "$withval" = yes; then
3404 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3405 else
3406 ac_cv_use_opengl='wxUSE_OPENGL=no'
3407 fi
3408
3409else
3410
3411 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3412 if test "x$LINE" != x ; then
3413 eval "DEFAULT_$LINE"
3414 else
3415 no_cache=1
3416 fi
3417
3418 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3419
3420fi;
3421
3422 eval "$ac_cv_use_opengl"
3423 if test "$no_cache" != 1; then
3424 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3425 fi
3426
3427 if test "$wxUSE_OPENGL" = yes; then
3428 echo "$as_me:$LINENO: result: yes" >&5
3429echo "${ECHO_T}yes" >&6
3430 else
3431 echo "$as_me:$LINENO: result: no" >&5
3432echo "${ECHO_T}no" >&6
3433 fi
3434
3435
3436fi
3437
3438
1c14217d
VZ
3439 withstring=
3440 echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
3441echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6
a848cd7e
SC
3442 no_cache=0
3443
3444# Check whether --with-dmalloc or --without-dmalloc was given.
3445if test "${with_dmalloc+set}" = set; then
3446 withval="$with_dmalloc"
3447
3448 if test "$withval" = yes; then
3449 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3450 else
3451 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3452 fi
3453
3454else
3455
3456 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3457 if test "x$LINE" != x ; then
3458 eval "DEFAULT_$LINE"
3459 else
3460 no_cache=1
3461 fi
3462
3463 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3464
3465fi;
3466
3467 eval "$ac_cv_use_dmalloc"
3468 if test "$no_cache" != 1; then
3469 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3470 fi
3471
3472 if test "$wxUSE_DMALLOC" = yes; then
3473 echo "$as_me:$LINENO: result: yes" >&5
3474echo "${ECHO_T}yes" >&6
3475 else
3476 echo "$as_me:$LINENO: result: no" >&5
3477echo "${ECHO_T}no" >&6
3478 fi
3479
3480
3481 echo "$as_me:$LINENO: checking for --with-regex" >&5
3482echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3483 no_cache=0
3484
3485# Check whether --with-regex or --without-regex was given.
3486if test "${with_regex+set}" = set; then
3487 withval="$with_regex"
3488
3489 if test "$withval" = yes; then
3490 ac_cv_use_regex='wxUSE_REGEX=yes'
3491 elif test "$withval" = no; then
3492 ac_cv_use_regex='wxUSE_REGEX=no'
3493 elif test "$withval" = sys; then
3494 ac_cv_use_regex='wxUSE_REGEX=sys'
3495 elif test "$withval" = builtin; then
3496 ac_cv_use_regex='wxUSE_REGEX=builtin'
3497 else
3498 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3499echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3500 { (exit 1); exit 1; }; }
3501 fi
3502
3503else
3504
3505 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3506 if test "x$LINE" != x ; then
3507 eval "DEFAULT_$LINE"
3508 else
3509 no_cache=1
3510 fi
3511
3512 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3513
3514fi;
3515
3516 eval "$ac_cv_use_regex"
3517 if test "$no_cache" != 1; then
3518 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3519 fi
3520
3521 if test "$wxUSE_REGEX" = yes; then
3522 echo "$as_me:$LINENO: result: yes" >&5
3523echo "${ECHO_T}yes" >&6
3524 elif test "$wxUSE_REGEX" = no; then
3525 echo "$as_me:$LINENO: result: no" >&5
3526echo "${ECHO_T}no" >&6
3527 elif test "$wxUSE_REGEX" = sys; then
3528 echo "$as_me:$LINENO: result: system version" >&5
3529echo "${ECHO_T}system version" >&6
3530 elif test "$wxUSE_REGEX" = builtin; then
3531 echo "$as_me:$LINENO: result: builtin version" >&5
3532echo "${ECHO_T}builtin version" >&6
3533 else
3534 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3535echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3536 { (exit 1); exit 1; }; }
3537 fi
3538
3539
3540 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3541echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3542 no_cache=0
3543
3544# Check whether --with-zlib or --without-zlib was given.
3545if test "${with_zlib+set}" = set; then
3546 withval="$with_zlib"
3547
3548 if test "$withval" = yes; then
3549 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3550 elif test "$withval" = no; then
3551 ac_cv_use_zlib='wxUSE_ZLIB=no'
3552 elif test "$withval" = sys; then
3553 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3554 elif test "$withval" = builtin; then
3555 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3556 else
3557 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3558echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3559 { (exit 1); exit 1; }; }
3560 fi
3561
3562else
3563
3564 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3565 if test "x$LINE" != x ; then
3566 eval "DEFAULT_$LINE"
3567 else
3568 no_cache=1
3569 fi
3570
3571 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3572
3573fi;
3574
3575 eval "$ac_cv_use_zlib"
3576 if test "$no_cache" != 1; then
3577 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3578 fi
3579
3580 if test "$wxUSE_ZLIB" = yes; then
3581 echo "$as_me:$LINENO: result: yes" >&5
3582echo "${ECHO_T}yes" >&6
3583 elif test "$wxUSE_ZLIB" = no; then
3584 echo "$as_me:$LINENO: result: no" >&5
3585echo "${ECHO_T}no" >&6
3586 elif test "$wxUSE_ZLIB" = sys; then
3587 echo "$as_me:$LINENO: result: system version" >&5
3588echo "${ECHO_T}system version" >&6
3589 elif test "$wxUSE_ZLIB" = builtin; then
3590 echo "$as_me:$LINENO: result: builtin version" >&5
3591echo "${ECHO_T}builtin version" >&6
3592 else
3593 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3594echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3595 { (exit 1); exit 1; }; }
3596 fi
3597
3598
3599 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3600echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3601 no_cache=0
3602
3603# Check whether --with-odbc or --without-odbc was given.
3604if test "${with_odbc+set}" = set; then
3605 withval="$with_odbc"
3606
3607 if test "$withval" = yes; then
3608 ac_cv_use_odbc='wxUSE_ODBC=yes'
3609 elif test "$withval" = no; then
3610 ac_cv_use_odbc='wxUSE_ODBC=no'
3611 elif test "$withval" = sys; then
3612 ac_cv_use_odbc='wxUSE_ODBC=sys'
3613 elif test "$withval" = builtin; then
3614 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3615 else
3616 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3617echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3618 { (exit 1); exit 1; }; }
3619 fi
3620
3621else
3622
3623 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3624 if test "x$LINE" != x ; then
3625 eval "DEFAULT_$LINE"
3626 else
3627 no_cache=1
3628 fi
3629
3630 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3631
3632fi;
3633
3634 eval "$ac_cv_use_odbc"
3635 if test "$no_cache" != 1; then
3636 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3637 fi
3638
3639 if test "$wxUSE_ODBC" = yes; then
3640 echo "$as_me:$LINENO: result: yes" >&5
3641echo "${ECHO_T}yes" >&6
3642 elif test "$wxUSE_ODBC" = no; then
3643 echo "$as_me:$LINENO: result: no" >&5
3644echo "${ECHO_T}no" >&6
3645 elif test "$wxUSE_ODBC" = sys; then
3646 echo "$as_me:$LINENO: result: system version" >&5
3647echo "${ECHO_T}system version" >&6
3648 elif test "$wxUSE_ODBC" = builtin; then
3649 echo "$as_me:$LINENO: result: builtin version" >&5
3650echo "${ECHO_T}builtin version" >&6
3651 else
3652 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3653echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3654 { (exit 1); exit 1; }; }
3655 fi
3656
3657
3658 echo "$as_me:$LINENO: checking for --with-expat" >&5
3659echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3660 no_cache=0
3661
3662# Check whether --with-expat or --without-expat was given.
3663if test "${with_expat+set}" = set; then
3664 withval="$with_expat"
3665
3666 if test "$withval" = yes; then
3667 ac_cv_use_expat='wxUSE_EXPAT=yes'
3668 elif test "$withval" = no; then
3669 ac_cv_use_expat='wxUSE_EXPAT=no'
3670 elif test "$withval" = sys; then
3671 ac_cv_use_expat='wxUSE_EXPAT=sys'
3672 elif test "$withval" = builtin; then
3673 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3674 else
3675 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3676echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3677 { (exit 1); exit 1; }; }
3678 fi
3679
3680else
3681
3682 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3683 if test "x$LINE" != x ; then
3684 eval "DEFAULT_$LINE"
3685 else
3686 no_cache=1
3687 fi
3688
3689 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3690
3691fi;
3692
3693 eval "$ac_cv_use_expat"
3694 if test "$no_cache" != 1; then
3695 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3696 fi
3697
3698 if test "$wxUSE_EXPAT" = yes; then
3699 echo "$as_me:$LINENO: result: yes" >&5
3700echo "${ECHO_T}yes" >&6
3701 elif test "$wxUSE_EXPAT" = no; then
3702 echo "$as_me:$LINENO: result: no" >&5
3703echo "${ECHO_T}no" >&6
3704 elif test "$wxUSE_EXPAT" = sys; then
3705 echo "$as_me:$LINENO: result: system version" >&5
3706echo "${ECHO_T}system version" >&6
3707 elif test "$wxUSE_EXPAT" = builtin; then
3708 echo "$as_me:$LINENO: result: builtin version" >&5
3709echo "${ECHO_T}builtin version" >&6
3710 else
3711 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3712echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3713 { (exit 1); exit 1; }; }
3714 fi
3715
3716
3717
3718
3719 enablestring=
3720 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3721echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3722 no_cache=0
3723 # Check whether --enable-shared or --disable-shared was given.
3724if test "${enable_shared+set}" = set; then
3725 enableval="$enable_shared"
3726
3727 if test "$enableval" = yes; then
3728 ac_cv_use_shared='wxUSE_SHARED=yes'
3729 else
3730 ac_cv_use_shared='wxUSE_SHARED=no'
3731 fi
3732
3733else
3734
3735 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3736 if test "x$LINE" != x ; then
3737 eval "DEFAULT_$LINE"
3738 else
3739 no_cache=1
3740 fi
3741
3742 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3743
3744fi;
3745
3746 eval "$ac_cv_use_shared"
3747 if test "$no_cache" != 1; then
3748 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3749 fi
3750
3751 if test "$wxUSE_SHARED" = yes; then
3752 echo "$as_me:$LINENO: result: yes" >&5
3753echo "${ECHO_T}yes" >&6
3754 else
3755 echo "$as_me:$LINENO: result: no" >&5
3756echo "${ECHO_T}no" >&6
3757 fi
3758
3759
3760 enablestring=
3761 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3762echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3763 no_cache=0
3764 # Check whether --enable-optimise or --disable-optimise was given.
3765if test "${enable_optimise+set}" = set; then
3766 enableval="$enable_optimise"
3767
3768 if test "$enableval" = yes; then
3769 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3770 else
3771 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3772 fi
3773
3774else
3775
3776 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3777 if test "x$LINE" != x ; then
3778 eval "DEFAULT_$LINE"
3779 else
3780 no_cache=1
3781 fi
3782
3783 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3784
3785fi;
3786
3787 eval "$ac_cv_use_optimise"
3788 if test "$no_cache" != 1; then
3789 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3790 fi
3791
3792 if test "$wxUSE_OPTIMISE" = yes; then
3793 echo "$as_me:$LINENO: result: yes" >&5
3794echo "${ECHO_T}yes" >&6
3795 else
3796 echo "$as_me:$LINENO: result: no" >&5
3797echo "${ECHO_T}no" >&6
3798 fi
3799
3800
3801 enablestring=
3802 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3803echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3804 no_cache=0
3805 # Check whether --enable-debug or --disable-debug was given.
3806if test "${enable_debug+set}" = set; then
3807 enableval="$enable_debug"
3808
3809 if test "$enableval" = yes; then
3810 ac_cv_use_debug='wxUSE_DEBUG=yes'
3811 else
3812 ac_cv_use_debug='wxUSE_DEBUG=no'
3813 fi
3814
3815else
3816
3817 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3818 if test "x$LINE" != x ; then
3819 eval "DEFAULT_$LINE"
3820 else
3821 no_cache=1
3822 fi
3823
3824 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3825
3826fi;
3827
3828 eval "$ac_cv_use_debug"
3829 if test "$no_cache" != 1; then
3830 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3831 fi
3832
3833 if test "$wxUSE_DEBUG" = yes; then
3834 echo "$as_me:$LINENO: result: yes" >&5
3835echo "${ECHO_T}yes" >&6
3836 else
3837 echo "$as_me:$LINENO: result: no" >&5
3838echo "${ECHO_T}no" >&6
3839 fi
3840
3841
3842 enablestring=
3843 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3844echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3845 no_cache=0
3846 # Check whether --enable-stl or --disable-stl was given.
3847if test "${enable_stl+set}" = set; then
3848 enableval="$enable_stl"
3849
3850 if test "$enableval" = yes; then
3851 ac_cv_use_stl='wxUSE_STL=yes'
3852 else
3853 ac_cv_use_stl='wxUSE_STL=no'
3854 fi
3855
3856else
3857
3858 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3859 if test "x$LINE" != x ; then
3860 eval "DEFAULT_$LINE"
3861 else
3862 no_cache=1
3863 fi
3864
3865 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3866
3867fi;
3868
3869 eval "$ac_cv_use_stl"
3870 if test "$no_cache" != 1; then
3871 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3872 fi
3873
3874 if test "$wxUSE_STL" = yes; then
3875 echo "$as_me:$LINENO: result: yes" >&5
3876echo "${ECHO_T}yes" >&6
3877 else
3878 echo "$as_me:$LINENO: result: no" >&5
3879echo "${ECHO_T}no" >&6
3880 fi
3881
3882if test "$USE_OS2" = "1"; then
69120ee4 3883 DEFAULT_wxUSE_OMF=no
a848cd7e
SC
3884
3885 enablestring=
3886 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3887echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3888 no_cache=0
3889 # Check whether --enable-omf or --disable-omf was given.
3890if test "${enable_omf+set}" = set; then
3891 enableval="$enable_omf"
3892
3893 if test "$enableval" = yes; then
3894 ac_cv_use_omf='wxUSE_OMF=yes'
3895 else
3896 ac_cv_use_omf='wxUSE_OMF=no'
3897 fi
3898
3899else
3900
3901 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3902 if test "x$LINE" != x ; then
3903 eval "DEFAULT_$LINE"
3904 else
3905 no_cache=1
3906 fi
3907
3908 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3909
3910fi;
3911
3912 eval "$ac_cv_use_omf"
3913 if test "$no_cache" != 1; then
3914 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3915 fi
3916
3917 if test "$wxUSE_OMF" = yes; then
3918 echo "$as_me:$LINENO: result: yes" >&5
3919echo "${ECHO_T}yes" >&6
3920 else
3921 echo "$as_me:$LINENO: result: no" >&5
3922echo "${ECHO_T}no" >&6
3923 fi
3924
3925fi
3926
3927if test "$wxUSE_DEBUG" = "yes"; then
3928 DEFAULT_wxUSE_DEBUG_FLAG=yes
3929 DEFAULT_wxUSE_DEBUG_INFO=yes
3930 BUILD=debug
3931elif test "$wxUSE_DEBUG" = "no"; then
3932 DEFAULT_wxUSE_DEBUG_FLAG=no
3933 DEFAULT_wxUSE_DEBUG_INFO=no
3934 BUILD=release
3935fi
3936
3937
3938 enablestring=
3939 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3940echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3941 no_cache=0
3942 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3943if test "${enable_debug_flag+set}" = set; then
3944 enableval="$enable_debug_flag"
3945
3946 if test "$enableval" = yes; then
3947 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3948 else
3949 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3950 fi
3951
3952else
3953
3954 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3955 if test "x$LINE" != x ; then
3956 eval "DEFAULT_$LINE"
3957 else
3958 no_cache=1
3959 fi
3960
3961 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3962
3963fi;
3964
3965 eval "$ac_cv_use_debug_flag"
3966 if test "$no_cache" != 1; then
3967 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3968 fi
3969
3970 if test "$wxUSE_DEBUG_FLAG" = yes; then
3971 echo "$as_me:$LINENO: result: yes" >&5
3972echo "${ECHO_T}yes" >&6
3973 else
3974 echo "$as_me:$LINENO: result: no" >&5
3975echo "${ECHO_T}no" >&6
3976 fi
3977
3978
3979 enablestring=
3980 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3981echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3982 no_cache=0
3983 # Check whether --enable-debug_info or --disable-debug_info was given.
3984if test "${enable_debug_info+set}" = set; then
3985 enableval="$enable_debug_info"
3986
3987 if test "$enableval" = yes; then
3988 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3989 else
3990 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3991 fi
3992
3993else
3994
3995 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3996 if test "x$LINE" != x ; then
3997 eval "DEFAULT_$LINE"
3998 else
3999 no_cache=1
4000 fi
4001
4002 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
4003
4004fi;
4005
4006 eval "$ac_cv_use_debug_info"
4007 if test "$no_cache" != 1; then
4008 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
4009 fi
4010
4011 if test "$wxUSE_DEBUG_INFO" = yes; then
4012 echo "$as_me:$LINENO: result: yes" >&5
4013echo "${ECHO_T}yes" >&6
4014 else
4015 echo "$as_me:$LINENO: result: no" >&5
4016echo "${ECHO_T}no" >&6
4017 fi
4018
4019
4020 enablestring=
4021 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
4022echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
4023 no_cache=0
4024 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
4025if test "${enable_debug_gdb+set}" = set; then
4026 enableval="$enable_debug_gdb"
4027
4028 if test "$enableval" = yes; then
4029 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
4030 else
4031 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
4032 fi
4033
4034else
4035
4036 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
4037 if test "x$LINE" != x ; then
4038 eval "DEFAULT_$LINE"
4039 else
4040 no_cache=1
4041 fi
4042
4043 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
4044
4045fi;
4046
4047 eval "$ac_cv_use_debug_gdb"
4048 if test "$no_cache" != 1; then
4049 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
4050 fi
4051
4052 if test "$wxUSE_DEBUG_GDB" = yes; then
4053 echo "$as_me:$LINENO: result: yes" >&5
4054echo "${ECHO_T}yes" >&6
4055 else
4056 echo "$as_me:$LINENO: result: no" >&5
4057echo "${ECHO_T}no" >&6
4058 fi
4059
4060
4061 enablestring=
4062 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
4063echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
4064 no_cache=0
4065 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
4066if test "${enable_debug_cntxt+set}" = set; then
4067 enableval="$enable_debug_cntxt"
4068
4069 if test "$enableval" = yes; then
4070 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
4071 else
4072 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
4073 fi
4074
4075else
4076
4077 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
4078 if test "x$LINE" != x ; then
4079 eval "DEFAULT_$LINE"
4080 else
4081 no_cache=1
4082 fi
4083
4084 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
4085
4086fi;
4087
4088 eval "$ac_cv_use_debug_cntxt"
4089 if test "$no_cache" != 1; then
4090 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
4091 fi
4092
4093 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
4094 echo "$as_me:$LINENO: result: yes" >&5
4095echo "${ECHO_T}yes" >&6
4096 else
4097 echo "$as_me:$LINENO: result: no" >&5
4098echo "${ECHO_T}no" >&6
4099 fi
4100
4101
4102 enablestring=
4103 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
4104echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
4105 no_cache=0
4106 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
4107if test "${enable_mem_tracing+set}" = set; then
4108 enableval="$enable_mem_tracing"
4109
4110 if test "$enableval" = yes; then
4111 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
4112 else
4113 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
4114 fi
4115
4116else
4117
4118 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
4119 if test "x$LINE" != x ; then
4120 eval "DEFAULT_$LINE"
4121 else
4122 no_cache=1
4123 fi
4124
4125 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
4126
4127fi;
4128
4129 eval "$ac_cv_use_mem_tracing"
4130 if test "$no_cache" != 1; then
4131 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
4132 fi
4133
4134 if test "$wxUSE_MEM_TRACING" = yes; then
4135 echo "$as_me:$LINENO: result: yes" >&5
4136echo "${ECHO_T}yes" >&6
4137 else
4138 echo "$as_me:$LINENO: result: no" >&5
4139echo "${ECHO_T}no" >&6
4140 fi
4141
4142
4143 enablestring=
4144 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
4145echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
4146 no_cache=0
4147 # Check whether --enable-profile or --disable-profile was given.
4148if test "${enable_profile+set}" = set; then
4149 enableval="$enable_profile"
4150
4151 if test "$enableval" = yes; then
4152 ac_cv_use_profile='wxUSE_PROFILE=yes'
4153 else
4154 ac_cv_use_profile='wxUSE_PROFILE=no'
4155 fi
4156
4157else
4158
4159 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
4160 if test "x$LINE" != x ; then
4161 eval "DEFAULT_$LINE"
4162 else
4163 no_cache=1
4164 fi
4165
4166 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
4167
4168fi;
4169
4170 eval "$ac_cv_use_profile"
4171 if test "$no_cache" != 1; then
4172 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
4173 fi
4174
4175 if test "$wxUSE_PROFILE" = yes; then
4176 echo "$as_me:$LINENO: result: yes" >&5
4177echo "${ECHO_T}yes" >&6
4178 else
4179 echo "$as_me:$LINENO: result: no" >&5
4180echo "${ECHO_T}no" >&6
4181 fi
4182
4183
4184 enablestring=
4185 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
4186echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
4187 no_cache=0
4188 # Check whether --enable-no_rtti or --disable-no_rtti was given.
4189if test "${enable_no_rtti+set}" = set; then
4190 enableval="$enable_no_rtti"
4191
4192 if test "$enableval" = yes; then
4193 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
4194 else
4195 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
4196 fi
4197
4198else
4199
4200 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
4201 if test "x$LINE" != x ; then
4202 eval "DEFAULT_$LINE"
4203 else
4204 no_cache=1
4205 fi
4206
4207 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
4208
4209fi;
4210
4211 eval "$ac_cv_use_no_rtti"
4212 if test "$no_cache" != 1; then
4213 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
4214 fi
4215
4216 if test "$wxUSE_NO_RTTI" = yes; then
4217 echo "$as_me:$LINENO: result: yes" >&5
4218echo "${ECHO_T}yes" >&6
4219 else
4220 echo "$as_me:$LINENO: result: no" >&5
4221echo "${ECHO_T}no" >&6
4222 fi
4223
4224
4225 enablestring=
4226 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
4227echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
4228 no_cache=0
4229 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
4230if test "${enable_no_exceptions+set}" = set; then
4231 enableval="$enable_no_exceptions"
4232
4233 if test "$enableval" = yes; then
4234 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
4235 else
4236 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
4237 fi
4238
4239else
4240
4241 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
4242 if test "x$LINE" != x ; then
4243 eval "DEFAULT_$LINE"
4244 else
4245 no_cache=1
4246 fi
4247
4248 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
4249
4250fi;
4251
4252 eval "$ac_cv_use_no_exceptions"
4253 if test "$no_cache" != 1; then
4254 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
4255 fi
4256
4257 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
4258 echo "$as_me:$LINENO: result: yes" >&5
4259echo "${ECHO_T}yes" >&6
4260 else
4261 echo "$as_me:$LINENO: result: no" >&5
4262echo "${ECHO_T}no" >&6
4263 fi
4264
4265
4266 enablestring=
4267 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
4268echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
4269 no_cache=0
4270 # Check whether --enable-permissive or --disable-permissive was given.
4271if test "${enable_permissive+set}" = set; then
4272 enableval="$enable_permissive"
4273
4274 if test "$enableval" = yes; then
4275 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4276 else
4277 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4278 fi
4279
4280else
4281
4282 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4283 if test "x$LINE" != x ; then
4284 eval "DEFAULT_$LINE"
4285 else
4286 no_cache=1
4287 fi
4288
4289 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4290
4291fi;
4292
4293 eval "$ac_cv_use_permissive"
4294 if test "$no_cache" != 1; then
4295 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4296 fi
4297
4298 if test "$wxUSE_PERMISSIVE" = yes; then
4299 echo "$as_me:$LINENO: result: yes" >&5
4300echo "${ECHO_T}yes" >&6
4301 else
4302 echo "$as_me:$LINENO: result: no" >&5
4303echo "${ECHO_T}no" >&6
4304 fi
4305
4306
4307 enablestring=
4308 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4309echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4310 no_cache=0
4311 # Check whether --enable-no_deps or --disable-no_deps was given.
4312if test "${enable_no_deps+set}" = set; then
4313 enableval="$enable_no_deps"
4314
4315 if test "$enableval" = yes; then
4316 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4317 else
4318 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4319 fi
4320
4321else
4322
4323 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4324 if test "x$LINE" != x ; then
4325 eval "DEFAULT_$LINE"
4326 else
4327 no_cache=1
4328 fi
4329
4330 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4331
4332fi;
4333
4334 eval "$ac_cv_use_no_deps"
4335 if test "$no_cache" != 1; then
4336 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4337 fi
4338
4339 if test "$wxUSE_NO_DEPS" = yes; then
4340 echo "$as_me:$LINENO: result: yes" >&5
4341echo "${ECHO_T}yes" >&6
4342 else
4343 echo "$as_me:$LINENO: result: no" >&5
4344echo "${ECHO_T}no" >&6
4345 fi
4346
4347
95768535 4348 enablestring=
7afc46ab
KO
4349 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
4350echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6
4351 no_cache=0
4352 # Check whether --enable-universal_binary or --disable-universal_binary was given.
4353if test "${enable_universal_binary+set}" = set; then
4354 enableval="$enable_universal_binary"
4355
95768535 4356 wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY='$enableval'"
7afc46ab
KO
4357
4358else
4359
4360 LINE=`grep "wxUSE_UNIVERSAL_BINARY" ${wx_arg_cache_file}`
4361 if test "x$LINE" != x ; then
4362 eval "DEFAULT_$LINE"
95768535 4363 wx_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
7afc46ab
KO
4364 else
4365 no_cache=1
95768535 4366 wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY=no"
7afc46ab
KO
4367 fi
4368
7afc46ab
KO
4369fi;
4370
95768535 4371 eval "$wx_cv_use_universal_binary"
7afc46ab 4372 if test "$no_cache" != 1; then
95768535 4373 echo $wx_cv_use_universal_binary >> ${wx_arg_cache_file}.tmp
7afc46ab
KO
4374 fi
4375
95768535
MW
4376 echo "$as_me:$LINENO: result: $wxUSE_UNIVERSAL_BINARY" >&5
4377echo "${ECHO_T}$wxUSE_UNIVERSAL_BINARY" >&6
7afc46ab
KO
4378
4379
a848cd7e 4380
dee1a63f
MB
4381 enablestring=enable
4382 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4383echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
a848cd7e 4384 no_cache=0
dee1a63f
MB
4385 # Check whether --enable-compat24 or --disable-compat24 was given.
4386if test "${enable_compat24+set}" = set; then
4387 enableval="$enable_compat24"
a848cd7e
SC
4388
4389 if test "$enableval" = yes; then
dee1a63f 4390 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
a848cd7e 4391 else
dee1a63f 4392 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
a848cd7e
SC
4393 fi
4394
4395else
4396
dee1a63f 4397 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
a848cd7e
SC
4398 if test "x$LINE" != x ; then
4399 eval "DEFAULT_$LINE"
4400 else
4401 no_cache=1
4402 fi
4403
dee1a63f 4404 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
a848cd7e
SC
4405
4406fi;
4407
dee1a63f 4408 eval "$ac_cv_use_compat24"
a848cd7e 4409 if test "$no_cache" != 1; then
dee1a63f 4410 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4411 fi
4412
dee1a63f 4413 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
a848cd7e
SC
4414 echo "$as_me:$LINENO: result: yes" >&5
4415echo "${ECHO_T}yes" >&6
4416 else
4417 echo "$as_me:$LINENO: result: no" >&5
4418echo "${ECHO_T}no" >&6
4419 fi
4420
4421
4422 enablestring=disable
dee1a63f
MB
4423 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
4424echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6
a848cd7e 4425 no_cache=0
dee1a63f
MB
4426 # Check whether --enable-compat26 or --disable-compat26 was given.
4427if test "${enable_compat26+set}" = set; then
4428 enableval="$enable_compat26"
a848cd7e
SC
4429
4430 if test "$enableval" = yes; then
dee1a63f 4431 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
a848cd7e 4432 else
dee1a63f 4433 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
a848cd7e
SC
4434 fi
4435
4436else
4437
dee1a63f 4438 LINE=`grep "WXWIN_COMPATIBILITY_2_6" ${wx_arg_cache_file}`
a848cd7e
SC
4439 if test "x$LINE" != x ; then
4440 eval "DEFAULT_$LINE"
4441 else
4442 no_cache=1
4443 fi
4444
dee1a63f 4445 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6='$DEFAULT_WXWIN_COMPATIBILITY_2_6
a848cd7e
SC
4446
4447fi;
4448
dee1a63f 4449 eval "$ac_cv_use_compat26"
a848cd7e 4450 if test "$no_cache" != 1; then
dee1a63f 4451 echo $ac_cv_use_compat26 >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4452 fi
4453
dee1a63f 4454 if test "$WXWIN_COMPATIBILITY_2_6" = yes; then
a848cd7e
SC
4455 echo "$as_me:$LINENO: result: yes" >&5
4456echo "${ECHO_T}yes" >&6
4457 else
4458 echo "$as_me:$LINENO: result: no" >&5
4459echo "${ECHO_T}no" >&6
4460 fi
4461
4462
ffa0583f
RL
4463
4464 enablestring=
4465 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4466echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4467 no_cache=0
4468 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4469if test "${enable_rpath+set}" = set; then
4470 enableval="$enable_rpath"
ffa0583f
RL
4471
4472 if test "$enableval" = yes; then
4473 ac_cv_use_rpath='wxUSE_RPATH=yes'
4474 else
4475 ac_cv_use_rpath='wxUSE_RPATH=no'
4476 fi
4477
4478else
4479
4480 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4481 if test "x$LINE" != x ; then
4482 eval "DEFAULT_$LINE"
4483 else
4484 no_cache=1
4485 fi
4486
4487 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4488
a848cd7e
SC
4489fi;
4490
ffa0583f
RL
4491 eval "$ac_cv_use_rpath"
4492 if test "$no_cache" != 1; then
4493 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4494 fi
4495
4496 if test "$wxUSE_RPATH" = yes; then
4497 echo "$as_me:$LINENO: result: yes" >&5
4498echo "${ECHO_T}yes" >&6
4499 else
4500 echo "$as_me:$LINENO: result: no" >&5
4501echo "${ECHO_T}no" >&6
4502 fi
4503
a848cd7e
SC
4504
4505
4506
4507
4508 enablestring=
4509 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4510echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4511 no_cache=0
4512 # Check whether --enable-intl or --disable-intl was given.
4513if test "${enable_intl+set}" = set; then
4514 enableval="$enable_intl"
4515
4516 if test "$enableval" = yes; then
4517 ac_cv_use_intl='wxUSE_INTL=yes'
4518 else
4519 ac_cv_use_intl='wxUSE_INTL=no'
4520 fi
4521
4522else
4523
4524 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4525 if test "x$LINE" != x ; then
4526 eval "DEFAULT_$LINE"
4527 else
4528 no_cache=1
4529 fi
4530
4531 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4532
4533fi;
4534
4535 eval "$ac_cv_use_intl"
4536 if test "$no_cache" != 1; then
4537 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4538 fi
4539
4540 if test "$wxUSE_INTL" = yes; then
4541 echo "$as_me:$LINENO: result: yes" >&5
4542echo "${ECHO_T}yes" >&6
4543 else
4544 echo "$as_me:$LINENO: result: no" >&5
4545echo "${ECHO_T}no" >&6
4546 fi
4547
4548
4549 enablestring=
4550 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4551echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4552 no_cache=0
4553 # Check whether --enable-config or --disable-config was given.
4554if test "${enable_config+set}" = set; then
4555 enableval="$enable_config"
4556
4557 if test "$enableval" = yes; then
4558 ac_cv_use_config='wxUSE_CONFIG=yes'
4559 else
4560 ac_cv_use_config='wxUSE_CONFIG=no'
4561 fi
4562
4563else
4564
4565 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4566 if test "x$LINE" != x ; then
4567 eval "DEFAULT_$LINE"
4568 else
4569 no_cache=1
4570 fi
4571
4572 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4573
4574fi;
4575
4576 eval "$ac_cv_use_config"
4577 if test "$no_cache" != 1; then
4578 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4579 fi
4580
4581 if test "$wxUSE_CONFIG" = yes; then
4582 echo "$as_me:$LINENO: result: yes" >&5
4583echo "${ECHO_T}yes" >&6
4584 else
4585 echo "$as_me:$LINENO: result: no" >&5
4586echo "${ECHO_T}no" >&6
4587 fi
4588
4589
4590
4591 enablestring=
4592 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4593echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4594 no_cache=0
4595 # Check whether --enable-protocols or --disable-protocols was given.
4596if test "${enable_protocols+set}" = set; then
4597 enableval="$enable_protocols"
4598
4599 if test "$enableval" = yes; then
4600 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4601 else
4602 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4603 fi
4604
4605else
4606
4607 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4608 if test "x$LINE" != x ; then
4609 eval "DEFAULT_$LINE"
4610 else
4611 no_cache=1
4612 fi
4613
4614 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4615
4616fi;
4617
4618 eval "$ac_cv_use_protocols"
4619 if test "$no_cache" != 1; then
4620 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4621 fi
4622
4623 if test "$wxUSE_PROTOCOL" = yes; then
4624 echo "$as_me:$LINENO: result: yes" >&5
4625echo "${ECHO_T}yes" >&6
4626 else
4627 echo "$as_me:$LINENO: result: no" >&5
4628echo "${ECHO_T}no" >&6
4629 fi
4630
4631
4632 enablestring=
4633 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4634echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4635 no_cache=0
4636 # Check whether --enable-ftp or --disable-ftp was given.
4637if test "${enable_ftp+set}" = set; then
4638 enableval="$enable_ftp"
4639
4640 if test "$enableval" = yes; then
4641 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4642 else
4643 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4644 fi
4645
4646else
4647
4648 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4649 if test "x$LINE" != x ; then
4650 eval "DEFAULT_$LINE"
4651 else
4652 no_cache=1
4653 fi
4654
4655 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4656
4657fi;
4658
4659 eval "$ac_cv_use_ftp"
4660 if test "$no_cache" != 1; then
4661 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4662 fi
4663
4664 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4665 echo "$as_me:$LINENO: result: yes" >&5
4666echo "${ECHO_T}yes" >&6
4667 else
4668 echo "$as_me:$LINENO: result: no" >&5
4669echo "${ECHO_T}no" >&6
4670 fi
4671
4672
4673 enablestring=
4674 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4675echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4676 no_cache=0
4677 # Check whether --enable-http or --disable-http was given.
4678if test "${enable_http+set}" = set; then
4679 enableval="$enable_http"
4680
4681 if test "$enableval" = yes; then
4682 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4683 else
4684 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4685 fi
4686
4687else
4688
4689 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4690 if test "x$LINE" != x ; then
4691 eval "DEFAULT_$LINE"
4692 else
4693 no_cache=1
4694 fi
4695
4696 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4697
4698fi;
4699
4700 eval "$ac_cv_use_http"
4701 if test "$no_cache" != 1; then
4702 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4703 fi
4704
4705 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4706 echo "$as_me:$LINENO: result: yes" >&5
4707echo "${ECHO_T}yes" >&6
4708 else
4709 echo "$as_me:$LINENO: result: no" >&5
4710echo "${ECHO_T}no" >&6
4711 fi
4712
4713
4714 enablestring=
4715 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4716echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4717 no_cache=0
4718 # Check whether --enable-fileproto or --disable-fileproto was given.
4719if test "${enable_fileproto+set}" = set; then
4720 enableval="$enable_fileproto"
4721
4722 if test "$enableval" = yes; then
4723 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4724 else
4725 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4726 fi
4727
4728else
4729
4730 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4731 if test "x$LINE" != x ; then
4732 eval "DEFAULT_$LINE"
4733 else
4734 no_cache=1
4735 fi
4736
4737 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4738
4739fi;
4740
4741 eval "$ac_cv_use_fileproto"
4742 if test "$no_cache" != 1; then
4743 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4744 fi
4745
4746 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4747 echo "$as_me:$LINENO: result: yes" >&5
4748echo "${ECHO_T}yes" >&6
4749 else
4750 echo "$as_me:$LINENO: result: no" >&5
4751echo "${ECHO_T}no" >&6
4752 fi
4753
4754
4755 enablestring=
4756 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4757echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4758 no_cache=0
4759 # Check whether --enable-sockets or --disable-sockets was given.
4760if test "${enable_sockets+set}" = set; then
4761 enableval="$enable_sockets"
4762
4763 if test "$enableval" = yes; then
4764 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4765 else
4766 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4767 fi
4768
4769else
4770
4771 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4772 if test "x$LINE" != x ; then
4773 eval "DEFAULT_$LINE"
4774 else
4775 no_cache=1
4776 fi
4777
4778 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4779
4780fi;
4781
4782 eval "$ac_cv_use_sockets"
4783 if test "$no_cache" != 1; then
4784 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4785 fi
4786
4787 if test "$wxUSE_SOCKETS" = yes; then
4788 echo "$as_me:$LINENO: result: yes" >&5
4789echo "${ECHO_T}yes" >&6
4790 else
4791 echo "$as_me:$LINENO: result: no" >&5
4792echo "${ECHO_T}no" >&6
4793 fi
4794
4795
4796 enablestring=
4797 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4798echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4799 no_cache=0
4800 # Check whether --enable-ole or --disable-ole was given.
4801if test "${enable_ole+set}" = set; then
4802 enableval="$enable_ole"
4803
4804 if test "$enableval" = yes; then
4805 ac_cv_use_ole='wxUSE_OLE=yes'
4806 else
4807 ac_cv_use_ole='wxUSE_OLE=no'
4808 fi
4809
4810else
4811
4812 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4813 if test "x$LINE" != x ; then
4814 eval "DEFAULT_$LINE"
4815 else
4816 no_cache=1
4817 fi
4818
4819 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4820
4821fi;
4822
4823 eval "$ac_cv_use_ole"
4824 if test "$no_cache" != 1; then
4825 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4826 fi
4827
4828 if test "$wxUSE_OLE" = yes; then
4829 echo "$as_me:$LINENO: result: yes" >&5
4830echo "${ECHO_T}yes" >&6
4831 else
4832 echo "$as_me:$LINENO: result: no" >&5
4833echo "${ECHO_T}no" >&6
4834 fi
4835
4836
4837 enablestring=
4838 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4839echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4840 no_cache=0
4841 # Check whether --enable-dataobj or --disable-dataobj was given.
4842if test "${enable_dataobj+set}" = set; then
4843 enableval="$enable_dataobj"
4844
4845 if test "$enableval" = yes; then
4846 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4847 else
4848 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4849 fi
4850
4851else
4852
4853 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4854 if test "x$LINE" != x ; then
4855 eval "DEFAULT_$LINE"
4856 else
4857 no_cache=1
4858 fi
4859
4860 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4861
4862fi;
4863
4864 eval "$ac_cv_use_dataobj"
4865 if test "$no_cache" != 1; then
4866 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4867 fi
4868
4869 if test "$wxUSE_DATAOBJ" = yes; then
4870 echo "$as_me:$LINENO: result: yes" >&5
4871echo "${ECHO_T}yes" >&6
4872 else
4873 echo "$as_me:$LINENO: result: no" >&5
4874echo "${ECHO_T}no" >&6
4875 fi
4876
4877
4878
4879 enablestring=
4880 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4881echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4882 no_cache=0
4883 # Check whether --enable-ipc or --disable-ipc was given.
4884if test "${enable_ipc+set}" = set; then
4885 enableval="$enable_ipc"
4886
4887 if test "$enableval" = yes; then
4888 ac_cv_use_ipc='wxUSE_IPC=yes'
4889 else
4890 ac_cv_use_ipc='wxUSE_IPC=no'
4891 fi
4892
4893else
4894
4895 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4896 if test "x$LINE" != x ; then
4897 eval "DEFAULT_$LINE"
4898 else
4899 no_cache=1
4900 fi
4901
4902 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4903
4904fi;
4905
4906 eval "$ac_cv_use_ipc"
4907 if test "$no_cache" != 1; then
4908 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4909 fi
4910
4911 if test "$wxUSE_IPC" = yes; then
4912 echo "$as_me:$LINENO: result: yes" >&5
4913echo "${ECHO_T}yes" >&6
4914 else
4915 echo "$as_me:$LINENO: result: no" >&5
4916echo "${ECHO_T}no" >&6
4917 fi
4918
4919
4920
4921 enablestring=
4922 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4923echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4924 no_cache=0
4925 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4926if test "${enable_apple_ieee+set}" = set; then
4927 enableval="$enable_apple_ieee"
4928
4929 if test "$enableval" = yes; then
4930 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4931 else
4932 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4933 fi
4934
4935else
4936
4937 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4938 if test "x$LINE" != x ; then
4939 eval "DEFAULT_$LINE"
4940 else
4941 no_cache=1
4942 fi
4943
4944 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4945
4946fi;
4947
4948 eval "$ac_cv_use_apple_ieee"
4949 if test "$no_cache" != 1; then
4950 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4951 fi
4952
4953 if test "$wxUSE_APPLE_IEEE" = yes; then
4954 echo "$as_me:$LINENO: result: yes" >&5
4955echo "${ECHO_T}yes" >&6
4956 else
4957 echo "$as_me:$LINENO: result: no" >&5
4958echo "${ECHO_T}no" >&6
4959 fi
4960
4961
81f90336
MW
4962 enablestring=
4963 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
4964echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
4965 no_cache=0
4966 # Check whether --enable-arcstream or --disable-arcstream was given.
4967if test "${enable_arcstream+set}" = set; then
4968 enableval="$enable_arcstream"
4969
4970 if test "$enableval" = yes; then
9e8e867f 4971 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
81f90336 4972 else
9e8e867f 4973 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
81f90336
MW
4974 fi
4975
4976else
4977
9e8e867f 4978 LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
81f90336
MW
4979 if test "x$LINE" != x ; then
4980 eval "DEFAULT_$LINE"
4981 else
4982 no_cache=1
4983 fi
4984
9e8e867f 4985 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
81f90336
MW
4986
4987fi;
4988
4989 eval "$ac_cv_use_arcstream"
4990 if test "$no_cache" != 1; then
4991 echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
4992 fi
4993
9e8e867f 4994 if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
81f90336
MW
4995 echo "$as_me:$LINENO: result: yes" >&5
4996echo "${ECHO_T}yes" >&6
4997 else
4998 echo "$as_me:$LINENO: result: no" >&5
4999echo "${ECHO_T}no" >&6
5000 fi
5001
5002
a848cd7e 5003 enablestring=
36b6448c
VZ
5004 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
5005echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
a848cd7e 5006 no_cache=0
36b6448c
VZ
5007 # Check whether --enable-backtrace or --disable-backtrace was given.
5008if test "${enable_backtrace+set}" = set; then
5009 enableval="$enable_backtrace"
a848cd7e
SC
5010
5011 if test "$enableval" = yes; then
36b6448c 5012 ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
a848cd7e 5013 else
36b6448c 5014 ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
a848cd7e
SC
5015 fi
5016
5017else
5018
36b6448c 5019 LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
a848cd7e
SC
5020 if test "x$LINE" != x ; then
5021 eval "DEFAULT_$LINE"
5022 else
5023 no_cache=1
5024 fi
5025
36b6448c 5026 ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
a848cd7e
SC
5027
5028fi;
5029
36b6448c 5030 eval "$ac_cv_use_backtrace"
a848cd7e 5031 if test "$no_cache" != 1; then
36b6448c 5032 echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5033 fi
5034
36b6448c 5035 if test "$wxUSE_STACKWALKER" = yes; then
a848cd7e
SC
5036 echo "$as_me:$LINENO: result: yes" >&5
5037echo "${ECHO_T}yes" >&6
5038 else
5039 echo "$as_me:$LINENO: result: no" >&5
5040echo "${ECHO_T}no" >&6
5041 fi
5042
5043
eaff0f0d 5044 enablestring=
36b6448c
VZ
5045 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
5046echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eaff0f0d 5047 no_cache=0
36b6448c
VZ
5048 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
5049if test "${enable_catch_segvs+set}" = set; then
5050 enableval="$enable_catch_segvs"
eaff0f0d
VZ
5051
5052 if test "$enableval" = yes; then
36b6448c 5053 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
eaff0f0d 5054 else
36b6448c 5055 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
eaff0f0d
VZ
5056 fi
5057
5058else
5059
36b6448c 5060 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
eaff0f0d
VZ
5061 if test "x$LINE" != x ; then
5062 eval "DEFAULT_$LINE"
5063 else
5064 no_cache=1
5065 fi
5066
36b6448c 5067 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eaff0f0d
VZ
5068
5069fi;
5070
36b6448c 5071 eval "$ac_cv_use_catch_segvs"
eaff0f0d 5072 if test "$no_cache" != 1; then
36b6448c 5073 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
eaff0f0d
VZ
5074 fi
5075
36b6448c 5076 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
eaff0f0d
VZ
5077 echo "$as_me:$LINENO: result: yes" >&5
5078echo "${ECHO_T}yes" >&6
5079 else
5080 echo "$as_me:$LINENO: result: no" >&5
5081echo "${ECHO_T}no" >&6
5082 fi
5083
5084
a848cd7e
SC
5085 enablestring=
5086 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
5087echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
5088 no_cache=0
5089 # Check whether --enable-cmdline or --disable-cmdline was given.
5090if test "${enable_cmdline+set}" = set; then
5091 enableval="$enable_cmdline"
5092
5093 if test "$enableval" = yes; then
5094 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
5095 else
5096 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
5097 fi
5098
5099else
5100
5101 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
5102 if test "x$LINE" != x ; then
5103 eval "DEFAULT_$LINE"
5104 else
5105 no_cache=1
5106 fi
5107
5108 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
5109
5110fi;
5111
5112 eval "$ac_cv_use_cmdline"
5113 if test "$no_cache" != 1; then
5114 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
5115 fi
5116
5117 if test "$wxUSE_CMDLINE_PARSER" = yes; then
5118 echo "$as_me:$LINENO: result: yes" >&5
5119echo "${ECHO_T}yes" >&6
5120 else
5121 echo "$as_me:$LINENO: result: no" >&5
5122echo "${ECHO_T}no" >&6
5123 fi
5124
5125
5126 enablestring=
5127 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
5128echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
5129 no_cache=0
5130 # Check whether --enable-datetime or --disable-datetime was given.
5131if test "${enable_datetime+set}" = set; then
5132 enableval="$enable_datetime"
5133
5134 if test "$enableval" = yes; then
5135 ac_cv_use_datetime='wxUSE_DATETIME=yes'
5136 else
5137 ac_cv_use_datetime='wxUSE_DATETIME=no'
5138 fi
5139
5140else
5141
5142 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
5143 if test "x$LINE" != x ; then
5144 eval "DEFAULT_$LINE"
5145 else
5146 no_cache=1
5147 fi
5148
5149 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
5150
5151fi;
5152
5153 eval "$ac_cv_use_datetime"
5154 if test "$no_cache" != 1; then
5155 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
5156 fi
5157
5158 if test "$wxUSE_DATETIME" = yes; then
5159 echo "$as_me:$LINENO: result: yes" >&5
5160echo "${ECHO_T}yes" >&6
5161 else
5162 echo "$as_me:$LINENO: result: no" >&5
5163echo "${ECHO_T}no" >&6
5164 fi
5165
5166
36b6448c
VZ
5167 enablestring=
5168 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
5169echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
5170 no_cache=0
5171 # Check whether --enable-debugreport or --disable-debugreport was given.
5172if test "${enable_debugreport+set}" = set; then
5173 enableval="$enable_debugreport"
5174
5175 if test "$enableval" = yes; then
5176 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
5177 else
5178 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
5179 fi
5180
5181else
5182
5183 LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
5184 if test "x$LINE" != x ; then
5185 eval "DEFAULT_$LINE"
5186 else
5187 no_cache=1
5188 fi
5189
5190 ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
5191
5192fi;
5193
5194 eval "$ac_cv_use_debugreport"
5195 if test "$no_cache" != 1; then
5196 echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
5197 fi
5198
5199 if test "$wxUSE_DEBUGREPORT" = yes; then
5200 echo "$as_me:$LINENO: result: yes" >&5
5201echo "${ECHO_T}yes" >&6
5202 else
5203 echo "$as_me:$LINENO: result: no" >&5
5204echo "${ECHO_T}no" >&6
5205 fi
5206
5207
a848cd7e
SC
5208 enablestring=
5209 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
5210echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
5211 no_cache=0
5212 # Check whether --enable-dialupman or --disable-dialupman was given.
5213if test "${enable_dialupman+set}" = set; then
5214 enableval="$enable_dialupman"
5215
5216 if test "$enableval" = yes; then
5217 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
5218 else
5219 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
5220 fi
5221
5222else
5223
5224 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
5225 if test "x$LINE" != x ; then
5226 eval "DEFAULT_$LINE"
5227 else
5228 no_cache=1
5229 fi
5230
5231 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
5232
5233fi;
5234
5235 eval "$ac_cv_use_dialupman"
5236 if test "$no_cache" != 1; then
5237 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
5238 fi
5239
5240 if test "$wxUSE_DIALUP_MANAGER" = yes; then
5241 echo "$as_me:$LINENO: result: yes" >&5
5242echo "${ECHO_T}yes" >&6
5243 else
5244 echo "$as_me:$LINENO: result: no" >&5
5245echo "${ECHO_T}no" >&6
5246 fi
5247
5248
5249 enablestring=
5250 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
5251echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
5252 no_cache=0
5253 # Check whether --enable-dynlib or --disable-dynlib was given.
5254if test "${enable_dynlib+set}" = set; then
5255 enableval="$enable_dynlib"
5256
5257 if test "$enableval" = yes; then
5258 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
5259 else
5260 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
5261 fi
5262
5263else
5264
5265 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
5266 if test "x$LINE" != x ; then
5267 eval "DEFAULT_$LINE"
5268 else
5269 no_cache=1
5270 fi
5271
5272 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
5273
5274fi;
5275
5276 eval "$ac_cv_use_dynlib"
5277 if test "$no_cache" != 1; then
5278 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
5279 fi
5280
5281 if test "$wxUSE_DYNLIB_CLASS" = yes; then
5282 echo "$as_me:$LINENO: result: yes" >&5
5283echo "${ECHO_T}yes" >&6
5284 else
5285 echo "$as_me:$LINENO: result: no" >&5
5286echo "${ECHO_T}no" >&6
5287 fi
5288
5289
5290 enablestring=
5291 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
5292echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
5293 no_cache=0
5294 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
5295if test "${enable_dynamicloader+set}" = set; then
5296 enableval="$enable_dynamicloader"
5297
5298 if test "$enableval" = yes; then
5299 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
5300 else
5301 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
5302 fi
5303
5304else
5305
5306 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
5307 if test "x$LINE" != x ; then
5308 eval "DEFAULT_$LINE"
5309 else
5310 no_cache=1
5311 fi
5312
5313 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5314
5315fi;
5316
5317 eval "$ac_cv_use_dynamicloader"
5318 if test "$no_cache" != 1; then
5319 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5320 fi
5321
5322 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5323 echo "$as_me:$LINENO: result: yes" >&5
5324echo "${ECHO_T}yes" >&6
5325 else
5326 echo "$as_me:$LINENO: result: no" >&5
5327echo "${ECHO_T}no" >&6
5328 fi
5329
5330
5331 enablestring=
5332 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5333echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5334 no_cache=0
5335 # Check whether --enable-exceptions or --disable-exceptions was given.
5336if test "${enable_exceptions+set}" = set; then
5337 enableval="$enable_exceptions"
5338
5339 if test "$enableval" = yes; then
5340 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5341 else
5342 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5343 fi
5344
5345else
5346
5347 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5348 if test "x$LINE" != x ; then
5349 eval "DEFAULT_$LINE"
5350 else
5351 no_cache=1
5352 fi
5353
5354 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5355
5356fi;
5357
5358 eval "$ac_cv_use_exceptions"
5359 if test "$no_cache" != 1; then
5360 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5361 fi
5362
5363 if test "$wxUSE_EXCEPTIONS" = yes; then
5364 echo "$as_me:$LINENO: result: yes" >&5
5365echo "${ECHO_T}yes" >&6
5366 else
5367 echo "$as_me:$LINENO: result: no" >&5
5368echo "${ECHO_T}no" >&6
5369 fi
5370
5371
5372 enablestring=
5373 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5374echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5375 no_cache=0
5376 # Check whether --enable-ffile or --disable-ffile was given.
5377if test "${enable_ffile+set}" = set; then
5378 enableval="$enable_ffile"
5379
5380 if test "$enableval" = yes; then
5381 ac_cv_use_ffile='wxUSE_FFILE=yes'
5382 else
5383 ac_cv_use_ffile='wxUSE_FFILE=no'
5384 fi
5385
5386else
5387
5388 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5389 if test "x$LINE" != x ; then
5390 eval "DEFAULT_$LINE"
5391 else
5392 no_cache=1
5393 fi
5394
5395 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5396
5397fi;
5398
5399 eval "$ac_cv_use_ffile"
5400 if test "$no_cache" != 1; then
5401 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5402 fi
5403
5404 if test "$wxUSE_FFILE" = yes; then
5405 echo "$as_me:$LINENO: result: yes" >&5
5406echo "${ECHO_T}yes" >&6
5407 else
5408 echo "$as_me:$LINENO: result: no" >&5
5409echo "${ECHO_T}no" >&6
5410 fi
5411
5412
5413 enablestring=
5414 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5415echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5416 no_cache=0
5417 # Check whether --enable-file or --disable-file was given.
5418if test "${enable_file+set}" = set; then
5419 enableval="$enable_file"
5420
5421 if test "$enableval" = yes; then
5422 ac_cv_use_file='wxUSE_FILE=yes'
5423 else
5424 ac_cv_use_file='wxUSE_FILE=no'
5425 fi
5426
5427else
5428
5429 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5430 if test "x$LINE" != x ; then
5431 eval "DEFAULT_$LINE"
5432 else
5433 no_cache=1
5434 fi
5435
5436 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5437
5438fi;
5439
5440 eval "$ac_cv_use_file"
5441 if test "$no_cache" != 1; then
5442 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5443 fi
5444
5445 if test "$wxUSE_FILE" = yes; then
5446 echo "$as_me:$LINENO: result: yes" >&5
5447echo "${ECHO_T}yes" >&6
5448 else
5449 echo "$as_me:$LINENO: result: no" >&5
5450echo "${ECHO_T}no" >&6
5451 fi
5452
5453
5454 enablestring=
5455 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5456echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5457 no_cache=0
5458 # Check whether --enable-filesystem or --disable-filesystem was given.
5459if test "${enable_filesystem+set}" = set; then
5460 enableval="$enable_filesystem"
5461
5462 if test "$enableval" = yes; then
5463 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5464 else
5465 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5466 fi
5467
5468else
5469
5470 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5471 if test "x$LINE" != x ; then
5472 eval "DEFAULT_$LINE"
5473 else
5474 no_cache=1
5475 fi
5476
5477 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5478
5479fi;
5480
5481 eval "$ac_cv_use_filesystem"
5482 if test "$no_cache" != 1; then
5483 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5484 fi
5485
5486 if test "$wxUSE_FILESYSTEM" = yes; then
5487 echo "$as_me:$LINENO: result: yes" >&5
5488echo "${ECHO_T}yes" >&6
5489 else
5490 echo "$as_me:$LINENO: result: no" >&5
5491echo "${ECHO_T}no" >&6
5492 fi
5493
5494
5495 enablestring=
5496 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5497echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5498 no_cache=0
5499 # Check whether --enable-fontmap or --disable-fontmap was given.
5500if test "${enable_fontmap+set}" = set; then
5501 enableval="$enable_fontmap"
5502
5503 if test "$enableval" = yes; then
5504 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5505 else
5506 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5507 fi
5508
5509else
5510
5511 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5512 if test "x$LINE" != x ; then
5513 eval "DEFAULT_$LINE"
5514 else
5515 no_cache=1
5516 fi
5517
5518 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5519
5520fi;
5521
5522 eval "$ac_cv_use_fontmap"
5523 if test "$no_cache" != 1; then
5524 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5525 fi
5526
5527 if test "$wxUSE_FONTMAP" = yes; then
5528 echo "$as_me:$LINENO: result: yes" >&5
5529echo "${ECHO_T}yes" >&6
5530 else
5531 echo "$as_me:$LINENO: result: no" >&5
5532echo "${ECHO_T}no" >&6
5533 fi
5534
5535
5536 enablestring=
5537 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5538echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5539 no_cache=0
5540 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5541if test "${enable_fs_inet+set}" = set; then
5542 enableval="$enable_fs_inet"
5543
5544 if test "$enableval" = yes; then
5545 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5546 else
5547 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5548 fi
5549
5550else
5551
5552 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5553 if test "x$LINE" != x ; then
5554 eval "DEFAULT_$LINE"
5555 else
5556 no_cache=1
5557 fi
5558
5559 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5560
5561fi;
5562
5563 eval "$ac_cv_use_fs_inet"
5564 if test "$no_cache" != 1; then
5565 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5566 fi
5567
5568 if test "$wxUSE_FS_INET" = yes; then
5569 echo "$as_me:$LINENO: result: yes" >&5
5570echo "${ECHO_T}yes" >&6
5571 else
5572 echo "$as_me:$LINENO: result: no" >&5
5573echo "${ECHO_T}no" >&6
5574 fi
5575
5576
5577 enablestring=
5578 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5579echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5580 no_cache=0
5581 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5582if test "${enable_fs_zip+set}" = set; then
5583 enableval="$enable_fs_zip"
5584
5585 if test "$enableval" = yes; then
5586 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5587 else
5588 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5589 fi
5590
5591else
5592
5593 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5594 if test "x$LINE" != x ; then
5595 eval "DEFAULT_$LINE"
5596 else
5597 no_cache=1
5598 fi
5599
5600 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5601
5602fi;
5603
5604 eval "$ac_cv_use_fs_zip"
5605 if test "$no_cache" != 1; then
5606 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5607 fi
5608
5609 if test "$wxUSE_FS_ZIP" = yes; then
5610 echo "$as_me:$LINENO: result: yes" >&5
5611echo "${ECHO_T}yes" >&6
5612 else
5613 echo "$as_me:$LINENO: result: no" >&5
5614echo "${ECHO_T}no" >&6
5615 fi
5616
5617
5618 enablestring=
5619 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5620echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5621 no_cache=0
5622 # Check whether --enable-geometry or --disable-geometry was given.
5623if test "${enable_geometry+set}" = set; then
5624 enableval="$enable_geometry"
5625
5626 if test "$enableval" = yes; then
5627 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5628 else
5629 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5630 fi
5631
5632else
5633
5634 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5635 if test "x$LINE" != x ; then
5636 eval "DEFAULT_$LINE"
5637 else
5638 no_cache=1
5639 fi
5640
5641 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5642
5643fi;
5644
5645 eval "$ac_cv_use_geometry"
5646 if test "$no_cache" != 1; then
5647 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5648 fi
5649
5650 if test "$wxUSE_GEOMETRY" = yes; then
5651 echo "$as_me:$LINENO: result: yes" >&5
5652echo "${ECHO_T}yes" >&6
5653 else
5654 echo "$as_me:$LINENO: result: no" >&5
5655echo "${ECHO_T}no" >&6
5656 fi
5657
5658
5659 enablestring=
5660 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5661echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5662 no_cache=0
5663 # Check whether --enable-log or --disable-log was given.
5664if test "${enable_log+set}" = set; then
5665 enableval="$enable_log"
5666
5667 if test "$enableval" = yes; then
5668 ac_cv_use_log='wxUSE_LOG=yes'
5669 else
5670 ac_cv_use_log='wxUSE_LOG=no'
5671 fi
5672
5673else
5674
5675 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5676 if test "x$LINE" != x ; then
5677 eval "DEFAULT_$LINE"
5678 else
5679 no_cache=1
5680 fi
5681
5682 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5683
5684fi;
5685
5686 eval "$ac_cv_use_log"
5687 if test "$no_cache" != 1; then
5688 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5689 fi
5690
5691 if test "$wxUSE_LOG" = yes; then
5692 echo "$as_me:$LINENO: result: yes" >&5
5693echo "${ECHO_T}yes" >&6
5694 else
5695 echo "$as_me:$LINENO: result: no" >&5
5696echo "${ECHO_T}no" >&6
5697 fi
5698
5699
5700 enablestring=
5701 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5702echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5703 no_cache=0
5704 # Check whether --enable-longlong or --disable-longlong was given.
5705if test "${enable_longlong+set}" = set; then
5706 enableval="$enable_longlong"
5707
5708 if test "$enableval" = yes; then
5709 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5710 else
5711 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5712 fi
5713
5714else
5715
5716 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5717 if test "x$LINE" != x ; then
5718 eval "DEFAULT_$LINE"
5719 else
5720 no_cache=1
5721 fi
5722
5723 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5724
5725fi;
5726
5727 eval "$ac_cv_use_longlong"
5728 if test "$no_cache" != 1; then
5729 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5730 fi
5731
5732 if test "$wxUSE_LONGLONG" = yes; then
5733 echo "$as_me:$LINENO: result: yes" >&5
5734echo "${ECHO_T}yes" >&6
5735 else
5736 echo "$as_me:$LINENO: result: no" >&5
5737echo "${ECHO_T}no" >&6
5738 fi
5739
5740
5741 enablestring=
5742 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5743echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5744 no_cache=0
5745 # Check whether --enable-mimetype or --disable-mimetype was given.
5746if test "${enable_mimetype+set}" = set; then
5747 enableval="$enable_mimetype"
5748
5749 if test "$enableval" = yes; then
5750 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5751 else
5752 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5753 fi
5754
5755else
5756
5757 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5758 if test "x$LINE" != x ; then
5759 eval "DEFAULT_$LINE"
5760 else
5761 no_cache=1
5762 fi
5763
5764 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5765
5766fi;
5767
5768 eval "$ac_cv_use_mimetype"
5769 if test "$no_cache" != 1; then
5770 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5771 fi
5772
5773 if test "$wxUSE_MIMETYPE" = yes; then
5774 echo "$as_me:$LINENO: result: yes" >&5
5775echo "${ECHO_T}yes" >&6
5776 else
5777 echo "$as_me:$LINENO: result: no" >&5
5778echo "${ECHO_T}no" >&6
5779 fi
5780
5781
5782 enablestring=
5783 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5784echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5785 no_cache=0
5786 # Check whether --enable-mslu or --disable-mslu was given.
5787if test "${enable_mslu+set}" = set; then
5788 enableval="$enable_mslu"
5789
5790 if test "$enableval" = yes; then
5791 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5792 else
5793 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5794 fi
5795
5796else
5797
5798 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5799 if test "x$LINE" != x ; then
5800 eval "DEFAULT_$LINE"
5801 else
5802 no_cache=1
5803 fi
5804
5805 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5806
5807fi;
5808
5809 eval "$ac_cv_use_mslu"
5810 if test "$no_cache" != 1; then
5811 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5812 fi
5813
5814 if test "$wxUSE_UNICODE_MSLU" = yes; then
5815 echo "$as_me:$LINENO: result: yes" >&5
5816echo "${ECHO_T}yes" >&6
5817 else
5818 echo "$as_me:$LINENO: result: no" >&5
5819echo "${ECHO_T}no" >&6
5820 fi
5821
5822
5823 enablestring=
5824 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5825echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5826 no_cache=0
5827 # Check whether --enable-snglinst or --disable-snglinst was given.
5828if test "${enable_snglinst+set}" = set; then
5829 enableval="$enable_snglinst"
5830
5831 if test "$enableval" = yes; then
5832 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5833 else
5834 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5835 fi
5836
5837else
5838
5839 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5840 if test "x$LINE" != x ; then
5841 eval "DEFAULT_$LINE"
5842 else
5843 no_cache=1
5844 fi
5845
5846 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5847
5848fi;
5849
5850 eval "$ac_cv_use_snglinst"
5851 if test "$no_cache" != 1; then
5852 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5853 fi
5854
5855 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5856 echo "$as_me:$LINENO: result: yes" >&5
5857echo "${ECHO_T}yes" >&6
5858 else
5859 echo "$as_me:$LINENO: result: no" >&5
5860echo "${ECHO_T}no" >&6
5861 fi
5862
5863
5864 enablestring=
07158944
VZ
5865 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5866echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
a848cd7e 5867 no_cache=0
07158944
VZ
5868 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5869if test "${enable_std_iostreams+set}" = set; then
5870 enableval="$enable_std_iostreams"
a848cd7e
SC
5871
5872 if test "$enableval" = yes; then
07158944 5873 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
a848cd7e 5874 else
07158944 5875 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
a848cd7e
SC
5876 fi
5877
5878else
5879
07158944 5880 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
a848cd7e
SC
5881 if test "x$LINE" != x ; then
5882 eval "DEFAULT_$LINE"
5883 else
5884 no_cache=1
5885 fi
5886
07158944 5887 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
a848cd7e
SC
5888
5889fi;
5890
07158944 5891 eval "$ac_cv_use_std_iostreams"
a848cd7e 5892 if test "$no_cache" != 1; then
07158944 5893 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5894 fi
5895
07158944 5896 if test "$wxUSE_STD_IOSTREAM" = yes; then
a848cd7e
SC
5897 echo "$as_me:$LINENO: result: yes" >&5
5898echo "${ECHO_T}yes" >&6
5899 else
5900 echo "$as_me:$LINENO: result: no" >&5
5901echo "${ECHO_T}no" >&6
5902 fi
5903
5904
59746b65
MW
5905 enablestring=
5906 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
5907echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6
5908 no_cache=0
5909 # Check whether --enable-std_string or --disable-std_string was given.
5910if test "${enable_std_string+set}" = set; then
5911 enableval="$enable_std_string"
5912
5913 if test "$enableval" = yes; then
5914 ac_cv_use_std_string='wxUSE_STD_STRING=yes'
5915 else
5916 ac_cv_use_std_string='wxUSE_STD_STRING=no'
5917 fi
5918
5919else
5920
5921 LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}`
5922 if test "x$LINE" != x ; then
5923 eval "DEFAULT_$LINE"
5924 else
5925 no_cache=1
5926 fi
5927
5928 ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING
5929
5930fi;
5931
5932 eval "$ac_cv_use_std_string"
5933 if test "$no_cache" != 1; then
5934 echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp
5935 fi
5936
5937 if test "$wxUSE_STD_STRING" = yes; then
5938 echo "$as_me:$LINENO: result: yes" >&5
5939echo "${ECHO_T}yes" >&6
5940 else
5941 echo "$as_me:$LINENO: result: no" >&5
5942echo "${ECHO_T}no" >&6
5943 fi
5944
5945
a848cd7e 5946 enablestring=
07158944
VZ
5947 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
5948echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
a848cd7e 5949 no_cache=0
07158944
VZ
5950 # Check whether --enable-stdpaths or --disable-stdpaths was given.
5951if test "${enable_stdpaths+set}" = set; then
5952 enableval="$enable_stdpaths"
a848cd7e
SC
5953
5954 if test "$enableval" = yes; then
07158944 5955 ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
a848cd7e 5956 else
07158944 5957 ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
a848cd7e
SC
5958 fi
5959
5960else
5961
07158944 5962 LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
a848cd7e
SC
5963 if test "x$LINE" != x ; then
5964 eval "DEFAULT_$LINE"
5965 else
5966 no_cache=1
5967 fi
5968
07158944 5969 ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
a848cd7e
SC
5970
5971fi;
5972
07158944 5973 eval "$ac_cv_use_stdpaths"
a848cd7e 5974 if test "$no_cache" != 1; then
07158944 5975 echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5976 fi
5977
07158944 5978 if test "$wxUSE_STDPATHS" = yes; then
a848cd7e
SC
5979 echo "$as_me:$LINENO: result: yes" >&5
5980echo "${ECHO_T}yes" >&6
5981 else
5982 echo "$as_me:$LINENO: result: no" >&5
5983echo "${ECHO_T}no" >&6
5984 fi
5985
5986
5987 enablestring=
5988 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5989echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5990 no_cache=0
5991 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5992if test "${enable_stopwatch+set}" = set; then
5993 enableval="$enable_stopwatch"
5994
5995 if test "$enableval" = yes; then
5996 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5997 else
5998 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5999 fi
6000
6001else
6002
6003 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
6004 if test "x$LINE" != x ; then
6005 eval "DEFAULT_$LINE"
6006 else
6007 no_cache=1
6008 fi
6009
6010 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
6011
6012fi;
6013
6014 eval "$ac_cv_use_stopwatch"
6015 if test "$no_cache" != 1; then
6016 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
6017 fi
6018
6019 if test "$wxUSE_STOPWATCH" = yes; then
6020 echo "$as_me:$LINENO: result: yes" >&5
6021echo "${ECHO_T}yes" >&6
6022 else
6023 echo "$as_me:$LINENO: result: no" >&5
6024echo "${ECHO_T}no" >&6
6025 fi
6026
6027
07158944
VZ
6028 enablestring=
6029 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
6030echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
6031 no_cache=0
6032 # Check whether --enable-streams or --disable-streams was given.
6033if test "${enable_streams+set}" = set; then
6034 enableval="$enable_streams"
6035
6036 if test "$enableval" = yes; then
6037 ac_cv_use_streams='wxUSE_STREAMS=yes'
6038 else
6039 ac_cv_use_streams='wxUSE_STREAMS=no'
6040 fi
6041
6042else
6043
6044 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
6045 if test "x$LINE" != x ; then
6046 eval "DEFAULT_$LINE"
6047 else
6048 no_cache=1
6049 fi
6050
6051 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
6052
6053fi;
6054
6055 eval "$ac_cv_use_streams"
6056 if test "$no_cache" != 1; then
6057 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
6058 fi
6059
6060 if test "$wxUSE_STREAMS" = yes; then
6061 echo "$as_me:$LINENO: result: yes" >&5
6062echo "${ECHO_T}yes" >&6
6063 else
6064 echo "$as_me:$LINENO: result: no" >&5
6065echo "${ECHO_T}no" >&6
6066 fi
6067
6068
a848cd7e
SC
6069 enablestring=
6070 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
6071echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
6072 no_cache=0
6073 # Check whether --enable-system_options or --disable-system_options was given.
6074if test "${enable_system_options+set}" = set; then
6075 enableval="$enable_system_options"
6076
6077 if test "$enableval" = yes; then
6078 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
6079 else
6080 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
6081 fi
6082
6083else
6084
6085 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
6086 if test "x$LINE" != x ; then
6087 eval "DEFAULT_$LINE"
6088 else
6089 no_cache=1
6090 fi
6091
6092 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
6093
6094fi;
6095
6096 eval "$ac_cv_use_system_options"
6097 if test "$no_cache" != 1; then
6098 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
6099 fi
6100
6101 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
6102 echo "$as_me:$LINENO: result: yes" >&5
6103echo "${ECHO_T}yes" >&6
6104 else
6105 echo "$as_me:$LINENO: result: no" >&5
6106echo "${ECHO_T}no" >&6
6107 fi
6108
6109
6110 enablestring=
6111 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
6112echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
6113 no_cache=0
6114 # Check whether --enable-textbuf or --disable-textbuf was given.
6115if test "${enable_textbuf+set}" = set; then
6116 enableval="$enable_textbuf"
6117
6118 if test "$enableval" = yes; then
6119 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
6120 else
6121 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
6122 fi
6123
6124else
6125
6126 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
6127 if test "x$LINE" != x ; then
6128 eval "DEFAULT_$LINE"
6129 else
6130 no_cache=1
6131 fi
6132
6133 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
6134
6135fi;
6136
6137 eval "$ac_cv_use_textbuf"
6138 if test "$no_cache" != 1; then
6139 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
6140 fi
6141
6142 if test "$wxUSE_TEXTBUFFER" = yes; then
6143 echo "$as_me:$LINENO: result: yes" >&5
6144echo "${ECHO_T}yes" >&6
6145 else
6146 echo "$as_me:$LINENO: result: no" >&5
6147echo "${ECHO_T}no" >&6
6148 fi
6149
6150
6151 enablestring=
6152 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
6153echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
6154 no_cache=0
6155 # Check whether --enable-textfile or --disable-textfile was given.
6156if test "${enable_textfile+set}" = set; then
6157 enableval="$enable_textfile"
6158
6159 if test "$enableval" = yes; then
6160 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
6161 else
6162 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
6163 fi
6164
6165else
6166
6167 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
6168 if test "x$LINE" != x ; then
6169 eval "DEFAULT_$LINE"
6170 else
6171 no_cache=1
6172 fi
6173
6174 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
6175
6176fi;
6177
6178 eval "$ac_cv_use_textfile"
6179 if test "$no_cache" != 1; then
6180 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
6181 fi
6182
6183 if test "$wxUSE_TEXTFILE" = yes; then
6184 echo "$as_me:$LINENO: result: yes" >&5
6185echo "${ECHO_T}yes" >&6
6186 else
6187 echo "$as_me:$LINENO: result: no" >&5
6188echo "${ECHO_T}no" >&6
6189 fi
6190
6191
6192 enablestring=
6193 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
6194echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
6195 no_cache=0
6196 # Check whether --enable-timer or --disable-timer was given.
6197if test "${enable_timer+set}" = set; then
6198 enableval="$enable_timer"
6199
6200 if test "$enableval" = yes; then
6201 ac_cv_use_timer='wxUSE_TIMER=yes'
6202 else
6203 ac_cv_use_timer='wxUSE_TIMER=no'
6204 fi
6205
6206else
6207
6208 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
6209 if test "x$LINE" != x ; then
6210 eval "DEFAULT_$LINE"
6211 else
6212 no_cache=1
6213 fi
6214
6215 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
6216
6217fi;
6218
6219 eval "$ac_cv_use_timer"
6220 if test "$no_cache" != 1; then
6221 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
6222 fi
6223
6224 if test "$wxUSE_TIMER" = yes; then
6225 echo "$as_me:$LINENO: result: yes" >&5
6226echo "${ECHO_T}yes" >&6
6227 else
6228 echo "$as_me:$LINENO: result: no" >&5
6229echo "${ECHO_T}no" >&6
6230 fi
6231
6232
6233 enablestring=
6234 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
6235echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
6236 no_cache=0
6237 # Check whether --enable-unicode or --disable-unicode was given.
6238if test "${enable_unicode+set}" = set; then
6239 enableval="$enable_unicode"
6240
6241 if test "$enableval" = yes; then
6242 ac_cv_use_unicode='wxUSE_UNICODE=yes'
6243 else
6244 ac_cv_use_unicode='wxUSE_UNICODE=no'
6245 fi
6246
6247else
6248
6249 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
6250 if test "x$LINE" != x ; then
6251 eval "DEFAULT_$LINE"
6252 else
6253 no_cache=1
6254 fi
6255
6256 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
6257
6258fi;
6259
6260 eval "$ac_cv_use_unicode"
6261 if test "$no_cache" != 1; then
6262 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
6263 fi
6264
6265 if test "$wxUSE_UNICODE" = yes; then
6266 echo "$as_me:$LINENO: result: yes" >&5
6267echo "${ECHO_T}yes" >&6
6268 else
6269 echo "$as_me:$LINENO: result: no" >&5
6270echo "${ECHO_T}no" >&6
6271 fi
6272
6273
6274 enablestring=
6275 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
6276echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
6277 no_cache=0
6278 # Check whether --enable-sound or --disable-sound was given.
6279if test "${enable_sound+set}" = set; then
6280 enableval="$enable_sound"
6281
6282 if test "$enableval" = yes; then
6283 ac_cv_use_sound='wxUSE_SOUND=yes'
6284 else
6285 ac_cv_use_sound='wxUSE_SOUND=no'
6286 fi
6287
6288else
6289
6290 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
6291 if test "x$LINE" != x ; then
6292 eval "DEFAULT_$LINE"
6293 else
6294 no_cache=1
6295 fi
6296
6297 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
6298
6299fi;
6300
6301 eval "$ac_cv_use_sound"
6302 if test "$no_cache" != 1; then
6303 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
6304 fi
6305
6306 if test "$wxUSE_SOUND" = yes; then
6307 echo "$as_me:$LINENO: result: yes" >&5
6308echo "${ECHO_T}yes" >&6
6309 else
6310 echo "$as_me:$LINENO: result: no" >&5
6311echo "${ECHO_T}no" >&6
6312 fi
6313
6314
3b57de8b
RL
6315 enablestring=
6316 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
6317echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
6318 no_cache=0
6319 # Check whether --enable-mediactrl or --disable-mediactrl was given.
6320if test "${enable_mediactrl+set}" = set; then
6321 enableval="$enable_mediactrl"
6322
6323 if test "$enableval" = yes; then
6324 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
6325 else
6326 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6327 fi
6328
6329else
6330
6331 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6332 if test "x$LINE" != x ; then
6333 eval "DEFAULT_$LINE"
6334 else
6335 no_cache=1
6336 fi
6337
6338 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6339
6340fi;
6341
6342 eval "$ac_cv_use_mediactrl"
6343 if test "$no_cache" != 1; then
6344 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6345 fi
6346
6347 if test "$wxUSE_MEDIACTRL" = yes; then
6348 echo "$as_me:$LINENO: result: yes" >&5
6349echo "${ECHO_T}yes" >&6
6350 else
6351 echo "$as_me:$LINENO: result: no" >&5
6352echo "${ECHO_T}no" >&6
6353 fi
6354
6355
f10e38c4
VZ
6356 enablestring=
6357 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
6358echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6
6359 no_cache=0
6360 # Check whether --enable-gstreamer8 or --disable-gstreamer8 was given.
6361if test "${enable_gstreamer8+set}" = set; then
6362 enableval="$enable_gstreamer8"
6363
6364 if test "$enableval" = yes; then
6365 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
6366 else
6367 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
6368 fi
6369
6370else
6371
6372 LINE=`grep "wxUSE_GSTREAMER8" ${wx_arg_cache_file}`
6373 if test "x$LINE" != x ; then
6374 eval "DEFAULT_$LINE"
6375 else
6376 no_cache=1
6377 fi
6378
6379 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8='$DEFAULT_wxUSE_GSTREAMER8
6380
6381fi;
6382
6383 eval "$ac_cv_use_gstreamer8"
6384 if test "$no_cache" != 1; then
6385 echo $ac_cv_use_gstreamer8 >> ${wx_arg_cache_file}.tmp
6386 fi
6387
6388 if test "$wxUSE_GSTREAMER8" = yes; then
6389 echo "$as_me:$LINENO: result: yes" >&5
6390echo "${ECHO_T}yes" >&6
6391 else
6392 echo "$as_me:$LINENO: result: no" >&5
6393echo "${ECHO_T}no" >&6
6394 fi
6395
6396
a848cd7e 6397 enablestring=
8b6682b9
JS
6398 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printfposparam" >&5
6399echo $ECHO_N "checking for --${enablestring:-enable}-printfposparam... $ECHO_C" >&6
a848cd7e 6400 no_cache=0
8b6682b9
JS
6401 # Check whether --enable-printfposparam or --disable-printfposparam was given.
6402if test "${enable_printfposparam+set}" = set; then
6403 enableval="$enable_printfposparam"
a848cd7e
SC
6404
6405 if test "$enableval" = yes; then
8b6682b9 6406 ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes'
a848cd7e 6407 else
8b6682b9 6408 ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no'
a848cd7e
SC
6409 fi
6410
6411else
6412
8b6682b9 6413 LINE=`grep "wxUSE_PRINTF_POS_PARAMS" ${wx_arg_cache_file}`
a848cd7e
SC
6414 if test "x$LINE" != x ; then
6415 eval "DEFAULT_$LINE"
6416 else
6417 no_cache=1
6418 fi
6419
8b6682b9 6420 ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS='$DEFAULT_wxUSE_PRINTF_POS_PARAMS
a848cd7e
SC
6421
6422fi;
6423
8b6682b9 6424 eval "$ac_cv_use_printfposparam"
a848cd7e 6425 if test "$no_cache" != 1; then
8b6682b9 6426 echo $ac_cv_use_printfposparam >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
6427 fi
6428
8b6682b9 6429 if test "$wxUSE_PRINTF_POS_PARAMS" = yes; then
a848cd7e
SC
6430 echo "$as_me:$LINENO: result: yes" >&5
6431echo "${ECHO_T}yes" >&6
6432 else
6433 echo "$as_me:$LINENO: result: no" >&5
6434echo "${ECHO_T}no" >&6
6435 fi
6436
6437
6438 enablestring=
6439 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6440echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6441 no_cache=0
6442 # Check whether --enable-zipstream or --disable-zipstream was given.
6443if test "${enable_zipstream+set}" = set; then
6444 enableval="$enable_zipstream"
6445
6446 if test "$enableval" = yes; then
6447 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6448 else
6449 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6450 fi
6451
6452else
6453
6454 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6455 if test "x$LINE" != x ; then
6456 eval "DEFAULT_$LINE"
6457 else
6458 no_cache=1
6459 fi
6460
6461 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6462
6463fi;
6464
6465 eval "$ac_cv_use_zipstream"
6466 if test "$no_cache" != 1; then
6467 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6468 fi
6469
6470 if test "$wxUSE_ZIPSTREAM" = yes; then
6471 echo "$as_me:$LINENO: result: yes" >&5
6472echo "${ECHO_T}yes" >&6
6473 else
6474 echo "$as_me:$LINENO: result: no" >&5
6475echo "${ECHO_T}no" >&6
6476 fi
6477
6478
a848cd7e
SC
6479
6480 enablestring=
6481 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6482echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6483 no_cache=0
6484 # Check whether --enable-url or --disable-url was given.
6485if test "${enable_url+set}" = set; then
6486 enableval="$enable_url"
6487
6488 if test "$enableval" = yes; then
6489 ac_cv_use_url='wxUSE_URL=yes'
6490 else
6491 ac_cv_use_url='wxUSE_URL=no'
6492 fi
6493
6494else
6495
6496 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6497 if test "x$LINE" != x ; then
6498 eval "DEFAULT_$LINE"
6499 else
6500 no_cache=1
6501 fi
6502
6503 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6504
6505fi;
6506
6507 eval "$ac_cv_use_url"
6508 if test "$no_cache" != 1; then
6509 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6510 fi
6511
6512 if test "$wxUSE_URL" = yes; then
6513 echo "$as_me:$LINENO: result: yes" >&5
6514echo "${ECHO_T}yes" >&6
6515 else
6516 echo "$as_me:$LINENO: result: no" >&5
6517echo "${ECHO_T}no" >&6
6518 fi
6519
6520
6521 enablestring=
6522 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6523echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6524 no_cache=0
6525 # Check whether --enable-protocol or --disable-protocol was given.
6526if test "${enable_protocol+set}" = set; then
6527 enableval="$enable_protocol"
6528
6529 if test "$enableval" = yes; then
6530 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6531 else
6532 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6533 fi
6534
6535else
6536
6537 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6538 if test "x$LINE" != x ; then
6539 eval "DEFAULT_$LINE"
6540 else
6541 no_cache=1
6542 fi
6543
6544 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6545
6546fi;
6547
6548 eval "$ac_cv_use_protocol"
6549 if test "$no_cache" != 1; then
6550 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6551 fi
6552
6553 if test "$wxUSE_PROTOCOL" = yes; then
6554 echo "$as_me:$LINENO: result: yes" >&5
6555echo "${ECHO_T}yes" >&6
6556 else
6557 echo "$as_me:$LINENO: result: no" >&5
6558echo "${ECHO_T}no" >&6
6559 fi
6560
6561
6562 enablestring=
6563 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6564echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6565 no_cache=0
6566 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6567if test "${enable_protocol_http+set}" = set; then
6568 enableval="$enable_protocol_http"
6569
6570 if test "$enableval" = yes; then
6571 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6572 else
6573 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6574 fi
6575
6576else
6577
6578 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6579 if test "x$LINE" != x ; then
6580 eval "DEFAULT_$LINE"
6581 else
6582 no_cache=1
6583 fi
6584
6585 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6586
6587fi;
6588
6589 eval "$ac_cv_use_protocol_http"
6590 if test "$no_cache" != 1; then
6591 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6592 fi
6593
6594 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6595 echo "$as_me:$LINENO: result: yes" >&5
6596echo "${ECHO_T}yes" >&6
6597 else
6598 echo "$as_me:$LINENO: result: no" >&5
6599echo "${ECHO_T}no" >&6
6600 fi
6601
6602
6603 enablestring=
6604 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6605echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6606 no_cache=0
6607 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6608if test "${enable_protocol_ftp+set}" = set; then
6609 enableval="$enable_protocol_ftp"
6610
6611 if test "$enableval" = yes; then
6612 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6613 else
6614 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6615 fi
6616
6617else
6618
6619 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6620 if test "x$LINE" != x ; then
6621 eval "DEFAULT_$LINE"
6622 else
6623 no_cache=1
6624 fi
6625
6626 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6627
6628fi;
6629
6630 eval "$ac_cv_use_protocol_ftp"
6631 if test "$no_cache" != 1; then
6632 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6633 fi
6634
6635 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6636 echo "$as_me:$LINENO: result: yes" >&5
6637echo "${ECHO_T}yes" >&6
6638 else
6639 echo "$as_me:$LINENO: result: no" >&5
6640echo "${ECHO_T}no" >&6
6641 fi
6642
6643
6644 enablestring=
6645 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6646echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6647 no_cache=0
6648 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6649if test "${enable_protocol_file+set}" = set; then
6650 enableval="$enable_protocol_file"
6651
6652 if test "$enableval" = yes; then
6653 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6654 else
6655 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6656 fi
6657
6658else
6659
6660 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6661 if test "x$LINE" != x ; then
6662 eval "DEFAULT_$LINE"
6663 else
6664 no_cache=1
6665 fi
6666
6667 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6668
6669fi;
6670
6671 eval "$ac_cv_use_protocol_file"
6672 if test "$no_cache" != 1; then
6673 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6674 fi
6675
6676 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6677 echo "$as_me:$LINENO: result: yes" >&5
6678echo "${ECHO_T}yes" >&6
6679 else
6680 echo "$as_me:$LINENO: result: no" >&5
6681echo "${ECHO_T}no" >&6
6682 fi
6683
6684
6685
6686
6687
6688 enablestring=
6689 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6690echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6691 no_cache=0
6692 # Check whether --enable-threads or --disable-threads was given.
6693if test "${enable_threads+set}" = set; then
6694 enableval="$enable_threads"
6695
6696 if test "$enableval" = yes; then
6697 ac_cv_use_threads='wxUSE_THREADS=yes'
6698 else
6699 ac_cv_use_threads='wxUSE_THREADS=no'
6700 fi
6701
6702else
6703
6704 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6705 if test "x$LINE" != x ; then
6706 eval "DEFAULT_$LINE"
6707 else
6708 no_cache=1
6709 fi
6710
6711 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6712
6713fi;
6714
6715 eval "$ac_cv_use_threads"
6716 if test "$no_cache" != 1; then
6717 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6718 fi
6719
6720 if test "$wxUSE_THREADS" = yes; then
6721 echo "$as_me:$LINENO: result: yes" >&5
6722echo "${ECHO_T}yes" >&6
6723 else
6724 echo "$as_me:$LINENO: result: no" >&5
6725echo "${ECHO_T}no" >&6
6726 fi
6727
6728
6729if test "$wxUSE_GUI" = "yes"; then
6730
6731
6732
6733 enablestring=
6734 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6735echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6736 no_cache=0
6737 # Check whether --enable-docview or --disable-docview was given.
6738if test "${enable_docview+set}" = set; then
6739 enableval="$enable_docview"
6740
6741 if test "$enableval" = yes; then
6742 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6743 else
6744 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6745 fi
6746
6747else
6748
6749 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6750 if test "x$LINE" != x ; then
6751 eval "DEFAULT_$LINE"
6752 else
6753 no_cache=1
6754 fi
6755
6756 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6757
6758fi;
6759
6760 eval "$ac_cv_use_docview"
6761 if test "$no_cache" != 1; then
6762 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6763 fi
6764
6765 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6766 echo "$as_me:$LINENO: result: yes" >&5
6767echo "${ECHO_T}yes" >&6
6768 else
6769 echo "$as_me:$LINENO: result: no" >&5
6770echo "${ECHO_T}no" >&6
6771 fi
6772
6773
6774 enablestring=
6775 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6776echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6777 no_cache=0
6778 # Check whether --enable-help or --disable-help was given.
6779if test "${enable_help+set}" = set; then
6780 enableval="$enable_help"
6781
6782 if test "$enableval" = yes; then
6783 ac_cv_use_help='wxUSE_HELP=yes'
6784 else
6785 ac_cv_use_help='wxUSE_HELP=no'
6786 fi
6787
6788else
6789
6790 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6791 if test "x$LINE" != x ; then
6792 eval "DEFAULT_$LINE"
6793 else
6794 no_cache=1
6795 fi
6796
6797 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6798
6799fi;
6800
6801 eval "$ac_cv_use_help"
6802 if test "$no_cache" != 1; then
6803 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6804 fi
6805
6806 if test "$wxUSE_HELP" = yes; then
6807 echo "$as_me:$LINENO: result: yes" >&5
6808echo "${ECHO_T}yes" >&6
6809 else
6810 echo "$as_me:$LINENO: result: no" >&5
6811echo "${ECHO_T}no" >&6
6812 fi
6813
6814
6815 enablestring=
6816 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6817echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6818 no_cache=0
6819 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6820if test "${enable_mshtmlhelp+set}" = set; then
6821 enableval="$enable_mshtmlhelp"
6822
6823 if test "$enableval" = yes; then
6824 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6825 else
6826 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6827 fi
6828
6829else
6830
6831 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6832 if test "x$LINE" != x ; then
6833 eval "DEFAULT_$LINE"
6834 else
6835 no_cache=1
6836 fi
6837
6838 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6839
6840fi;
6841
6842 eval "$ac_cv_use_mshtmlhelp"
6843 if test "$no_cache" != 1; then
6844 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6845 fi
6846
6847 if test "$wxUSE_MS_HTML_HELP" = yes; then
6848 echo "$as_me:$LINENO: result: yes" >&5
6849echo "${ECHO_T}yes" >&6
6850 else
6851 echo "$as_me:$LINENO: result: no" >&5
6852echo "${ECHO_T}no" >&6
6853 fi
6854
6855
6856 enablestring=
6857 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6858echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6859 no_cache=0
6860 # Check whether --enable-html or --disable-html was given.
6861if test "${enable_html+set}" = set; then
6862 enableval="$enable_html"
6863
6864 if test "$enableval" = yes; then
6865 ac_cv_use_html='wxUSE_HTML=yes'
6866 else
6867 ac_cv_use_html='wxUSE_HTML=no'
6868 fi
6869
6870else
6871
6872 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6873 if test "x$LINE" != x ; then
6874 eval "DEFAULT_$LINE"
6875 else
6876 no_cache=1
6877 fi
6878
6879 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6880
6881fi;
6882
6883 eval "$ac_cv_use_html"
6884 if test "$no_cache" != 1; then
6885 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6886 fi
6887
6888 if test "$wxUSE_HTML" = yes; then
6889 echo "$as_me:$LINENO: result: yes" >&5
6890echo "${ECHO_T}yes" >&6
6891 else
6892 echo "$as_me:$LINENO: result: no" >&5
6893echo "${ECHO_T}no" >&6
6894 fi
6895
6896
6897 enablestring=
6898 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6899echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6900 no_cache=0
6901 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6902if test "${enable_htmlhelp+set}" = set; then
6903 enableval="$enable_htmlhelp"
6904
6905 if test "$enableval" = yes; then
6906 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6907 else
6908 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6909 fi
6910
6911else
6912
6913 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6914 if test "x$LINE" != x ; then
6915 eval "DEFAULT_$LINE"
6916 else
6917 no_cache=1
6918 fi
6919
6920 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6921
6922fi;
6923
6924 eval "$ac_cv_use_htmlhelp"
6925 if test "$no_cache" != 1; then
6926 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6927 fi
6928
6929 if test "$wxUSE_WXHTML_HELP" = yes; then
6930 echo "$as_me:$LINENO: result: yes" >&5
6931echo "${ECHO_T}yes" >&6
6932 else
6933 echo "$as_me:$LINENO: result: no" >&5
6934echo "${ECHO_T}no" >&6
6935 fi
6936
6937
9a8f0513
VS
6938 enablestring=
6939 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6940echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6941 no_cache=0
6942 # Check whether --enable-xrc or --disable-xrc was given.
6943if test "${enable_xrc+set}" = set; then
6944 enableval="$enable_xrc"
6945
6946 if test "$enableval" = yes; then
6947 ac_cv_use_xrc='wxUSE_XRC=yes'
6948 else
6949 ac_cv_use_xrc='wxUSE_XRC=no'
6950 fi
6951
6952else
6953
6954 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6955 if test "x$LINE" != x ; then
6956 eval "DEFAULT_$LINE"
6957 else
6958 no_cache=1
6959 fi
6960
6961 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6962
6963fi;
6964
6965 eval "$ac_cv_use_xrc"
6966 if test "$no_cache" != 1; then
6967 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6968 fi
6969
6970 if test "$wxUSE_XRC" = yes; then
6971 echo "$as_me:$LINENO: result: yes" >&5
6972echo "${ECHO_T}yes" >&6
6973 else
6974 echo "$as_me:$LINENO: result: no" >&5
6975echo "${ECHO_T}no" >&6
6976 fi
6977
6978
3f60522a
JS
6979 enablestring=
6980 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5
6981echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6
6982 no_cache=0
6983 # Check whether --enable-aui or --disable-aui was given.
6984if test "${enable_aui+set}" = set; then
6985 enableval="$enable_aui"
6986
6987 if test "$enableval" = yes; then
6988 ac_cv_use_aui='wxUSE_AUI=yes'
6989 else
6990 ac_cv_use_aui='wxUSE_AUI=no'
6991 fi
6992
6993else
6994
6995 LINE=`grep "wxUSE_AUI" ${wx_arg_cache_file}`
6996 if test "x$LINE" != x ; then
6997 eval "DEFAULT_$LINE"
6998 else
6999 no_cache=1
7000 fi
7001
7002 ac_cv_use_aui='wxUSE_AUI='$DEFAULT_wxUSE_AUI
7003
7004fi;
7005
7006 eval "$ac_cv_use_aui"
7007 if test "$no_cache" != 1; then
7008 echo $ac_cv_use_aui >> ${wx_arg_cache_file}.tmp
7009 fi
7010
7011 if test "$wxUSE_AUI" = yes; then
7012 echo "$as_me:$LINENO: result: yes" >&5
7013echo "${ECHO_T}yes" >&6
7014 else
7015 echo "$as_me:$LINENO: result: no" >&5
7016echo "${ECHO_T}no" >&6
7017 fi
7018
7019
a848cd7e
SC
7020 enablestring=
7021 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
7022echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
7023 no_cache=0
7024 # Check whether --enable-constraints or --disable-constraints was given.
7025if test "${enable_constraints+set}" = set; then
7026 enableval="$enable_constraints"
7027
7028 if test "$enableval" = yes; then
7029 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
7030 else
7031 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
7032 fi
7033
7034else
7035
7036 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
7037 if test "x$LINE" != x ; then
7038 eval "DEFAULT_$LINE"
7039 else
7040 no_cache=1
7041 fi
7042
7043 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
7044
7045fi;
7046
7047 eval "$ac_cv_use_constraints"
7048 if test "$no_cache" != 1; then
7049 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
7050 fi
7051
7052 if test "$wxUSE_CONSTRAINTS" = yes; then
7053 echo "$as_me:$LINENO: result: yes" >&5
7054echo "${ECHO_T}yes" >&6
7055 else
7056 echo "$as_me:$LINENO: result: no" >&5
7057echo "${ECHO_T}no" >&6
7058 fi
7059
7060
7061 enablestring=
7062 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
7063echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
7064 no_cache=0
7065 # Check whether --enable-printarch or --disable-printarch was given.
7066if test "${enable_printarch+set}" = set; then
7067 enableval="$enable_printarch"
7068
7069 if test "$enableval" = yes; then
7070 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
7071 else
7072 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
7073 fi
7074
7075else
7076
7077 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
7078 if test "x$LINE" != x ; then
7079 eval "DEFAULT_$LINE"
7080 else
7081 no_cache=1
7082 fi
7083
7084 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
7085
7086fi;
7087
7088 eval "$ac_cv_use_printarch"
7089 if test "$no_cache" != 1; then
7090 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
7091 fi
7092
7093 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
7094 echo "$as_me:$LINENO: result: yes" >&5
7095echo "${ECHO_T}yes" >&6
7096 else
7097 echo "$as_me:$LINENO: result: no" >&5
7098echo "${ECHO_T}no" >&6
7099 fi
7100
7101
7102 enablestring=
7103 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
7104echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
7105 no_cache=0
7106 # Check whether --enable-mdi or --disable-mdi was given.
7107if test "${enable_mdi+set}" = set; then
7108 enableval="$enable_mdi"
7109
7110 if test "$enableval" = yes; then
8a7b1113 7111 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 7112 else
8a7b1113 7113 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
7114 fi
7115
7116else
7117
8a7b1113 7118 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
7119 if test "x$LINE" != x ; then
7120 eval "DEFAULT_$LINE"
7121 else
7122 no_cache=1
7123 fi
7124
8a7b1113 7125 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
7126
7127fi;
7128
7129 eval "$ac_cv_use_mdi"
7130 if test "$no_cache" != 1; then
7131 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
7132 fi
7133
8a7b1113
VZ
7134 if test "$wxUSE_MDI" = yes; then
7135 echo "$as_me:$LINENO: result: yes" >&5
7136echo "${ECHO_T}yes" >&6
7137 else
7138 echo "$as_me:$LINENO: result: no" >&5
7139echo "${ECHO_T}no" >&6
7140 fi
7141
7142
7143 enablestring=
7144 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
7145echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
7146 no_cache=0
7147 # Check whether --enable-mdidoc or --disable-mdidoc was given.
7148if test "${enable_mdidoc+set}" = set; then
7149 enableval="$enable_mdidoc"
7150
7151 if test "$enableval" = yes; then
7152 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
7153 else
7154 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
7155 fi
7156
7157else
7158
7159 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
7160 if test "x$LINE" != x ; then
7161 eval "DEFAULT_$LINE"
7162 else
7163 no_cache=1
7164 fi
7165
7166 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
7167
7168fi;
7169
7170 eval "$ac_cv_use_mdidoc"
7171 if test "$no_cache" != 1; then
7172 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
7173 fi
7174
a848cd7e
SC
7175 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
7176 echo "$as_me:$LINENO: result: yes" >&5
7177echo "${ECHO_T}yes" >&6
7178 else
7179 echo "$as_me:$LINENO: result: no" >&5
7180echo "${ECHO_T}no" >&6
7181 fi
7182
7183
7184 enablestring=
7185 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
7186echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
7187 no_cache=0
7188 # Check whether --enable-loggui or --disable-loggui was given.
7189if test "${enable_loggui+set}" = set; then
7190 enableval="$enable_loggui"
7191
7192 if test "$enableval" = yes; then
7193 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
7194 else
7195 ac_cv_use_loggui='wxUSE_LOGGUI=no'
7196 fi
7197
7198else
7199
7200 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
7201 if test "x$LINE" != x ; then
7202 eval "DEFAULT_$LINE"
7203 else
7204 no_cache=1
7205 fi
7206
7207 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
7208
7209fi;
7210
7211 eval "$ac_cv_use_loggui"
7212 if test "$no_cache" != 1; then
7213 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
7214 fi
7215
7216 if test "$wxUSE_LOGGUI" = yes; then
7217 echo "$as_me:$LINENO: result: yes" >&5
7218echo "${ECHO_T}yes" >&6
7219 else
7220 echo "$as_me:$LINENO: result: no" >&5
7221echo "${ECHO_T}no" >&6
7222 fi
7223
7224
7225 enablestring=
7226 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
7227echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
7228 no_cache=0
7229 # Check whether --enable-logwin or --disable-logwin was given.
7230if test "${enable_logwin+set}" = set; then
7231 enableval="$enable_logwin"
7232
7233 if test "$enableval" = yes; then
7234 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
7235 else
7236 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
7237 fi
7238
7239else
7240
7241 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
7242 if test "x$LINE" != x ; then
7243 eval "DEFAULT_$LINE"
7244 else
7245 no_cache=1
7246 fi
7247
7248 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
7249
7250fi;
7251
7252 eval "$ac_cv_use_logwin"
7253 if test "$no_cache" != 1; then
7254 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
7255 fi
7256
7257 if test "$wxUSE_LOGWINDOW" = yes; then
7258 echo "$as_me:$LINENO: result: yes" >&5
7259echo "${ECHO_T}yes" >&6
7260 else
7261 echo "$as_me:$LINENO: result: no" >&5
7262echo "${ECHO_T}no" >&6
7263 fi
7264
7265
7266 enablestring=
7267 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
7268echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
7269 no_cache=0
7270 # Check whether --enable-logdialog or --disable-logdialog was given.
7271if test "${enable_logdialog+set}" = set; then
7272 enableval="$enable_logdialog"
7273
7274 if test "$enableval" = yes; then
7275 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
7276 else
7277 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
7278 fi
7279
7280else
7281
7282 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
7283 if test "x$LINE" != x ; then
7284 eval "DEFAULT_$LINE"
7285 else
7286 no_cache=1
7287 fi
7288
7289 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
7290
7291fi;
7292
7293 eval "$ac_cv_use_logdialog"
7294 if test "$no_cache" != 1; then
7295 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
7296 fi
7297
7298 if test "$wxUSE_LOGDIALOG" = yes; then
7299 echo "$as_me:$LINENO: result: yes" >&5
7300echo "${ECHO_T}yes" >&6
7301 else
7302 echo "$as_me:$LINENO: result: no" >&5
7303echo "${ECHO_T}no" >&6
7304 fi
7305
7306
646b6ec1
VS
7307 enablestring=
7308 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
7309echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
7310 no_cache=0
7311 # Check whether --enable-webkit or --disable-webkit was given.
7312if test "${enable_webkit+set}" = set; then
7313 enableval="$enable_webkit"
7314
7315 if test "$enableval" = yes; then
7316 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
7317 else
7318 ac_cv_use_webkit='wxUSE_WEBKIT=no'
7319 fi
7320
7321else
7322
7323 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
7324 if test "x$LINE" != x ; then
7325 eval "DEFAULT_$LINE"
7326 else
7327 no_cache=1
7328 fi
7329
7330 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
7331
7332fi;
7333
7334 eval "$ac_cv_use_webkit"
7335 if test "$no_cache" != 1; then
7336 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
7337 fi
7338
7339 if test "$wxUSE_WEBKIT" = yes; then
7340 echo "$as_me:$LINENO: result: yes" >&5
7341echo "${ECHO_T}yes" >&6
7342 else
7343 echo "$as_me:$LINENO: result: no" >&5
7344echo "${ECHO_T}no" >&6
7345 fi
7346
7347
91dea314
MW
7348 enablestring=
7349 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
7350echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
7351 no_cache=0
7352 # Check whether --enable-html or --disable-html was given.
7353if test "${enable_html+set}" = set; then
7354 enableval="$enable_html"
7355
7356 if test "$enableval" = yes; then
7357 ac_cv_use_html='wxUSE_RICHTEXT=yes'
7358 else
7359 ac_cv_use_html='wxUSE_RICHTEXT=no'
7360 fi
7361
7362else
7363
7364 LINE=`grep "wxUSE_RICHTEXT" ${wx_arg_cache_file}`
7365 if test "x$LINE" != x ; then
7366 eval "DEFAULT_$LINE"
7367 else
7368 no_cache=1
7369 fi
7370
7371 ac_cv_use_html='wxUSE_RICHTEXT='$DEFAULT_wxUSE_RICHTEXT
7372
7373fi;
7374
7375 eval "$ac_cv_use_html"
7376 if test "$no_cache" != 1; then
7377 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
7378 fi
7379
7380 if test "$wxUSE_RICHTEXT" = yes; then
7381 echo "$as_me:$LINENO: result: yes" >&5
7382echo "${ECHO_T}yes" >&6
7383 else
7384 echo "$as_me:$LINENO: result: no" >&5
7385echo "${ECHO_T}no" >&6
7386 fi
7387
7388
a848cd7e
SC
7389
7390 enablestring=
7391 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
7392echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
7393 no_cache=0
7394 # Check whether --enable-postscript or --disable-postscript was given.
7395if test "${enable_postscript+set}" = set; then
7396 enableval="$enable_postscript"
7397
7398 if test "$enableval" = yes; then
7399 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
7400 else
7401 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
7402 fi
7403
7404else
7405
7406 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
7407 if test "x$LINE" != x ; then
7408 eval "DEFAULT_$LINE"
7409 else
7410 no_cache=1
7411 fi
7412
7413 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
7414
7415fi;
7416
7417 eval "$ac_cv_use_postscript"
7418 if test "$no_cache" != 1; then
7419 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
7420 fi
7421
7422 if test "$wxUSE_POSTSCRIPT" = yes; then
7423 echo "$as_me:$LINENO: result: yes" >&5
7424echo "${ECHO_T}yes" >&6
7425 else
7426 echo "$as_me:$LINENO: result: no" >&5
7427echo "${ECHO_T}no" >&6
7428 fi
7429
7430
7431
7432
7433
7434 enablestring=
7435 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
7436echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
7437 no_cache=0
7438 # Check whether --enable-prologio or --disable-prologio was given.
7439if test "${enable_prologio+set}" = set; then
7440 enableval="$enable_prologio"
7441
7442 if test "$enableval" = yes; then
7443 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
7444 else
7445 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
7446 fi
7447
7448else
7449
7450 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7451 if test "x$LINE" != x ; then
7452 eval "DEFAULT_$LINE"
7453 else
7454 no_cache=1
7455 fi
7456
7457 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7458
7459fi;
7460
7461 eval "$ac_cv_use_prologio"
7462 if test "$no_cache" != 1; then
7463 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7464 fi
7465
7466 if test "$wxUSE_PROLOGIO" = yes; then
7467 echo "$as_me:$LINENO: result: yes" >&5
7468echo "${ECHO_T}yes" >&6
7469 else
7470 echo "$as_me:$LINENO: result: no" >&5
7471echo "${ECHO_T}no" >&6
7472 fi
7473
7474
7475 enablestring=
7476 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7477echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7478 no_cache=0
7479 # Check whether --enable-resources or --disable-resources was given.
7480if test "${enable_resources+set}" = set; then
7481 enableval="$enable_resources"
7482
7483 if test "$enableval" = yes; then
7484 ac_cv_use_resources='wxUSE_RESOURCES=yes'
7485 else
7486 ac_cv_use_resources='wxUSE_RESOURCES=no'
7487 fi
7488
7489else
7490
7491 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7492 if test "x$LINE" != x ; then
7493 eval "DEFAULT_$LINE"
7494 else
7495 no_cache=1
7496 fi
7497
7498 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7499
7500fi;
7501
7502 eval "$ac_cv_use_resources"
7503 if test "$no_cache" != 1; then
7504 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7505 fi
7506
7507 if test "$wxUSE_RESOURCES" = yes; then
7508 echo "$as_me:$LINENO: result: yes" >&5
7509echo "${ECHO_T}yes" >&6
7510 else
7511 echo "$as_me:$LINENO: result: no" >&5
7512echo "${ECHO_T}no" >&6
7513 fi
7514
7515
7516
7517
7518 enablestring=
7519 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7520echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7521 no_cache=0
7522 # Check whether --enable-clipboard or --disable-clipboard was given.
7523if test "${enable_clipboard+set}" = set; then
7524 enableval="$enable_clipboard"
7525
7526 if test "$enableval" = yes; then
7527 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7528 else
7529 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7530 fi
7531
7532else
7533
7534 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7535 if test "x$LINE" != x ; then
7536 eval "DEFAULT_$LINE"
7537 else
7538 no_cache=1
7539 fi
7540
7541 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7542
7543fi;
7544
7545 eval "$ac_cv_use_clipboard"
7546 if test "$no_cache" != 1; then
7547 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7548 fi
7549
7550 if test "$wxUSE_CLIPBOARD" = yes; then
7551 echo "$as_me:$LINENO: result: yes" >&5
7552echo "${ECHO_T}yes" >&6
7553 else
7554 echo "$as_me:$LINENO: result: no" >&5
7555echo "${ECHO_T}no" >&6
7556 fi
7557
7558
7559 enablestring=
7560 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7561echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7562 no_cache=0
7563 # Check whether --enable-dnd or --disable-dnd was given.
7564if test "${enable_dnd+set}" = set; then
7565 enableval="$enable_dnd"
7566
7567 if test "$enableval" = yes; then
7568 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7569 else
7570 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7571 fi
7572
7573else
7574
7575 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7576 if test "x$LINE" != x ; then
7577 eval "DEFAULT_$LINE"
7578 else
7579 no_cache=1
7580 fi
7581
7582 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7583
7584fi;
7585
7586 eval "$ac_cv_use_dnd"
7587 if test "$no_cache" != 1; then
7588 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7589 fi
7590
7591 if test "$wxUSE_DRAG_AND_DROP" = yes; then
7592 echo "$as_me:$LINENO: result: yes" >&5
7593echo "${ECHO_T}yes" >&6
7594 else
7595 echo "$as_me:$LINENO: result: no" >&5
7596echo "${ECHO_T}no" >&6
7597 fi
7598
7599
7600 enablestring=
7601 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7602echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7603 no_cache=0
7604 # Check whether --enable-metafile or --disable-metafile was given.
7605if test "${enable_metafile+set}" = set; then
7606 enableval="$enable_metafile"
7607
7608 if test "$enableval" = yes; then
7609 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7610 else
7611 ac_cv_use_metafile='wxUSE_METAFILE=no'
7612 fi
7613
7614else
7615
7616 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7617 if test "x$LINE" != x ; then
7618 eval "DEFAULT_$LINE"
7619 else
7620 no_cache=1
7621 fi
7622
7623 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7624
7625fi;
7626
7627 eval "$ac_cv_use_metafile"
7628 if test "$no_cache" != 1; then
7629 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7630 fi
7631
7632 if test "$wxUSE_METAFILE" = yes; then
7633 echo "$as_me:$LINENO: result: yes" >&5
7634echo "${ECHO_T}yes" >&6
7635 else
7636 echo "$as_me:$LINENO: result: no" >&5
7637echo "${ECHO_T}no" >&6
7638 fi
7639
7640
7641
7642
7643
7644 enablestring=
7645 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7646echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7647 no_cache=0
7648 # Check whether --enable-controls or --disable-controls was given.
7649if test "${enable_controls+set}" = set; then
7650 enableval="$enable_controls"
7651
7652 if test "$enableval" = yes; then
7653 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7654 else
7655 ac_cv_use_controls='wxUSE_CONTROLS=no'
7656 fi
7657
7658else
7659
7660 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7661 if test "x$LINE" != x ; then
7662 eval "DEFAULT_$LINE"
7663 else
7664 no_cache=1
7665 fi
7666
7667 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7668
7669fi;
7670
7671 eval "$ac_cv_use_controls"
7672 if test "$no_cache" != 1; then
7673 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7674 fi
7675
7676 if test "$wxUSE_CONTROLS" = yes; then
7677 echo "$as_me:$LINENO: result: yes" >&5
7678echo "${ECHO_T}yes" >&6
7679 else
7680 echo "$as_me:$LINENO: result: no" >&5
7681echo "${ECHO_T}no" >&6
7682 fi
7683
7684
7685if test "$wxUSE_CONTROLS" = "yes"; then
7686 DEFAULT_wxUSE_ACCEL=yes
7687 DEFAULT_wxUSE_BMPBUTTON=yes
7688 DEFAULT_wxUSE_BUTTON=yes
da98e9be 7689 DEFAULT_wxUSE_CALCTRL=yes
a848cd7e
SC
7690 DEFAULT_wxUSE_CARET=yes
7691 DEFAULT_wxUSE_COMBOBOX=yes
7692 DEFAULT_wxUSE_CHECKBOX=yes
7693 DEFAULT_wxUSE_CHECKLISTBOX=yes
7694 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7695 DEFAULT_wxUSE_CHOICEBOOK=yes
e9263684
VZ
7696 DEFAULT_wxUSE_COLOURPICKERCTRL=yes
7697 DEFAULT_wxUSE_COMBOBOX=yes
da98e9be 7698 DEFAULT_wxUSE_DATEPICKCTRL=yes
e9263684
VZ
7699 DEFAULT_wxUSE_DISPLAY=yes
7700 DEFAULT_wxUSE_DIRPICKERCTRL=yes
7701 DEFAULT_wxUSE_FILEPICKERCTRL=yes
7702 DEFAULT_wxUSE_FONTPICKERCTRL=yes
a848cd7e
SC
7703 DEFAULT_wxUSE_GAUGE=yes
7704 DEFAULT_wxUSE_GRID=yes
6954625c 7705 DEFAULT_wxUSE_HYPERLINKCTRL=yes
20e34ecc 7706 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
7707 DEFAULT_wxUSE_IMAGLIST=yes
7708 DEFAULT_wxUSE_LISTBOOK=yes
7709 DEFAULT_wxUSE_LISTBOX=yes
7710 DEFAULT_wxUSE_LISTCTRL=yes
7711 DEFAULT_wxUSE_NOTEBOOK=yes
7712 DEFAULT_wxUSE_RADIOBOX=yes
7713 DEFAULT_wxUSE_RADIOBTN=yes
7714 DEFAULT_wxUSE_SASH=yes
7715 DEFAULT_wxUSE_SCROLLBAR=yes
7716 DEFAULT_wxUSE_SLIDER=yes
7717 DEFAULT_wxUSE_SPINBTN=yes
7718 DEFAULT_wxUSE_SPINCTRL=yes
7719 DEFAULT_wxUSE_SPLITTER=yes
7720 DEFAULT_wxUSE_STATBMP=yes
7721 DEFAULT_wxUSE_STATBOX=yes
7722 DEFAULT_wxUSE_STATLINE=yes
7723 DEFAULT_wxUSE_STATUSBAR=yes
7724 DEFAULT_wxUSE_TAB_DIALOG=yes
7725 DEFAULT_wxUSE_TOGGLEBTN=yes
7726 DEFAULT_wxUSE_TOOLBAR=yes
7727 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
a848cd7e 7728 DEFAULT_wxUSE_TOOLTIPS=yes
0093c2fc 7729 DEFAULT_wxUSE_TREEBOOK=yes
5ec3bc43 7730 DEFAULT_wxUSE_TOOLBOOK=yes
a848cd7e
SC
7731 DEFAULT_wxUSE_TREECTRL=yes
7732 DEFAULT_wxUSE_POPUPWIN=yes
7733 DEFAULT_wxUSE_TIPWINDOW=yes
7734elif test "$wxUSE_CONTROLS" = "no"; then
7735 DEFAULT_wxUSE_ACCEL=no
7736 DEFAULT_wxUSE_BMPBUTTON=no
7737 DEFAULT_wxUSE_BUTTON=no
7738 DEFAULT_wxUSE_CALCTRL=no
7739 DEFAULT_wxUSE_CARET=no
7740 DEFAULT_wxUSE_COMBOBOX=no
7741 DEFAULT_wxUSE_CHECKBOX=no
7742 DEFAULT_wxUSE_CHECKLISTBOX=no
7743 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7744 DEFAULT_wxUSE_CHOICEBOOK=no
e9263684
VZ
7745 DEFAULT_wxUSE_COLOURPICKERCTRL=no
7746 DEFAULT_wxUSE_COMBOBOX=no
da98e9be 7747 DEFAULT_wxUSE_DATEPICKCTRL=no
e9263684
VZ
7748 DEFAULT_wxUSE_DISPLAY=no
7749 DEFAULT_wxUSE_DIRPICKERCTRL=no
7750 DEFAULT_wxUSE_FILEPICKERCTRL=no
7751 DEFAULT_wxUSE_FONTPICKERCTRL=no
a848cd7e
SC
7752 DEFAULT_wxUSE_GAUGE=no
7753 DEFAULT_wxUSE_GRID=no
6954625c 7754 DEFAULT_wxUSE_HYPERLINKCTRL=no
20e34ecc 7755 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
7756 DEFAULT_wxUSE_IMAGLIST=no
7757 DEFAULT_wxUSE_LISTBOOK=no
7758 DEFAULT_wxUSE_LISTBOX=no
7759 DEFAULT_wxUSE_LISTCTRL=no
7760 DEFAULT_wxUSE_NOTEBOOK=no
7761 DEFAULT_wxUSE_RADIOBOX=no
7762 DEFAULT_wxUSE_RADIOBTN=no
7763 DEFAULT_wxUSE_SASH=no
7764 DEFAULT_wxUSE_SCROLLBAR=no
7765 DEFAULT_wxUSE_SLIDER=no
7766 DEFAULT_wxUSE_SPINBTN=no
7767 DEFAULT_wxUSE_SPINCTRL=no
7768 DEFAULT_wxUSE_SPLITTER=no
7769 DEFAULT_wxUSE_STATBMP=no
7770 DEFAULT_wxUSE_STATBOX=no
7771 DEFAULT_wxUSE_STATLINE=no
7772 DEFAULT_wxUSE_STATUSBAR=no
7773 DEFAULT_wxUSE_TAB_DIALOG=no
7774 DEFAULT_wxUSE_TOGGLEBTN=no
7775 DEFAULT_wxUSE_TOOLBAR=no
7776 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
a848cd7e 7777 DEFAULT_wxUSE_TOOLTIPS=no
0093c2fc 7778 DEFAULT_wxUSE_TREEBOOK=no
5ec3bc43 7779 DEFAULT_wxUSE_TOOLBOOK=no
a848cd7e
SC
7780 DEFAULT_wxUSE_TREECTRL=no
7781 DEFAULT_wxUSE_POPUPWIN=no
7782 DEFAULT_wxUSE_TIPWINDOW=no
7783fi
7784
a848cd7e
SC
7785
7786 enablestring=
7787 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7788echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7789 no_cache=0
7790 # Check whether --enable-accel or --disable-accel was given.
7791if test "${enable_accel+set}" = set; then
7792 enableval="$enable_accel"
7793
7794 if test "$enableval" = yes; then
7795 ac_cv_use_accel='wxUSE_ACCEL=yes'
7796 else
7797 ac_cv_use_accel='wxUSE_ACCEL=no'
7798 fi
7799
7800else
7801
7802 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7803 if test "x$LINE" != x ; then
7804 eval "DEFAULT_$LINE"
7805 else
7806 no_cache=1
7807 fi
7808
7809 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7810
7811fi;
7812
7813 eval "$ac_cv_use_accel"
7814 if test "$no_cache" != 1; then
7815 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7816 fi
7817
7818 if test "$wxUSE_ACCEL" = yes; then
7819 echo "$as_me:$LINENO: result: yes" >&5
7820echo "${ECHO_T}yes" >&6
7821 else
7822 echo "$as_me:$LINENO: result: no" >&5
7823echo "${ECHO_T}no" >&6
7824 fi
7825
7826
7827 enablestring=
7828 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7829echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7830 no_cache=0
7831 # Check whether --enable-button or --disable-button was given.
7832if test "${enable_button+set}" = set; then
7833 enableval="$enable_button"
7834
7835 if test "$enableval" = yes; then
7836 ac_cv_use_button='wxUSE_BUTTON=yes'
7837 else
7838 ac_cv_use_button='wxUSE_BUTTON=no'
7839 fi
7840
7841else
7842
7843 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7844 if test "x$LINE" != x ; then
7845 eval "DEFAULT_$LINE"
7846 else
7847 no_cache=1
7848 fi
7849
7850 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7851
7852fi;
7853
7854 eval "$ac_cv_use_button"
7855 if test "$no_cache" != 1; then
7856 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7857 fi
7858
7859 if test "$wxUSE_BUTTON" = yes; then
7860 echo "$as_me:$LINENO: result: yes" >&5
7861echo "${ECHO_T}yes" >&6
7862 else
7863 echo "$as_me:$LINENO: result: no" >&5
7864echo "${ECHO_T}no" >&6
7865 fi
7866
7867
7868 enablestring=
7869 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7870echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7871 no_cache=0
7872 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7873if test "${enable_bmpbutton+set}" = set; then
7874 enableval="$enable_bmpbutton"
7875
7876 if test "$enableval" = yes; then
7877 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7878 else
7879 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7880 fi
7881
7882else
7883
7884 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7885 if test "x$LINE" != x ; then
7886 eval "DEFAULT_$LINE"
7887 else
7888 no_cache=1
7889 fi
7890
7891 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7892
7893fi;
7894
7895 eval "$ac_cv_use_bmpbutton"
7896 if test "$no_cache" != 1; then
7897 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7898 fi
7899
7900 if test "$wxUSE_BMPBUTTON" = yes; then
7901 echo "$as_me:$LINENO: result: yes" >&5
7902echo "${ECHO_T}yes" >&6
7903 else
7904 echo "$as_me:$LINENO: result: no" >&5
7905echo "${ECHO_T}no" >&6
7906 fi
7907
7908
7909 enablestring=
7910 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7911echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7912 no_cache=0
7913 # Check whether --enable-calendar or --disable-calendar was given.
7914if test "${enable_calendar+set}" = set; then
7915 enableval="$enable_calendar"
7916
7917 if test "$enableval" = yes; then
7918 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7919 else
7920 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7921 fi
7922
7923else
7924
7925 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7926 if test "x$LINE" != x ; then
7927 eval "DEFAULT_$LINE"
7928 else
7929 no_cache=1
7930 fi
7931
7932 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7933
7934fi;
7935
7936 eval "$ac_cv_use_calendar"
7937 if test "$no_cache" != 1; then
7938 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7939 fi
7940
7941 if test "$wxUSE_CALCTRL" = yes; then
7942 echo "$as_me:$LINENO: result: yes" >&5
7943echo "${ECHO_T}yes" >&6
7944 else
7945 echo "$as_me:$LINENO: result: no" >&5
7946echo "${ECHO_T}no" >&6
7947 fi
7948
7949
7950 enablestring=
7951 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7952echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7953 no_cache=0
7954 # Check whether --enable-caret or --disable-caret was given.
7955if test "${enable_caret+set}" = set; then
7956 enableval="$enable_caret"
7957
7958 if test "$enableval" = yes; then
7959 ac_cv_use_caret='wxUSE_CARET=yes'
7960 else
7961 ac_cv_use_caret='wxUSE_CARET=no'
7962 fi
7963
7964else
7965
7966 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7967 if test "x$LINE" != x ; then
7968 eval "DEFAULT_$LINE"
7969 else
7970 no_cache=1
7971 fi
7972
7973 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7974
7975fi;
7976
7977 eval "$ac_cv_use_caret"
7978 if test "$no_cache" != 1; then
7979 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7980 fi
7981
7982 if test "$wxUSE_CARET" = yes; then
7983 echo "$as_me:$LINENO: result: yes" >&5
7984echo "${ECHO_T}yes" >&6
7985 else
7986 echo "$as_me:$LINENO: result: no" >&5
7987echo "${ECHO_T}no" >&6
7988 fi
7989
7990
7991 enablestring=
7992 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7993echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7994 no_cache=0
7995 # Check whether --enable-checkbox or --disable-checkbox was given.
7996if test "${enable_checkbox+set}" = set; then
7997 enableval="$enable_checkbox"
7998
7999 if test "$enableval" = yes; then
8000 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
8001 else
8002 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
8003 fi
8004
8005else
8006
8007 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
8008 if test "x$LINE" != x ; then
8009 eval "DEFAULT_$LINE"
8010 else
8011 no_cache=1
8012 fi
8013
8014 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
8015
8016fi;
8017
8018 eval "$ac_cv_use_checkbox"
8019 if test "$no_cache" != 1; then
8020 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
8021 fi
8022
8023 if test "$wxUSE_CHECKBOX" = yes; then
8024 echo "$as_me:$LINENO: result: yes" >&5
8025echo "${ECHO_T}yes" >&6
8026 else
8027 echo "$as_me:$LINENO: result: no" >&5
8028echo "${ECHO_T}no" >&6
8029 fi
8030
8031
8032 enablestring=
8033 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
8034echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
8035 no_cache=0
8036 # Check whether --enable-checklst or --disable-checklst was given.
8037if test "${enable_checklst+set}" = set; then
8038 enableval="$enable_checklst"
8039
8040 if test "$enableval" = yes; then
8041 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
8042 else
8043 ac_cv_use_checklst='wxUSE_CHECKLST=no'
8044 fi
8045
8046else
8047
8048 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
8049 if test "x$LINE" != x ; then
8050 eval "DEFAULT_$LINE"
8051 else
8052 no_cache=1
8053 fi
8054
8055 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
8056
8057fi;
8058
8059 eval "$ac_cv_use_checklst"
8060 if test "$no_cache" != 1; then
8061 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
8062 fi
8063
8064 if test "$wxUSE_CHECKLST" = yes; then
8065 echo "$as_me:$LINENO: result: yes" >&5
8066echo "${ECHO_T}yes" >&6
8067 else
8068 echo "$as_me:$LINENO: result: no" >&5
8069echo "${ECHO_T}no" >&6
8070 fi
8071
8072
8073 enablestring=
8074 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
8075echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
8076 no_cache=0
8077 # Check whether --enable-choice or --disable-choice was given.
8078if test "${enable_choice+set}" = set; then
8079 enableval="$enable_choice"
8080
8081 if test "$enableval" = yes; then
8082 ac_cv_use_choice='wxUSE_CHOICE=yes'
8083 else
8084 ac_cv_use_choice='wxUSE_CHOICE=no'
8085 fi
8086
8087else
8088
8089 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
8090 if test "x$LINE" != x ; then
8091 eval "DEFAULT_$LINE"
8092 else
8093 no_cache=1
8094 fi
8095
8096 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
8097
8098fi;
8099
8100 eval "$ac_cv_use_choice"
8101 if test "$no_cache" != 1; then
8102 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
8103 fi
8104
8105 if test "$wxUSE_CHOICE" = yes; then
8106 echo "$as_me:$LINENO: result: yes" >&5
8107echo "${ECHO_T}yes" >&6
8108 else
8109 echo "$as_me:$LINENO: result: no" >&5
8110echo "${ECHO_T}no" >&6
8111 fi
8112
8113
92bbdbcd
WS
8114 enablestring=
8115 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
8116echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
8117 no_cache=0
8118 # Check whether --enable-choicebook or --disable-choicebook was given.
8119if test "${enable_choicebook+set}" = set; then
8120 enableval="$enable_choicebook"
8121
8122 if test "$enableval" = yes; then
8123 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
8124 else
8125 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
8126 fi
8127
8128else
8129
8130 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
8131 if test "x$LINE" != x ; then
8132 eval "DEFAULT_$LINE"
8133 else
8134 no_cache=1
8135 fi
8136
8137 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
8138
8139fi;
8140
8141 eval "$ac_cv_use_choicebook"
8142 if test "$no_cache" != 1; then
8143 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
8144 fi
8145
8146 if test "$wxUSE_CHOICEBOOK" = yes; then
8147 echo "$as_me:$LINENO: result: yes" >&5
8148echo "${ECHO_T}yes" >&6
8149 else
8150 echo "$as_me:$LINENO: result: no" >&5
8151echo "${ECHO_T}no" >&6
8152 fi
8153
8154
e9263684
VZ
8155 enablestring=
8156 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5
8157echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6
8158 no_cache=0
8159 # Check whether --enable-colourpicker or --disable-colourpicker was given.
8160if test "${enable_colourpicker+set}" = set; then
8161 enableval="$enable_colourpicker"
8162
8163 if test "$enableval" = yes; then
8164 ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes'
8165 else
8166 ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no'
8167 fi
8168
8169else
8170
8171 LINE=`grep "wxUSE_COLOURPICKERCTRL" ${wx_arg_cache_file}`
8172 if test "x$LINE" != x ; then
8173 eval "DEFAULT_$LINE"
8174 else
8175 no_cache=1
8176 fi
8177
8178 ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL='$DEFAULT_wxUSE_COLOURPICKERCTRL
8179
8180fi;
8181
8182 eval "$ac_cv_use_colourpicker"
8183 if test "$no_cache" != 1; then
8184 echo $ac_cv_use_colourpicker >> ${wx_arg_cache_file}.tmp
8185 fi
8186
8187 if test "$wxUSE_COLOURPICKERCTRL" = yes; then
8188 echo "$as_me:$LINENO: result: yes" >&5
8189echo "${ECHO_T}yes" >&6
8190 else
8191 echo "$as_me:$LINENO: result: no" >&5
8192echo "${ECHO_T}no" >&6
8193 fi
8194
8195
a848cd7e
SC
8196 enablestring=
8197 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
8198echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
8199 no_cache=0
8200 # Check whether --enable-combobox or --disable-combobox was given.
8201if test "${enable_combobox+set}" = set; then
8202 enableval="$enable_combobox"
8203
8204 if test "$enableval" = yes; then
8205 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
8206 else
8207 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
8208 fi
8209
8210else
8211
8212 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
8213 if test "x$LINE" != x ; then
8214 eval "DEFAULT_$LINE"
8215 else
8216 no_cache=1
8217 fi
8218
8219 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
8220
8221fi;
8222
8223 eval "$ac_cv_use_combobox"
8224 if test "$no_cache" != 1; then
8225 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
8226 fi
8227
8228 if test "$wxUSE_COMBOBOX" = yes; then
8229 echo "$as_me:$LINENO: result: yes" >&5
8230echo "${ECHO_T}yes" >&6
8231 else
8232 echo "$as_me:$LINENO: result: no" >&5
8233echo "${ECHO_T}no" >&6
8234 fi
8235
8236
642bcba9 8237 enablestring=
a57d600f
VZ
8238 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
8239echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6
642bcba9 8240 no_cache=0
a57d600f
VZ
8241 # Check whether --enable-comboctrl or --disable-comboctrl was given.
8242if test "${enable_comboctrl+set}" = set; then
8243 enableval="$enable_comboctrl"
642bcba9
VZ
8244
8245 if test "$enableval" = yes; then
a57d600f 8246 ac_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
642bcba9 8247 else
a57d600f 8248 ac_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
642bcba9
VZ
8249 fi
8250
8251else
8252
a57d600f 8253 LINE=`grep "wxUSE_COMBOCTRL" ${wx_arg_cache_file}`
642bcba9
VZ
8254 if test "x$LINE" != x ; then
8255 eval "DEFAULT_$LINE"
8256 else
8257 no_cache=1
8258 fi
8259
a57d600f 8260 ac_cv_use_comboctrl='wxUSE_COMBOCTRL='$DEFAULT_wxUSE_COMBOCTRL
642bcba9
VZ
8261
8262fi;
8263
a57d600f 8264 eval "$ac_cv_use_comboctrl"
642bcba9 8265 if test "$no_cache" != 1; then
a57d600f 8266 echo $ac_cv_use_comboctrl >> ${wx_arg_cache_file}.tmp
642bcba9
VZ
8267 fi
8268
a57d600f 8269 if test "$wxUSE_COMBOCTRL" = yes; then
642bcba9
VZ
8270 echo "$as_me:$LINENO: result: yes" >&5
8271echo "${ECHO_T}yes" >&6
8272 else
8273 echo "$as_me:$LINENO: result: no" >&5
8274echo "${ECHO_T}no" >&6
8275 fi
8276
8277
da98e9be
VZ
8278 enablestring=
8279 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
8280echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
8281 no_cache=0
8282 # Check whether --enable-datepick or --disable-datepick was given.
8283if test "${enable_datepick+set}" = set; then
8284 enableval="$enable_datepick"
8285
8286 if test "$enableval" = yes; then
8287 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
8288 else
8289 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
8290 fi
8291
8292else
8293
8294 LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
8295 if test "x$LINE" != x ; then
8296 eval "DEFAULT_$LINE"
8297 else
8298 no_cache=1
8299 fi
8300
8301 ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
8302
8303fi;
8304
8305 eval "$ac_cv_use_datepick"
8306 if test "$no_cache" != 1; then
8307 echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
8308 fi
8309
8310 if test "$wxUSE_DATEPICKCTRL" = yes; then
8311 echo "$as_me:$LINENO: result: yes" >&5
8312echo "${ECHO_T}yes" >&6
8313 else
8314 echo "$as_me:$LINENO: result: no" >&5
8315echo "${ECHO_T}no" >&6
8316 fi
8317
8318
e9263684
VZ
8319 enablestring=
8320 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5
8321echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6
8322 no_cache=0
8323 # Check whether --enable-dirpicker or --disable-dirpicker was given.
8324if test "${enable_dirpicker+set}" = set; then
8325 enableval="$enable_dirpicker"
8326
8327 if test "$enableval" = yes; then
8328 ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes'
8329 else
8330 ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no'
8331 fi
8332
8333else
8334
8335 LINE=`grep "wxUSE_DIRPICKERCTRL" ${wx_arg_cache_file}`
8336 if test "x$LINE" != x ; then
8337 eval "DEFAULT_$LINE"
8338 else
8339 no_cache=1
8340 fi
8341
8342 ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL='$DEFAULT_wxUSE_DIRPICKERCTRL
8343
8344fi;
8345
8346 eval "$ac_cv_use_dirpicker"
8347 if test "$no_cache" != 1; then
8348 echo $ac_cv_use_dirpicker >> ${wx_arg_cache_file}.tmp
8349 fi
8350
8351 if test "$wxUSE_DIRPICKERCTRL" = yes; then
8352 echo "$as_me:$LINENO: result: yes" >&5
8353echo "${ECHO_T}yes" >&6
8354 else
8355 echo "$as_me:$LINENO: result: no" >&5
8356echo "${ECHO_T}no" >&6
8357 fi
8358
8359
a848cd7e
SC
8360 enablestring=
8361 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
8362echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
8363 no_cache=0
8364 # Check whether --enable-display or --disable-display was given.
8365if test "${enable_display+set}" = set; then
8366 enableval="$enable_display"
8367
8368 if test "$enableval" = yes; then
8369 ac_cv_use_display='wxUSE_DISPLAY=yes'
8370 else
8371 ac_cv_use_display='wxUSE_DISPLAY=no'
8372 fi
8373
8374else
8375
8376 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
8377 if test "x$LINE" != x ; then
8378 eval "DEFAULT_$LINE"
8379 else
8380 no_cache=1
8381 fi
8382
8383 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
8384
8385fi;
8386
8387 eval "$ac_cv_use_display"
8388 if test "$no_cache" != 1; then
8389 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
8390 fi
8391
8392 if test "$wxUSE_DISPLAY" = yes; then
8393 echo "$as_me:$LINENO: result: yes" >&5
8394echo "${ECHO_T}yes" >&6
8395 else
8396 echo "$as_me:$LINENO: result: no" >&5
8397echo "${ECHO_T}no" >&6
8398 fi
8399
8400
e9263684
VZ
8401 enablestring=
8402 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5
8403echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6
8404 no_cache=0
8405 # Check whether --enable-filepicker or --disable-filepicker was given.
8406if test "${enable_filepicker+set}" = set; then
8407 enableval="$enable_filepicker"
8408
8409 if test "$enableval" = yes; then
8410 ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes'
8411 else
8412 ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no'
8413 fi
8414
8415else
8416
8417 LINE=`grep "wxUSE_FILEPICKERCTRL" ${wx_arg_cache_file}`
8418 if test "x$LINE" != x ; then
8419 eval "DEFAULT_$LINE"
8420 else
8421 no_cache=1
8422 fi
8423
8424 ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL='$DEFAULT_wxUSE_FILEPICKERCTRL
8425
8426fi;
8427
8428 eval "$ac_cv_use_filepicker"
8429 if test "$no_cache" != 1; then
8430 echo $ac_cv_use_filepicker >> ${wx_arg_cache_file}.tmp
8431 fi
8432
8433 if test "$wxUSE_FILEPICKERCTRL" = yes; then
8434 echo "$as_me:$LINENO: result: yes" >&5
8435echo "${ECHO_T}yes" >&6
8436 else
8437 echo "$as_me:$LINENO: result: no" >&5
8438echo "${ECHO_T}no" >&6
8439 fi
8440
8441
8442 enablestring=
8443 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5
8444echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6
8445 no_cache=0
8446 # Check whether --enable-fontpicker or --disable-fontpicker was given.
8447if test "${enable_fontpicker+set}" = set; then
8448 enableval="$enable_fontpicker"
8449
8450 if test "$enableval" = yes; then
8451 ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes'
8452 else
8453 ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no'
8454 fi
8455
8456else
8457
8458 LINE=`grep "wxUSE_FONTPICKERCTRL" ${wx_arg_cache_file}`
8459 if test "x$LINE" != x ; then
8460 eval "DEFAULT_$LINE"
8461 else
8462 no_cache=1
8463 fi
8464
8465 ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL='$DEFAULT_wxUSE_FONTPICKERCTRL
8466
8467fi;
8468
8469 eval "$ac_cv_use_fontpicker"
8470 if test "$no_cache" != 1; then
8471 echo $ac_cv_use_fontpicker >> ${wx_arg_cache_file}.tmp
8472 fi
8473
8474 if test "$wxUSE_FONTPICKERCTRL" = yes; then
8475 echo "$as_me:$LINENO: result: yes" >&5
8476echo "${ECHO_T}yes" >&6
8477 else
8478 echo "$as_me:$LINENO: result: no" >&5
8479echo "${ECHO_T}no" >&6
8480 fi
8481
8482
a848cd7e
SC
8483 enablestring=
8484 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
8485echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
8486 no_cache=0
8487 # Check whether --enable-gauge or --disable-gauge was given.
8488if test "${enable_gauge+set}" = set; then
8489 enableval="$enable_gauge"
8490
8491 if test "$enableval" = yes; then
8492 ac_cv_use_gauge='wxUSE_GAUGE=yes'
8493 else
8494 ac_cv_use_gauge='wxUSE_GAUGE=no'
8495 fi
8496
8497else
8498
8499 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
8500 if test "x$LINE" != x ; then
8501 eval "DEFAULT_$LINE"
8502 else
8503 no_cache=1
8504 fi
8505
8506 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
8507
8508fi;
8509
8510 eval "$ac_cv_use_gauge"
8511 if test "$no_cache" != 1; then
8512 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
8513 fi
8514
8515 if test "$wxUSE_GAUGE" = yes; then
8516 echo "$as_me:$LINENO: result: yes" >&5
8517echo "${ECHO_T}yes" >&6
8518 else
8519 echo "$as_me:$LINENO: result: no" >&5
8520echo "${ECHO_T}no" >&6
8521 fi
8522
8523
8524 enablestring=
8525 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
8526echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
8527 no_cache=0
8528 # Check whether --enable-grid or --disable-grid was given.
8529if test "${enable_grid+set}" = set; then
8530 enableval="$enable_grid"
8531
8532 if test "$enableval" = yes; then
8533 ac_cv_use_grid='wxUSE_GRID=yes'
8534 else
8535 ac_cv_use_grid='wxUSE_GRID=no'
8536 fi
8537
8538else
8539
8540 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
8541 if test "x$LINE" != x ; then
8542 eval "DEFAULT_$LINE"
8543 else
8544 no_cache=1
8545 fi
8546
8547 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
8548
8549fi;
8550
8551 eval "$ac_cv_use_grid"
8552 if test "$no_cache" != 1; then
8553 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
8554 fi
8555
8556 if test "$wxUSE_GRID" = yes; then
8557 echo "$as_me:$LINENO: result: yes" >&5
8558echo "${ECHO_T}yes" >&6
8559 else
8560 echo "$as_me:$LINENO: result: no" >&5
8561echo "${ECHO_T}no" >&6
8562 fi
8563
8564
20e34ecc
RR
8565 enablestring=
8566 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
8567echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6
8568 no_cache=0
8569 # Check whether --enable-dataviewctrl or --disable-dataviewctrl was given.
8570if test "${enable_dataviewctrl+set}" = set; then
8571 enableval="$enable_dataviewctrl"
8572
8573 if test "$enableval" = yes; then
8574 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
8575 else
8576 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
8577 fi
8578
8579else
8580
8581 LINE=`grep "wxUSE_DATAVIEWCTRL" ${wx_arg_cache_file}`
8582 if test "x$LINE" != x ; then
8583 eval "DEFAULT_$LINE"
8584 else
8585 no_cache=1
8586 fi
8587
8588 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL='$DEFAULT_wxUSE_DATAVIEWCTRL
8589
8590fi;
8591
8592 eval "$ac_cv_use_dataviewctrl"
8593 if test "$no_cache" != 1; then
8594 echo $ac_cv_use_dataviewctrl >> ${wx_arg_cache_file}.tmp
8595 fi
8596
8597 if test "$wxUSE_DATAVIEWCTRL" = yes; then
8598 echo "$as_me:$LINENO: result: yes" >&5
8599echo "${ECHO_T}yes" >&6
8600 else
8601 echo "$as_me:$LINENO: result: no" >&5
8602echo "${ECHO_T}no" >&6
8603 fi
8604
8605
6954625c
VZ
8606 enablestring=
8607 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
8608echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6
8609 no_cache=0
8610 # Check whether --enable-hyperlink or --disable-hyperlink was given.
8611if test "${enable_hyperlink+set}" = set; then
8612 enableval="$enable_hyperlink"
8613
8614 if test "$enableval" = yes; then
8615 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
8616 else
8617 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
8618 fi
8619
8620else
8621
8622 LINE=`grep "wxUSE_HYPERLINKCTRL" ${wx_arg_cache_file}`
8623 if test "x$LINE" != x ; then
8624 eval "DEFAULT_$LINE"
8625 else
8626 no_cache=1
8627 fi
8628
8629 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL='$DEFAULT_wxUSE_HYPERLINKCTRL
8630
8631fi;
8632
8633 eval "$ac_cv_use_hyperlink"
8634 if test "$no_cache" != 1; then
8635 echo $ac_cv_use_hyperlink >> ${wx_arg_cache_file}.tmp
8636 fi
8637
8638 if test "$wxUSE_HYPERLINKCTRL" = yes; then
8639 echo "$as_me:$LINENO: result: yes" >&5
8640echo "${ECHO_T}yes" >&6
8641 else
8642 echo "$as_me:$LINENO: result: no" >&5
8643echo "${ECHO_T}no" >&6
8644 fi
8645
8646
a848cd7e
SC
8647 enablestring=
8648 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
8649echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
8650 no_cache=0
8651 # Check whether --enable-imaglist or --disable-imaglist was given.
8652if test "${enable_imaglist+set}" = set; then
8653 enableval="$enable_imaglist"
8654
8655 if test "$enableval" = yes; then
8656 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
8657 else
8658 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
8659 fi
8660
8661else
8662
8663 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
8664 if test "x$LINE" != x ; then
8665 eval "DEFAULT_$LINE"
8666 else
8667 no_cache=1
8668 fi
8669
8670 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
8671
8672fi;
8673
8674 eval "$ac_cv_use_imaglist"
8675 if test "$no_cache" != 1; then
8676 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
8677 fi
8678
8679 if test "$wxUSE_IMAGLIST" = yes; then
8680 echo "$as_me:$LINENO: result: yes" >&5
8681echo "${ECHO_T}yes" >&6
8682 else
8683 echo "$as_me:$LINENO: result: no" >&5
8684echo "${ECHO_T}no" >&6
8685 fi
8686
8687
8688 enablestring=
8689 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
8690echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
8691 no_cache=0
8692 # Check whether --enable-listbook or --disable-listbook was given.
8693if test "${enable_listbook+set}" = set; then
8694 enableval="$enable_listbook"
8695
8696 if test "$enableval" = yes; then
8697 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
8698 else
8699 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
8700 fi
8701
8702else
8703
8704 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
8705 if test "x$LINE" != x ; then
8706 eval "DEFAULT_$LINE"
8707 else
8708 no_cache=1
8709 fi
8710
8711 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
8712
8713fi;
8714
8715 eval "$ac_cv_use_listbook"
8716 if test "$no_cache" != 1; then
8717 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
8718 fi
8719
8720 if test "$wxUSE_LISTBOOK" = yes; then
8721 echo "$as_me:$LINENO: result: yes" >&5
8722echo "${ECHO_T}yes" >&6
8723 else
8724 echo "$as_me:$LINENO: result: no" >&5
8725echo "${ECHO_T}no" >&6
8726 fi
8727
8728
8729 enablestring=
8730 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
8731echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
8732 no_cache=0
8733 # Check whether --enable-listbox or --disable-listbox was given.
8734if test "${enable_listbox+set}" = set; then
8735 enableval="$enable_listbox"
8736
8737 if test "$enableval" = yes; then
8738 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
8739 else
8740 ac_cv_use_listbox='wxUSE_LISTBOX=no'
8741 fi
8742
8743else
8744
8745 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
8746 if test "x$LINE" != x ; then
8747 eval "DEFAULT_$LINE"
8748 else
8749 no_cache=1
8750 fi
8751
8752 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
8753
8754fi;
8755
8756 eval "$ac_cv_use_listbox"
8757 if test "$no_cache" != 1; then
8758 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
8759 fi
8760
8761 if test "$wxUSE_LISTBOX" = yes; then
8762 echo "$as_me:$LINENO: result: yes" >&5
8763echo "${ECHO_T}yes" >&6
8764 else
8765 echo "$as_me:$LINENO: result: no" >&5
8766echo "${ECHO_T}no" >&6
8767 fi
8768
8769
8770 enablestring=
8771 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
8772echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
8773 no_cache=0
8774 # Check whether --enable-listctrl or --disable-listctrl was given.
8775if test "${enable_listctrl+set}" = set; then
8776 enableval="$enable_listctrl"
8777
8778 if test "$enableval" = yes; then
8779 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
8780 else
8781 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
8782 fi
8783
8784else
8785
8786 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
8787 if test "x$LINE" != x ; then
8788 eval "DEFAULT_$LINE"
8789 else
8790 no_cache=1
8791 fi
8792
8793 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
8794
8795fi;
8796
8797 eval "$ac_cv_use_listctrl"
8798 if test "$no_cache" != 1; then
8799 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
8800 fi
8801
8802 if test "$wxUSE_LISTCTRL" = yes; then
8803 echo "$as_me:$LINENO: result: yes" >&5
8804echo "${ECHO_T}yes" >&6
8805 else
8806 echo "$as_me:$LINENO: result: no" >&5
8807echo "${ECHO_T}no" >&6
8808 fi
8809
8810
8811 enablestring=
8812 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
8813echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
8814 no_cache=0
8815 # Check whether --enable-notebook or --disable-notebook was given.
8816if test "${enable_notebook+set}" = set; then
8817 enableval="$enable_notebook"
8818
8819 if test "$enableval" = yes; then
8820 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
8821 else
8822 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
8823 fi
8824
8825else
8826
8827 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
8828 if test "x$LINE" != x ; then
8829 eval "DEFAULT_$LINE"
8830 else
8831 no_cache=1
8832 fi
8833
8834 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
8835
8836fi;
8837
8838 eval "$ac_cv_use_notebook"
8839 if test "$no_cache" != 1; then
8840 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
8841 fi
8842
8843 if test "$wxUSE_NOTEBOOK" = yes; then
8844 echo "$as_me:$LINENO: result: yes" >&5
8845echo "${ECHO_T}yes" >&6
8846 else
8847 echo "$as_me:$LINENO: result: no" >&5
8848echo "${ECHO_T}no" >&6
8849 fi
8850
8851
642bcba9 8852 enablestring=
a57d600f
VZ
8853 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
8854echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6
642bcba9 8855 no_cache=0
a57d600f
VZ
8856 # Check whether --enable-odcombobox or --disable-odcombobox was given.
8857if test "${enable_odcombobox+set}" = set; then
8858 enableval="$enable_odcombobox"
642bcba9
VZ
8859
8860 if test "$enableval" = yes; then
a57d600f 8861 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
642bcba9 8862 else
a57d600f 8863 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
642bcba9
VZ
8864 fi
8865
8866else
8867
a57d600f 8868 LINE=`grep "wxUSE_ODCOMBOBOX" ${wx_arg_cache_file}`
642bcba9
VZ
8869 if test "x$LINE" != x ; then
8870 eval "DEFAULT_$LINE"
8871 else
8872 no_cache=1
8873 fi
8874
a57d600f 8875 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX='$DEFAULT_wxUSE_ODCOMBOBOX
642bcba9
VZ
8876
8877fi;
8878
a57d600f 8879 eval "$ac_cv_use_odcombobox"
642bcba9 8880 if test "$no_cache" != 1; then
a57d600f 8881 echo $ac_cv_use_odcombobox >> ${wx_arg_cache_file}.tmp
642bcba9
VZ
8882 fi
8883
a57d600f 8884 if test "$wxUSE_ODCOMBOBOX" = yes; then
642bcba9
VZ
8885 echo "$as_me:$LINENO: result: yes" >&5
8886echo "${ECHO_T}yes" >&6
8887 else
8888 echo "$as_me:$LINENO: result: no" >&5
8889echo "${ECHO_T}no" >&6
8890 fi
8891
8892
a848cd7e
SC
8893 enablestring=
8894 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
8895echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
8896 no_cache=0
8897 # Check whether --enable-radiobox or --disable-radiobox was given.
8898if test "${enable_radiobox+set}" = set; then
8899 enableval="$enable_radiobox"
8900
8901 if test "$enableval" = yes; then
8902 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
8903 else
8904 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
8905 fi
8906
8907else
8908
8909 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
8910 if test "x$LINE" != x ; then
8911 eval "DEFAULT_$LINE"
8912 else
8913 no_cache=1
8914 fi
8915
8916 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
8917
8918fi;
8919
8920 eval "$ac_cv_use_radiobox"
8921 if test "$no_cache" != 1; then
8922 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
8923 fi
8924
8925 if test "$wxUSE_RADIOBOX" = yes; then
8926 echo "$as_me:$LINENO: result: yes" >&5
8927echo "${ECHO_T}yes" >&6
8928 else
8929 echo "$as_me:$LINENO: result: no" >&5
8930echo "${ECHO_T}no" >&6
8931 fi
8932
8933
8934 enablestring=
8935 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
8936echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
8937 no_cache=0
8938 # Check whether --enable-radiobtn or --disable-radiobtn was given.
8939if test "${enable_radiobtn+set}" = set; then
8940 enableval="$enable_radiobtn"
8941
8942 if test "$enableval" = yes; then
8943 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
8944 else
8945 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
8946 fi
8947
8948else
8949
8950 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
8951 if test "x$LINE" != x ; then
8952 eval "DEFAULT_$LINE"
8953 else
8954 no_cache=1
8955 fi
8956
8957 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
8958
8959fi;
8960
8961 eval "$ac_cv_use_radiobtn"
8962 if test "$no_cache" != 1; then
8963 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
8964 fi
8965
8966 if test "$wxUSE_RADIOBTN" = yes; then
8967 echo "$as_me:$LINENO: result: yes" >&5
8968echo "${ECHO_T}yes" >&6
8969 else
8970 echo "$as_me:$LINENO: result: no" >&5
8971echo "${ECHO_T}no" >&6
8972 fi
8973
8974
8975 enablestring=
8976 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
8977echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
8978 no_cache=0
8979 # Check whether --enable-sash or --disable-sash was given.
8980if test "${enable_sash+set}" = set; then
8981 enableval="$enable_sash"
8982
8983 if test "$enableval" = yes; then
8984 ac_cv_use_sash='wxUSE_SASH=yes'
8985 else
8986 ac_cv_use_sash='wxUSE_SASH=no'
8987 fi
8988
8989else
8990
8991 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
8992 if test "x$LINE" != x ; then
8993 eval "DEFAULT_$LINE"
8994 else
8995 no_cache=1
8996 fi
8997
8998 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
8999
9000fi;
9001
9002 eval "$ac_cv_use_sash"
9003 if test "$no_cache" != 1; then
9004 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
9005 fi
9006
9007 if test "$wxUSE_SASH" = yes; then
9008 echo "$as_me:$LINENO: result: yes" >&5
9009echo "${ECHO_T}yes" >&6
9010 else
9011 echo "$as_me:$LINENO: result: no" >&5
9012echo "${ECHO_T}no" >&6
9013 fi
9014
9015
9016 enablestring=
9017 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
9018echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
9019 no_cache=0
9020 # Check whether --enable-scrollbar or --disable-scrollbar was given.
9021if test "${enable_scrollbar+set}" = set; then
9022 enableval="$enable_scrollbar"
9023
9024 if test "$enableval" = yes; then
9025 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
9026 else
9027 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
9028 fi
9029
9030else
9031
9032 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
9033 if test "x$LINE" != x ; then
9034 eval "DEFAULT_$LINE"
9035 else
9036 no_cache=1
9037 fi
9038
9039 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
9040
9041fi;
9042
9043 eval "$ac_cv_use_scrollbar"
9044 if test "$no_cache" != 1; then
9045 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
9046 fi
9047
9048 if test "$wxUSE_SCROLLBAR" = yes; then
9049 echo "$as_me:$LINENO: result: yes" >&5
9050echo "${ECHO_T}yes" >&6
9051 else
9052 echo "$as_me:$LINENO: result: no" >&5
9053echo "${ECHO_T}no" >&6
9054 fi
9055
9056
9057 enablestring=
9058 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
9059echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
9060 no_cache=0
9061 # Check whether --enable-slider or --disable-slider was given.
9062if test "${enable_slider+set}" = set; then
9063 enableval="$enable_slider"
9064
9065 if test "$enableval" = yes; then
9066 ac_cv_use_slider='wxUSE_SLIDER=yes'
9067 else
9068 ac_cv_use_slider='wxUSE_SLIDER=no'
9069 fi
9070
9071else
9072
9073 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
9074 if test "x$LINE" != x ; then
9075 eval "DEFAULT_$LINE"
9076 else
9077 no_cache=1
9078 fi
9079
9080 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
9081
9082fi;
9083
9084 eval "$ac_cv_use_slider"
9085 if test "$no_cache" != 1; then
9086 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
9087 fi
9088
9089 if test "$wxUSE_SLIDER" = yes; then
9090 echo "$as_me:$LINENO: result: yes" >&5
9091echo "${ECHO_T}yes" >&6
9092 else
9093 echo "$as_me:$LINENO: result: no" >&5
9094echo "${ECHO_T}no" >&6
9095 fi
9096
9097
9098 enablestring=
9099 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
9100echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
9101 no_cache=0
9102 # Check whether --enable-spinbtn or --disable-spinbtn was given.
9103if test "${enable_spinbtn+set}" = set; then
9104 enableval="$enable_spinbtn"
9105
9106 if test "$enableval" = yes; then
9107 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
9108 else
9109 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
9110 fi
9111
9112else
9113
9114 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
9115 if test "x$LINE" != x ; then
9116 eval "DEFAULT_$LINE"
9117 else
9118 no_cache=1
9119 fi
9120
9121 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
9122
9123fi;
9124
9125 eval "$ac_cv_use_spinbtn"
9126 if test "$no_cache" != 1; then
9127 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
9128 fi
9129
9130 if test "$wxUSE_SPINBTN" = yes; then
9131 echo "$as_me:$LINENO: result: yes" >&5
9132echo "${ECHO_T}yes" >&6
9133 else
9134 echo "$as_me:$LINENO: result: no" >&5
9135echo "${ECHO_T}no" >&6
9136 fi
9137
9138
9139 enablestring=
9140 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
9141echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
9142 no_cache=0
9143 # Check whether --enable-spinctrl or --disable-spinctrl was given.
9144if test "${enable_spinctrl+set}" = set; then
9145 enableval="$enable_spinctrl"
9146
9147 if test "$enableval" = yes; then
9148 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
9149 else
9150 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
9151 fi
9152
9153else
9154
9155 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
9156 if test "x$LINE" != x ; then
9157 eval "DEFAULT_$LINE"
9158 else
9159 no_cache=1
9160 fi
9161
9162 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
9163
9164fi;
9165
9166 eval "$ac_cv_use_spinctrl"
9167 if test "$no_cache" != 1; then
9168 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
9169 fi
9170
9171 if test "$wxUSE_SPINCTRL" = yes; then
9172 echo "$as_me:$LINENO: result: yes" >&5
9173echo "${ECHO_T}yes" >&6
9174 else
9175 echo "$as_me:$LINENO: result: no" >&5
9176echo "${ECHO_T}no" >&6
9177 fi
9178
9179
9180 enablestring=
9181 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
9182echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
9183 no_cache=0
9184 # Check whether --enable-splitter or --disable-splitter was given.
9185if test "${enable_splitter+set}" = set; then
9186 enableval="$enable_splitter"
9187
9188 if test "$enableval" = yes; then
9189 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
9190 else
9191 ac_cv_use_splitter='wxUSE_SPLITTER=no'
9192 fi
9193
9194else
9195
9196 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
9197 if test "x$LINE" != x ; then
9198 eval "DEFAULT_$LINE"
9199 else
9200 no_cache=1
9201 fi
9202
9203 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
9204
9205fi;
9206
9207 eval "$ac_cv_use_splitter"
9208 if test "$no_cache" != 1; then
9209 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
9210 fi
9211
9212 if test "$wxUSE_SPLITTER" = yes; then
9213 echo "$as_me:$LINENO: result: yes" >&5
9214echo "${ECHO_T}yes" >&6
9215 else
9216 echo "$as_me:$LINENO: result: no" >&5
9217echo "${ECHO_T}no" >&6
9218 fi
9219
9220
9221 enablestring=
9222 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
9223echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
9224 no_cache=0
9225 # Check whether --enable-statbmp or --disable-statbmp was given.
9226if test "${enable_statbmp+set}" = set; then
9227 enableval="$enable_statbmp"
9228
9229 if test "$enableval" = yes; then
9230 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
9231 else
9232 ac_cv_use_statbmp='wxUSE_STATBMP=no'
9233 fi
9234
9235else
9236
9237 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
9238 if test "x$LINE" != x ; then
9239 eval "DEFAULT_$LINE"
9240 else
9241 no_cache=1
9242 fi
9243
9244 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
9245
9246fi;
9247
9248 eval "$ac_cv_use_statbmp"
9249 if test "$no_cache" != 1; then
9250 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
9251 fi
9252
9253 if test "$wxUSE_STATBMP" = yes; then
9254 echo "$as_me:$LINENO: result: yes" >&5
9255echo "${ECHO_T}yes" >&6
9256 else
9257 echo "$as_me:$LINENO: result: no" >&5
9258echo "${ECHO_T}no" >&6
9259 fi
9260
9261
9262 enablestring=
9263 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
9264echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
9265 no_cache=0
9266 # Check whether --enable-statbox or --disable-statbox was given.
9267if test "${enable_statbox+set}" = set; then
9268 enableval="$enable_statbox"
9269
9270 if test "$enableval" = yes; then
9271 ac_cv_use_statbox='wxUSE_STATBOX=yes'
9272 else
9273 ac_cv_use_statbox='wxUSE_STATBOX=no'
9274 fi
9275
9276else
9277
9278 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
9279 if test "x$LINE" != x ; then
9280 eval "DEFAULT_$LINE"
9281 else
9282 no_cache=1
9283 fi
9284
9285 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
9286
9287fi;
9288
9289 eval "$ac_cv_use_statbox"
9290 if test "$no_cache" != 1; then
9291 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
9292 fi
9293
9294 if test "$wxUSE_STATBOX" = yes; then
9295 echo "$as_me:$LINENO: result: yes" >&5
9296echo "${ECHO_T}yes" >&6
9297 else
9298 echo "$as_me:$LINENO: result: no" >&5
9299echo "${ECHO_T}no" >&6
9300 fi
9301
9302
9303 enablestring=
9304 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
9305echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
9306 no_cache=0
9307 # Check whether --enable-statline or --disable-statline was given.
9308if test "${enable_statline+set}" = set; then
9309 enableval="$enable_statline"
9310
9311 if test "$enableval" = yes; then
9312 ac_cv_use_statline='wxUSE_STATLINE=yes'
9313 else
9314 ac_cv_use_statline='wxUSE_STATLINE=no'
9315 fi
9316
9317else
9318
9319 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
9320 if test "x$LINE" != x ; then
9321 eval "DEFAULT_$LINE"
9322 else
9323 no_cache=1
9324 fi
9325
9326 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
9327
9328fi;
9329
9330 eval "$ac_cv_use_statline"
9331 if test "$no_cache" != 1; then
9332 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
9333 fi
9334
9335 if test "$wxUSE_STATLINE" = yes; then
9336 echo "$as_me:$LINENO: result: yes" >&5
9337echo "${ECHO_T}yes" >&6
9338 else
9339 echo "$as_me:$LINENO: result: no" >&5
9340echo "${ECHO_T}no" >&6
9341 fi
9342
9343
9344 enablestring=
9345 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
9346echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
9347 no_cache=0
9348 # Check whether --enable-stattext or --disable-stattext was given.
9349if test "${enable_stattext+set}" = set; then
9350 enableval="$enable_stattext"
9351
9352 if test "$enableval" = yes; then
9353 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
9354 else
9355 ac_cv_use_stattext='wxUSE_STATTEXT=no'
9356 fi
9357
9358else
9359
9360 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
9361 if test "x$LINE" != x ; then
9362 eval "DEFAULT_$LINE"
9363 else
9364 no_cache=1
9365 fi
9366
9367 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
9368
9369fi;
9370
9371 eval "$ac_cv_use_stattext"
9372 if test "$no_cache" != 1; then
9373 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
9374 fi
9375
9376 if test "$wxUSE_STATTEXT" = yes; then
9377 echo "$as_me:$LINENO: result: yes" >&5
9378echo "${ECHO_T}yes" >&6
9379 else
9380 echo "$as_me:$LINENO: result: no" >&5
9381echo "${ECHO_T}no" >&6
9382 fi
9383
9384
9385 enablestring=
9386 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
9387echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
9388 no_cache=0
9389 # Check whether --enable-statusbar or --disable-statusbar was given.
9390if test "${enable_statusbar+set}" = set; then
9391 enableval="$enable_statusbar"
9392
9393 if test "$enableval" = yes; then
9394 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
9395 else
9396 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
9397 fi
9398
9399else
9400
9401 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
9402 if test "x$LINE" != x ; then
9403 eval "DEFAULT_$LINE"
9404 else
9405 no_cache=1
9406 fi
9407
9408 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
9409
9410fi;
9411
9412 eval "$ac_cv_use_statusbar"
9413 if test "$no_cache" != 1; then
9414 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
9415 fi
9416
9417 if test "$wxUSE_STATUSBAR" = yes; then
9418 echo "$as_me:$LINENO: result: yes" >&5
9419echo "${ECHO_T}yes" >&6
9420 else
9421 echo "$as_me:$LINENO: result: no" >&5
9422echo "${ECHO_T}no" >&6
9423 fi
9424
9425
9426 enablestring=
9427 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
9428echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
9429 no_cache=0
9430 # Check whether --enable-tabdialog or --disable-tabdialog was given.
9431if test "${enable_tabdialog+set}" = set; then
9432 enableval="$enable_tabdialog"
9433
9434 if test "$enableval" = yes; then
f10e38c4 9435 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=yes'
a848cd7e 9436 else
f10e38c4 9437 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=no'
a848cd7e
SC
9438 fi
9439
9440else
9441
f10e38c4 9442 LINE=`grep "wxUSE_TAB_DIALOG" ${wx_arg_cache_file}`
a848cd7e
SC
9443 if test "x$LINE" != x ; then
9444 eval "DEFAULT_$LINE"
9445 else
9446 no_cache=1
9447 fi
9448
f10e38c4 9449 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG='$DEFAULT_wxUSE_TAB_DIALOG
a848cd7e
SC
9450
9451fi;
9452
9453 eval "$ac_cv_use_tabdialog"
9454 if test "$no_cache" != 1; then
9455 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
9456 fi
9457
f10e38c4 9458 if test "$wxUSE_TAB_DIALOG" = yes; then
a848cd7e
SC
9459 echo "$as_me:$LINENO: result: yes" >&5
9460echo "${ECHO_T}yes" >&6
9461 else
9462 echo "$as_me:$LINENO: result: no" >&5
9463echo "${ECHO_T}no" >&6
9464 fi
9465
9466
9467 enablestring=
9468 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
9469echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
9470 no_cache=0
9471 # Check whether --enable-textctrl or --disable-textctrl was given.
9472if test "${enable_textctrl+set}" = set; then
9473 enableval="$enable_textctrl"
9474
9475 if test "$enableval" = yes; then
9476 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
9477 else
9478 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
9479 fi
9480
9481else
9482
9483 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
9484 if test "x$LINE" != x ; then
9485 eval "DEFAULT_$LINE"
9486 else
9487 no_cache=1
9488 fi
9489
9490 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
9491
9492fi;
9493
9494 eval "$ac_cv_use_textctrl"
9495 if test "$no_cache" != 1; then
9496 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
9497 fi
9498
9499 if test "$wxUSE_TEXTCTRL" = yes; then
9500 echo "$as_me:$LINENO: result: yes" >&5
9501echo "${ECHO_T}yes" >&6
9502 else
9503 echo "$as_me:$LINENO: result: no" >&5
9504echo "${ECHO_T}no" >&6
9505 fi
9506
9507
9508 enablestring=
9509 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
9510echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
9511 no_cache=0
9512 # Check whether --enable-togglebtn or --disable-togglebtn was given.
9513if test "${enable_togglebtn+set}" = set; then
9514 enableval="$enable_togglebtn"
9515
9516 if test "$enableval" = yes; then
9517 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
9518 else
9519 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
9520 fi
9521
9522else
9523
9524 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
9525 if test "x$LINE" != x ; then
9526 eval "DEFAULT_$LINE"
9527 else
9528 no_cache=1
9529 fi
9530
9531 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
9532
9533fi;
9534
9535 eval "$ac_cv_use_togglebtn"
9536 if test "$no_cache" != 1; then
9537 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
9538 fi
9539
9540 if test "$wxUSE_TOGGLEBTN" = yes; then
9541 echo "$as_me:$LINENO: result: yes" >&5
9542echo "${ECHO_T}yes" >&6
9543 else
9544 echo "$as_me:$LINENO: result: no" >&5
9545echo "${ECHO_T}no" >&6
9546 fi
9547
9548
9549 enablestring=
9550 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
9551echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
9552 no_cache=0
9553 # Check whether --enable-toolbar or --disable-toolbar was given.
9554if test "${enable_toolbar+set}" = set; then
9555 enableval="$enable_toolbar"
9556
9557 if test "$enableval" = yes; then
9558 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
9559 else
9560 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
9561 fi
9562
9563else
9564
9565 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
9566 if test "x$LINE" != x ; then
9567 eval "DEFAULT_$LINE"
9568 else
9569 no_cache=1
9570 fi
9571
9572 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
9573
9574fi;
9575
9576 eval "$ac_cv_use_toolbar"
9577 if test "$no_cache" != 1; then
9578 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
9579 fi
9580
9581 if test "$wxUSE_TOOLBAR" = yes; then
9582 echo "$as_me:$LINENO: result: yes" >&5
9583echo "${ECHO_T}yes" >&6
9584 else
9585 echo "$as_me:$LINENO: result: no" >&5
9586echo "${ECHO_T}no" >&6
9587 fi
9588
9589
9590 enablestring=
9591 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
9592echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
9593 no_cache=0
9594 # Check whether --enable-tbarnative or --disable-tbarnative was given.
9595if test "${enable_tbarnative+set}" = set; then
9596 enableval="$enable_tbarnative"
9597
9598 if test "$enableval" = yes; then
9599 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
9600 else
9601 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
9602 fi
9603
9604else
9605
9606 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
9607 if test "x$LINE" != x ; then
9608 eval "DEFAULT_$LINE"
9609 else
9610 no_cache=1
9611 fi
9612
9613 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
9614
9615fi;
9616
9617 eval "$ac_cv_use_tbarnative"
9618 if test "$no_cache" != 1; then
9619 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
9620 fi
9621
9622 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
9623 echo "$as_me:$LINENO: result: yes" >&5
9624echo "${ECHO_T}yes" >&6
9625 else
9626 echo "$as_me:$LINENO: result: no" >&5
9627echo "${ECHO_T}no" >&6
9628 fi
9629
9630
0093c2fc
VZ
9631 enablestring=
9632 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
9633echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6
9634 no_cache=0
9635 # Check whether --enable-treebook or --disable-treebook was given.
9636if test "${enable_treebook+set}" = set; then
9637 enableval="$enable_treebook"
9638
9639 if test "$enableval" = yes; then
9640 ac_cv_use_treebook='wxUSE_TREEBOOK=yes'
9641 else
9642 ac_cv_use_treebook='wxUSE_TREEBOOK=no'
9643 fi
9644
9645else
9646
9647 LINE=`grep "wxUSE_TREEBOOK" ${wx_arg_cache_file}`
9648 if test "x$LINE" != x ; then
9649 eval "DEFAULT_$LINE"
9650 else
9651 no_cache=1
9652 fi
9653
9654 ac_cv_use_treebook='wxUSE_TREEBOOK='$DEFAULT_wxUSE_TREEBOOK
9655
9656fi;
9657
9658 eval "$ac_cv_use_treebook"
9659 if test "$no_cache" != 1; then
9660 echo $ac_cv_use_treebook >> ${wx_arg_cache_file}.tmp
9661 fi
9662
9663 if test "$wxUSE_TREEBOOK" = yes; then
9664 echo "$as_me:$LINENO: result: yes" >&5
9665echo "${ECHO_T}yes" >&6
9666 else
9667 echo "$as_me:$LINENO: result: no" >&5
9668echo "${ECHO_T}no" >&6
9669 fi
9670
9671
5ec3bc43
JS
9672 enablestring=
9673 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
9674echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6
9675 no_cache=0
9676 # Check whether --enable-toolbook or --disable-toolbook was given.
9677if test "${enable_toolbook+set}" = set; then
9678 enableval="$enable_toolbook"
9679
9680 if test "$enableval" = yes; then
9681 ac_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
9682 else
9683 ac_cv_use_toolbook='wxUSE_TOOLBOOK=no'
9684 fi
9685
9686else
9687
9688 LINE=`grep "wxUSE_TOOLBOOK" ${wx_arg_cache_file}`
9689 if test "x$LINE" != x ; then
9690 eval "DEFAULT_$LINE"
9691 else
9692 no_cache=1
9693 fi
9694
9695 ac_cv_use_toolbook='wxUSE_TOOLBOOK='$DEFAULT_wxUSE_TOOLBOOK
9696
9697fi;
9698
9699 eval "$ac_cv_use_toolbook"
9700 if test "$no_cache" != 1; then
9701 echo $ac_cv_use_toolbook >> ${wx_arg_cache_file}.tmp
9702 fi
9703
9704 if test "$wxUSE_TOOLBOOK" = yes; then
9705 echo "$as_me:$LINENO: result: yes" >&5
9706echo "${ECHO_T}yes" >&6
9707 else
9708 echo "$as_me:$LINENO: result: no" >&5
9709echo "${ECHO_T}no" >&6
9710 fi
9711
9712
a848cd7e
SC
9713 enablestring=
9714 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
9715echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
9716 no_cache=0
9717 # Check whether --enable-treectrl or --disable-treectrl was given.
9718if test "${enable_treectrl+set}" = set; then
9719 enableval="$enable_treectrl"
9720
9721 if test "$enableval" = yes; then
9722 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
9723 else
9724 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
9725 fi
9726
9727else
9728
9729 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
9730 if test "x$LINE" != x ; then
9731 eval "DEFAULT_$LINE"
9732 else
9733 no_cache=1
9734 fi
9735
9736 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
9737
9738fi;
9739
9740 eval "$ac_cv_use_treectrl"
9741 if test "$no_cache" != 1; then
9742 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
9743 fi
9744
9745 if test "$wxUSE_TREECTRL" = yes; then
9746 echo "$as_me:$LINENO: result: yes" >&5
9747echo "${ECHO_T}yes" >&6
9748 else
9749 echo "$as_me:$LINENO: result: no" >&5
9750echo "${ECHO_T}no" >&6
9751 fi
9752
9753
9754 enablestring=
9755 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
9756echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
9757 no_cache=0
9758 # Check whether --enable-tipwindow or --disable-tipwindow was given.
9759if test "${enable_tipwindow+set}" = set; then
9760 enableval="$enable_tipwindow"
9761
9762 if test "$enableval" = yes; then
9763 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
9764 else
9765 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
9766 fi
9767
9768else
9769
9770 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
9771 if test "x$LINE" != x ; then
9772 eval "DEFAULT_$LINE"
9773 else
9774 no_cache=1
9775 fi
9776
9777 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
9778
9779fi;
9780
9781 eval "$ac_cv_use_tipwindow"
9782 if test "$no_cache" != 1; then
9783 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
9784 fi
9785
9786 if test "$wxUSE_TIPWINDOW" = yes; then
9787 echo "$as_me:$LINENO: result: yes" >&5
9788echo "${ECHO_T}yes" >&6
9789 else
9790 echo "$as_me:$LINENO: result: no" >&5
9791echo "${ECHO_T}no" >&6
9792 fi
9793
9794
9795 enablestring=
9796 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
9797echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
9798 no_cache=0
9799 # Check whether --enable-popupwin or --disable-popupwin was given.
9800if test "${enable_popupwin+set}" = set; then
9801 enableval="$enable_popupwin"
9802
9803 if test "$enableval" = yes; then
9804 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
9805 else
9806 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
9807 fi
9808
9809else
9810
9811 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
9812 if test "x$LINE" != x ; then
9813 eval "DEFAULT_$LINE"
9814 else
9815 no_cache=1
9816 fi
9817
9818 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9819
9820fi;
9821
9822 eval "$ac_cv_use_popupwin"
9823 if test "$no_cache" != 1; then
9824 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
9825 fi
9826
9827 if test "$wxUSE_POPUPWIN" = yes; then
9828 echo "$as_me:$LINENO: result: yes" >&5
9829echo "${ECHO_T}yes" >&6
9830 else
9831 echo "$as_me:$LINENO: result: no" >&5
9832echo "${ECHO_T}no" >&6
9833 fi
9834
9835
9836
9837
9838 enablestring=
9839 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
9840echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
9841 no_cache=0
9842 # Check whether --enable-commondlg or --disable-commondlg was given.
9843if test "${enable_commondlg+set}" = set; then
9844 enableval="$enable_commondlg"
9845
9846 if test "$enableval" = yes; then
9847 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
9848 else
9849 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
9850 fi
9851
9852else
9853
9854 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
9855 if test "x$LINE" != x ; then
9856 eval "DEFAULT_$LINE"
9857 else
9858 no_cache=1
9859 fi
9860
9861 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
9862
9863fi;
9864
9865 eval "$ac_cv_use_commondlg"
9866 if test "$no_cache" != 1; then
9867 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
9868 fi
9869
9870 if test "$wxUSE_COMMONDLGS" = yes; then
9871 echo "$as_me:$LINENO: result: yes" >&5
9872echo "${ECHO_T}yes" >&6
9873 else
9874 echo "$as_me:$LINENO: result: no" >&5
9875echo "${ECHO_T}no" >&6
9876 fi
9877
9878
9879 enablestring=
9880 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
9881echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
9882 no_cache=0
9883 # Check whether --enable-choicedlg or --disable-choicedlg was given.
9884if test "${enable_choicedlg+set}" = set; then
9885 enableval="$enable_choicedlg"
9886
9887 if test "$enableval" = yes; then
9888 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
9889 else
9890 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
9891 fi
9892
9893else
9894
9895 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
9896 if test "x$LINE" != x ; then
9897 eval "DEFAULT_$LINE"
9898 else
9899 no_cache=1
9900 fi
9901
9902 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
9903
9904fi;
9905
9906 eval "$ac_cv_use_choicedlg"
9907 if test "$no_cache" != 1; then
9908 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
9909 fi
9910
9911 if test "$wxUSE_CHOICEDLG" = yes; then
9912 echo "$as_me:$LINENO: result: yes" >&5
9913echo "${ECHO_T}yes" >&6
9914 else
9915 echo "$as_me:$LINENO: result: no" >&5
9916echo "${ECHO_T}no" >&6
9917 fi
9918
9919
9920 enablestring=
9921 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
9922echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
9923 no_cache=0
9924 # Check whether --enable-coldlg or --disable-coldlg was given.
9925if test "${enable_coldlg+set}" = set; then
9926 enableval="$enable_coldlg"
9927
9928 if test "$enableval" = yes; then
9929 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
9930 else
9931 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
9932 fi
9933
9934else
9935
9936 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
9937 if test "x$LINE" != x ; then
9938 eval "DEFAULT_$LINE"
9939 else
9940 no_cache=1
9941 fi
9942
9943 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
9944
9945fi;
9946
9947 eval "$ac_cv_use_coldlg"
9948 if test "$no_cache" != 1; then
9949 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
9950 fi
9951
9952 if test "$wxUSE_COLOURDLG" = yes; then
9953 echo "$as_me:$LINENO: result: yes" >&5
9954echo "${ECHO_T}yes" >&6
9955 else
9956 echo "$as_me:$LINENO: result: no" >&5
9957echo "${ECHO_T}no" >&6
9958 fi
9959
9960
9961 enablestring=
9962 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
9963echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
9964 no_cache=0
9965 # Check whether --enable-filedlg or --disable-filedlg was given.
9966if test "${enable_filedlg+set}" = set; then
9967 enableval="$enable_filedlg"
9968
9969 if test "$enableval" = yes; then
9970 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
9971 else
9972 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
9973 fi
9974
9975else
9976
9977 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
9978 if test "x$LINE" != x ; then
9979 eval "DEFAULT_$LINE"
9980 else
9981 no_cache=1
9982 fi
9983
9984 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
9985
9986fi;
9987
9988 eval "$ac_cv_use_filedlg"
9989 if test "$no_cache" != 1; then
9990 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
9991 fi
9992
9993 if test "$wxUSE_FILEDLG" = yes; then
9994 echo "$as_me:$LINENO: result: yes" >&5
9995echo "${ECHO_T}yes" >&6
9996 else
9997 echo "$as_me:$LINENO: result: no" >&5
9998echo "${ECHO_T}no" >&6
9999 fi
10000
10001
10002 enablestring=
10003 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
10004echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
10005 no_cache=0
10006 # Check whether --enable-finddlg or --disable-finddlg was given.
10007if test "${enable_finddlg+set}" = set; then
10008 enableval="$enable_finddlg"
10009
10010 if test "$enableval" = yes; then
10011 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
10012 else
10013 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
10014 fi
10015
10016else
10017
10018 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
10019 if test "x$LINE" != x ; then
10020 eval "DEFAULT_$LINE"
10021 else
10022 no_cache=1
10023 fi
10024
10025 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
10026
10027fi;
10028
10029 eval "$ac_cv_use_finddlg"
10030 if test "$no_cache" != 1; then
10031 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
10032 fi
10033
10034 if test "$wxUSE_FINDREPLDLG" = yes; then
10035 echo "$as_me:$LINENO: result: yes" >&5
10036echo "${ECHO_T}yes" >&6
10037 else
10038 echo "$as_me:$LINENO: result: no" >&5
10039echo "${ECHO_T}no" >&6
10040 fi
10041
10042
10043 enablestring=
10044 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
10045echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
10046 no_cache=0
10047 # Check whether --enable-fontdlg or --disable-fontdlg was given.
10048if test "${enable_fontdlg+set}" = set; then
10049 enableval="$enable_fontdlg"
10050
10051 if test "$enableval" = yes; then
10052 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
10053 else
10054 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
10055 fi
10056
10057else
10058
10059 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
10060 if test "x$LINE" != x ; then
10061 eval "DEFAULT_$LINE"
10062 else
10063 no_cache=1
10064 fi
10065
10066 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
10067
10068fi;
10069
10070 eval "$ac_cv_use_fontdlg"
10071 if test "$no_cache" != 1; then
10072 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
10073 fi
10074
10075 if test "$wxUSE_FONTDLG" = yes; then
10076 echo "$as_me:$LINENO: result: yes" >&5
10077echo "${ECHO_T}yes" >&6
10078 else
10079 echo "$as_me:$LINENO: result: no" >&5
10080echo "${ECHO_T}no" >&6
10081 fi
10082
10083
10084 enablestring=
10085 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
10086echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
10087 no_cache=0
10088 # Check whether --enable-dirdlg or --disable-dirdlg was given.
10089if test "${enable_dirdlg+set}" = set; then
10090 enableval="$enable_dirdlg"
10091
10092 if test "$enableval" = yes; then
10093 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
10094 else
10095 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
10096 fi
10097
10098else
10099
10100 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
10101 if test "x$LINE" != x ; then
10102 eval "DEFAULT_$LINE"
10103 else
10104 no_cache=1
10105 fi
10106
10107 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
10108
10109fi;
10110
10111 eval "$ac_cv_use_dirdlg"
10112 if test "$no_cache" != 1; then
10113 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10114 fi
10115
10116 if test "$wxUSE_DIRDLG" = yes; then
10117 echo "$as_me:$LINENO: result: yes" >&5
10118echo "${ECHO_T}yes" >&6
10119 else
10120 echo "$as_me:$LINENO: result: no" >&5
10121echo "${ECHO_T}no" >&6
10122 fi
10123
10124
10125 enablestring=
10126 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
10127echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
10128 no_cache=0
10129 # Check whether --enable-msgdlg or --disable-msgdlg was given.
10130if test "${enable_msgdlg+set}" = set; then
10131 enableval="$enable_msgdlg"
10132
10133 if test "$enableval" = yes; then
10134 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10135 else
10136 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10137 fi
10138
10139else
10140
10141 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10142 if test "x$LINE" != x ; then
10143 eval "DEFAULT_$LINE"
10144 else
10145 no_cache=1
10146 fi
10147
10148 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
10149
10150fi;
10151
10152 eval "$ac_cv_use_msgdlg"
10153 if test "$no_cache" != 1; then
10154 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10155 fi
10156
10157 if test "$wxUSE_MSGDLG" = yes; then
10158 echo "$as_me:$LINENO: result: yes" >&5
10159echo "${ECHO_T}yes" >&6
10160 else
10161 echo "$as_me:$LINENO: result: no" >&5
10162echo "${ECHO_T}no" >&6
10163 fi
10164
10165
10166 enablestring=
10167 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
10168echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
10169 no_cache=0
10170 # Check whether --enable-numberdlg or --disable-numberdlg was given.
10171if test "${enable_numberdlg+set}" = set; then
10172 enableval="$enable_numberdlg"
10173
10174 if test "$enableval" = yes; then
10175 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10176 else
10177 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10178 fi
10179
10180else
10181
10182 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10183 if test "x$LINE" != x ; then
10184 eval "DEFAULT_$LINE"
10185 else
10186 no_cache=1
10187 fi
10188
10189 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
10190
10191fi;
10192
10193 eval "$ac_cv_use_numberdlg"
10194 if test "$no_cache" != 1; then
10195 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10196 fi
10197
10198 if test "$wxUSE_NUMBERDLG" = yes; then
10199 echo "$as_me:$LINENO: result: yes" >&5
10200echo "${ECHO_T}yes" >&6
10201 else
10202 echo "$as_me:$LINENO: result: no" >&5
10203echo "${ECHO_T}no" >&6
10204 fi
10205
10206
10207 enablestring=
10208 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
10209echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
10210 no_cache=0
10211 # Check whether --enable-splash or --disable-splash was given.
10212if test "${enable_splash+set}" = set; then
10213 enableval="$enable_splash"
10214
10215 if test "$enableval" = yes; then
10216 ac_cv_use_splash='wxUSE_SPLASH=yes'
10217 else
10218 ac_cv_use_splash='wxUSE_SPLASH=no'
10219 fi
10220
10221else
10222
10223 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
10224 if test "x$LINE" != x ; then
10225 eval "DEFAULT_$LINE"
10226 else
10227 no_cache=1
10228 fi
10229
10230 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
10231
10232fi;
10233
10234 eval "$ac_cv_use_splash"
10235 if test "$no_cache" != 1; then
10236 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
10237 fi
10238
10239 if test "$wxUSE_SPLASH" = yes; then
10240 echo "$as_me:$LINENO: result: yes" >&5
10241echo "${ECHO_T}yes" >&6
10242 else
10243 echo "$as_me:$LINENO: result: no" >&5
10244echo "${ECHO_T}no" >&6
10245 fi
10246
10247
10248 enablestring=
10249 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
10250echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
10251 no_cache=0
10252 # Check whether --enable-textdlg or --disable-textdlg was given.
10253if test "${enable_textdlg+set}" = set; then
10254 enableval="$enable_textdlg"
10255
10256 if test "$enableval" = yes; then
10257 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
10258 else
10259 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
10260 fi
10261
10262else
10263
10264 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
10265 if test "x$LINE" != x ; then
10266 eval "DEFAULT_$LINE"
10267 else
10268 no_cache=1
10269 fi
10270
10271 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
10272
10273fi;
10274
10275 eval "$ac_cv_use_textdlg"
10276 if test "$no_cache" != 1; then
10277 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
10278 fi
10279
10280 if test "$wxUSE_TEXTDLG" = yes; then
10281 echo "$as_me:$LINENO: result: yes" >&5
10282echo "${ECHO_T}yes" >&6
10283 else
10284 echo "$as_me:$LINENO: result: no" >&5
10285echo "${ECHO_T}no" >&6
10286 fi
10287
10288
10289 enablestring=
10290 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
10291echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
10292 no_cache=0
10293 # Check whether --enable-tipdlg or --disable-tipdlg was given.
10294if test "${enable_tipdlg+set}" = set; then
10295 enableval="$enable_tipdlg"
10296
10297 if test "$enableval" = yes; then
10298 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
10299 else
10300 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
10301 fi
10302
10303else
10304
10305 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
10306 if test "x$LINE" != x ; then
10307 eval "DEFAULT_$LINE"
10308 else
10309 no_cache=1
10310 fi
10311
10312 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
10313
10314fi;
10315
10316 eval "$ac_cv_use_tipdlg"
10317 if test "$no_cache" != 1; then
10318 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
10319 fi
10320
10321 if test "$wxUSE_STARTUP_TIPS" = yes; then
10322 echo "$as_me:$LINENO: result: yes" >&5
10323echo "${ECHO_T}yes" >&6
10324 else
10325 echo "$as_me:$LINENO: result: no" >&5
10326echo "${ECHO_T}no" >&6
10327 fi
10328
10329
10330 enablestring=
10331 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
10332echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
10333 no_cache=0
10334 # Check whether --enable-progressdlg or --disable-progressdlg was given.
10335if test "${enable_progressdlg+set}" = set; then
10336 enableval="$enable_progressdlg"
10337
10338 if test "$enableval" = yes; then
10339 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
10340 else
10341 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
10342 fi
10343
10344else
10345
10346 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
10347 if test "x$LINE" != x ; then
10348 eval "DEFAULT_$LINE"
10349 else
10350 no_cache=1
10351 fi
10352
10353 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
10354
10355fi;
10356
10357 eval "$ac_cv_use_progressdlg"
10358 if test "$no_cache" != 1; then
10359 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
10360 fi
10361
10362 if test "$wxUSE_PROGRESSDLG" = yes; then
10363 echo "$as_me:$LINENO: result: yes" >&5
10364echo "${ECHO_T}yes" >&6
10365 else
10366 echo "$as_me:$LINENO: result: no" >&5
10367echo "${ECHO_T}no" >&6
10368 fi
10369
10370
10371 enablestring=
10372 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
10373echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
10374 no_cache=0
10375 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
10376if test "${enable_wizarddlg+set}" = set; then
10377 enableval="$enable_wizarddlg"
10378
10379 if test "$enableval" = yes; then
10380 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
10381 else
10382 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
10383 fi
10384
10385else
10386
10387 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
10388 if test "x$LINE" != x ; then
10389 eval "DEFAULT_$LINE"
10390 else
10391 no_cache=1
10392 fi
10393
10394 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
10395
10396fi;
10397
10398 eval "$ac_cv_use_wizarddlg"
10399 if test "$no_cache" != 1; then
10400 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
10401 fi
10402
10403 if test "$wxUSE_WIZARDDLG" = yes; then
10404 echo "$as_me:$LINENO: result: yes" >&5
10405echo "${ECHO_T}yes" >&6
10406 else
10407 echo "$as_me:$LINENO: result: no" >&5
10408echo "${ECHO_T}no" >&6
10409 fi
10410
10411
10412
10413
10414 enablestring=
10415 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
10416echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
10417 no_cache=0
10418 # Check whether --enable-menus or --disable-menus was given.
10419if test "${enable_menus+set}" = set; then
10420 enableval="$enable_menus"
10421
10422 if test "$enableval" = yes; then
10423 ac_cv_use_menus='wxUSE_MENUS=yes'
10424 else
10425 ac_cv_use_menus='wxUSE_MENUS=no'
10426 fi
10427
10428else
10429
10430 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
10431 if test "x$LINE" != x ; then
10432 eval "DEFAULT_$LINE"
10433 else
10434 no_cache=1
10435 fi
10436
10437 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
10438
10439fi;
10440
10441 eval "$ac_cv_use_menus"
10442 if test "$no_cache" != 1; then
10443 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
10444 fi
10445
10446 if test "$wxUSE_MENUS" = yes; then
10447 echo "$as_me:$LINENO: result: yes" >&5
10448echo "${ECHO_T}yes" >&6
10449 else
10450 echo "$as_me:$LINENO: result: no" >&5
10451echo "${ECHO_T}no" >&6
10452 fi
10453
10454
10455 enablestring=
10456 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
10457echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
10458 no_cache=0
10459 # Check whether --enable-miniframe or --disable-miniframe was given.
10460if test "${enable_miniframe+set}" = set; then
10461 enableval="$enable_miniframe"
10462
10463 if test "$enableval" = yes; then
10464 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
10465 else
10466 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
10467 fi
10468
10469else
10470
10471 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
10472 if test "x$LINE" != x ; then
10473 eval "DEFAULT_$LINE"
10474 else
10475 no_cache=1
10476 fi
10477
10478 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
10479
10480fi;
10481
10482 eval "$ac_cv_use_miniframe"
10483 if test "$no_cache" != 1; then
10484 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
10485 fi
10486
10487 if test "$wxUSE_MINIFRAME" = yes; then
10488 echo "$as_me:$LINENO: result: yes" >&5
10489echo "${ECHO_T}yes" >&6
10490 else
10491 echo "$as_me:$LINENO: result: no" >&5
10492echo "${ECHO_T}no" >&6
10493 fi
10494
10495
10496 enablestring=
10497 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
10498echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
10499 no_cache=0
10500 # Check whether --enable-tooltips or --disable-tooltips was given.
10501if test "${enable_tooltips+set}" = set; then
10502 enableval="$enable_tooltips"
10503
10504 if test "$enableval" = yes; then
10505 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
10506 else
10507 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
10508 fi
10509
10510else
10511
10512 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
10513 if test "x$LINE" != x ; then
10514 eval "DEFAULT_$LINE"
10515 else
10516 no_cache=1
10517 fi
10518
10519 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
10520
10521fi;
10522
10523 eval "$ac_cv_use_tooltips"
10524 if test "$no_cache" != 1; then
10525 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
10526 fi
10527
10528 if test "$wxUSE_TOOLTIPS" = yes; then
10529 echo "$as_me:$LINENO: result: yes" >&5
10530echo "${ECHO_T}yes" >&6
10531 else
10532 echo "$as_me:$LINENO: result: no" >&5
10533echo "${ECHO_T}no" >&6
10534 fi
10535
10536
10537 enablestring=
10538 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
10539echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
10540 no_cache=0
10541 # Check whether --enable-splines or --disable-splines was given.
10542if test "${enable_splines+set}" = set; then
10543 enableval="$enable_splines"
10544
10545 if test "$enableval" = yes; then
10546 ac_cv_use_splines='wxUSE_SPLINES=yes'
10547 else
10548 ac_cv_use_splines='wxUSE_SPLINES=no'
10549 fi
10550
10551else
10552
10553 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
10554 if test "x$LINE" != x ; then
10555 eval "DEFAULT_$LINE"
10556 else
10557 no_cache=1
10558 fi
10559
10560 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
10561
10562fi;
10563
10564 eval "$ac_cv_use_splines"
10565 if test "$no_cache" != 1; then
10566 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
10567 fi
10568
10569 if test "$wxUSE_SPLINES" = yes; then
10570 echo "$as_me:$LINENO: result: yes" >&5
10571echo "${ECHO_T}yes" >&6
10572 else
10573 echo "$as_me:$LINENO: result: no" >&5
10574echo "${ECHO_T}no" >&6
10575 fi
10576
10577
fbe2ca43
SN
10578 enablestring=
10579 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
10580echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6
10581 no_cache=0
10582 # Check whether --enable-mousewheel or --disable-mousewheel was given.
10583if test "${enable_mousewheel+set}" = set; then
10584 enableval="$enable_mousewheel"
10585
10586 if test "$enableval" = yes; then
10587 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
10588 else
10589 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
10590 fi
10591
10592else
10593
10594 LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}`
10595 if test "x$LINE" != x ; then
10596 eval "DEFAULT_$LINE"
10597 else
10598 no_cache=1
10599 fi
10600
10601 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL
10602
10603fi;
10604
10605 eval "$ac_cv_use_mousewheel"
10606 if test "$no_cache" != 1; then
10607 echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
10608 fi
10609
10610 if test "$wxUSE_MOUSEWHEEL" = yes; then
10611 echo "$as_me:$LINENO: result: yes" >&5
10612echo "${ECHO_T}yes" >&6
10613 else
10614 echo "$as_me:$LINENO: result: no" >&5
10615echo "${ECHO_T}no" >&6
10616 fi
10617
10618
a848cd7e
SC
10619 enablestring=
10620 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
10621echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
10622 no_cache=0
10623 # Check whether --enable-validators or --disable-validators was given.
10624if test "${enable_validators+set}" = set; then
10625 enableval="$enable_validators"
10626
10627 if test "$enableval" = yes; then
10628 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
10629 else
10630 ac_cv_use_validators='wxUSE_VALIDATORS=no'
10631 fi
10632
10633else
10634
10635 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
10636 if test "x$LINE" != x ; then
10637 eval "DEFAULT_$LINE"
10638 else
10639 no_cache=1
10640 fi
10641
10642 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
10643
10644fi;
10645
10646 eval "$ac_cv_use_validators"
10647 if test "$no_cache" != 1; then
10648 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
10649 fi
10650
10651 if test "$wxUSE_VALIDATORS" = yes; then
10652 echo "$as_me:$LINENO: result: yes" >&5
10653echo "${ECHO_T}yes" >&6
10654 else
10655 echo "$as_me:$LINENO: result: no" >&5
10656echo "${ECHO_T}no" >&6
10657 fi
10658
10659
10660 enablestring=
10661 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
10662echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
10663 no_cache=0
10664 # Check whether --enable-busyinfo or --disable-busyinfo was given.
10665if test "${enable_busyinfo+set}" = set; then
10666 enableval="$enable_busyinfo"
10667
10668 if test "$enableval" = yes; then
10669 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
10670 else
10671 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
10672 fi
10673
10674else
10675
10676 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
10677 if test "x$LINE" != x ; then
10678 eval "DEFAULT_$LINE"
10679 else
10680 no_cache=1
10681 fi
10682
10683 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
10684
10685fi;
10686
10687 eval "$ac_cv_use_busyinfo"
10688 if test "$no_cache" != 1; then
10689 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
10690 fi
10691
10692 if test "$wxUSE_BUSYINFO" = yes; then
10693 echo "$as_me:$LINENO: result: yes" >&5
10694echo "${ECHO_T}yes" >&6
10695 else
10696 echo "$as_me:$LINENO: result: no" >&5
10697echo "${ECHO_T}no" >&6
10698 fi
10699
10700
10701 enablestring=
10702 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
10703echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
10704 no_cache=0
10705 # Check whether --enable-joystick or --disable-joystick was given.
10706if test "${enable_joystick+set}" = set; then
10707 enableval="$enable_joystick"
10708
10709 if test "$enableval" = yes; then
10710 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
10711 else
10712 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
10713 fi
10714
10715else
10716
10717 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
10718 if test "x$LINE" != x ; then
10719 eval "DEFAULT_$LINE"
10720 else
10721 no_cache=1
10722 fi
10723
10724 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
10725
10726fi;
10727
10728 eval "$ac_cv_use_joystick"
10729 if test "$no_cache" != 1; then
10730 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
10731 fi
10732
10733 if test "$wxUSE_JOYSTICK" = yes; then
10734 echo "$as_me:$LINENO: result: yes" >&5
10735echo "${ECHO_T}yes" >&6
10736 else
10737 echo "$as_me:$LINENO: result: no" >&5
10738echo "${ECHO_T}no" >&6
10739 fi
10740
10741
10742 enablestring=
10743 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
10744echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
10745 no_cache=0
10746 # Check whether --enable-metafile or --disable-metafile was given.
10747if test "${enable_metafile+set}" = set; then
10748 enableval="$enable_metafile"
10749
10750 if test "$enableval" = yes; then
10751 ac_cv_use_metafile='wxUSE_METAFILE=yes'
10752 else
10753 ac_cv_use_metafile='wxUSE_METAFILE=no'
10754 fi
10755
10756else
10757
10758 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
10759 if test "x$LINE" != x ; then
10760 eval "DEFAULT_$LINE"
10761 else
10762 no_cache=1
10763 fi
10764
10765 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
10766
10767fi;
10768
10769 eval "$ac_cv_use_metafile"
10770 if test "$no_cache" != 1; then
10771 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
10772 fi
10773
10774 if test "$wxUSE_METAFILE" = yes; then
10775 echo "$as_me:$LINENO: result: yes" >&5
10776echo "${ECHO_T}yes" >&6
10777 else
10778 echo "$as_me:$LINENO: result: no" >&5
10779echo "${ECHO_T}no" >&6
10780 fi
10781
10782
10783 enablestring=
10784 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
10785echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
10786 no_cache=0
10787 # Check whether --enable-dragimage or --disable-dragimage was given.
10788if test "${enable_dragimage+set}" = set; then
10789 enableval="$enable_dragimage"
10790
10791 if test "$enableval" = yes; then
10792 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
10793 else
10794 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
10795 fi
10796
10797else
10798
10799 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
10800 if test "x$LINE" != x ; then
10801 eval "DEFAULT_$LINE"
10802 else
10803 no_cache=1
10804 fi
10805
10806 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
10807
10808fi;
10809
10810 eval "$ac_cv_use_dragimage"
10811 if test "$no_cache" != 1; then
10812 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
10813 fi
10814
10815 if test "$wxUSE_DRAGIMAGE" = yes; then
10816 echo "$as_me:$LINENO: result: yes" >&5
10817echo "${ECHO_T}yes" >&6
10818 else
10819 echo "$as_me:$LINENO: result: no" >&5
10820echo "${ECHO_T}no" >&6
10821 fi
10822
10823
10824 enablestring=
10825 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
10826echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
10827 no_cache=0
10828 # Check whether --enable-accessibility or --disable-accessibility was given.
10829if test "${enable_accessibility+set}" = set; then
10830 enableval="$enable_accessibility"
10831
10832 if test "$enableval" = yes; then
10833 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
10834 else
10835 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
10836 fi
10837
10838else
10839
10840 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
10841 if test "x$LINE" != x ; then
10842 eval "DEFAULT_$LINE"
10843 else
10844 no_cache=1
10845 fi
10846
10847 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
10848
10849fi;
10850
10851 eval "$ac_cv_use_accessibility"
10852 if test "$no_cache" != 1; then
10853 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
10854 fi
10855
10856 if test "$wxUSE_ACCESSIBILITY" = yes; then
10857 echo "$as_me:$LINENO: result: yes" >&5
10858echo "${ECHO_T}yes" >&6
10859 else
10860 echo "$as_me:$LINENO: result: no" >&5
10861echo "${ECHO_T}no" >&6
10862 fi
10863
10864
38b4a946
VZ
10865if test "$wxUSE_MSW" = "1"; then
10866
10867 enablestring=
10868 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
10869echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6
10870 no_cache=0
10871 # Check whether --enable-dccache or --disable-dccache was given.
10872if test "${enable_dccache+set}" = set; then
10873 enableval="$enable_dccache"
10874
10875 if test "$enableval" = yes; then
10876 ac_cv_use_dccache='wxUSE_DC_CACHEING=yes'
10877 else
10878 ac_cv_use_dccache='wxUSE_DC_CACHEING=no'
10879 fi
10880
10881else
10882
10883 LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}`
10884 if test "x$LINE" != x ; then
10885 eval "DEFAULT_$LINE"
10886 else
10887 no_cache=1
10888 fi
10889
10890 ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING
10891
10892fi;
10893
10894 eval "$ac_cv_use_dccache"
10895 if test "$no_cache" != 1; then
10896 echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp
10897 fi
10898
10899 if test "$wxUSE_DC_CACHEING" = yes; then
10900 echo "$as_me:$LINENO: result: yes" >&5
10901echo "${ECHO_T}yes" >&6
10902 else
10903 echo "$as_me:$LINENO: result: no" >&5
10904echo "${ECHO_T}no" >&6
10905 fi
10906
10907fi
10908
a848cd7e
SC
10909
10910
10911 enablestring=
10912 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
10913echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
10914 no_cache=0
10915 # Check whether --enable-palette or --disable-palette was given.
10916if test "${enable_palette+set}" = set; then
10917 enableval="$enable_palette"
10918
10919 if test "$enableval" = yes; then
10920 ac_cv_use_palette='wxUSE_PALETTE=yes'
10921 else
10922 ac_cv_use_palette='wxUSE_PALETTE=no'
10923 fi
10924
10925else
10926
10927 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
10928 if test "x$LINE" != x ; then
10929 eval "DEFAULT_$LINE"
10930 else
10931 no_cache=1
10932 fi
10933
10934 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
10935
10936fi;
10937
10938 eval "$ac_cv_use_palette"
10939 if test "$no_cache" != 1; then
10940 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
10941 fi
10942
10943 if test "$wxUSE_PALETTE" = yes; then
10944 echo "$as_me:$LINENO: result: yes" >&5
10945echo "${ECHO_T}yes" >&6
10946 else
10947 echo "$as_me:$LINENO: result: no" >&5
10948echo "${ECHO_T}no" >&6
10949 fi
10950
10951
10952 enablestring=
10953 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
10954echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
10955 no_cache=0
10956 # Check whether --enable-image or --disable-image was given.
10957if test "${enable_image+set}" = set; then
10958 enableval="$enable_image"
10959
10960 if test "$enableval" = yes; then
10961 ac_cv_use_image='wxUSE_IMAGE=yes'
10962 else
10963 ac_cv_use_image='wxUSE_IMAGE=no'
10964 fi
10965
10966else
10967
10968 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
10969 if test "x$LINE" != x ; then
10970 eval "DEFAULT_$LINE"
10971 else
10972 no_cache=1
10973 fi
10974
10975 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
10976
10977fi;
10978
10979 eval "$ac_cv_use_image"
10980 if test "$no_cache" != 1; then
10981 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
10982 fi
10983
10984 if test "$wxUSE_IMAGE" = yes; then
10985 echo "$as_me:$LINENO: result: yes" >&5
10986echo "${ECHO_T}yes" >&6
10987 else
10988 echo "$as_me:$LINENO: result: no" >&5
10989echo "${ECHO_T}no" >&6
10990 fi
10991
10992
10993 enablestring=
10994 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
10995echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10996 no_cache=0
10997 # Check whether --enable-gif or --disable-gif was given.
10998if test "${enable_gif+set}" = set; then
10999 enableval="$enable_gif"
11000
11001 if test "$enableval" = yes; then
11002 ac_cv_use_gif='wxUSE_GIF=yes'
11003 else
11004 ac_cv_use_gif='wxUSE_GIF=no'
11005 fi
11006
11007else
11008
11009 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
11010 if test "x$LINE" != x ; then
11011 eval "DEFAULT_$LINE"
11012 else
11013 no_cache=1
11014 fi
11015
11016 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
11017
11018fi;
11019
11020 eval "$ac_cv_use_gif"
11021 if test "$no_cache" != 1; then
11022 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
11023 fi
11024
11025 if test "$wxUSE_GIF" = yes; then
11026 echo "$as_me:$LINENO: result: yes" >&5
11027echo "${ECHO_T}yes" >&6
11028 else
11029 echo "$as_me:$LINENO: result: no" >&5
11030echo "${ECHO_T}no" >&6
11031 fi
11032
11033
11034 enablestring=
11035 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
11036echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
11037 no_cache=0
11038 # Check whether --enable-pcx or --disable-pcx was given.
11039if test "${enable_pcx+set}" = set; then
11040 enableval="$enable_pcx"
11041
11042 if test "$enableval" = yes; then
11043 ac_cv_use_pcx='wxUSE_PCX=yes'
11044 else
11045 ac_cv_use_pcx='wxUSE_PCX=no'
11046 fi
11047
11048else
11049
11050 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
11051 if test "x$LINE" != x ; then
11052 eval "DEFAULT_$LINE"
11053 else
11054 no_cache=1
11055 fi
11056
11057 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
11058
11059fi;
11060
11061 eval "$ac_cv_use_pcx"
11062 if test "$no_cache" != 1; then
11063 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
11064 fi
11065
11066 if test "$wxUSE_PCX" = yes; then
11067 echo "$as_me:$LINENO: result: yes" >&5
11068echo "${ECHO_T}yes" >&6
11069 else
11070 echo "$as_me:$LINENO: result: no" >&5
11071echo "${ECHO_T}no" >&6
11072 fi
11073
11074
11075 enablestring=
11076 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
11077echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
11078 no_cache=0
11079 # Check whether --enable-iff or --disable-iff was given.
11080if test "${enable_iff+set}" = set; then
11081 enableval="$enable_iff"
11082
11083 if test "$enableval" = yes; then
11084 ac_cv_use_iff='wxUSE_IFF=yes'
11085 else
11086 ac_cv_use_iff='wxUSE_IFF=no'
11087 fi
11088
11089else
11090
11091 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
11092 if test "x$LINE" != x ; then
11093 eval "DEFAULT_$LINE"
11094 else
11095 no_cache=1
11096 fi
11097
11098 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
11099
11100fi;
11101
11102 eval "$ac_cv_use_iff"
11103 if test "$no_cache" != 1; then
11104 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
11105 fi
11106
11107 if test "$wxUSE_IFF" = yes; then
11108 echo "$as_me:$LINENO: result: yes" >&5
11109echo "${ECHO_T}yes" >&6
11110 else
11111 echo "$as_me:$LINENO: result: no" >&5
11112echo "${ECHO_T}no" >&6
11113 fi
11114
11115
11116 enablestring=
11117 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
11118echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
11119 no_cache=0
11120 # Check whether --enable-pnm or --disable-pnm was given.
11121if test "${enable_pnm+set}" = set; then
11122 enableval="$enable_pnm"
11123
11124 if test "$enableval" = yes; then
11125 ac_cv_use_pnm='wxUSE_PNM=yes'
11126 else
11127 ac_cv_use_pnm='wxUSE_PNM=no'
11128 fi
11129
11130else
11131
11132 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
11133 if test "x$LINE" != x ; then
11134 eval "DEFAULT_$LINE"
11135 else
11136 no_cache=1
11137 fi
11138
11139 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
11140
11141fi;
11142
11143 eval "$ac_cv_use_pnm"
11144 if test "$no_cache" != 1; then
11145 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
11146 fi
11147
11148 if test "$wxUSE_PNM" = yes; then
11149 echo "$as_me:$LINENO: result: yes" >&5
11150echo "${ECHO_T}yes" >&6
11151 else
11152 echo "$as_me:$LINENO: result: no" >&5
11153echo "${ECHO_T}no" >&6
11154 fi
11155
11156
11157 enablestring=
11158 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
11159echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
11160 no_cache=0
11161 # Check whether --enable-xpm or --disable-xpm was given.
11162if test "${enable_xpm+set}" = set; then
11163 enableval="$enable_xpm"
11164
11165 if test "$enableval" = yes; then
11166 ac_cv_use_xpm='wxUSE_XPM=yes'
11167 else
11168 ac_cv_use_xpm='wxUSE_XPM=no'
11169 fi
11170
11171else
11172
11173 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
11174 if test "x$LINE" != x ; then
11175 eval "DEFAULT_$LINE"
11176 else
11177 no_cache=1
11178 fi
11179
11180 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
11181
11182fi;
11183
11184 eval "$ac_cv_use_xpm"
11185 if test "$no_cache" != 1; then
11186 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
11187 fi
11188
11189 if test "$wxUSE_XPM" = yes; then
11190 echo "$as_me:$LINENO: result: yes" >&5
11191echo "${ECHO_T}yes" >&6
11192 else
11193 echo "$as_me:$LINENO: result: no" >&5
11194echo "${ECHO_T}no" >&6
11195 fi
11196
11197
11198 enablestring=
11199 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
11200echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
11201 no_cache=0
11202 # Check whether --enable-ico_cur or --disable-ico_cur was given.
11203if test "${enable_ico_cur+set}" = set; then
11204 enableval="$enable_ico_cur"
11205
11206 if test "$enableval" = yes; then
11207 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
11208 else
11209 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
11210 fi
11211
11212else
11213
11214 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
11215 if test "x$LINE" != x ; then
11216 eval "DEFAULT_$LINE"
11217 else
11218 no_cache=1
11219 fi
11220
11221 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
11222
11223fi;
11224
11225 eval "$ac_cv_use_ico_cur"
11226 if test "$no_cache" != 1; then
11227 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
11228 fi
11229
11230 if test "$wxUSE_ICO_CUR" = yes; then
11231 echo "$as_me:$LINENO: result: yes" >&5
11232echo "${ECHO_T}yes" >&6
11233 else
11234 echo "$as_me:$LINENO: result: no" >&5
11235echo "${ECHO_T}no" >&6
11236 fi
11237
11238
11239fi
11240
11241
11242
ceec2216
RL
11243# Check whether --with-flavour or --without-flavour was given.
11244if test "${with_flavour+set}" = set; then
11245 withval="$with_flavour"
11246 WX_FLAVOUR="$withval"
11247fi;
11248
11249
11250
a848cd7e
SC
11251 enablestring=
11252 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
11253echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
11254 no_cache=0
11255 # Check whether --enable-official_build or --disable-official_build was given.
11256if test "${enable_official_build+set}" = set; then
11257 enableval="$enable_official_build"
11258
11259 if test "$enableval" = yes; then
11260 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
11261 else
11262 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
11263 fi
11264
11265else
11266
11267 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
11268 if test "x$LINE" != x ; then
11269 eval "DEFAULT_$LINE"
11270 else
11271 no_cache=1
11272 fi
11273
11274 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
11275
11276fi;
11277
11278 eval "$ac_cv_use_official_build"
11279 if test "$no_cache" != 1; then
11280 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
11281 fi
11282
11283 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
11284 echo "$as_me:$LINENO: result: yes" >&5
11285echo "${ECHO_T}yes" >&6
11286 else
11287 echo "$as_me:$LINENO: result: no" >&5
11288echo "${ECHO_T}no" >&6
11289 fi
11290
11291# Check whether --enable-vendor or --disable-vendor was given.
11292if test "${enable_vendor+set}" = set; then
11293 enableval="$enable_vendor"
11294 VENDOR="$enableval"
11295fi;
11296if test "x$VENDOR" = "x"; then
11297 VENDOR="custom"
11298fi
11299
a848cd7e
SC
11300
11301
11302
11303 echo "saving argument cache $wx_arg_cache_file"
11304 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
11305
11306
11307
11308echo "$as_me:$LINENO: checking for toolkit" >&5
11309echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
11310
11311# In Wine, we need to default to MSW, not GTK or MOTIF
11312if test "$wxUSE_WINE" = "yes"; then
11313 DEFAULT_DEFAULT_wxUSE_GTK=0
11314 DEFAULT_DEFAULT_wxUSE_MOTIF=0
11315 DEFAULT_DEFAULT_wxUSE_MSW=1
11316 wxUSE_SHARED=no
11317fi
11318
f597b41c 11319
a848cd7e
SC
11320if test "$wxUSE_GUI" = "yes"; then
11321
11322 if test "$USE_BEOS" = 1; then
11323 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
11324echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
11325 { (exit 1); exit 1; }; }
11326 fi
11327
11328 if test "$TOOLKIT_GIVEN" = 1; then
11329 for toolkit in `echo $ALL_TOOLKITS`; do
11330 var=wxUSE_$toolkit
11331 eval "value=\$${var}"
f34ca037
MW
11332 if test "x$value" = "xno"; then
11333 eval "$var=0"
11334 elif test "x$value" != "x"; then
11335 eval "$var=1"
11336 fi
11337
11338 if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
11339 eval "wx${toolkit}_VERSION=$value"
11340 fi
a848cd7e
SC
11341 done
11342 else
11343 for toolkit in `echo $ALL_TOOLKITS`; do
11344 if test "$has_toolkit_in_cache" != 1; then
11345 var=DEFAULT_DEFAULT_wxUSE_$toolkit
11346 else
11347 var=DEFAULT_wxUSE_$toolkit
f34ca037
MW
11348
11349 eval "version=\$DEFAULT_wx${toolkit}_VERSION"
11350 if test "x$version" != "x"; then
11351 eval "wx${toolkit}_VERSION=$version"
11352 fi
a848cd7e
SC
11353 fi
11354 eval "wxUSE_$toolkit=\$${var}"
11355 done
11356 fi
11357
11358 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
11359 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
11360 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
11361
11362 case "${host}" in
11363 *-pc-os2_emx | *-pc-os2-emx )
11364 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
11365 esac
11366
11367 case "$NUM_TOOLKITS" in
11368 1)
11369 ;;
11370 0)
11371 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
11372echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
11373 { (exit 1); exit 1; }; }
11374 ;;
11375 *)
11376 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
11377echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
11378 { (exit 1); exit 1; }; }
11379 esac
11380
f34ca037
MW
11381 # to be removed when --disable-gtk2 isn't needed
11382 if test "x$wxUSE_GTK2" = "xyes"; then
11383 wxGTK_VERSION=2
11384 elif test "x$wxUSE_GTK2" = "xno"; then
11385 wxGTK_VERSION=1
11386 fi
11387
a848cd7e
SC
11388 for toolkit in `echo $ALL_TOOLKITS`; do
11389 var=wxUSE_$toolkit
11390 eval "value=\$${var}"
11391 if test "x$value" != x; then
11392 cache_var=CACHE_$toolkit
11393 eval "cache=\$${cache_var}"
11394 if test "$cache" = 1; then
11395 echo "$var=$value" >> ${wx_arg_cache_file}
f34ca037
MW
11396 eval "version=\$wx${toolkit}_VERSION"
11397 if test "x$version" != "x"; then
11398 echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
11399 fi
a848cd7e
SC
11400 fi
11401 if test "$value" = 1; then
11402 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
11403 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
11404echo "${ECHO_T}$toolkit_echo" >&6
11405 fi
11406 fi
11407 done
11408else
11409 if test "x$host_alias" != "x"; then
11410 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
11411echo "${ECHO_T}base ($host_alias hosted) only" >&6
11412 else
11413 echo "$as_me:$LINENO: result: base only" >&5
11414echo "${ECHO_T}base only" >&6
11415 fi
11416fi
11417
11418wants_win32=0
11419doesnt_want_win32=0
11420case "${host}" in
11421 *-*-cygwin*)
11422 if test "$wxUSE_MSW" = 1 ; then
11423 wants_win32=1
7275146d 11424 BAKEFILE_FORCE_PLATFORM=win32
a848cd7e
SC
11425 else
11426 doesnt_want_win32=1
11427 fi
11428 ;;
11429 *-*-mingw*)
11430 wants_win32=1
11431 ;;
11432esac
11433
11434if test "$wxUSE_WINE" = "yes"; then
11435 wants_win32=1
11436 CC=winegcc
11437 CXX=wineg++
a848cd7e
SC
11438 LDFLAGS_GUI="-mwindows"
11439fi
11440
11441if test "$wants_win32" = 1 ; then
11442 USE_UNIX=0
11443 USE_WIN32=1
11444 cat >>confdefs.h <<\_ACEOF
11445#define __WIN32__ 1
11446_ACEOF
11447
11448 cat >>confdefs.h <<\_ACEOF
11449#define __WIN95__ 1
11450_ACEOF
11451
11452 cat >>confdefs.h <<\_ACEOF
11453#define __WINDOWS__ 1
11454_ACEOF
11455
11456 cat >>confdefs.h <<\_ACEOF
11457#define __GNUWIN32__ 1
11458_ACEOF
11459
11460 cat >>confdefs.h <<\_ACEOF
11461#define STRICT 1
11462_ACEOF
11463
11464 cat >>confdefs.h <<\_ACEOF
11465#define WINVER 0x0400
11466_ACEOF
11467
11468fi
11469if test "$doesnt_want_win32" = 1 ; then
11470 USE_UNIX=1
11471 USE_WIN32=0
11472fi
11473
11474if test "$USE_UNIX" = 1 ; then
11475 wxUSE_UNIX=yes
11476 cat >>confdefs.h <<\_ACEOF
11477#define __UNIX__ 1
11478_ACEOF
11479
11480fi
11481
11482
11483cat >confcache <<\_ACEOF
11484# This file is a shell script that caches the results of configure
11485# tests run on this system so they can be shared between configure
11486# scripts and configure runs, see configure's option --config-cache.
11487# It is not useful on other systems. If it contains results you don't
11488# want to keep, you may remove or edit it.
11489#
11490# config.status only pays attention to the cache file if you give it
11491# the --recheck option to rerun configure.
11492#
11493# `ac_cv_env_foo' variables (set or unset) will be overridden when
11494# loading this file, other *unset* `ac_cv_foo' will be assigned the
11495# following values.
11496
11497_ACEOF
11498
11499# The following way of writing the cache mishandles newlines in values,
11500# but we know of no workaround that is simple, portable, and efficient.
11501# So, don't put newlines in cache variables' values.
11502# Ultrix sh set writes to stderr and can't be redirected directly,
11503# and sets the high bit in the cache file unless we assign to the vars.
11504{
11505 (set) 2>&1 |
11506 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11507 *ac_space=\ *)
11508 # `set' does not quote correctly, so add quotes (double-quote
11509 # substitution turns \\\\ into \\, and sed turns \\ into \).
11510 sed -n \
ac1cb8d3
VS
11511 "s/'/'\\\\''/g;
11512 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
11513 ;;
11514 *)
11515 # `set' quotes correctly as required by POSIX, so do not add quotes.
11516 sed -n \
ac1cb8d3 11517 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
11518 ;;
11519 esac;
11520} |
11521 sed '
11522 t clear
11523 : clear
11524 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11525 t end
11526 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11527 : end' >>confcache
11528if diff $cache_file confcache >/dev/null 2>&1; then :; else
11529 if test -w $cache_file; then
11530 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11531 cat confcache >$cache_file
11532 else
11533 echo "not updating unwritable cache $cache_file"
11534 fi
11535fi
11536rm -f confcache
11537
a848cd7e 11538CFLAGS=${CFLAGS:=}
6dcfc289
DE
11539
11540
3006edc0 11541
6dcfc289 11542 ac_ext=c
a848cd7e
SC
11543ac_cpp='$CPP $CPPFLAGS'
11544ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11545ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11546ac_compiler_gnu=$ac_cv_c_compiler_gnu
11547if test -n "$ac_tool_prefix"; then
11548 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11549set dummy ${ac_tool_prefix}gcc; ac_word=$2
11550echo "$as_me:$LINENO: checking for $ac_word" >&5
11551echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11552if test "${ac_cv_prog_CC+set}" = set; then
11553 echo $ECHO_N "(cached) $ECHO_C" >&6
11554else
11555 if test -n "$CC"; then
11556 ac_cv_prog_CC="$CC" # Let the user override the test.
11557else
11558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11559for as_dir in $PATH
11560do
11561 IFS=$as_save_IFS
11562 test -z "$as_dir" && as_dir=.
11563 for ac_exec_ext in '' $ac_executable_extensions; do
11564 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11565 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11567 break 2
11568 fi
11569done
11570done
11571
11572fi
11573fi
11574CC=$ac_cv_prog_CC
11575if test -n "$CC"; then
11576 echo "$as_me:$LINENO: result: $CC" >&5
11577echo "${ECHO_T}$CC" >&6
11578else
11579 echo "$as_me:$LINENO: result: no" >&5
11580echo "${ECHO_T}no" >&6
11581fi
11582
11583fi
11584if test -z "$ac_cv_prog_CC"; then
11585 ac_ct_CC=$CC
11586 # Extract the first word of "gcc", so it can be a program name with args.
11587set dummy gcc; ac_word=$2
11588echo "$as_me:$LINENO: checking for $ac_word" >&5
11589echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11590if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11591 echo $ECHO_N "(cached) $ECHO_C" >&6
11592else
11593 if test -n "$ac_ct_CC"; then
11594 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11595else
11596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11597for as_dir in $PATH
11598do
11599 IFS=$as_save_IFS
11600 test -z "$as_dir" && as_dir=.
11601 for ac_exec_ext in '' $ac_executable_extensions; do
11602 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11603 ac_cv_prog_ac_ct_CC="gcc"
11604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11605 break 2
11606 fi
11607done
11608done
11609
11610fi
11611fi
11612ac_ct_CC=$ac_cv_prog_ac_ct_CC
11613if test -n "$ac_ct_CC"; then
11614 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11615echo "${ECHO_T}$ac_ct_CC" >&6
11616else
11617 echo "$as_me:$LINENO: result: no" >&5
11618echo "${ECHO_T}no" >&6
11619fi
11620
11621 CC=$ac_ct_CC
11622else
11623 CC="$ac_cv_prog_CC"
11624fi
11625
11626if test -z "$CC"; then
11627 if test -n "$ac_tool_prefix"; then
11628 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11629set dummy ${ac_tool_prefix}cc; ac_word=$2
11630echo "$as_me:$LINENO: checking for $ac_word" >&5
11631echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11632if test "${ac_cv_prog_CC+set}" = set; then
11633 echo $ECHO_N "(cached) $ECHO_C" >&6
11634else
11635 if test -n "$CC"; then
11636 ac_cv_prog_CC="$CC" # Let the user override the test.
11637else
11638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11639for as_dir in $PATH
11640do
11641 IFS=$as_save_IFS
11642 test -z "$as_dir" && as_dir=.
11643 for ac_exec_ext in '' $ac_executable_extensions; do
11644 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11645 ac_cv_prog_CC="${ac_tool_prefix}cc"
11646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11647 break 2
11648 fi
11649done
11650done
11651
11652fi
11653fi
11654CC=$ac_cv_prog_CC
11655if test -n "$CC"; then
11656 echo "$as_me:$LINENO: result: $CC" >&5
11657echo "${ECHO_T}$CC" >&6
11658else
11659 echo "$as_me:$LINENO: result: no" >&5
11660echo "${ECHO_T}no" >&6
11661fi
11662
11663fi
11664if test -z "$ac_cv_prog_CC"; then
11665 ac_ct_CC=$CC
11666 # Extract the first word of "cc", so it can be a program name with args.
11667set dummy cc; ac_word=$2
11668echo "$as_me:$LINENO: checking for $ac_word" >&5
11669echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11670if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11671 echo $ECHO_N "(cached) $ECHO_C" >&6
11672else
11673 if test -n "$ac_ct_CC"; then
11674 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11675else
11676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11677for as_dir in $PATH
11678do
11679 IFS=$as_save_IFS
11680 test -z "$as_dir" && as_dir=.
11681 for ac_exec_ext in '' $ac_executable_extensions; do
11682 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11683 ac_cv_prog_ac_ct_CC="cc"
11684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11685 break 2
11686 fi
11687done
11688done
11689
11690fi
11691fi
11692ac_ct_CC=$ac_cv_prog_ac_ct_CC
11693if test -n "$ac_ct_CC"; then
11694 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11695echo "${ECHO_T}$ac_ct_CC" >&6
11696else
11697 echo "$as_me:$LINENO: result: no" >&5
11698echo "${ECHO_T}no" >&6
11699fi
11700
11701 CC=$ac_ct_CC
11702else
11703 CC="$ac_cv_prog_CC"
11704fi
11705
11706fi
11707if test -z "$CC"; then
11708 # Extract the first word of "cc", so it can be a program name with args.
11709set dummy cc; ac_word=$2
11710echo "$as_me:$LINENO: checking for $ac_word" >&5
11711echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11712if test "${ac_cv_prog_CC+set}" = set; then
11713 echo $ECHO_N "(cached) $ECHO_C" >&6
11714else
11715 if test -n "$CC"; then
11716 ac_cv_prog_CC="$CC" # Let the user override the test.
11717else
11718 ac_prog_rejected=no
11719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11720for as_dir in $PATH
11721do
11722 IFS=$as_save_IFS
11723 test -z "$as_dir" && as_dir=.
11724 for ac_exec_ext in '' $ac_executable_extensions; do
11725 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11726 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11727 ac_prog_rejected=yes
11728 continue
11729 fi
11730 ac_cv_prog_CC="cc"
11731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11732 break 2
11733 fi
11734done
11735done
11736
11737if test $ac_prog_rejected = yes; then
11738 # We found a bogon in the path, so make sure we never use it.
11739 set dummy $ac_cv_prog_CC
11740 shift
11741 if test $# != 0; then
11742 # We chose a different compiler from the bogus one.
11743 # However, it has the same basename, so the bogon will be chosen
11744 # first if we set CC to just the basename; use the full file name.
11745 shift
11746 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11747 fi
11748fi
11749fi
11750fi
11751CC=$ac_cv_prog_CC
11752if test -n "$CC"; then
11753 echo "$as_me:$LINENO: result: $CC" >&5
11754echo "${ECHO_T}$CC" >&6
11755else
11756 echo "$as_me:$LINENO: result: no" >&5
11757echo "${ECHO_T}no" >&6
11758fi
11759
11760fi
11761if test -z "$CC"; then
11762 if test -n "$ac_tool_prefix"; then
11763 for ac_prog in cl
11764 do
11765 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11766set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11767echo "$as_me:$LINENO: checking for $ac_word" >&5
11768echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11769if test "${ac_cv_prog_CC+set}" = set; then
11770 echo $ECHO_N "(cached) $ECHO_C" >&6
11771else
11772 if test -n "$CC"; then
11773 ac_cv_prog_CC="$CC" # Let the user override the test.
11774else
11775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11776for as_dir in $PATH
11777do
11778 IFS=$as_save_IFS
11779 test -z "$as_dir" && as_dir=.
11780 for ac_exec_ext in '' $ac_executable_extensions; do
11781 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11782 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11784 break 2
11785 fi
11786done
11787done
11788
11789fi
11790fi
11791CC=$ac_cv_prog_CC
11792if test -n "$CC"; then
11793 echo "$as_me:$LINENO: result: $CC" >&5
11794echo "${ECHO_T}$CC" >&6
11795else
11796 echo "$as_me:$LINENO: result: no" >&5
11797echo "${ECHO_T}no" >&6
11798fi
11799
11800 test -n "$CC" && break
11801 done
11802fi
11803if test -z "$CC"; then
11804 ac_ct_CC=$CC
11805 for ac_prog in cl
11806do
11807 # Extract the first word of "$ac_prog", so it can be a program name with args.
11808set dummy $ac_prog; ac_word=$2
11809echo "$as_me:$LINENO: checking for $ac_word" >&5
11810echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11811if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11812 echo $ECHO_N "(cached) $ECHO_C" >&6
11813else
11814 if test -n "$ac_ct_CC"; then
11815 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11816else
11817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11818for as_dir in $PATH
11819do
11820 IFS=$as_save_IFS
11821 test -z "$as_dir" && as_dir=.
11822 for ac_exec_ext in '' $ac_executable_extensions; do
11823 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11824 ac_cv_prog_ac_ct_CC="$ac_prog"
11825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11826 break 2
11827 fi
11828done
11829done
11830
11831fi
11832fi
11833ac_ct_CC=$ac_cv_prog_ac_ct_CC
11834if test -n "$ac_ct_CC"; then
11835 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11836echo "${ECHO_T}$ac_ct_CC" >&6
11837else
11838 echo "$as_me:$LINENO: result: no" >&5
11839echo "${ECHO_T}no" >&6
11840fi
11841
11842 test -n "$ac_ct_CC" && break
11843done
11844
11845 CC=$ac_ct_CC
11846fi
11847
11848fi
11849
11850
11851test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11852See \`config.log' for more details." >&5
11853echo "$as_me: error: no acceptable C compiler found in \$PATH
11854See \`config.log' for more details." >&2;}
11855 { (exit 1); exit 1; }; }
11856
11857# Provide some information about the compiler.
11858echo "$as_me:$LINENO:" \
11859 "checking for C compiler version" >&5
11860ac_compiler=`set X $ac_compile; echo $2`
11861{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11862 (eval $ac_compiler --version </dev/null >&5) 2>&5
11863 ac_status=$?
11864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11865 (exit $ac_status); }
11866{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11867 (eval $ac_compiler -v </dev/null >&5) 2>&5
11868 ac_status=$?
11869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11870 (exit $ac_status); }
11871{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11872 (eval $ac_compiler -V </dev/null >&5) 2>&5
11873 ac_status=$?
11874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875 (exit $ac_status); }
11876
11877cat >conftest.$ac_ext <<_ACEOF
11878/* confdefs.h. */
11879_ACEOF
11880cat confdefs.h >>conftest.$ac_ext
11881cat >>conftest.$ac_ext <<_ACEOF
11882/* end confdefs.h. */
11883
11884int
11885main ()
11886{
11887
11888 ;
11889 return 0;
11890}
11891_ACEOF
11892ac_clean_files_save=$ac_clean_files
11893ac_clean_files="$ac_clean_files a.out a.exe b.out"
11894# Try to create an executable without -o first, disregard a.out.
11895# It will help us diagnose broken compilers, and finding out an intuition
11896# of exeext.
ac1cb8d3
VS
11897echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
11898echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
11899ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
11900if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
11901 (eval $ac_link_default) 2>&5
11902 ac_status=$?
11903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904 (exit $ac_status); }; then
11905 # Find the output, starting from the most likely. This scheme is
11906# not robust to junk in `.', hence go to wildcards (a.*) only as a last
11907# resort.
11908
11909# Be careful to initialize this variable, since it used to be cached.
11910# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
11911ac_cv_exeext=
11912# b.out is created by i960 compilers.
11913for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
11914do
11915 test -f "$ac_file" || continue
11916 case $ac_file in
11917 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 11918 ;;
a848cd7e 11919 conftest.$ac_ext )
ac1cb8d3
VS
11920 # This is the source file.
11921 ;;
a848cd7e 11922 [ab].out )
ac1cb8d3
VS
11923 # We found the default executable, but exeext='' is most
11924 # certainly right.
11925 break;;
a848cd7e 11926 *.* )
ac1cb8d3
VS
11927 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
11928 # FIXME: I believe we export ac_cv_exeext for Libtool,
11929 # but it would be cool to find out if it's true. Does anybody
11930 # maintain Libtool? --akim.
11931 export ac_cv_exeext
11932 break;;
a848cd7e 11933 * )
ac1cb8d3 11934 break;;
a848cd7e
SC
11935 esac
11936done
11937else
11938 echo "$as_me: failed program was:" >&5
11939sed 's/^/| /' conftest.$ac_ext >&5
11940
11941{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
11942See \`config.log' for more details." >&5
11943echo "$as_me: error: C compiler cannot create executables
11944See \`config.log' for more details." >&2;}
11945 { (exit 77); exit 77; }; }
11946fi
11947
11948ac_exeext=$ac_cv_exeext
11949echo "$as_me:$LINENO: result: $ac_file" >&5
11950echo "${ECHO_T}$ac_file" >&6
11951
11952# Check the compiler produces executables we can run. If not, either
11953# the compiler is broken, or we cross compile.
11954echo "$as_me:$LINENO: checking whether the C compiler works" >&5
11955echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
11956# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
11957# If not cross compiling, check that we can run a simple program.
11958if test "$cross_compiling" != yes; then
11959 if { ac_try='./$ac_file'
11960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11961 (eval $ac_try) 2>&5
11962 ac_status=$?
11963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11964 (exit $ac_status); }; }; then
11965 cross_compiling=no
11966 else
11967 if test "$cross_compiling" = maybe; then
11968 cross_compiling=yes
11969 else
11970 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
11971If you meant to cross compile, use \`--host'.
11972See \`config.log' for more details." >&5
11973echo "$as_me: error: cannot run C compiled programs.
11974If you meant to cross compile, use \`--host'.
11975See \`config.log' for more details." >&2;}
11976 { (exit 1); exit 1; }; }
11977 fi
11978 fi
11979fi
11980echo "$as_me:$LINENO: result: yes" >&5
11981echo "${ECHO_T}yes" >&6
11982
11983rm -f a.out a.exe conftest$ac_cv_exeext b.out
11984ac_clean_files=$ac_clean_files_save
11985# Check the compiler produces executables we can run. If not, either
11986# the compiler is broken, or we cross compile.
11987echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
11988echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
11989echo "$as_me:$LINENO: result: $cross_compiling" >&5
11990echo "${ECHO_T}$cross_compiling" >&6
11991
11992echo "$as_me:$LINENO: checking for suffix of executables" >&5
11993echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
11994if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11995 (eval $ac_link) 2>&5
11996 ac_status=$?
11997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998 (exit $ac_status); }; then
11999 # If both `conftest.exe' and `conftest' are `present' (well, observable)
12000# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
12001# work properly (i.e., refer to `conftest.exe'), while it won't with
12002# `rm'.
12003for ac_file in conftest.exe conftest conftest.*; do
12004 test -f "$ac_file" || continue
12005 case $ac_file in
12006 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
12007 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
12008 export ac_cv_exeext
12009 break;;
a848cd7e
SC
12010 * ) break;;
12011 esac
12012done
12013else
12014 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
12015See \`config.log' for more details." >&5
12016echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
12017See \`config.log' for more details." >&2;}
12018 { (exit 1); exit 1; }; }
12019fi
12020
12021rm -f conftest$ac_cv_exeext
12022echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
12023echo "${ECHO_T}$ac_cv_exeext" >&6
12024
12025rm -f conftest.$ac_ext
12026EXEEXT=$ac_cv_exeext
12027ac_exeext=$EXEEXT
12028echo "$as_me:$LINENO: checking for suffix of object files" >&5
12029echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
12030if test "${ac_cv_objext+set}" = set; then
12031 echo $ECHO_N "(cached) $ECHO_C" >&6
12032else
12033 cat >conftest.$ac_ext <<_ACEOF
12034/* confdefs.h. */
12035_ACEOF
12036cat confdefs.h >>conftest.$ac_ext
12037cat >>conftest.$ac_ext <<_ACEOF
12038/* end confdefs.h. */
12039
12040int
12041main ()
12042{
12043
12044 ;
12045 return 0;
12046}
12047_ACEOF
12048rm -f conftest.o conftest.obj
12049if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12050 (eval $ac_compile) 2>&5
12051 ac_status=$?
12052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053 (exit $ac_status); }; then
12054 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
12055 case $ac_file in
12056 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
12057 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
12058 break;;
12059 esac
12060done
12061else
12062 echo "$as_me: failed program was:" >&5
12063sed 's/^/| /' conftest.$ac_ext >&5
12064
12065{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
12066See \`config.log' for more details." >&5
12067echo "$as_me: error: cannot compute suffix of object files: cannot compile
12068See \`config.log' for more details." >&2;}
12069 { (exit 1); exit 1; }; }
12070fi
12071
12072rm -f conftest.$ac_cv_objext conftest.$ac_ext
12073fi
12074echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
12075echo "${ECHO_T}$ac_cv_objext" >&6
12076OBJEXT=$ac_cv_objext
12077ac_objext=$OBJEXT
12078echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12079echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12080if test "${ac_cv_c_compiler_gnu+set}" = set; then
12081 echo $ECHO_N "(cached) $ECHO_C" >&6
12082else
12083 cat >conftest.$ac_ext <<_ACEOF
12084/* confdefs.h. */
12085_ACEOF
12086cat confdefs.h >>conftest.$ac_ext
12087cat >>conftest.$ac_ext <<_ACEOF
12088/* end confdefs.h. */
12089
12090int
12091main ()
12092{
12093#ifndef __GNUC__
12094 choke me
12095#endif
12096
12097 ;
12098 return 0;
12099}
12100_ACEOF
12101rm -f conftest.$ac_objext
12102if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12103 (eval $ac_compile) 2>conftest.er1
a848cd7e 12104 ac_status=$?
ac1cb8d3
VS
12105 grep -v '^ *+' conftest.er1 >conftest.err
12106 rm -f conftest.er1
12107 cat conftest.err >&5
a848cd7e
SC
12108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109 (exit $ac_status); } &&
c9a66001 12110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12112 (eval $ac_try) 2>&5
12113 ac_status=$?
12114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115 (exit $ac_status); }; } &&
12116 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12118 (eval $ac_try) 2>&5
12119 ac_status=$?
12120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121 (exit $ac_status); }; }; then
12122 ac_compiler_gnu=yes
12123else
12124 echo "$as_me: failed program was:" >&5
12125sed 's/^/| /' conftest.$ac_ext >&5
12126
12127ac_compiler_gnu=no
12128fi
ac1cb8d3 12129rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12130ac_cv_c_compiler_gnu=$ac_compiler_gnu
12131
12132fi
12133echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12134echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12135GCC=`test $ac_compiler_gnu = yes && echo yes`
12136ac_test_CFLAGS=${CFLAGS+set}
12137ac_save_CFLAGS=$CFLAGS
27cc9142 12138CFLAGS="$CFLAGS -g"
a848cd7e
SC
12139echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12140echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12141if test "${ac_cv_prog_cc_g+set}" = set; then
12142 echo $ECHO_N "(cached) $ECHO_C" >&6
12143else
12144 cat >conftest.$ac_ext <<_ACEOF
12145/* confdefs.h. */
12146_ACEOF
12147cat confdefs.h >>conftest.$ac_ext
12148cat >>conftest.$ac_ext <<_ACEOF
12149/* end confdefs.h. */
12150
12151int
12152main ()
12153{
12154
12155 ;
12156 return 0;
12157}
12158_ACEOF
12159rm -f conftest.$ac_objext
12160if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12161 (eval $ac_compile) 2>conftest.er1
a848cd7e 12162 ac_status=$?
ac1cb8d3
VS
12163 grep -v '^ *+' conftest.er1 >conftest.err
12164 rm -f conftest.er1
12165 cat conftest.err >&5
a848cd7e
SC
12166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12167 (exit $ac_status); } &&
c9a66001 12168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12170 (eval $ac_try) 2>&5
12171 ac_status=$?
12172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12173 (exit $ac_status); }; } &&
12174 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12176 (eval $ac_try) 2>&5
12177 ac_status=$?
12178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12179 (exit $ac_status); }; }; then
12180 ac_cv_prog_cc_g=yes
12181else
12182 echo "$as_me: failed program was:" >&5
12183sed 's/^/| /' conftest.$ac_ext >&5
12184
12185ac_cv_prog_cc_g=no
12186fi
ac1cb8d3 12187rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12188fi
12189echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12190echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12191if test "$ac_test_CFLAGS" = set; then
12192 CFLAGS=$ac_save_CFLAGS
12193elif test $ac_cv_prog_cc_g = yes; then
12194 if test "$GCC" = yes; then
12195 CFLAGS="-g -O2"
12196 else
12197 CFLAGS="-g"
12198 fi
12199else
12200 if test "$GCC" = yes; then
12201 CFLAGS="-O2"
12202 else
12203 CFLAGS=
12204 fi
12205fi
12206echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12207echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12208if test "${ac_cv_prog_cc_stdc+set}" = set; then
12209 echo $ECHO_N "(cached) $ECHO_C" >&6
12210else
12211 ac_cv_prog_cc_stdc=no
12212ac_save_CC=$CC
12213cat >conftest.$ac_ext <<_ACEOF
12214/* confdefs.h. */
12215_ACEOF
12216cat confdefs.h >>conftest.$ac_ext
12217cat >>conftest.$ac_ext <<_ACEOF
12218/* end confdefs.h. */
12219#include <stdarg.h>
12220#include <stdio.h>
12221#include <sys/types.h>
12222#include <sys/stat.h>
12223/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12224struct buf { int x; };
12225FILE * (*rcsopen) (struct buf *, struct stat *, int);
12226static char *e (p, i)
12227 char **p;
12228 int i;
12229{
12230 return p[i];
12231}
12232static char *f (char * (*g) (char **, int), char **p, ...)
12233{
12234 char *s;
12235 va_list v;
12236 va_start (v,p);
12237 s = g (p, va_arg (v,int));
12238 va_end (v);
12239 return s;
12240}
ac1cb8d3
VS
12241
12242/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12243 function prototypes and stuff, but not '\xHH' hex character constants.
12244 These don't provoke an error unfortunately, instead are silently treated
12245 as 'x'. The following induces an error, until -std1 is added to get
12246 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12247 array size at least. It's necessary to write '\x00'==0 to get something
12248 that's true only with -std1. */
12249int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12250
a848cd7e
SC
12251int test (int i, double x);
12252struct s1 {int (*f) (int a);};
12253struct s2 {int (*f) (double a);};
12254int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12255int argc;
12256char **argv;
12257int
12258main ()
12259{
12260return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12261 ;
12262 return 0;
12263}
12264_ACEOF
12265# Don't try gcc -ansi; that turns off useful extensions and
12266# breaks some systems' header files.
12267# AIX -qlanglvl=ansi
12268# Ultrix and OSF/1 -std1
12269# HP-UX 10.20 and later -Ae
12270# HP-UX older versions -Aa -D_HPUX_SOURCE
12271# SVR4 -Xc -D__EXTENSIONS__
12272for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12273do
12274 CC="$ac_save_CC $ac_arg"
12275 rm -f conftest.$ac_objext
12276if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12277 (eval $ac_compile) 2>conftest.er1
a848cd7e 12278 ac_status=$?
ac1cb8d3
VS
12279 grep -v '^ *+' conftest.er1 >conftest.err
12280 rm -f conftest.er1
12281 cat conftest.err >&5
a848cd7e
SC
12282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283 (exit $ac_status); } &&
c9a66001 12284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12286 (eval $ac_try) 2>&5
12287 ac_status=$?
12288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289 (exit $ac_status); }; } &&
12290 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12292 (eval $ac_try) 2>&5
12293 ac_status=$?
12294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295 (exit $ac_status); }; }; then
12296 ac_cv_prog_cc_stdc=$ac_arg
12297break
12298else
12299 echo "$as_me: failed program was:" >&5
12300sed 's/^/| /' conftest.$ac_ext >&5
12301
12302fi
ac1cb8d3 12303rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
12304done
12305rm -f conftest.$ac_ext conftest.$ac_objext
12306CC=$ac_save_CC
12307
12308fi
12309
12310case "x$ac_cv_prog_cc_stdc" in
12311 x|xno)
12312 echo "$as_me:$LINENO: result: none needed" >&5
12313echo "${ECHO_T}none needed" >&6 ;;
12314 *)
12315 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12316echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12317 CC="$CC $ac_cv_prog_cc_stdc" ;;
12318esac
12319
12320# Some people use a C++ compiler to compile C. Since we use `exit',
12321# in C++ we need to declare it. In case someone uses the same compiler
12322# for both compiling C and C++ we need to have the C++ compiler decide
12323# the declaration of exit, since it's the most demanding environment.
12324cat >conftest.$ac_ext <<_ACEOF
12325#ifndef __cplusplus
12326 choke me
12327#endif
12328_ACEOF
12329rm -f conftest.$ac_objext
12330if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12331 (eval $ac_compile) 2>conftest.er1
a848cd7e 12332 ac_status=$?
ac1cb8d3
VS
12333 grep -v '^ *+' conftest.er1 >conftest.err
12334 rm -f conftest.er1
12335 cat conftest.err >&5
a848cd7e
SC
12336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337 (exit $ac_status); } &&
c9a66001 12338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12340 (eval $ac_try) 2>&5
12341 ac_status=$?
12342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); }; } &&
12344 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12346 (eval $ac_try) 2>&5
12347 ac_status=$?
12348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349 (exit $ac_status); }; }; then
12350 for ac_declaration in \
ac1cb8d3 12351 '' \
a848cd7e
SC
12352 'extern "C" void std::exit (int) throw (); using std::exit;' \
12353 'extern "C" void std::exit (int); using std::exit;' \
12354 'extern "C" void exit (int) throw ();' \
12355 'extern "C" void exit (int);' \
12356 'void exit (int);'
12357do
12358 cat >conftest.$ac_ext <<_ACEOF
12359/* confdefs.h. */
12360_ACEOF
12361cat confdefs.h >>conftest.$ac_ext
12362cat >>conftest.$ac_ext <<_ACEOF
12363/* end confdefs.h. */
de59c161 12364$ac_declaration
ac1cb8d3 12365#include <stdlib.h>
a848cd7e
SC
12366int
12367main ()
12368{
12369exit (42);
12370 ;
12371 return 0;
12372}
12373_ACEOF
12374rm -f conftest.$ac_objext
12375if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12376 (eval $ac_compile) 2>conftest.er1
a848cd7e 12377 ac_status=$?
ac1cb8d3
VS
12378 grep -v '^ *+' conftest.er1 >conftest.err
12379 rm -f conftest.er1
12380 cat conftest.err >&5
a848cd7e
SC
12381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12382 (exit $ac_status); } &&
c9a66001 12383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12385 (eval $ac_try) 2>&5
12386 ac_status=$?
12387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12388 (exit $ac_status); }; } &&
12389 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12391 (eval $ac_try) 2>&5
12392 ac_status=$?
12393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394 (exit $ac_status); }; }; then
12395 :
12396else
12397 echo "$as_me: failed program was:" >&5
12398sed 's/^/| /' conftest.$ac_ext >&5
12399
12400continue
12401fi
ac1cb8d3 12402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12403 cat >conftest.$ac_ext <<_ACEOF
12404/* confdefs.h. */
12405_ACEOF
12406cat confdefs.h >>conftest.$ac_ext
12407cat >>conftest.$ac_ext <<_ACEOF
12408/* end confdefs.h. */
12409$ac_declaration
12410int
12411main ()
12412{
12413exit (42);
12414 ;
12415 return 0;
12416}
12417_ACEOF
12418rm -f conftest.$ac_objext
12419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12420 (eval $ac_compile) 2>conftest.er1
a848cd7e 12421 ac_status=$?
ac1cb8d3
VS
12422 grep -v '^ *+' conftest.er1 >conftest.err
12423 rm -f conftest.er1
12424 cat conftest.err >&5
a848cd7e
SC
12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 (exit $ac_status); } &&
c9a66001 12427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12429 (eval $ac_try) 2>&5
12430 ac_status=$?
12431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432 (exit $ac_status); }; } &&
12433 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12435 (eval $ac_try) 2>&5
12436 ac_status=$?
12437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438 (exit $ac_status); }; }; then
12439 break
12440else
12441 echo "$as_me: failed program was:" >&5
12442sed 's/^/| /' conftest.$ac_ext >&5
12443
12444fi
ac1cb8d3 12445rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12446done
12447rm -f conftest*
12448if test -n "$ac_declaration"; then
12449 echo '#ifdef __cplusplus' >>confdefs.h
12450 echo $ac_declaration >>confdefs.h
12451 echo '#endif' >>confdefs.h
12452fi
12453
12454else
12455 echo "$as_me: failed program was:" >&5
12456sed 's/^/| /' conftest.$ac_ext >&5
12457
12458fi
ac1cb8d3 12459rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12460ac_ext=c
12461ac_cpp='$CPP $CPPFLAGS'
12462ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12463ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12464ac_compiler_gnu=$ac_cv_c_compiler_gnu
12465
ab0ad5f1
VZ
12466
12467
12468 ac_ext=c
12469ac_cpp='$CPP $CPPFLAGS'
12470ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12471ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12472ac_compiler_gnu=$ac_cv_c_compiler_gnu
12473
12474 echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
12475echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6
12476if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
12477 echo $ECHO_N "(cached) $ECHO_C" >&6
12478else
12479 cat >conftest.$ac_ext <<_ACEOF
12480/* confdefs.h. */
12481_ACEOF
12482cat confdefs.h >>conftest.$ac_ext
12483cat >>conftest.$ac_ext <<_ACEOF
12484/* end confdefs.h. */
12485
12486int
12487main ()
12488{
12489
12490 #ifndef __INTEL_COMPILER
12491 choke me
12492 #endif
12493
12494 ;
12495 return 0;
12496}
12497_ACEOF
12498rm -f conftest.$ac_objext
12499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12500 (eval $ac_compile) 2>conftest.er1
12501 ac_status=$?
12502 grep -v '^ *+' conftest.er1 >conftest.err
12503 rm -f conftest.er1
12504 cat conftest.err >&5
12505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506 (exit $ac_status); } &&
c9a66001 12507 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab0ad5f1
VZ
12508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12509 (eval $ac_try) 2>&5
12510 ac_status=$?
12511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12512 (exit $ac_status); }; } &&
12513 { ac_try='test -s conftest.$ac_objext'
12514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12515 (eval $ac_try) 2>&5
12516 ac_status=$?
12517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12518 (exit $ac_status); }; }; then
12519 bakefile_cv_c_compiler___INTEL_COMPILER=yes
12520else
12521 echo "$as_me: failed program was:" >&5
12522sed 's/^/| /' conftest.$ac_ext >&5
12523
12524bakefile_cv_c_compiler___INTEL_COMPILER=no
12525
12526fi
12527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12528
12529
12530fi
12531echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
12532echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6
12533 ac_ext=c
12534ac_cpp='$CPP $CPPFLAGS'
12535ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12536ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12537ac_compiler_gnu=$ac_cv_c_compiler_gnu
12538
12539 if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
12540 :; INTELCC=yes
12541 else
12542 :;
12543 fi
12544
12545
12546 if test "x$GCC" != "xyes"; then
3006edc0
VZ
12547 if test "xCC" = "xC"; then
12548 echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
480ccd21 12549echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
0093c2fc 12550if test "${bakefile_cv_c_exto+set}" = set; then
480ccd21
DE
12551 echo $ECHO_N "(cached) $ECHO_C" >&6
12552else
12553 cat >conftest.$ac_ext <<_ACEOF
12554/* confdefs.h. */
12555_ACEOF
12556cat confdefs.h >>conftest.$ac_ext
12557cat >>conftest.$ac_ext <<_ACEOF
12558/* end confdefs.h. */
12559
12560int
12561main ()
12562{
12563
12564 ;
12565 return 0;
12566}
12567_ACEOF
12568rm -f conftest.$ac_objext conftest.$ac_ext.o
12569if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12570 (eval $ac_compile) 2>&5
12571 ac_status=$?
12572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12573 (exit $ac_status); }; then
12574 for ac_file in `(ls conftest.* 2>/dev/null)`; do
12575 case $ac_file in
12576 conftest.$ac_ext.o)
0093c2fc 12577 bakefile_cv_c_exto="-ext o"
480ccd21
DE
12578 ;;
12579 *)
12580 ;;
12581 esac
12582done
12583else
12584 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
12585See \`config.log' for more details." >&5
12586echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
12587See \`config.log' for more details." >&2;}
12588 { (exit 1); exit 1; }; }
12589
12590fi
12591
12592rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
12593
12594fi
0093c2fc
VZ
12595echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
12596echo "${ECHO_T}$bakefile_cv_c_exto" >&6
12597if test "x$bakefile_cv_c_exto" '!=' "x"; then
480ccd21 12598 if test "c" = "c"; then
0093c2fc 12599 CFLAGS="$bakefile_cv_c_exto $CFLAGS"
480ccd21
DE
12600 fi
12601 if test "c" = "cxx"; then
0093c2fc 12602 CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
480ccd21
DE
12603 fi
12604fi
12605
0093c2fc 12606 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
12607 unset ac_cv_prog_cc_g
12608 ac_test_CFLAGS=${CFLAGS+set}
480ccd21 12609ac_save_CFLAGS=$CFLAGS
27cc9142 12610CFLAGS="$CFLAGS -g"
480ccd21
DE
12611echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12612echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12613if test "${ac_cv_prog_cc_g+set}" = set; then
12614 echo $ECHO_N "(cached) $ECHO_C" >&6
12615else
12616 cat >conftest.$ac_ext <<_ACEOF
12617/* confdefs.h. */
12618_ACEOF
12619cat confdefs.h >>conftest.$ac_ext
12620cat >>conftest.$ac_ext <<_ACEOF
12621/* end confdefs.h. */
12622
12623int
12624main ()
12625{
12626
12627 ;
12628 return 0;
12629}
12630_ACEOF
12631rm -f conftest.$ac_objext
12632if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12633 (eval $ac_compile) 2>conftest.er1
12634 ac_status=$?
12635 grep -v '^ *+' conftest.er1 >conftest.err
12636 rm -f conftest.er1
12637 cat conftest.err >&5
12638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639 (exit $ac_status); } &&
c9a66001 12640 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
480ccd21
DE
12641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12642 (eval $ac_try) 2>&5
12643 ac_status=$?
12644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645 (exit $ac_status); }; } &&
12646 { ac_try='test -s conftest.$ac_objext'
12647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12648 (eval $ac_try) 2>&5
12649 ac_status=$?
12650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651 (exit $ac_status); }; }; then
12652 ac_cv_prog_cc_g=yes
12653else
12654 echo "$as_me: failed program was:" >&5
12655sed 's/^/| /' conftest.$ac_ext >&5
12656
12657ac_cv_prog_cc_g=no
12658fi
12659rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12660fi
12661echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12662echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12663if test "$ac_test_CFLAGS" = set; then
12664 CFLAGS=$ac_save_CFLAGS
12665elif test $ac_cv_prog_cc_g = yes; then
12666 if test "$GCC" = yes; then
12667 CFLAGS="-g -O2"
12668 else
12669 CFLAGS="-g"
12670 fi
12671else
12672 if test "$GCC" = yes; then
12673 CFLAGS="-O2"
12674 else
12675 CFLAGS=
12676 fi
12677fi
3006edc0 12678 fi
ab0ad5f1 12679 fi
3006edc0
VZ
12680
12681 case `uname -s` in
12682 AIX*)
12683 ac_ext=c
12684ac_cpp='$CPP $CPPFLAGS'
12685ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12686ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12687ac_compiler_gnu=$ac_cv_c_compiler_gnu
12688
12689echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
12690echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
0093c2fc 12691if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
3006edc0
VZ
12692 echo $ECHO_N "(cached) $ECHO_C" >&6
12693else
12694 cat >conftest.$ac_ext <<_ACEOF
12695/* confdefs.h. */
12696_ACEOF
12697cat confdefs.h >>conftest.$ac_ext
12698cat >>conftest.$ac_ext <<_ACEOF
12699/* end confdefs.h. */
12700
12701int
12702main ()
12703{
12704#ifndef __xlC__
12705 choke me
12706#endif
12707
12708 ;
12709 return 0;
12710}
12711_ACEOF
12712rm -f conftest.$ac_objext
12713if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12714 (eval $ac_compile) 2>conftest.er1
12715 ac_status=$?
12716 grep -v '^ *+' conftest.er1 >conftest.err
12717 rm -f conftest.er1
12718 cat conftest.err >&5
12719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720 (exit $ac_status); } &&
c9a66001 12721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
12722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12723 (eval $ac_try) 2>&5
12724 ac_status=$?
12725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12726 (exit $ac_status); }; } &&
12727 { ac_try='test -s conftest.$ac_objext'
12728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12729 (eval $ac_try) 2>&5
12730 ac_status=$?
12731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732 (exit $ac_status); }; }; then
0093c2fc 12733 bakefile_compiler_xlc=yes
3006edc0
VZ
12734else
12735 echo "$as_me: failed program was:" >&5
12736sed 's/^/| /' conftest.$ac_ext >&5
12737
0093c2fc 12738bakefile_compiler_xlc=no
3006edc0
VZ
12739fi
12740rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 12741 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
12742
12743fi
0093c2fc
VZ
12744echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
12745echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
3006edc0 12746
0093c2fc 12747XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
3006edc0
VZ
12748ac_ext=c
12749ac_cpp='$CPP $CPPFLAGS'
12750ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12751ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12752ac_compiler_gnu=$ac_cv_c_compiler_gnu
12753
12754
12755 ;;
12756
12757 Darwin)
12758 ac_ext=c
95986553
DE
12759ac_cpp='$CPP $CPPFLAGS'
12760ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12761ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12762ac_compiler_gnu=$ac_cv_c_compiler_gnu
12763
12764echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
12765echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
12766if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
12767 echo $ECHO_N "(cached) $ECHO_C" >&6
12768else
12769 cat >conftest.$ac_ext <<_ACEOF
12770/* confdefs.h. */
12771_ACEOF
12772cat confdefs.h >>conftest.$ac_ext
12773cat >>conftest.$ac_ext <<_ACEOF
12774/* end confdefs.h. */
12775
12776int
12777main ()
12778{
12779#ifndef __MWERKS__
12780 choke me
12781#endif
12782
12783 ;
12784 return 0;
12785}
12786_ACEOF
12787rm -f conftest.$ac_objext
12788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12789 (eval $ac_compile) 2>conftest.er1
12790 ac_status=$?
12791 grep -v '^ *+' conftest.er1 >conftest.err
12792 rm -f conftest.er1
12793 cat conftest.err >&5
12794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795 (exit $ac_status); } &&
c9a66001 12796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
95986553
DE
12797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12798 (eval $ac_try) 2>&5
12799 ac_status=$?
12800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801 (exit $ac_status); }; } &&
12802 { ac_try='test -s conftest.$ac_objext'
12803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12804 (eval $ac_try) 2>&5
12805 ac_status=$?
12806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807 (exit $ac_status); }; }; then
12808 bakefile_compiler_mwerks=yes
12809else
12810 echo "$as_me: failed program was:" >&5
12811sed 's/^/| /' conftest.$ac_ext >&5
12812
12813bakefile_compiler_mwerks=no
12814fi
12815rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12816 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
12817
12818fi
12819echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
12820echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
12821
0e6fa1d9 12822MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
95986553
DE
12823ac_ext=c
12824ac_cpp='$CPP $CPPFLAGS'
12825ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12826ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12827ac_compiler_gnu=$ac_cv_c_compiler_gnu
12828
12829
3006edc0 12830 ac_ext=c
9273ffba
DE
12831ac_cpp='$CPP $CPPFLAGS'
12832ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12833ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12834ac_compiler_gnu=$ac_cv_c_compiler_gnu
12835
12836echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
12837echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
0093c2fc 12838if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
9273ffba
DE
12839 echo $ECHO_N "(cached) $ECHO_C" >&6
12840else
12841 cat >conftest.$ac_ext <<_ACEOF
12842/* confdefs.h. */
12843_ACEOF
12844cat confdefs.h >>conftest.$ac_ext
12845cat >>conftest.$ac_ext <<_ACEOF
12846/* end confdefs.h. */
12847
12848int
12849main ()
12850{
12851#ifndef __xlC__
12852 choke me
12853#endif
12854
12855 ;
12856 return 0;
12857}
12858_ACEOF
12859rm -f conftest.$ac_objext
12860if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12861 (eval $ac_compile) 2>conftest.er1
12862 ac_status=$?
12863 grep -v '^ *+' conftest.er1 >conftest.err
12864 rm -f conftest.er1
12865 cat conftest.err >&5
12866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12867 (exit $ac_status); } &&
c9a66001 12868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9273ffba
DE
12869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12870 (eval $ac_try) 2>&5
12871 ac_status=$?
12872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12873 (exit $ac_status); }; } &&
12874 { ac_try='test -s conftest.$ac_objext'
12875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12876 (eval $ac_try) 2>&5
12877 ac_status=$?
12878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12879 (exit $ac_status); }; }; then
0093c2fc 12880 bakefile_compiler_xlc=yes
9273ffba
DE
12881else
12882 echo "$as_me: failed program was:" >&5
12883sed 's/^/| /' conftest.$ac_ext >&5
12884
0093c2fc 12885bakefile_compiler_xlc=no
9273ffba
DE
12886fi
12887rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 12888 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
12889
12890fi
0093c2fc
VZ
12891echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
12892echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
9273ffba 12893
0093c2fc 12894XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
9273ffba
DE
12895ac_ext=c
12896ac_cpp='$CPP $CPPFLAGS'
12897ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12898ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12899ac_compiler_gnu=$ac_cv_c_compiler_gnu
12900
12901
3006edc0
VZ
12902 ;;
12903
12904 IRIX*)
a848cd7e 12905
6dcfc289 12906
0ad5d837
VZ
12907 ac_ext=c
12908ac_cpp='$CPP $CPPFLAGS'
12909ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12910ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12911ac_compiler_gnu=$ac_cv_c_compiler_gnu
12912
12913 echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
12914echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6
12915if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
12916 echo $ECHO_N "(cached) $ECHO_C" >&6
12917else
12918 cat >conftest.$ac_ext <<_ACEOF
12919/* confdefs.h. */
12920_ACEOF
12921cat confdefs.h >>conftest.$ac_ext
12922cat >>conftest.$ac_ext <<_ACEOF
12923/* end confdefs.h. */
12924
12925int
12926main ()
12927{
12928
12929 #ifndef _SGI_COMPILER_VERSION
12930 choke me
12931 #endif
12932
12933 ;
12934 return 0;
12935}
12936_ACEOF
12937rm -f conftest.$ac_objext
12938if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12939 (eval $ac_compile) 2>conftest.er1
12940 ac_status=$?
12941 grep -v '^ *+' conftest.er1 >conftest.err
12942 rm -f conftest.er1
12943 cat conftest.err >&5
12944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12945 (exit $ac_status); } &&
c9a66001 12946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
12947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12948 (eval $ac_try) 2>&5
12949 ac_status=$?
12950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12951 (exit $ac_status); }; } &&
12952 { ac_try='test -s conftest.$ac_objext'
12953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12954 (eval $ac_try) 2>&5
12955 ac_status=$?
12956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12957 (exit $ac_status); }; }; then
12958 bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
12959else
12960 echo "$as_me: failed program was:" >&5
12961sed 's/^/| /' conftest.$ac_ext >&5
12962
12963bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
12964
12965fi
12966rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12967
12968
12969fi
12970echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
12971echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6
12972 ac_ext=c
12973ac_cpp='$CPP $CPPFLAGS'
12974ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12975ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12976ac_compiler_gnu=$ac_cv_c_compiler_gnu
12977
12978 if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
12979 :; SGICC=yes
12980 else
12981 :;
12982 fi
12983
12984
3006edc0
VZ
12985 ;;
12986
0093c2fc 12987 HP-UX*)
3006edc0
VZ
12988
12989
12990 ac_ext=c
12991ac_cpp='$CPP $CPPFLAGS'
12992ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12993ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12994ac_compiler_gnu=$ac_cv_c_compiler_gnu
12995
0093c2fc
VZ
12996 echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
12997echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6
12998if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
3006edc0
VZ
12999 echo $ECHO_N "(cached) $ECHO_C" >&6
13000else
13001 cat >conftest.$ac_ext <<_ACEOF
13002/* confdefs.h. */
13003_ACEOF
13004cat confdefs.h >>conftest.$ac_ext
13005cat >>conftest.$ac_ext <<_ACEOF
13006/* end confdefs.h. */
13007
13008int
13009main ()
13010{
13011
0093c2fc 13012 #ifndef __HP_cc
3006edc0
VZ
13013 choke me
13014 #endif
13015
13016 ;
13017 return 0;
13018}
13019_ACEOF
13020rm -f conftest.$ac_objext
13021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13022 (eval $ac_compile) 2>conftest.er1
13023 ac_status=$?
13024 grep -v '^ *+' conftest.er1 >conftest.err
13025 rm -f conftest.er1
13026 cat conftest.err >&5
13027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13028 (exit $ac_status); } &&
c9a66001 13029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
13030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13031 (eval $ac_try) 2>&5
13032 ac_status=$?
13033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13034 (exit $ac_status); }; } &&
13035 { ac_try='test -s conftest.$ac_objext'
13036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13037 (eval $ac_try) 2>&5
13038 ac_status=$?
13039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13040 (exit $ac_status); }; }; then
0093c2fc 13041 bakefile_cv_c_compiler___HP_cc=yes
3006edc0
VZ
13042else
13043 echo "$as_me: failed program was:" >&5
13044sed 's/^/| /' conftest.$ac_ext >&5
13045
0093c2fc 13046bakefile_cv_c_compiler___HP_cc=no
3006edc0
VZ
13047
13048fi
13049rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13050
13051
13052fi
0093c2fc
VZ
13053echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
13054echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6
3006edc0
VZ
13055 ac_ext=c
13056ac_cpp='$CPP $CPPFLAGS'
13057ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13058ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13059ac_compiler_gnu=$ac_cv_c_compiler_gnu
13060
0093c2fc
VZ
13061 if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
13062 :; HPCC=yes
a1aa0349
VZ
13063 else
13064 :;
13065 fi
13066
13067
13068 ;;
13069
0093c2fc 13070 OSF1)
a1aa0349
VZ
13071
13072
13073 ac_ext=c
13074ac_cpp='$CPP $CPPFLAGS'
13075ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13076ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13077ac_compiler_gnu=$ac_cv_c_compiler_gnu
13078
0093c2fc
VZ
13079 echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
13080echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6
13081if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
a1aa0349
VZ
13082 echo $ECHO_N "(cached) $ECHO_C" >&6
13083else
13084 cat >conftest.$ac_ext <<_ACEOF
13085/* confdefs.h. */
13086_ACEOF
13087cat confdefs.h >>conftest.$ac_ext
13088cat >>conftest.$ac_ext <<_ACEOF
13089/* end confdefs.h. */
13090
13091int
13092main ()
13093{
13094
0093c2fc 13095 #ifndef __DECC
a1aa0349
VZ
13096 choke me
13097 #endif
13098
13099 ;
13100 return 0;
13101}
13102_ACEOF
13103rm -f conftest.$ac_objext
13104if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13105 (eval $ac_compile) 2>conftest.er1
13106 ac_status=$?
13107 grep -v '^ *+' conftest.er1 >conftest.err
13108 rm -f conftest.er1
13109 cat conftest.err >&5
13110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13111 (exit $ac_status); } &&
c9a66001 13112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a1aa0349
VZ
13113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13114 (eval $ac_try) 2>&5
13115 ac_status=$?
13116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117 (exit $ac_status); }; } &&
13118 { ac_try='test -s conftest.$ac_objext'
13119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13120 (eval $ac_try) 2>&5
13121 ac_status=$?
13122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13123 (exit $ac_status); }; }; then
0093c2fc 13124 bakefile_cv_c_compiler___DECC=yes
a1aa0349
VZ
13125else
13126 echo "$as_me: failed program was:" >&5
13127sed 's/^/| /' conftest.$ac_ext >&5
13128
0093c2fc 13129bakefile_cv_c_compiler___DECC=no
a1aa0349
VZ
13130
13131fi
13132rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13133
13134
13135fi
0093c2fc
VZ
13136echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
13137echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6
a1aa0349
VZ
13138 ac_ext=c
13139ac_cpp='$CPP $CPPFLAGS'
13140ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13141ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13142ac_compiler_gnu=$ac_cv_c_compiler_gnu
13143
0093c2fc
VZ
13144 if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
13145 :; COMPAQCC=yes
13146 else
13147 :;
13148 fi
13149
13150
13151 ;;
13152
13153 SunOS)
13154
13155
13156 ac_ext=c
13157ac_cpp='$CPP $CPPFLAGS'
13158ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13159ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13160ac_compiler_gnu=$ac_cv_c_compiler_gnu
13161
13162 echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
13163echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6
13164if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
13165 echo $ECHO_N "(cached) $ECHO_C" >&6
13166else
13167 cat >conftest.$ac_ext <<_ACEOF
13168/* confdefs.h. */
13169_ACEOF
13170cat confdefs.h >>conftest.$ac_ext
13171cat >>conftest.$ac_ext <<_ACEOF
13172/* end confdefs.h. */
13173
13174int
13175main ()
13176{
13177
13178 #ifndef __SUNPRO_C
13179 choke me
13180 #endif
13181
13182 ;
13183 return 0;
13184}
13185_ACEOF
13186rm -f conftest.$ac_objext
13187if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13188 (eval $ac_compile) 2>conftest.er1
13189 ac_status=$?
13190 grep -v '^ *+' conftest.er1 >conftest.err
13191 rm -f conftest.er1
13192 cat conftest.err >&5
13193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194 (exit $ac_status); } &&
c9a66001 13195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
0093c2fc
VZ
13196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13197 (eval $ac_try) 2>&5
13198 ac_status=$?
13199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13200 (exit $ac_status); }; } &&
13201 { ac_try='test -s conftest.$ac_objext'
13202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13203 (eval $ac_try) 2>&5
13204 ac_status=$?
13205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206 (exit $ac_status); }; }; then
13207 bakefile_cv_c_compiler___SUNPRO_C=yes
13208else
13209 echo "$as_me: failed program was:" >&5
13210sed 's/^/| /' conftest.$ac_ext >&5
13211
13212bakefile_cv_c_compiler___SUNPRO_C=no
13213
13214fi
13215rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13216
13217
13218fi
13219echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
13220echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6
13221 ac_ext=c
13222ac_cpp='$CPP $CPPFLAGS'
13223ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13224ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13225ac_compiler_gnu=$ac_cv_c_compiler_gnu
13226
13227 if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
13228 :; SUNCC=yes
3006edc0
VZ
13229 else
13230 :;
13231 fi
13232
13233
13234 ;;
13235 esac
ab0ad5f1 13236 fi
a9e5b1f0
MW
13237
13238
3006edc0 13239
a848cd7e
SC
13240ac_ext=c
13241ac_cpp='$CPP $CPPFLAGS'
13242ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13243ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13244ac_compiler_gnu=$ac_cv_c_compiler_gnu
13245echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
13246echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
13247# On Suns, sometimes $CPP names a directory.
13248if test -n "$CPP" && test -d "$CPP"; then
13249 CPP=
13250fi
13251if test -z "$CPP"; then
13252 if test "${ac_cv_prog_CPP+set}" = set; then
13253 echo $ECHO_N "(cached) $ECHO_C" >&6
13254else
13255 # Double quotes because CPP needs to be expanded
13256 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
13257 do
13258 ac_preproc_ok=false
13259for ac_c_preproc_warn_flag in '' yes
13260do
13261 # Use a header file that comes with gcc, so configuring glibc
13262 # with a fresh cross-compiler works.
13263 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13264 # <limits.h> exists even on freestanding compilers.
13265 # On the NeXT, cc -E runs the code through the compiler's parser,
13266 # not just through cpp. "Syntax error" is here to catch this case.
13267 cat >conftest.$ac_ext <<_ACEOF
13268/* confdefs.h. */
13269_ACEOF
13270cat confdefs.h >>conftest.$ac_ext
13271cat >>conftest.$ac_ext <<_ACEOF
13272/* end confdefs.h. */
13273#ifdef __STDC__
13274# include <limits.h>
13275#else
13276# include <assert.h>
13277#endif
ac1cb8d3 13278 Syntax error
a848cd7e
SC
13279_ACEOF
13280if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13281 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13282 ac_status=$?
13283 grep -v '^ *+' conftest.er1 >conftest.err
13284 rm -f conftest.er1
13285 cat conftest.err >&5
13286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13287 (exit $ac_status); } >/dev/null; then
13288 if test -s conftest.err; then
13289 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13290 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13291 else
13292 ac_cpp_err=
13293 fi
13294else
13295 ac_cpp_err=yes
13296fi
13297if test -z "$ac_cpp_err"; then
13298 :
13299else
13300 echo "$as_me: failed program was:" >&5
13301sed 's/^/| /' conftest.$ac_ext >&5
13302
13303 # Broken: fails on valid input.
13304continue
13305fi
13306rm -f conftest.err conftest.$ac_ext
13307
13308 # OK, works on sane cases. Now check whether non-existent headers
13309 # can be detected and how.
13310 cat >conftest.$ac_ext <<_ACEOF
13311/* confdefs.h. */
13312_ACEOF
13313cat confdefs.h >>conftest.$ac_ext
13314cat >>conftest.$ac_ext <<_ACEOF
13315/* end confdefs.h. */
13316#include <ac_nonexistent.h>
13317_ACEOF
13318if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13319 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13320 ac_status=$?
13321 grep -v '^ *+' conftest.er1 >conftest.err
13322 rm -f conftest.er1
13323 cat conftest.err >&5
13324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325 (exit $ac_status); } >/dev/null; then
13326 if test -s conftest.err; then
13327 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13328 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13329 else
13330 ac_cpp_err=
13331 fi
13332else
13333 ac_cpp_err=yes
13334fi
13335if test -z "$ac_cpp_err"; then
13336 # Broken: success on invalid input.
13337continue
13338else
13339 echo "$as_me: failed program was:" >&5
13340sed 's/^/| /' conftest.$ac_ext >&5
13341
13342 # Passes both tests.
13343ac_preproc_ok=:
13344break
13345fi
13346rm -f conftest.err conftest.$ac_ext
13347
13348done
13349# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13350rm -f conftest.err conftest.$ac_ext
13351if $ac_preproc_ok; then
13352 break
13353fi
13354
13355 done
13356 ac_cv_prog_CPP=$CPP
13357
13358fi
13359 CPP=$ac_cv_prog_CPP
13360else
13361 ac_cv_prog_CPP=$CPP
13362fi
13363echo "$as_me:$LINENO: result: $CPP" >&5
13364echo "${ECHO_T}$CPP" >&6
13365ac_preproc_ok=false
13366for ac_c_preproc_warn_flag in '' yes
13367do
13368 # Use a header file that comes with gcc, so configuring glibc
13369 # with a fresh cross-compiler works.
13370 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13371 # <limits.h> exists even on freestanding compilers.
13372 # On the NeXT, cc -E runs the code through the compiler's parser,
13373 # not just through cpp. "Syntax error" is here to catch this case.
13374 cat >conftest.$ac_ext <<_ACEOF
13375/* confdefs.h. */
13376_ACEOF
13377cat confdefs.h >>conftest.$ac_ext
13378cat >>conftest.$ac_ext <<_ACEOF
13379/* end confdefs.h. */
13380#ifdef __STDC__
13381# include <limits.h>
13382#else
13383# include <assert.h>
13384#endif
ac1cb8d3 13385 Syntax error
a848cd7e
SC
13386_ACEOF
13387if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13388 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13389 ac_status=$?
13390 grep -v '^ *+' conftest.er1 >conftest.err
13391 rm -f conftest.er1
13392 cat conftest.err >&5
13393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13394 (exit $ac_status); } >/dev/null; then
13395 if test -s conftest.err; then
13396 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13397 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13398 else
13399 ac_cpp_err=
13400 fi
13401else
13402 ac_cpp_err=yes
13403fi
13404if test -z "$ac_cpp_err"; then
13405 :
13406else
13407 echo "$as_me: failed program was:" >&5
13408sed 's/^/| /' conftest.$ac_ext >&5
13409
13410 # Broken: fails on valid input.
13411continue
13412fi
13413rm -f conftest.err conftest.$ac_ext
13414
13415 # OK, works on sane cases. Now check whether non-existent headers
13416 # can be detected and how.
13417 cat >conftest.$ac_ext <<_ACEOF
13418/* confdefs.h. */
13419_ACEOF
13420cat confdefs.h >>conftest.$ac_ext
13421cat >>conftest.$ac_ext <<_ACEOF
13422/* end confdefs.h. */
13423#include <ac_nonexistent.h>
13424_ACEOF
13425if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13426 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13427 ac_status=$?
13428 grep -v '^ *+' conftest.er1 >conftest.err
13429 rm -f conftest.er1
13430 cat conftest.err >&5
13431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13432 (exit $ac_status); } >/dev/null; then
13433 if test -s conftest.err; then
13434 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13435 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13436 else
13437 ac_cpp_err=
13438 fi
13439else
13440 ac_cpp_err=yes
13441fi
13442if test -z "$ac_cpp_err"; then
13443 # Broken: success on invalid input.
13444continue
13445else
13446 echo "$as_me: failed program was:" >&5
13447sed 's/^/| /' conftest.$ac_ext >&5
13448
13449 # Passes both tests.
13450ac_preproc_ok=:
13451break
13452fi
13453rm -f conftest.err conftest.$ac_ext
13454
13455done
13456# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13457rm -f conftest.err conftest.$ac_ext
13458if $ac_preproc_ok; then
13459 :
13460else
13461 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
13462See \`config.log' for more details." >&5
13463echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
13464See \`config.log' for more details." >&2;}
13465 { (exit 1); exit 1; }; }
13466fi
13467
13468ac_ext=c
13469ac_cpp='$CPP $CPPFLAGS'
13470ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13471ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13472ac_compiler_gnu=$ac_cv_c_compiler_gnu
13473
13474
13475echo "$as_me:$LINENO: checking for egrep" >&5
13476echo $ECHO_N "checking for egrep... $ECHO_C" >&6
13477if test "${ac_cv_prog_egrep+set}" = set; then
13478 echo $ECHO_N "(cached) $ECHO_C" >&6
13479else
13480 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
13481 then ac_cv_prog_egrep='grep -E'
13482 else ac_cv_prog_egrep='egrep'
13483 fi
13484fi
13485echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
13486echo "${ECHO_T}$ac_cv_prog_egrep" >&6
13487 EGREP=$ac_cv_prog_egrep
13488
13489
13490if test $ac_cv_c_compiler_gnu = yes; then
13491 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
13492echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
13493if test "${ac_cv_prog_gcc_traditional+set}" = set; then
13494 echo $ECHO_N "(cached) $ECHO_C" >&6
13495else
13496 ac_pattern="Autoconf.*'x'"
13497 cat >conftest.$ac_ext <<_ACEOF
13498/* confdefs.h. */
13499_ACEOF
13500cat confdefs.h >>conftest.$ac_ext
13501cat >>conftest.$ac_ext <<_ACEOF
13502/* end confdefs.h. */
13503#include <sgtty.h>
13504Autoconf TIOCGETP
13505_ACEOF
13506if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13507 $EGREP "$ac_pattern" >/dev/null 2>&1; then
13508 ac_cv_prog_gcc_traditional=yes
13509else
13510 ac_cv_prog_gcc_traditional=no
13511fi
13512rm -f conftest*
13513
13514
13515 if test $ac_cv_prog_gcc_traditional = no; then
13516 cat >conftest.$ac_ext <<_ACEOF
13517/* confdefs.h. */
13518_ACEOF
13519cat confdefs.h >>conftest.$ac_ext
13520cat >>conftest.$ac_ext <<_ACEOF
13521/* end confdefs.h. */
13522#include <termio.h>
13523Autoconf TCGETA
13524_ACEOF
13525if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13526 $EGREP "$ac_pattern" >/dev/null 2>&1; then
13527 ac_cv_prog_gcc_traditional=yes
13528fi
13529rm -f conftest*
13530
13531 fi
13532fi
13533echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
13534echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
13535 if test $ac_cv_prog_gcc_traditional = yes; then
13536 CC="$CC -traditional"
13537 fi
13538fi
13539
13540
a848cd7e
SC
13541ac_ext=cc
13542ac_cpp='$CXXCPP $CPPFLAGS'
13543ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13544ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13545ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13546
13547
13548CXXFLAGS=${CXXFLAGS:=}
6dcfc289
DE
13549
13550
3006edc0 13551
6dcfc289 13552 ac_ext=cc
a848cd7e
SC
13553ac_cpp='$CXXCPP $CPPFLAGS'
13554ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13555ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13556ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13557if test -n "$ac_tool_prefix"; then
13558 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13559 do
13560 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13561set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13562echo "$as_me:$LINENO: checking for $ac_word" >&5
13563echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13564if test "${ac_cv_prog_CXX+set}" = set; then
13565 echo $ECHO_N "(cached) $ECHO_C" >&6
13566else
13567 if test -n "$CXX"; then
13568 ac_cv_prog_CXX="$CXX" # Let the user override the test.
13569else
13570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13571for as_dir in $PATH
13572do
13573 IFS=$as_save_IFS
13574 test -z "$as_dir" && as_dir=.
13575 for ac_exec_ext in '' $ac_executable_extensions; do
13576 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13577 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13579 break 2
13580 fi
13581done
13582done
13583
13584fi
13585fi
13586CXX=$ac_cv_prog_CXX
13587if test -n "$CXX"; then
13588 echo "$as_me:$LINENO: result: $CXX" >&5
13589echo "${ECHO_T}$CXX" >&6
13590else
13591 echo "$as_me:$LINENO: result: no" >&5
13592echo "${ECHO_T}no" >&6
13593fi
13594
13595 test -n "$CXX" && break
13596 done
13597fi
13598if test -z "$CXX"; then
13599 ac_ct_CXX=$CXX
13600 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13601do
13602 # Extract the first word of "$ac_prog", so it can be a program name with args.
13603set dummy $ac_prog; ac_word=$2
13604echo "$as_me:$LINENO: checking for $ac_word" >&5
13605echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13606if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
13607 echo $ECHO_N "(cached) $ECHO_C" >&6
13608else
13609 if test -n "$ac_ct_CXX"; then
13610 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13611else
13612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13613for as_dir in $PATH
13614do
13615 IFS=$as_save_IFS
13616 test -z "$as_dir" && as_dir=.
13617 for ac_exec_ext in '' $ac_executable_extensions; do
13618 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13619 ac_cv_prog_ac_ct_CXX="$ac_prog"
13620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13621 break 2
13622 fi
13623done
13624done
13625
13626fi
13627fi
13628ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13629if test -n "$ac_ct_CXX"; then
13630 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
13631echo "${ECHO_T}$ac_ct_CXX" >&6
13632else
13633 echo "$as_me:$LINENO: result: no" >&5
13634echo "${ECHO_T}no" >&6
13635fi
13636
13637 test -n "$ac_ct_CXX" && break
13638done
13639test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
13640
13641 CXX=$ac_ct_CXX
13642fi
13643
13644
13645# Provide some information about the compiler.
13646echo "$as_me:$LINENO:" \
13647 "checking for C++ compiler version" >&5
13648ac_compiler=`set X $ac_compile; echo $2`
13649{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
13650 (eval $ac_compiler --version </dev/null >&5) 2>&5
13651 ac_status=$?
13652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653 (exit $ac_status); }
13654{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
13655 (eval $ac_compiler -v </dev/null >&5) 2>&5
13656 ac_status=$?
13657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13658 (exit $ac_status); }
13659{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
13660 (eval $ac_compiler -V </dev/null >&5) 2>&5
13661 ac_status=$?
13662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663 (exit $ac_status); }
13664
13665echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
13666echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
13667if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
13668 echo $ECHO_N "(cached) $ECHO_C" >&6
13669else
13670 cat >conftest.$ac_ext <<_ACEOF
13671/* confdefs.h. */
13672_ACEOF
13673cat confdefs.h >>conftest.$ac_ext
13674cat >>conftest.$ac_ext <<_ACEOF
13675/* end confdefs.h. */
13676
13677int
13678main ()
13679{
13680#ifndef __GNUC__
13681 choke me
13682#endif
13683
13684 ;
13685 return 0;
13686}
13687_ACEOF
13688rm -f conftest.$ac_objext
13689if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13690 (eval $ac_compile) 2>conftest.er1
a848cd7e 13691 ac_status=$?
ac1cb8d3
VS
13692 grep -v '^ *+' conftest.er1 >conftest.err
13693 rm -f conftest.er1
13694 cat conftest.err >&5
a848cd7e
SC
13695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13696 (exit $ac_status); } &&
c9a66001 13697 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13699 (eval $ac_try) 2>&5
13700 ac_status=$?
13701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702 (exit $ac_status); }; } &&
13703 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13705 (eval $ac_try) 2>&5
13706 ac_status=$?
13707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708 (exit $ac_status); }; }; then
13709 ac_compiler_gnu=yes
13710else
13711 echo "$as_me: failed program was:" >&5
13712sed 's/^/| /' conftest.$ac_ext >&5
13713
13714ac_compiler_gnu=no
13715fi
ac1cb8d3 13716rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13717ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13718
13719fi
13720echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
13721echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
13722GXX=`test $ac_compiler_gnu = yes && echo yes`
13723ac_test_CXXFLAGS=${CXXFLAGS+set}
13724ac_save_CXXFLAGS=$CXXFLAGS
13725CXXFLAGS="-g"
13726echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
13727echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
13728if test "${ac_cv_prog_cxx_g+set}" = set; then
13729 echo $ECHO_N "(cached) $ECHO_C" >&6
13730else
13731 cat >conftest.$ac_ext <<_ACEOF
13732/* confdefs.h. */
13733_ACEOF
13734cat confdefs.h >>conftest.$ac_ext
13735cat >>conftest.$ac_ext <<_ACEOF
13736/* end confdefs.h. */
13737
13738int
13739main ()
13740{
13741
13742 ;
13743 return 0;
13744}
13745_ACEOF
13746rm -f conftest.$ac_objext
13747if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13748 (eval $ac_compile) 2>conftest.er1
a848cd7e 13749 ac_status=$?
ac1cb8d3
VS
13750 grep -v '^ *+' conftest.er1 >conftest.err
13751 rm -f conftest.er1
13752 cat conftest.err >&5
a848cd7e
SC
13753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13754 (exit $ac_status); } &&
c9a66001 13755 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13757 (eval $ac_try) 2>&5
13758 ac_status=$?
13759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760 (exit $ac_status); }; } &&
13761 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13763 (eval $ac_try) 2>&5
13764 ac_status=$?
13765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766 (exit $ac_status); }; }; then
13767 ac_cv_prog_cxx_g=yes
13768else
13769 echo "$as_me: failed program was:" >&5
13770sed 's/^/| /' conftest.$ac_ext >&5
13771
13772ac_cv_prog_cxx_g=no
13773fi
ac1cb8d3 13774rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13775fi
13776echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
13777echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
13778if test "$ac_test_CXXFLAGS" = set; then
13779 CXXFLAGS=$ac_save_CXXFLAGS
13780elif test $ac_cv_prog_cxx_g = yes; then
13781 if test "$GXX" = yes; then
27cc9142 13782 CXXFLAGS="$CXXFLAGS -g -O2"
a848cd7e 13783 else
27cc9142 13784 CXXFLAGS="$CXXFLAGS -g"
a848cd7e
SC
13785 fi
13786else
13787 if test "$GXX" = yes; then
13788 CXXFLAGS="-O2"
13789 else
13790 CXXFLAGS=
13791 fi
13792fi
13793for ac_declaration in \
ac1cb8d3 13794 '' \
a848cd7e
SC
13795 'extern "C" void std::exit (int) throw (); using std::exit;' \
13796 'extern "C" void std::exit (int); using std::exit;' \
13797 'extern "C" void exit (int) throw ();' \
13798 'extern "C" void exit (int);' \
13799 'void exit (int);'
13800do
13801 cat >conftest.$ac_ext <<_ACEOF
13802/* confdefs.h. */
13803_ACEOF
13804cat confdefs.h >>conftest.$ac_ext
13805cat >>conftest.$ac_ext <<_ACEOF
13806/* end confdefs.h. */
de59c161 13807$ac_declaration
ac1cb8d3 13808#include <stdlib.h>
a848cd7e
SC
13809int
13810main ()
13811{
13812exit (42);
13813 ;
13814 return 0;
13815}
13816_ACEOF
13817rm -f conftest.$ac_objext
13818if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13819 (eval $ac_compile) 2>conftest.er1
a848cd7e 13820 ac_status=$?
ac1cb8d3
VS
13821 grep -v '^ *+' conftest.er1 >conftest.err
13822 rm -f conftest.er1
13823 cat conftest.err >&5
a848cd7e
SC
13824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13825 (exit $ac_status); } &&
c9a66001 13826 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13828 (eval $ac_try) 2>&5
13829 ac_status=$?
13830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13831 (exit $ac_status); }; } &&
13832 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13834 (eval $ac_try) 2>&5
13835 ac_status=$?
13836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13837 (exit $ac_status); }; }; then
13838 :
13839else
13840 echo "$as_me: failed program was:" >&5
13841sed 's/^/| /' conftest.$ac_ext >&5
13842
13843continue
13844fi
ac1cb8d3 13845rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13846 cat >conftest.$ac_ext <<_ACEOF
13847/* confdefs.h. */
13848_ACEOF
13849cat confdefs.h >>conftest.$ac_ext
13850cat >>conftest.$ac_ext <<_ACEOF
13851/* end confdefs.h. */
13852$ac_declaration
13853int
13854main ()
13855{
13856exit (42);
13857 ;
13858 return 0;
13859}
13860_ACEOF
13861rm -f conftest.$ac_objext
13862if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13863 (eval $ac_compile) 2>conftest.er1
a848cd7e 13864 ac_status=$?
ac1cb8d3
VS
13865 grep -v '^ *+' conftest.er1 >conftest.err
13866 rm -f conftest.er1
13867 cat conftest.err >&5
a848cd7e
SC
13868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13869 (exit $ac_status); } &&
c9a66001 13870 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13872 (eval $ac_try) 2>&5
13873 ac_status=$?
13874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13875 (exit $ac_status); }; } &&
13876 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13878 (eval $ac_try) 2>&5
13879 ac_status=$?
13880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881 (exit $ac_status); }; }; then
13882 break
13883else
13884 echo "$as_me: failed program was:" >&5
13885sed 's/^/| /' conftest.$ac_ext >&5
13886
13887fi
ac1cb8d3 13888rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13889done
13890rm -f conftest*
13891if test -n "$ac_declaration"; then
13892 echo '#ifdef __cplusplus' >>confdefs.h
13893 echo $ac_declaration >>confdefs.h
13894 echo '#endif' >>confdefs.h
13895fi
13896
13897ac_ext=cc
13898ac_cpp='$CXXCPP $CPPFLAGS'
13899ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13900ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13901ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13902
ab0ad5f1
VZ
13903
13904
13905 ac_ext=cc
13906ac_cpp='$CXXCPP $CPPFLAGS'
13907ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13908ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13909ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13910
13911 echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
13912echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6
13913if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
13914 echo $ECHO_N "(cached) $ECHO_C" >&6
13915else
13916 cat >conftest.$ac_ext <<_ACEOF
13917/* confdefs.h. */
13918_ACEOF
13919cat confdefs.h >>conftest.$ac_ext
13920cat >>conftest.$ac_ext <<_ACEOF
13921/* end confdefs.h. */
13922
13923int
13924main ()
13925{
13926
13927 #ifndef __INTEL_COMPILER
13928 choke me
13929 #endif
13930
13931 ;
13932 return 0;
13933}
13934_ACEOF
13935rm -f conftest.$ac_objext
13936if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13937 (eval $ac_compile) 2>conftest.er1
13938 ac_status=$?
13939 grep -v '^ *+' conftest.er1 >conftest.err
13940 rm -f conftest.er1
13941 cat conftest.err >&5
13942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13943 (exit $ac_status); } &&
c9a66001 13944 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ab0ad5f1
VZ
13945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13946 (eval $ac_try) 2>&5
13947 ac_status=$?
13948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13949 (exit $ac_status); }; } &&
13950 { ac_try='test -s conftest.$ac_objext'
13951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13952 (eval $ac_try) 2>&5
13953 ac_status=$?
13954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13955 (exit $ac_status); }; }; then
13956 bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
13957else
13958 echo "$as_me: failed program was:" >&5
13959sed 's/^/| /' conftest.$ac_ext >&5
13960
13961bakefile_cv_cxx_compiler___INTEL_COMPILER=no
13962
13963fi
13964rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13965
13966
13967fi
13968echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
13969echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6
13970 ac_ext=cc
13971ac_cpp='$CXXCPP $CPPFLAGS'
13972ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13973ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13974ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13975
13976 if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
13977 :; INTELCXX=yes
13978 else
13979 :;
13980 fi
13981
13982
3006edc0
VZ
13983 if test "x$GCXX" != "xyes"; then
13984 if test "xCXX" = "xC"; then
13985 echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
480ccd21 13986echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
0093c2fc 13987if test "${bakefile_cv_cxx_exto+set}" = set; then
480ccd21
DE
13988 echo $ECHO_N "(cached) $ECHO_C" >&6
13989else
13990 cat >conftest.$ac_ext <<_ACEOF
13991/* confdefs.h. */
13992_ACEOF
13993cat confdefs.h >>conftest.$ac_ext
13994cat >>conftest.$ac_ext <<_ACEOF
13995/* end confdefs.h. */
13996
13997int
13998main ()
13999{
14000
14001 ;
14002 return 0;
14003}
14004_ACEOF
14005rm -f conftest.$ac_objext conftest.$ac_ext.o
14006if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14007 (eval $ac_compile) 2>&5
14008 ac_status=$?
14009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14010 (exit $ac_status); }; then
14011 for ac_file in `(ls conftest.* 2>/dev/null)`; do
14012 case $ac_file in
14013 conftest.$ac_ext.o)
0093c2fc 14014 bakefile_cv_cxx_exto="-ext o"
480ccd21
DE
14015 ;;
14016 *)
14017 ;;
14018 esac
14019done
14020else
14021 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
14022See \`config.log' for more details." >&5
14023echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
14024See \`config.log' for more details." >&2;}
14025 { (exit 1); exit 1; }; }
14026
14027fi
14028
14029rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
14030
14031fi
0093c2fc
VZ
14032echo "$as_me:$LINENO: result: $bakefile_cv_cxx_exto" >&5
14033echo "${ECHO_T}$bakefile_cv_cxx_exto" >&6
14034if test "x$bakefile_cv_cxx_exto" '!=' "x"; then
480ccd21 14035 if test "cxx" = "c"; then
0093c2fc 14036 CFLAGS="$bakefile_cv_cxx_exto $CFLAGS"
480ccd21
DE
14037 fi
14038 if test "cxx" = "cxx"; then
0093c2fc 14039 CXXFLAGS="$bakefile_cv_cxx_exto $CXXFLAGS"
480ccd21
DE
14040 fi
14041fi
14042
0093c2fc 14043 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
14044 unset ac_cv_prog_cc_g
14045 ac_test_CFLAGS=${CFLAGS+set}
14046ac_save_CFLAGS=$CFLAGS
27cc9142 14047CFLAGS="$CFLAGS -g"
3006edc0
VZ
14048echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
14049echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
14050if test "${ac_cv_prog_cc_g+set}" = set; then
480ccd21
DE
14051 echo $ECHO_N "(cached) $ECHO_C" >&6
14052else
14053 cat >conftest.$ac_ext <<_ACEOF
14054/* confdefs.h. */
14055_ACEOF
14056cat confdefs.h >>conftest.$ac_ext
14057cat >>conftest.$ac_ext <<_ACEOF
14058/* end confdefs.h. */
14059
14060int
14061main ()
14062{
14063
14064 ;
14065 return 0;
14066}
14067_ACEOF
14068rm -f conftest.$ac_objext
14069if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14070 (eval $ac_compile) 2>conftest.er1
14071 ac_status=$?
14072 grep -v '^ *+' conftest.er1 >conftest.err
14073 rm -f conftest.er1
14074 cat conftest.err >&5
14075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14076 (exit $ac_status); } &&
c9a66001 14077 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
480ccd21
DE
14078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14079 (eval $ac_try) 2>&5
14080 ac_status=$?
14081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082 (exit $ac_status); }; } &&
14083 { ac_try='test -s conftest.$ac_objext'
14084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14085 (eval $ac_try) 2>&5
14086 ac_status=$?
14087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14088 (exit $ac_status); }; }; then
3006edc0 14089 ac_cv_prog_cc_g=yes
480ccd21
DE
14090else
14091 echo "$as_me: failed program was:" >&5
14092sed 's/^/| /' conftest.$ac_ext >&5
14093
3006edc0 14094ac_cv_prog_cc_g=no
480ccd21
DE
14095fi
14096rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14097fi
3006edc0
VZ
14098echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
14099echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
14100if test "$ac_test_CFLAGS" = set; then
14101 CFLAGS=$ac_save_CFLAGS
14102elif test $ac_cv_prog_cc_g = yes; then
14103 if test "$GCC" = yes; then
14104 CFLAGS="-g -O2"
480ccd21 14105 else
3006edc0 14106 CFLAGS="-g"
480ccd21
DE
14107 fi
14108else
3006edc0
VZ
14109 if test "$GCC" = yes; then
14110 CFLAGS="-O2"
480ccd21 14111 else
3006edc0 14112 CFLAGS=
480ccd21
DE
14113 fi
14114fi
3006edc0 14115 fi
ab0ad5f1 14116 fi
3006edc0
VZ
14117
14118 case `uname -s` in
14119 AIX*)
14120 ac_ext=cc
14121ac_cpp='$CXXCPP $CPPFLAGS'
14122ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14123ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14124ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14125
14126echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
14127echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 14128if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
3006edc0
VZ
14129 echo $ECHO_N "(cached) $ECHO_C" >&6
14130else
14131 cat >conftest.$ac_ext <<_ACEOF
14132/* confdefs.h. */
14133_ACEOF
14134cat confdefs.h >>conftest.$ac_ext
14135cat >>conftest.$ac_ext <<_ACEOF
14136/* end confdefs.h. */
14137
14138int
14139main ()
14140{
14141#ifndef __xlC__
14142 choke me
14143#endif
14144
14145 ;
14146 return 0;
14147}
14148_ACEOF
14149rm -f conftest.$ac_objext
14150if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14151 (eval $ac_compile) 2>conftest.er1
14152 ac_status=$?
14153 grep -v '^ *+' conftest.er1 >conftest.err
14154 rm -f conftest.er1
14155 cat conftest.err >&5
14156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14157 (exit $ac_status); } &&
c9a66001 14158 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
14159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14160 (eval $ac_try) 2>&5
14161 ac_status=$?
14162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14163 (exit $ac_status); }; } &&
14164 { ac_try='test -s conftest.$ac_objext'
14165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14166 (eval $ac_try) 2>&5
14167 ac_status=$?
14168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169 (exit $ac_status); }; }; then
0093c2fc 14170 bakefile_compiler_xlc=yes
3006edc0
VZ
14171else
14172 echo "$as_me: failed program was:" >&5
14173sed 's/^/| /' conftest.$ac_ext >&5
14174
0093c2fc 14175bakefile_compiler_xlc=no
3006edc0
VZ
14176fi
14177rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 14178 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
14179
14180fi
0093c2fc
VZ
14181echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
14182echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
3006edc0 14183
0093c2fc 14184XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
3006edc0
VZ
14185ac_ext=cc
14186ac_cpp='$CXXCPP $CPPFLAGS'
14187ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14188ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14189ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14190
14191
14192 ;;
14193
14194 Darwin)
14195 ac_ext=cc
95986553
DE
14196ac_cpp='$CXXCPP $CPPFLAGS'
14197ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14198ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14199ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14200
14201echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
14202echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
14203if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
14204 echo $ECHO_N "(cached) $ECHO_C" >&6
14205else
14206 cat >conftest.$ac_ext <<_ACEOF
14207/* confdefs.h. */
14208_ACEOF
14209cat confdefs.h >>conftest.$ac_ext
14210cat >>conftest.$ac_ext <<_ACEOF
14211/* end confdefs.h. */
14212
14213int
14214main ()
14215{
14216#ifndef __MWERKS__
14217 choke me
14218#endif
14219
14220 ;
14221 return 0;
14222}
14223_ACEOF
14224rm -f conftest.$ac_objext
14225if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14226 (eval $ac_compile) 2>conftest.er1
14227 ac_status=$?
14228 grep -v '^ *+' conftest.er1 >conftest.err
14229 rm -f conftest.er1
14230 cat conftest.err >&5
14231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14232 (exit $ac_status); } &&
c9a66001 14233 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
95986553
DE
14234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14235 (eval $ac_try) 2>&5
14236 ac_status=$?
14237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14238 (exit $ac_status); }; } &&
14239 { ac_try='test -s conftest.$ac_objext'
14240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14241 (eval $ac_try) 2>&5
14242 ac_status=$?
14243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14244 (exit $ac_status); }; }; then
14245 bakefile_compiler_mwerks=yes
14246else
14247 echo "$as_me: failed program was:" >&5
14248sed 's/^/| /' conftest.$ac_ext >&5
14249
14250bakefile_compiler_mwerks=no
14251fi
14252rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14253 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
14254
14255fi
14256echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
14257echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
14258
0e6fa1d9 14259MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
95986553
DE
14260ac_ext=cc
14261ac_cpp='$CXXCPP $CPPFLAGS'
14262ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14263ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14264ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14265
14266
3006edc0 14267 ac_ext=cc
9273ffba
DE
14268ac_cpp='$CXXCPP $CPPFLAGS'
14269ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14270ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14271ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14272
14273echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
14274echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 14275if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
9273ffba
DE
14276 echo $ECHO_N "(cached) $ECHO_C" >&6
14277else
14278 cat >conftest.$ac_ext <<_ACEOF
14279/* confdefs.h. */
14280_ACEOF
14281cat confdefs.h >>conftest.$ac_ext
14282cat >>conftest.$ac_ext <<_ACEOF
14283/* end confdefs.h. */
14284
14285int
14286main ()
14287{
14288#ifndef __xlC__
14289 choke me
14290#endif
14291
14292 ;
14293 return 0;
14294}
14295_ACEOF
14296rm -f conftest.$ac_objext
14297if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14298 (eval $ac_compile) 2>conftest.er1
14299 ac_status=$?
14300 grep -v '^ *+' conftest.er1 >conftest.err
14301 rm -f conftest.er1
14302 cat conftest.err >&5
14303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14304 (exit $ac_status); } &&
c9a66001 14305 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9273ffba
DE
14306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14307 (eval $ac_try) 2>&5
14308 ac_status=$?
14309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14310 (exit $ac_status); }; } &&
14311 { ac_try='test -s conftest.$ac_objext'
14312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14313 (eval $ac_try) 2>&5
14314 ac_status=$?
14315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316 (exit $ac_status); }; }; then
0093c2fc 14317 bakefile_compiler_xlc=yes
9273ffba
DE
14318else
14319 echo "$as_me: failed program was:" >&5
14320sed 's/^/| /' conftest.$ac_ext >&5
14321
0093c2fc 14322bakefile_compiler_xlc=no
9273ffba
DE
14323fi
14324rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 14325 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
14326
14327fi
0093c2fc
VZ
14328echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
14329echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
9273ffba 14330
0093c2fc 14331XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
9273ffba
DE
14332ac_ext=cc
14333ac_cpp='$CXXCPP $CPPFLAGS'
14334ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14335ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14336ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14337
14338
3006edc0
VZ
14339 ;;
14340
14341 IRIX*)
95986553 14342
6dcfc289 14343
0ad5d837
VZ
14344 ac_ext=cc
14345ac_cpp='$CXXCPP $CPPFLAGS'
14346ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14347ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14348ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14349
14350 echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
14351echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6
14352if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
14353 echo $ECHO_N "(cached) $ECHO_C" >&6
14354else
14355 cat >conftest.$ac_ext <<_ACEOF
14356/* confdefs.h. */
14357_ACEOF
14358cat confdefs.h >>conftest.$ac_ext
14359cat >>conftest.$ac_ext <<_ACEOF
14360/* end confdefs.h. */
14361
14362int
14363main ()
14364{
14365
14366 #ifndef _SGI_COMPILER_VERSION
14367 choke me
14368 #endif
14369
14370 ;
14371 return 0;
14372}
14373_ACEOF
14374rm -f conftest.$ac_objext
14375if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14376 (eval $ac_compile) 2>conftest.er1
14377 ac_status=$?
14378 grep -v '^ *+' conftest.er1 >conftest.err
14379 rm -f conftest.er1
14380 cat conftest.err >&5
14381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382 (exit $ac_status); } &&
c9a66001 14383 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
14384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14385 (eval $ac_try) 2>&5
14386 ac_status=$?
14387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14388 (exit $ac_status); }; } &&
14389 { ac_try='test -s conftest.$ac_objext'
14390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14391 (eval $ac_try) 2>&5
14392 ac_status=$?
14393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14394 (exit $ac_status); }; }; then
14395 bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
14396else
14397 echo "$as_me: failed program was:" >&5
14398sed 's/^/| /' conftest.$ac_ext >&5
14399
14400bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
14401
14402fi
14403rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14404
14405
14406fi
14407echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
14408echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6
14409 ac_ext=cc
14410ac_cpp='$CXXCPP $CPPFLAGS'
14411ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14412ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14413ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14414
14415 if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
14416 :; SGICXX=yes
14417 else
14418 :;
14419 fi
14420
14421
3006edc0
VZ
14422 ;;
14423
0093c2fc 14424 HP-UX*)
3006edc0
VZ
14425
14426
14427 ac_ext=cc
14428ac_cpp='$CXXCPP $CPPFLAGS'
14429ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14430ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14431ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14432
0093c2fc
VZ
14433 echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
14434echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6
14435if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
3006edc0
VZ
14436 echo $ECHO_N "(cached) $ECHO_C" >&6
14437else
14438 cat >conftest.$ac_ext <<_ACEOF
14439/* confdefs.h. */
14440_ACEOF
14441cat confdefs.h >>conftest.$ac_ext
14442cat >>conftest.$ac_ext <<_ACEOF
14443/* end confdefs.h. */
14444
14445int
14446main ()
14447{
14448
0093c2fc 14449 #ifndef __HP_aCC
3006edc0
VZ
14450 choke me
14451 #endif
14452
14453 ;
14454 return 0;
14455}
14456_ACEOF
14457rm -f conftest.$ac_objext
14458if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14459 (eval $ac_compile) 2>conftest.er1
14460 ac_status=$?
14461 grep -v '^ *+' conftest.er1 >conftest.err
14462 rm -f conftest.er1
14463 cat conftest.err >&5
14464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465 (exit $ac_status); } &&
c9a66001 14466 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
14467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14468 (eval $ac_try) 2>&5
14469 ac_status=$?
14470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471 (exit $ac_status); }; } &&
14472 { ac_try='test -s conftest.$ac_objext'
14473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14474 (eval $ac_try) 2>&5
14475 ac_status=$?
14476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14477 (exit $ac_status); }; }; then
0093c2fc 14478 bakefile_cv_cxx_compiler___HP_aCC=yes
3006edc0
VZ
14479else
14480 echo "$as_me: failed program was:" >&5
14481sed 's/^/| /' conftest.$ac_ext >&5
14482
0093c2fc 14483bakefile_cv_cxx_compiler___HP_aCC=no
3006edc0
VZ
14484
14485fi
14486rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14487
14488
14489fi
0093c2fc
VZ
14490echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
14491echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6
3006edc0
VZ
14492 ac_ext=cc
14493ac_cpp='$CXXCPP $CPPFLAGS'
14494ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14495ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14496ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14497
0093c2fc
VZ
14498 if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
14499 :; HPCXX=yes
a1aa0349
VZ
14500 else
14501 :;
14502 fi
14503
14504
14505 ;;
14506
0093c2fc 14507 OSF1)
a1aa0349
VZ
14508
14509
14510 ac_ext=cc
14511ac_cpp='$CXXCPP $CPPFLAGS'
14512ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14513ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14514ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14515
0093c2fc
VZ
14516 echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
14517echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6
14518if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
a1aa0349
VZ
14519 echo $ECHO_N "(cached) $ECHO_C" >&6
14520else
14521 cat >conftest.$ac_ext <<_ACEOF
14522/* confdefs.h. */
14523_ACEOF
14524cat confdefs.h >>conftest.$ac_ext
14525cat >>conftest.$ac_ext <<_ACEOF
14526/* end confdefs.h. */
14527
14528int
14529main ()
14530{
14531
0093c2fc 14532 #ifndef __DECCXX
a1aa0349
VZ
14533 choke me
14534 #endif
14535
14536 ;
14537 return 0;
14538}
14539_ACEOF
14540rm -f conftest.$ac_objext
14541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14542 (eval $ac_compile) 2>conftest.er1
14543 ac_status=$?
14544 grep -v '^ *+' conftest.er1 >conftest.err
14545 rm -f conftest.er1
14546 cat conftest.err >&5
14547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14548 (exit $ac_status); } &&
c9a66001 14549 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a1aa0349
VZ
14550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14551 (eval $ac_try) 2>&5
14552 ac_status=$?
14553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14554 (exit $ac_status); }; } &&
14555 { ac_try='test -s conftest.$ac_objext'
14556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14557 (eval $ac_try) 2>&5
14558 ac_status=$?
14559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14560 (exit $ac_status); }; }; then
0093c2fc 14561 bakefile_cv_cxx_compiler___DECCXX=yes
a1aa0349
VZ
14562else
14563 echo "$as_me: failed program was:" >&5
14564sed 's/^/| /' conftest.$ac_ext >&5
14565
0093c2fc 14566bakefile_cv_cxx_compiler___DECCXX=no
a1aa0349
VZ
14567
14568fi
14569rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14570
14571
14572fi
0093c2fc
VZ
14573echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
14574echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6
a1aa0349
VZ
14575 ac_ext=cc
14576ac_cpp='$CXXCPP $CPPFLAGS'
14577ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14578ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14579ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14580
0093c2fc
VZ
14581 if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
14582 :; COMPAQCXX=yes
14583 else
14584 :;
14585 fi
14586
14587
14588 ;;
14589
14590 SunOS)
14591
14592
14593 ac_ext=cc
14594ac_cpp='$CXXCPP $CPPFLAGS'
14595ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14596ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14597ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14598
14599 echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
14600echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6
14601if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
14602 echo $ECHO_N "(cached) $ECHO_C" >&6
14603else
14604 cat >conftest.$ac_ext <<_ACEOF
14605/* confdefs.h. */
14606_ACEOF
14607cat confdefs.h >>conftest.$ac_ext
14608cat >>conftest.$ac_ext <<_ACEOF
14609/* end confdefs.h. */
14610
14611int
14612main ()
14613{
14614
14615 #ifndef __SUNPRO_CC
14616 choke me
14617 #endif
14618
14619 ;
14620 return 0;
14621}
14622_ACEOF
14623rm -f conftest.$ac_objext
14624if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14625 (eval $ac_compile) 2>conftest.er1
14626 ac_status=$?
14627 grep -v '^ *+' conftest.er1 >conftest.err
14628 rm -f conftest.er1
14629 cat conftest.err >&5
14630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631 (exit $ac_status); } &&
c9a66001 14632 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0093c2fc
VZ
14633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14634 (eval $ac_try) 2>&5
14635 ac_status=$?
14636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637 (exit $ac_status); }; } &&
14638 { ac_try='test -s conftest.$ac_objext'
14639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14640 (eval $ac_try) 2>&5
14641 ac_status=$?
14642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643 (exit $ac_status); }; }; then
14644 bakefile_cv_cxx_compiler___SUNPRO_CC=yes
14645else
14646 echo "$as_me: failed program was:" >&5
14647sed 's/^/| /' conftest.$ac_ext >&5
14648
14649bakefile_cv_cxx_compiler___SUNPRO_CC=no
14650
14651fi
14652rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14653
14654
14655fi
14656echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
14657echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6
14658 ac_ext=cc
14659ac_cpp='$CXXCPP $CPPFLAGS'
14660ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14661ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14662ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14663
14664 if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
14665 :; SUNCXX=yes
3006edc0
VZ
14666 else
14667 :;
ab0ad5f1 14668 fi
a9e5b1f0
MW
14669
14670
3006edc0
VZ
14671 ;;
14672 esac
14673 fi
14674
14675
14676
a848cd7e
SC
14677if test -n "$ac_tool_prefix"; then
14678 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14679set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14680echo "$as_me:$LINENO: checking for $ac_word" >&5
14681echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14682if test "${ac_cv_prog_RANLIB+set}" = set; then
14683 echo $ECHO_N "(cached) $ECHO_C" >&6
14684else
14685 if test -n "$RANLIB"; then
14686 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14687else
14688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14689for as_dir in $PATH
14690do
14691 IFS=$as_save_IFS
14692 test -z "$as_dir" && as_dir=.
14693 for ac_exec_ext in '' $ac_executable_extensions; do
14694 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14695 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14697 break 2
14698 fi
14699done
14700done
14701
14702fi
14703fi
14704RANLIB=$ac_cv_prog_RANLIB
14705if test -n "$RANLIB"; then
14706 echo "$as_me:$LINENO: result: $RANLIB" >&5
14707echo "${ECHO_T}$RANLIB" >&6
14708else
14709 echo "$as_me:$LINENO: result: no" >&5
14710echo "${ECHO_T}no" >&6
14711fi
14712
14713fi
14714if test -z "$ac_cv_prog_RANLIB"; then
14715 ac_ct_RANLIB=$RANLIB
14716 # Extract the first word of "ranlib", so it can be a program name with args.
14717set dummy ranlib; ac_word=$2
14718echo "$as_me:$LINENO: checking for $ac_word" >&5
14719echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14720if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14721 echo $ECHO_N "(cached) $ECHO_C" >&6
14722else
14723 if test -n "$ac_ct_RANLIB"; then
14724 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14725else
14726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14727for as_dir in $PATH
14728do
14729 IFS=$as_save_IFS
14730 test -z "$as_dir" && as_dir=.
14731 for ac_exec_ext in '' $ac_executable_extensions; do
14732 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14733 ac_cv_prog_ac_ct_RANLIB="ranlib"
14734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14735 break 2
14736 fi
14737done
14738done
14739
14740 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
14741fi
14742fi
14743ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14744if test -n "$ac_ct_RANLIB"; then
14745 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14746echo "${ECHO_T}$ac_ct_RANLIB" >&6
14747else
14748 echo "$as_me:$LINENO: result: no" >&5
14749echo "${ECHO_T}no" >&6
14750fi
14751
14752 RANLIB=$ac_ct_RANLIB
14753else
14754 RANLIB="$ac_cv_prog_RANLIB"
14755fi
14756
14757
8c80d384
DE
14758if test -n "$ac_tool_prefix"; then
14759 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14760set dummy ${ac_tool_prefix}ar; ac_word=$2
a848cd7e
SC
14761echo "$as_me:$LINENO: checking for $ac_word" >&5
14762echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14763if test "${ac_cv_prog_AR+set}" = set; then
14764 echo $ECHO_N "(cached) $ECHO_C" >&6
14765else
14766 if test -n "$AR"; then
14767 ac_cv_prog_AR="$AR" # Let the user override the test.
14768else
14769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14770for as_dir in $PATH
14771do
14772 IFS=$as_save_IFS
14773 test -z "$as_dir" && as_dir=.
14774 for ac_exec_ext in '' $ac_executable_extensions; do
14775 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 14776 ac_cv_prog_AR="${ac_tool_prefix}ar"
a848cd7e
SC
14777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14778 break 2
14779 fi
14780done
14781done
14782
14783fi
14784fi
14785AR=$ac_cv_prog_AR
14786if test -n "$AR"; then
14787 echo "$as_me:$LINENO: result: $AR" >&5
14788echo "${ECHO_T}$AR" >&6
14789else
14790 echo "$as_me:$LINENO: result: no" >&5
14791echo "${ECHO_T}no" >&6
14792fi
14793
8c80d384
DE
14794fi
14795if test -z "$ac_cv_prog_AR"; then
14796 ac_ct_AR=$AR
14797 # Extract the first word of "ar", so it can be a program name with args.
14798set dummy ar; ac_word=$2
14799echo "$as_me:$LINENO: checking for $ac_word" >&5
14800echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14801if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14802 echo $ECHO_N "(cached) $ECHO_C" >&6
14803else
14804 if test -n "$ac_ct_AR"; then
14805 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14806else
14807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14808for as_dir in $PATH
14809do
14810 IFS=$as_save_IFS
14811 test -z "$as_dir" && as_dir=.
14812 for ac_exec_ext in '' $ac_executable_extensions; do
14813 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14814 ac_cv_prog_ac_ct_AR="ar"
14815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14816 break 2
14817 fi
14818done
14819done
14820
14821fi
14822fi
14823ac_ct_AR=$ac_cv_prog_ac_ct_AR
14824if test -n "$ac_ct_AR"; then
14825 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14826echo "${ECHO_T}$ac_ct_AR" >&6
14827else
14828 echo "$as_me:$LINENO: result: no" >&5
14829echo "${ECHO_T}no" >&6
14830fi
14831
14832 AR=$ac_ct_AR
14833else
14834 AR="$ac_cv_prog_AR"
14835fi
14836
a848cd7e 14837if test "x$AR" = "x" ; then
77ffb593
JS
14838 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
14839echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
14840 { (exit 1); exit 1; }; }
14841fi
14842
14843# Find a good install program. We prefer a C program (faster),
14844# so one script is as good as another. But avoid the broken or
14845# incompatible versions:
14846# SysV /etc/install, /usr/sbin/install
14847# SunOS /usr/etc/install
14848# IRIX /sbin/install
14849# AIX /bin/install
14850# AmigaOS /C/install, which installs bootblocks on floppy discs
14851# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
14852# AFS /usr/afsws/bin/install, which mishandles nonexistent args
14853# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 14854# OS/2's system install, which has a completely different semantic
a848cd7e
SC
14855# ./install, which can be erroneously created by make from ./install.sh.
14856echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
14857echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
14858if test -z "$INSTALL"; then
14859if test "${ac_cv_path_install+set}" = set; then
14860 echo $ECHO_N "(cached) $ECHO_C" >&6
14861else
14862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14863for as_dir in $PATH
14864do
14865 IFS=$as_save_IFS
14866 test -z "$as_dir" && as_dir=.
14867 # Account for people who put trailing slashes in PATH elements.
14868case $as_dir/ in
14869 ./ | .// | /cC/* | \
14870 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 14871 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
14872 /usr/ucb/* ) ;;
14873 *)
14874 # OSF1 and SCO ODT 3.0 have their own names for install.
14875 # Don't use installbsd from OSF since it installs stuff as root
14876 # by default.
14877 for ac_prog in ginstall scoinst install; do
14878 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
14879 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
14880 if test $ac_prog = install &&
14881 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14882 # AIX install. It has an incompatible calling convention.
14883 :
14884 elif test $ac_prog = install &&
14885 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14886 # program-specific install script used by HP pwplus--don't use.
14887 :
14888 else
14889 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
14890 break 3
14891 fi
14892 fi
a848cd7e
SC
14893 done
14894 done
14895 ;;
14896esac
14897done
14898
14899
14900fi
14901 if test "${ac_cv_path_install+set}" = set; then
14902 INSTALL=$ac_cv_path_install
14903 else
14904 # As a last resort, use the slow shell script. We don't cache a
14905 # path for INSTALL within a source directory, because that will
14906 # break other packages using the cache if that directory is
14907 # removed, or if the path is relative.
14908 INSTALL=$ac_install_sh
14909 fi
14910fi
14911echo "$as_me:$LINENO: result: $INSTALL" >&5
14912echo "${ECHO_T}$INSTALL" >&6
14913
14914# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
14915# It thinks the first close brace ends the variable substitution.
14916test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
14917
14918test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
14919
14920test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
14921
14922
14923case ${INSTALL} in
14924 /* ) # Absolute
14925 ;;
14926 ?:* ) # Drive letter, considered as absolute.
14927 ;;
14928 *)
14929 INSTALL=`pwd`/${INSTALL} ;;
14930esac
14931
a848cd7e
SC
14932
14933case "${host}" in
14934
cfda0ea8 14935 *-*-darwin* )
a848cd7e
SC
14936 INSTALL_PROGRAM="cp -fp"
14937 INSTALL_DATA="cp -fp"
14938 ;;
14939 *)
14940 ;;
14941esac
14942
8c80d384
DE
14943if test -n "$ac_tool_prefix"; then
14944 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14945set dummy ${ac_tool_prefix}strip; ac_word=$2
a848cd7e
SC
14946echo "$as_me:$LINENO: checking for $ac_word" >&5
14947echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14948if test "${ac_cv_prog_STRIP+set}" = set; then
14949 echo $ECHO_N "(cached) $ECHO_C" >&6
14950else
14951 if test -n "$STRIP"; then
14952 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14953else
14954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14955for as_dir in $PATH
14956do
14957 IFS=$as_save_IFS
14958 test -z "$as_dir" && as_dir=.
14959 for ac_exec_ext in '' $ac_executable_extensions; do
14960 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 14961 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
a848cd7e
SC
14962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14963 break 2
14964 fi
14965done
14966done
14967
a848cd7e
SC
14968fi
14969fi
14970STRIP=$ac_cv_prog_STRIP
14971if test -n "$STRIP"; then
14972 echo "$as_me:$LINENO: result: $STRIP" >&5
14973echo "${ECHO_T}$STRIP" >&6
14974else
14975 echo "$as_me:$LINENO: result: no" >&5
14976echo "${ECHO_T}no" >&6
14977fi
14978
8c80d384
DE
14979fi
14980if test -z "$ac_cv_prog_STRIP"; then
14981 ac_ct_STRIP=$STRIP
14982 # Extract the first word of "strip", so it can be a program name with args.
14983set dummy strip; ac_word=$2
14984echo "$as_me:$LINENO: checking for $ac_word" >&5
14985echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14986if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14987 echo $ECHO_N "(cached) $ECHO_C" >&6
14988else
14989 if test -n "$ac_ct_STRIP"; then
14990 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14991else
14992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14993for as_dir in $PATH
14994do
14995 IFS=$as_save_IFS
14996 test -z "$as_dir" && as_dir=.
14997 for ac_exec_ext in '' $ac_executable_extensions; do
14998 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14999 ac_cv_prog_ac_ct_STRIP="strip"
15000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15001 break 2
15002 fi
15003done
15004done
15005
15006 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="true"
15007fi
15008fi
15009ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15010if test -n "$ac_ct_STRIP"; then
15011 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
15012echo "${ECHO_T}$ac_ct_STRIP" >&6
15013else
15014 echo "$as_me:$LINENO: result: no" >&5
15015echo "${ECHO_T}no" >&6
15016fi
15017
15018 STRIP=$ac_ct_STRIP
15019else
15020 STRIP="$ac_cv_prog_STRIP"
15021fi
15022
15023
15024if test "$wxUSE_WINE" = "yes"; then
15025 if test -n "$ac_tool_prefix"; then
15026 # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args.
15027set dummy ${ac_tool_prefix}wrc; ac_word=$2
15028echo "$as_me:$LINENO: checking for $ac_word" >&5
15029echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 15030if test "${ac_cv_prog_WINDRES+set}" = set; then
8c80d384
DE
15031 echo $ECHO_N "(cached) $ECHO_C" >&6
15032else
8ced02f6
DE
15033 if test -n "$WINDRES"; then
15034 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8c80d384
DE
15035else
15036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15037for as_dir in $PATH
15038do
15039 IFS=$as_save_IFS
15040 test -z "$as_dir" && as_dir=.
15041 for ac_exec_ext in '' $ac_executable_extensions; do
15042 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 15043 ac_cv_prog_WINDRES="${ac_tool_prefix}wrc"
8c80d384
DE
15044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15045 break 2
15046 fi
15047done
15048done
15049
15050fi
15051fi
8ced02f6
DE
15052WINDRES=$ac_cv_prog_WINDRES
15053if test -n "$WINDRES"; then
15054 echo "$as_me:$LINENO: result: $WINDRES" >&5
15055echo "${ECHO_T}$WINDRES" >&6
8c80d384
DE
15056else
15057 echo "$as_me:$LINENO: result: no" >&5
15058echo "${ECHO_T}no" >&6
15059fi
15060
15061fi
8ced02f6
DE
15062if test -z "$ac_cv_prog_WINDRES"; then
15063 ac_ct_WINDRES=$WINDRES
8c80d384
DE
15064 # Extract the first word of "wrc", so it can be a program name with args.
15065set dummy wrc; ac_word=$2
15066echo "$as_me:$LINENO: checking for $ac_word" >&5
15067echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 15068if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
8c80d384
DE
15069 echo $ECHO_N "(cached) $ECHO_C" >&6
15070else
8ced02f6
DE
15071 if test -n "$ac_ct_WINDRES"; then
15072 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
8c80d384
DE
15073else
15074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15075for as_dir in $PATH
15076do
15077 IFS=$as_save_IFS
15078 test -z "$as_dir" && as_dir=.
15079 for ac_exec_ext in '' $ac_executable_extensions; do
15080 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 15081 ac_cv_prog_ac_ct_WINDRES="wrc"
8c80d384
DE
15082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15083 break 2
15084 fi
15085done
15086done
15087
15088fi
15089fi
8ced02f6
DE
15090ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
15091if test -n "$ac_ct_WINDRES"; then
15092 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
15093echo "${ECHO_T}$ac_ct_WINDRES" >&6
8c80d384
DE
15094else
15095 echo "$as_me:$LINENO: result: no" >&5
15096echo "${ECHO_T}no" >&6
15097fi
15098
8ced02f6 15099 WINDRES=$ac_ct_WINDRES
8c80d384 15100else
8ced02f6 15101 WINDRES="$ac_cv_prog_WINDRES"
8c80d384
DE
15102fi
15103
004ee6da 15104 RESCOMP="$WINDRES"
8c80d384
DE
15105else
15106 case "${host}" in
15107 *-*-cygwin* | *-*-mingw32* )
004ee6da
RL
15108 if test -n "$ac_tool_prefix"; then
15109 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
15110set dummy ${ac_tool_prefix}windres; ac_word=$2
15111echo "$as_me:$LINENO: checking for $ac_word" >&5
15112echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15113if test "${ac_cv_prog_WINDRES+set}" = set; then
15114 echo $ECHO_N "(cached) $ECHO_C" >&6
15115else
15116 if test -n "$WINDRES"; then
15117 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
15118else
15119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15120for as_dir in $PATH
15121do
15122 IFS=$as_save_IFS
15123 test -z "$as_dir" && as_dir=.
15124 for ac_exec_ext in '' $ac_executable_extensions; do
15125 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15126 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
15127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15128 break 2
15129 fi
15130done
15131done
15132
15133fi
15134fi
15135WINDRES=$ac_cv_prog_WINDRES
15136if test -n "$WINDRES"; then
15137 echo "$as_me:$LINENO: result: $WINDRES" >&5
15138echo "${ECHO_T}$WINDRES" >&6
15139else
15140 echo "$as_me:$LINENO: result: no" >&5
15141echo "${ECHO_T}no" >&6
15142fi
15143
15144fi
15145if test -z "$ac_cv_prog_WINDRES"; then
15146 ac_ct_WINDRES=$WINDRES
15147 # Extract the first word of "windres", so it can be a program name with args.
15148set dummy windres; ac_word=$2
15149echo "$as_me:$LINENO: checking for $ac_word" >&5
15150echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15151if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
15152 echo $ECHO_N "(cached) $ECHO_C" >&6
15153else
15154 if test -n "$ac_ct_WINDRES"; then
15155 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
15156else
15157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15158for as_dir in $PATH
15159do
15160 IFS=$as_save_IFS
15161 test -z "$as_dir" && as_dir=.
15162 for ac_exec_ext in '' $ac_executable_extensions; do
15163 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15164 ac_cv_prog_ac_ct_WINDRES="windres"
15165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15166 break 2
15167 fi
15168done
15169done
15170
15171fi
15172fi
15173ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
15174if test -n "$ac_ct_WINDRES"; then
15175 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
15176echo "${ECHO_T}$ac_ct_WINDRES" >&6
15177else
15178 echo "$as_me:$LINENO: result: no" >&5
15179echo "${ECHO_T}no" >&6
15180fi
15181
15182 WINDRES=$ac_ct_WINDRES
15183else
15184 WINDRES="$ac_cv_prog_WINDRES"
15185fi
15186
15187 RESCOMP="$WINDRES"
15188 if test -n "$ac_tool_prefix"; then
8c80d384
DE
15189 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
15190set dummy ${ac_tool_prefix}dlltool; ac_word=$2
15191echo "$as_me:$LINENO: checking for $ac_word" >&5
15192echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15193if test "${ac_cv_prog_DLLTOOL+set}" = set; then
15194 echo $ECHO_N "(cached) $ECHO_C" >&6
15195else
15196 if test -n "$DLLTOOL"; then
15197 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
15198else
15199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15200for as_dir in $PATH
15201do
15202 IFS=$as_save_IFS
15203 test -z "$as_dir" && as_dir=.
15204 for ac_exec_ext in '' $ac_executable_extensions; do
15205 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15206 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
15207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15208 break 2
15209 fi
15210done
15211done
15212
15213fi
15214fi
15215DLLTOOL=$ac_cv_prog_DLLTOOL
15216if test -n "$DLLTOOL"; then
15217 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
15218echo "${ECHO_T}$DLLTOOL" >&6
15219else
15220 echo "$as_me:$LINENO: result: no" >&5
15221echo "${ECHO_T}no" >&6
15222fi
15223
15224fi
15225if test -z "$ac_cv_prog_DLLTOOL"; then
15226 ac_ct_DLLTOOL=$DLLTOOL
15227 # Extract the first word of "dlltool", so it can be a program name with args.
15228set dummy dlltool; ac_word=$2
15229echo "$as_me:$LINENO: checking for $ac_word" >&5
15230echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15231if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
15232 echo $ECHO_N "(cached) $ECHO_C" >&6
15233else
15234 if test -n "$ac_ct_DLLTOOL"; then
15235 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
15236else
15237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15238for as_dir in $PATH
15239do
15240 IFS=$as_save_IFS
15241 test -z "$as_dir" && as_dir=.
15242 for ac_exec_ext in '' $ac_executable_extensions; do
15243 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15244 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
15245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15246 break 2
15247 fi
15248done
15249done
15250
15251fi
15252fi
15253ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
15254if test -n "$ac_ct_DLLTOOL"; then
15255 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
15256echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
15257else
15258 echo "$as_me:$LINENO: result: no" >&5
15259echo "${ECHO_T}no" >&6
15260fi
15261
15262 DLLTOOL=$ac_ct_DLLTOOL
15263else
15264 DLLTOOL="$ac_cv_prog_DLLTOOL"
15265fi
15266
15267 ;;
15268 esac
15269fi
a848cd7e
SC
15270
15271echo "$as_me:$LINENO: checking if make is GNU make" >&5
15272echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
15273if test "${wx_cv_prog_makeisgnu+set}" = set; then
15274 echo $ECHO_N "(cached) $ECHO_C" >&6
15275else
15276
15277 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
15278 egrep -s GNU > /dev/null); then
15279 wx_cv_prog_makeisgnu="yes"
15280 else
15281 wx_cv_prog_makeisgnu="no"
15282 fi
15283
15284fi
15285echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
15286echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
15287
15288if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
15289 IF_GNU_MAKE=""
15290else
15291 IF_GNU_MAKE="#"
15292fi
15293
15294
15295
15296if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
15297echo "$as_me:$LINENO: checking if make supports VPATH" >&5
15298echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
15299if test "${wx_cv_prog_makevpath+set}" = set; then
15300 echo $ECHO_N "(cached) $ECHO_C" >&6
15301else
15302
15303cat - << EOF > confMake
15304check : file
15305 cp \$? \$@
15306 cp \$? final_file
15307EOF
15308
15309if test ! -d sub ; then
15310 mkdir sub
15311fi
15312echo dummy > sub/file
15313${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
15314RESULT=$?
15315rm -f sub/file check final_file confMake
15316rmdir sub
15317if test "$RESULT" = 0; then
15318 wx_cv_prog_makevpath="yes"
15319else
15320 wx_cv_prog_makevpath="no"
15321fi
15322
15323fi
15324echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
15325echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
15326
15327if test "x$wx_cv_prog_makevpath" != "xyes"; then
15328{ { echo "$as_me:$LINENO: error:
15329You need a make-utility that is able to use the variable
15330VPATH correctly.
15331If your version of make does not support VPATH correctly,
15332please install GNU-make (possibly as gmake), and start
15333configure with the following command:
15334export MAKE=gmake; ./configure for sh-type shells
15335setenv MAKE gmake; ./configure for csh-type shells
15336Also please do remember to use gmake in this case every time
15337you are trying to compile.
15338" >&5
15339echo "$as_me: error:
15340You need a make-utility that is able to use the variable
15341VPATH correctly.
15342If your version of make does not support VPATH correctly,
15343please install GNU-make (possibly as gmake), and start
15344configure with the following command:
15345export MAKE=gmake; ./configure for sh-type shells
15346setenv MAKE gmake; ./configure for csh-type shells
15347Also please do remember to use gmake in this case every time
15348you are trying to compile.
15349" >&2;}
15350 { (exit 1); exit 1; }; }
15351fi fi
15352echo "$as_me:$LINENO: checking whether ln -s works" >&5
15353echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
15354LN_S=$as_ln_s
15355if test "$LN_S" = "ln -s"; then
15356 echo "$as_me:$LINENO: result: yes" >&5
15357echo "${ECHO_T}yes" >&6
15358else
15359 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
15360echo "${ECHO_T}no, using $LN_S" >&6
15361fi
15362
15363
bcaab0f9 15364
a848cd7e 15365
2113bc77 15366if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
c92ad099 15367 CXXFLAGS="-qunique $CXXFLAGS"
9273ffba
DE
15368fi
15369
4d7ec9f1
DE
15370case "${host}" in
15371 powerpc-*-darwin* )
15372 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
15373echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
15374 cat >conftest.$ac_ext <<_ACEOF
15375/* confdefs.h. */
15376_ACEOF
15377cat confdefs.h >>conftest.$ac_ext
15378cat >>conftest.$ac_ext <<_ACEOF
15379/* end confdefs.h. */
15380
15381int
15382main ()
15383{
15384#ifndef __POWERPC__
15385 choke me for lack of PowerPC
15386#endif
15387
15388 ;
15389 return 0;
15390}
15391_ACEOF
15392rm -f conftest.$ac_objext
15393if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15394 (eval $ac_compile) 2>conftest.er1
15395 ac_status=$?
15396 grep -v '^ *+' conftest.er1 >conftest.err
15397 rm -f conftest.er1
15398 cat conftest.err >&5
15399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15400 (exit $ac_status); } &&
c9a66001 15401 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
15402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15403 (eval $ac_try) 2>&5
15404 ac_status=$?
15405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15406 (exit $ac_status); }; } &&
15407 { ac_try='test -s conftest.$ac_objext'
15408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15409 (eval $ac_try) 2>&5
15410 ac_status=$?
15411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15412 (exit $ac_status); }; }; then
15413 echo "$as_me:$LINENO: result: yes" >&5
15414echo "${ECHO_T}yes" >&6
15415else
15416 echo "$as_me: failed program was:" >&5
15417sed 's/^/| /' conftest.$ac_ext >&5
15418
15419echo "$as_me:$LINENO: result: no" >&5
15420echo "${ECHO_T}no" >&6
15421 cat >>confdefs.h <<\_ACEOF
15422#define __POWERPC__ 1
15423_ACEOF
15424
15425
15426fi
15427rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cfda0ea8
DE
15428 ;;
15429esac
15430
15431case "${host}" in
15432 *-*-darwin* )
4d7ec9f1
DE
15433 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
15434echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
15435 cat >conftest.$ac_ext <<_ACEOF
15436/* confdefs.h. */
15437_ACEOF
15438cat confdefs.h >>conftest.$ac_ext
15439cat >>conftest.$ac_ext <<_ACEOF
15440/* end confdefs.h. */
15441#include <CoreFoundation/CFBase.h>
15442
15443int
15444main ()
15445{
15446
15447 ;
15448 return 0;
15449}
15450_ACEOF
15451rm -f conftest.$ac_objext
15452if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15453 (eval $ac_compile) 2>conftest.er1
15454 ac_status=$?
15455 grep -v '^ *+' conftest.er1 >conftest.err
15456 rm -f conftest.er1
15457 cat conftest.err >&5
15458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459 (exit $ac_status); } &&
c9a66001 15460 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
15461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15462 (eval $ac_try) 2>&5
15463 ac_status=$?
15464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15465 (exit $ac_status); }; } &&
15466 { ac_try='test -s conftest.$ac_objext'
15467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15468 (eval $ac_try) 2>&5
15469 ac_status=$?
15470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15471 (exit $ac_status); }; }; then
15472 echo "$as_me:$LINENO: result: yes" >&5
15473echo "${ECHO_T}yes" >&6
15474else
15475 echo "$as_me: failed program was:" >&5
15476sed 's/^/| /' conftest.$ac_ext >&5
15477
15478echo "$as_me:$LINENO: result: no" >&5
15479echo "${ECHO_T}no" >&6
15480 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
15481echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
15482 cat >conftest.$ac_ext <<_ACEOF
15483/* confdefs.h. */
15484_ACEOF
15485cat confdefs.h >>conftest.$ac_ext
15486cat >>conftest.$ac_ext <<_ACEOF
15487/* end confdefs.h. */
15488#define __CF_USE_FRAMEWORK_INCLUDES__
15489#include <CoreFoundation/CFBase.h>
15490
15491int
15492main ()
15493{
15494
15495 ;
15496 return 0;
15497}
15498_ACEOF
15499rm -f conftest.$ac_objext
15500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15501 (eval $ac_compile) 2>conftest.er1
15502 ac_status=$?
15503 grep -v '^ *+' conftest.er1 >conftest.err
15504 rm -f conftest.er1
15505 cat conftest.err >&5
15506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507 (exit $ac_status); } &&
c9a66001 15508 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
15509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15510 (eval $ac_try) 2>&5
15511 ac_status=$?
15512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15513 (exit $ac_status); }; } &&
15514 { ac_try='test -s conftest.$ac_objext'
15515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15516 (eval $ac_try) 2>&5
15517 ac_status=$?
15518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15519 (exit $ac_status); }; }; then
15520 echo "$as_me:$LINENO: result: yes" >&5
15521echo "${ECHO_T}yes" >&6
c92ad099 15522 CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
4d7ec9f1
DE
15523else
15524 echo "$as_me: failed program was:" >&5
15525sed 's/^/| /' conftest.$ac_ext >&5
15526
15527{ { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
15528See \`config.log' for more details." >&5
15529echo "$as_me: error: no. CoreFoundation not available.
15530See \`config.log' for more details." >&2;}
15531 { (exit 1); exit 1; }; }
15532
15533fi
15534rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15535
15536
15537fi
15538rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15539 ;;
15540esac
15541
a848cd7e
SC
15542case "${host}" in
15543 *-pc-os2_emx | *-pc-os2-emx )
6ba87b06
SN
15544 ac_ext=c
15545ac_cpp='$CPP $CPPFLAGS'
15546ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15547ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15548ac_compiler_gnu=$ac_cv_c_compiler_gnu
15549
15550 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
a848cd7e
SC
15551 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
15552echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
15553if test "${ac_cv_lib_cExt_drand48+set}" = set; then
15554 echo $ECHO_N "(cached) $ECHO_C" >&6
15555else
15556 ac_check_lib_save_LIBS=$LIBS
15557LIBS="-lcExt $LIBS"
15558cat >conftest.$ac_ext <<_ACEOF
15559/* confdefs.h. */
15560_ACEOF
15561cat confdefs.h >>conftest.$ac_ext
15562cat >>conftest.$ac_ext <<_ACEOF
15563/* end confdefs.h. */
15564
15565/* Override any gcc2 internal prototype to avoid an error. */
15566#ifdef __cplusplus
15567extern "C"
15568#endif
15569/* We use char because int might match the return type of a gcc2
15570 builtin and then its argument prototype would still apply. */
15571char drand48 ();
15572int
15573main ()
15574{
15575drand48 ();
15576 ;
15577 return 0;
15578}
15579_ACEOF
15580rm -f conftest.$ac_objext conftest$ac_exeext
15581if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15582 (eval $ac_link) 2>conftest.er1
a848cd7e 15583 ac_status=$?
ac1cb8d3
VS
15584 grep -v '^ *+' conftest.er1 >conftest.err
15585 rm -f conftest.er1
15586 cat conftest.err >&5
a848cd7e
SC
15587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15588 (exit $ac_status); } &&
c9a66001 15589 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15591 (eval $ac_try) 2>&5
15592 ac_status=$?
15593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594 (exit $ac_status); }; } &&
15595 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15597 (eval $ac_try) 2>&5
15598 ac_status=$?
15599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15600 (exit $ac_status); }; }; then
15601 ac_cv_lib_cExt_drand48=yes
15602else
15603 echo "$as_me: failed program was:" >&5
15604sed 's/^/| /' conftest.$ac_ext >&5
15605
15606ac_cv_lib_cExt_drand48=no
15607fi
ac1cb8d3
VS
15608rm -f conftest.err conftest.$ac_objext \
15609 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15610LIBS=$ac_check_lib_save_LIBS
15611fi
15612echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
15613echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
15614if test $ac_cv_lib_cExt_drand48 = yes; then
15615 LIBS="$LIBS -lcExt"
15616fi
15617
15618 else
15619 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
15620 fi
69120ee4
VZ
15621 echo "$as_me:$LINENO: checking for gcc/libc version" >&5
15622echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
a848cd7e
SC
15623if test "${wx_cv_gccversion+set}" = set; then
15624 echo $ECHO_N "(cached) $ECHO_C" >&6
15625else
15626
391a765e
VS
15627 if test "$cross_compiling" = yes; then
15628 wx_cv_gccversion="EMX2"
15629
15630else
15631 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
15632/* confdefs.h. */
15633_ACEOF
15634cat confdefs.h >>conftest.$ac_ext
15635cat >>conftest.$ac_ext <<_ACEOF
15636/* end confdefs.h. */
15637
391a765e 15638 #include <stdio.h>
a848cd7e 15639
391a765e
VS
15640 int main()
15641 {
15642 FILE *f=fopen("conftestval", "w");
15643 if (!f) exit(1);
15644 fprintf(f,
a848cd7e 15645 #if (__GNUC__ < 3)
391a765e
VS
15646 "EMX2"
15647 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
15648 "EMX3"
15649 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
15650 "Innotek5"
15651 #else
15652 "Innotek6"
a848cd7e 15653 #endif
391a765e
VS
15654 );
15655 exit(0);
15656 }
a848cd7e 15657
a848cd7e 15658_ACEOF
391a765e
VS
15659rm -f conftest$ac_exeext
15660if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15661 (eval $ac_link) 2>&5
ac1cb8d3
VS
15662 ac_status=$?
15663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 15664 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a848cd7e
SC
15665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15666 (eval $ac_try) 2>&5
15667 ac_status=$?
15668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15669 (exit $ac_status); }; }; then
391a765e 15670 wx_cv_gccversion=`cat conftestval`
a848cd7e 15671else
391a765e
VS
15672 echo "$as_me: program exited with status $ac_status" >&5
15673echo "$as_me: failed program was:" >&5
a848cd7e
SC
15674sed 's/^/| /' conftest.$ac_ext >&5
15675
391a765e
VS
15676( exit $ac_status )
15677wx_cv_gccversion="EMX2"
a848cd7e 15678fi
391a765e 15679rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 15680fi
a848cd7e
SC
15681
15682fi
15683echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
15684echo "${ECHO_T}$wx_cv_gccversion" >&6
6ba87b06
SN
15685 ac_ext=cc
15686ac_cpp='$CXXCPP $CPPFLAGS'
15687ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15688ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15689ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15690
391a765e 15691 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
15692 LIBS="$LIBS -lstdcpp"
15693 LDFLAGS="$LDFLAGS -Zsysv-signals"
15694 else
391a765e 15695 if test "$wx_cv_gccversion" = "EMX3"; then
ddd14b14 15696 LIBS="$LIBS -lstdcxx -lgcc"
a848cd7e
SC
15697 LDFLAGS="$LDFLAGS -Zsysv-signals"
15698 else
15699 LIBS="$LIBS -lstdc++"
15700 fi
15701 fi
94acd38e
DE
15702 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
15703 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
15704echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
15705 wxUSE_OMF=yes
2da0c077 15706 enable_omf=yes
a848cd7e
SC
15707 fi
15708 ;;
15709 *)
15710
95986553 15711 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
15712echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
15713if test "${ac_cv_string_strcasecmp+set}" = set; then
15714 echo $ECHO_N "(cached) $ECHO_C" >&6
15715else
15716
15717 cat >conftest.$ac_ext <<_ACEOF
15718/* confdefs.h. */
15719_ACEOF
15720cat confdefs.h >>conftest.$ac_ext
15721cat >>conftest.$ac_ext <<_ACEOF
15722/* end confdefs.h. */
15723
15724 #include <string.h>
15725
15726int
15727main ()
15728{
15729
15730 strcasecmp("foo", "bar");
15731
15732 ;
15733 return 0;
15734}
15735_ACEOF
15736rm -f conftest.$ac_objext conftest$ac_exeext
15737if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15738 (eval $ac_link) 2>conftest.er1
a848cd7e 15739 ac_status=$?
ac1cb8d3
VS
15740 grep -v '^ *+' conftest.er1 >conftest.err
15741 rm -f conftest.er1
15742 cat conftest.err >&5
a848cd7e
SC
15743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15744 (exit $ac_status); } &&
c9a66001 15745 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15747 (eval $ac_try) 2>&5
15748 ac_status=$?
15749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15750 (exit $ac_status); }; } &&
15751 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15753 (eval $ac_try) 2>&5
15754 ac_status=$?
15755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15756 (exit $ac_status); }; }; then
15757 ac_cv_string_strcasecmp=yes
15758else
15759 echo "$as_me: failed program was:" >&5
15760sed 's/^/| /' conftest.$ac_ext >&5
15761
15762ac_cv_string_strcasecmp=no
15763
15764fi
ac1cb8d3
VS
15765rm -f conftest.err conftest.$ac_objext \
15766 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15767
15768fi
15769echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
15770echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
15771
15772 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
15773 cat >>confdefs.h <<\_ACEOF
15774#define HAVE_STRCASECMP_IN_STRING_H 1
15775_ACEOF
15776
15777 else
15778 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
15779echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
15780if test "${ac_cv_strings_strcasecmp+set}" = set; then
15781 echo $ECHO_N "(cached) $ECHO_C" >&6
15782else
15783
15784 cat >conftest.$ac_ext <<_ACEOF
15785/* confdefs.h. */
15786_ACEOF
15787cat confdefs.h >>conftest.$ac_ext
15788cat >>conftest.$ac_ext <<_ACEOF
15789/* end confdefs.h. */
15790
15791 #include <strings.h>
15792
15793int
15794main ()
15795{
15796
15797 strcasecmp("foo", "bar");
15798
15799 ;
15800 return 0;
15801}
15802_ACEOF
15803rm -f conftest.$ac_objext conftest$ac_exeext
15804if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15805 (eval $ac_link) 2>conftest.er1
a848cd7e 15806 ac_status=$?
ac1cb8d3
VS
15807 grep -v '^ *+' conftest.er1 >conftest.err
15808 rm -f conftest.er1
15809 cat conftest.err >&5
a848cd7e
SC
15810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15811 (exit $ac_status); } &&
c9a66001 15812 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15814 (eval $ac_try) 2>&5
15815 ac_status=$?
15816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15817 (exit $ac_status); }; } &&
15818 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15820 (eval $ac_try) 2>&5
15821 ac_status=$?
15822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15823 (exit $ac_status); }; }; then
15824 ac_cv_strings_strcasecmp=yes
15825else
15826 echo "$as_me: failed program was:" >&5
15827sed 's/^/| /' conftest.$ac_ext >&5
15828
15829ac_cv_strings_strcasecmp=no
15830
15831fi
ac1cb8d3
VS
15832rm -f conftest.err conftest.$ac_objext \
15833 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15834
15835fi
15836echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
15837echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
15838
0c3c69fc 15839 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
15840 cat >>confdefs.h <<\_ACEOF
15841#define HAVE_STRCASECMP_IN_STRINGS_H 1
15842_ACEOF
15843
15844 else
15845 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
15846echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
15847 { (exit 1); exit 1; }; }
15848 fi
15849 fi
15850
a848cd7e
SC
15851 ;;
15852esac
15853
15854
5d7b7554
VZ
15855ac_ext=cc
15856ac_cpp='$CXXCPP $CPPFLAGS'
15857ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15858ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15859ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15860echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
15861echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
15862if test -z "$CXXCPP"; then
15863 if test "${ac_cv_prog_CXXCPP+set}" = set; then
15864 echo $ECHO_N "(cached) $ECHO_C" >&6
15865else
15866 # Double quotes because CXXCPP needs to be expanded
15867 for CXXCPP in "$CXX -E" "/lib/cpp"
15868 do
15869 ac_preproc_ok=false
15870for ac_cxx_preproc_warn_flag in '' yes
15871do
15872 # Use a header file that comes with gcc, so configuring glibc
15873 # with a fresh cross-compiler works.
15874 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15875 # <limits.h> exists even on freestanding compilers.
15876 # On the NeXT, cc -E runs the code through the compiler's parser,
15877 # not just through cpp. "Syntax error" is here to catch this case.
15878 cat >conftest.$ac_ext <<_ACEOF
15879/* confdefs.h. */
15880_ACEOF
15881cat confdefs.h >>conftest.$ac_ext
15882cat >>conftest.$ac_ext <<_ACEOF
15883/* end confdefs.h. */
15884#ifdef __STDC__
15885# include <limits.h>
15886#else
15887# include <assert.h>
15888#endif
15889 Syntax error
15890_ACEOF
15891if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15892 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15893 ac_status=$?
15894 grep -v '^ *+' conftest.er1 >conftest.err
15895 rm -f conftest.er1
15896 cat conftest.err >&5
15897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898 (exit $ac_status); } >/dev/null; then
15899 if test -s conftest.err; then
15900 ac_cpp_err=$ac_cxx_preproc_warn_flag
15901 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15902 else
15903 ac_cpp_err=
15904 fi
15905else
15906 ac_cpp_err=yes
15907fi
15908if test -z "$ac_cpp_err"; then
15909 :
15910else
15911 echo "$as_me: failed program was:" >&5
15912sed 's/^/| /' conftest.$ac_ext >&5
15913
15914 # Broken: fails on valid input.
15915continue
15916fi
15917rm -f conftest.err conftest.$ac_ext
15918
15919 # OK, works on sane cases. Now check whether non-existent headers
15920 # can be detected and how.
15921 cat >conftest.$ac_ext <<_ACEOF
15922/* confdefs.h. */
15923_ACEOF
15924cat confdefs.h >>conftest.$ac_ext
15925cat >>conftest.$ac_ext <<_ACEOF
15926/* end confdefs.h. */
15927#include <ac_nonexistent.h>
15928_ACEOF
15929if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15930 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15931 ac_status=$?
15932 grep -v '^ *+' conftest.er1 >conftest.err
15933 rm -f conftest.er1
15934 cat conftest.err >&5
15935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15936 (exit $ac_status); } >/dev/null; then
15937 if test -s conftest.err; then
15938 ac_cpp_err=$ac_cxx_preproc_warn_flag
15939 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15940 else
15941 ac_cpp_err=
15942 fi
15943else
15944 ac_cpp_err=yes
15945fi
15946if test -z "$ac_cpp_err"; then
15947 # Broken: success on invalid input.
15948continue
15949else
15950 echo "$as_me: failed program was:" >&5
15951sed 's/^/| /' conftest.$ac_ext >&5
15952
15953 # Passes both tests.
15954ac_preproc_ok=:
15955break
15956fi
15957rm -f conftest.err conftest.$ac_ext
15958
15959done
15960# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15961rm -f conftest.err conftest.$ac_ext
15962if $ac_preproc_ok; then
15963 break
15964fi
15965
15966 done
15967 ac_cv_prog_CXXCPP=$CXXCPP
15968
15969fi
15970 CXXCPP=$ac_cv_prog_CXXCPP
15971else
15972 ac_cv_prog_CXXCPP=$CXXCPP
15973fi
15974echo "$as_me:$LINENO: result: $CXXCPP" >&5
15975echo "${ECHO_T}$CXXCPP" >&6
15976ac_preproc_ok=false
15977for ac_cxx_preproc_warn_flag in '' yes
15978do
15979 # Use a header file that comes with gcc, so configuring glibc
15980 # with a fresh cross-compiler works.
15981 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15982 # <limits.h> exists even on freestanding compilers.
15983 # On the NeXT, cc -E runs the code through the compiler's parser,
15984 # not just through cpp. "Syntax error" is here to catch this case.
15985 cat >conftest.$ac_ext <<_ACEOF
15986/* confdefs.h. */
15987_ACEOF
15988cat confdefs.h >>conftest.$ac_ext
15989cat >>conftest.$ac_ext <<_ACEOF
15990/* end confdefs.h. */
15991#ifdef __STDC__
15992# include <limits.h>
15993#else
15994# include <assert.h>
15995#endif
15996 Syntax error
15997_ACEOF
15998if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15999 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16000 ac_status=$?
16001 grep -v '^ *+' conftest.er1 >conftest.err
16002 rm -f conftest.er1
16003 cat conftest.err >&5
16004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16005 (exit $ac_status); } >/dev/null; then
16006 if test -s conftest.err; then
16007 ac_cpp_err=$ac_cxx_preproc_warn_flag
16008 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16009 else
16010 ac_cpp_err=
16011 fi
16012else
16013 ac_cpp_err=yes
16014fi
16015if test -z "$ac_cpp_err"; then
16016 :
16017else
16018 echo "$as_me: failed program was:" >&5
16019sed 's/^/| /' conftest.$ac_ext >&5
16020
16021 # Broken: fails on valid input.
16022continue
16023fi
16024rm -f conftest.err conftest.$ac_ext
16025
16026 # OK, works on sane cases. Now check whether non-existent headers
16027 # can be detected and how.
16028 cat >conftest.$ac_ext <<_ACEOF
16029/* confdefs.h. */
16030_ACEOF
16031cat confdefs.h >>conftest.$ac_ext
16032cat >>conftest.$ac_ext <<_ACEOF
16033/* end confdefs.h. */
16034#include <ac_nonexistent.h>
16035_ACEOF
16036if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16037 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16038 ac_status=$?
16039 grep -v '^ *+' conftest.er1 >conftest.err
16040 rm -f conftest.er1
16041 cat conftest.err >&5
16042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16043 (exit $ac_status); } >/dev/null; then
16044 if test -s conftest.err; then
16045 ac_cpp_err=$ac_cxx_preproc_warn_flag
16046 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16047 else
16048 ac_cpp_err=
16049 fi
16050else
16051 ac_cpp_err=yes
16052fi
16053if test -z "$ac_cpp_err"; then
16054 # Broken: success on invalid input.
16055continue
16056else
16057 echo "$as_me: failed program was:" >&5
16058sed 's/^/| /' conftest.$ac_ext >&5
16059
16060 # Passes both tests.
16061ac_preproc_ok=:
16062break
16063fi
16064rm -f conftest.err conftest.$ac_ext
16065
16066done
16067# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16068rm -f conftest.err conftest.$ac_ext
16069if $ac_preproc_ok; then
16070 :
16071else
16072 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
16073See \`config.log' for more details." >&5
16074echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
16075See \`config.log' for more details." >&2;}
16076 { (exit 1); exit 1; }; }
16077fi
16078
16079ac_ext=cc
16080ac_cpp='$CXXCPP $CPPFLAGS'
16081ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16082ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16083ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16084
16085
a848cd7e
SC
16086echo "$as_me:$LINENO: checking for ANSI C header files" >&5
16087echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
16088if test "${ac_cv_header_stdc+set}" = set; then
16089 echo $ECHO_N "(cached) $ECHO_C" >&6
16090else
16091 cat >conftest.$ac_ext <<_ACEOF
16092/* confdefs.h. */
16093_ACEOF
16094cat confdefs.h >>conftest.$ac_ext
16095cat >>conftest.$ac_ext <<_ACEOF
16096/* end confdefs.h. */
16097#include <stdlib.h>
16098#include <stdarg.h>
16099#include <string.h>
16100#include <float.h>
16101
16102int
16103main ()
16104{
16105
16106 ;
16107 return 0;
16108}
16109_ACEOF
16110rm -f conftest.$ac_objext
16111if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16112 (eval $ac_compile) 2>conftest.er1
a848cd7e 16113 ac_status=$?
ac1cb8d3
VS
16114 grep -v '^ *+' conftest.er1 >conftest.err
16115 rm -f conftest.er1
16116 cat conftest.err >&5
a848cd7e
SC
16117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16118 (exit $ac_status); } &&
c9a66001 16119 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16121 (eval $ac_try) 2>&5
16122 ac_status=$?
16123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16124 (exit $ac_status); }; } &&
16125 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16127 (eval $ac_try) 2>&5
16128 ac_status=$?
16129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16130 (exit $ac_status); }; }; then
16131 ac_cv_header_stdc=yes
16132else
16133 echo "$as_me: failed program was:" >&5
16134sed 's/^/| /' conftest.$ac_ext >&5
16135
16136ac_cv_header_stdc=no
16137fi
ac1cb8d3 16138rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16139
16140if test $ac_cv_header_stdc = yes; then
16141 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16142 cat >conftest.$ac_ext <<_ACEOF
16143/* confdefs.h. */
16144_ACEOF
16145cat confdefs.h >>conftest.$ac_ext
16146cat >>conftest.$ac_ext <<_ACEOF
16147/* end confdefs.h. */
16148#include <string.h>
16149
16150_ACEOF
16151if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16152 $EGREP "memchr" >/dev/null 2>&1; then
16153 :
16154else
16155 ac_cv_header_stdc=no
16156fi
16157rm -f conftest*
16158
16159fi
16160
16161if test $ac_cv_header_stdc = yes; then
16162 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16163 cat >conftest.$ac_ext <<_ACEOF
16164/* confdefs.h. */
16165_ACEOF
16166cat confdefs.h >>conftest.$ac_ext
16167cat >>conftest.$ac_ext <<_ACEOF
16168/* end confdefs.h. */
16169#include <stdlib.h>
16170
16171_ACEOF
16172if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16173 $EGREP "free" >/dev/null 2>&1; then
16174 :
16175else
16176 ac_cv_header_stdc=no
16177fi
16178rm -f conftest*
16179
16180fi
16181
16182if test $ac_cv_header_stdc = yes; then
16183 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16184 if test "$cross_compiling" = yes; then
16185 :
16186else
16187 cat >conftest.$ac_ext <<_ACEOF
16188/* confdefs.h. */
16189_ACEOF
16190cat confdefs.h >>conftest.$ac_ext
16191cat >>conftest.$ac_ext <<_ACEOF
16192/* end confdefs.h. */
16193#include <ctype.h>
16194#if ((' ' & 0x0FF) == 0x020)
16195# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16196# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16197#else
16198# define ISLOWER(c) \
ac1cb8d3
VS
16199 (('a' <= (c) && (c) <= 'i') \
16200 || ('j' <= (c) && (c) <= 'r') \
16201 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
16202# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16203#endif
16204
16205#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16206int
16207main ()
16208{
16209 int i;
16210 for (i = 0; i < 256; i++)
16211 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 16212 || toupper (i) != TOUPPER (i))
a848cd7e
SC
16213 exit(2);
16214 exit (0);
16215}
16216_ACEOF
16217rm -f conftest$ac_exeext
16218if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16219 (eval $ac_link) 2>&5
16220 ac_status=$?
16221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16222 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16224 (eval $ac_try) 2>&5
16225 ac_status=$?
16226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16227 (exit $ac_status); }; }; then
16228 :
16229else
16230 echo "$as_me: program exited with status $ac_status" >&5
16231echo "$as_me: failed program was:" >&5
16232sed 's/^/| /' conftest.$ac_ext >&5
16233
16234( exit $ac_status )
16235ac_cv_header_stdc=no
16236fi
ac1cb8d3 16237rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16238fi
16239fi
16240fi
16241echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
16242echo "${ECHO_T}$ac_cv_header_stdc" >&6
16243if test $ac_cv_header_stdc = yes; then
16244
16245cat >>confdefs.h <<\_ACEOF
16246#define STDC_HEADERS 1
16247_ACEOF
16248
16249fi
16250
16251# On IRIX 5.3, sys/types and inttypes.h are conflicting.
16252
16253
16254
16255
16256
16257
16258
16259
16260
16261for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 16262 inttypes.h stdint.h unistd.h
a848cd7e
SC
16263do
16264as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16265echo "$as_me:$LINENO: checking for $ac_header" >&5
16266echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16267if eval "test \"\${$as_ac_Header+set}\" = set"; then
16268 echo $ECHO_N "(cached) $ECHO_C" >&6
16269else
16270 cat >conftest.$ac_ext <<_ACEOF
16271/* confdefs.h. */
16272_ACEOF
16273cat confdefs.h >>conftest.$ac_ext
16274cat >>conftest.$ac_ext <<_ACEOF
16275/* end confdefs.h. */
16276$ac_includes_default
16277
16278#include <$ac_header>
16279_ACEOF
16280rm -f conftest.$ac_objext
16281if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16282 (eval $ac_compile) 2>conftest.er1
a848cd7e 16283 ac_status=$?
ac1cb8d3
VS
16284 grep -v '^ *+' conftest.er1 >conftest.err
16285 rm -f conftest.er1
16286 cat conftest.err >&5
a848cd7e
SC
16287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16288 (exit $ac_status); } &&
c9a66001 16289 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16291 (eval $ac_try) 2>&5
16292 ac_status=$?
16293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16294 (exit $ac_status); }; } &&
16295 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16297 (eval $ac_try) 2>&5
16298 ac_status=$?
16299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16300 (exit $ac_status); }; }; then
16301 eval "$as_ac_Header=yes"
16302else
16303 echo "$as_me: failed program was:" >&5
16304sed 's/^/| /' conftest.$ac_ext >&5
16305
16306eval "$as_ac_Header=no"
16307fi
ac1cb8d3 16308rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16309fi
16310echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16311echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16312if test `eval echo '${'$as_ac_Header'}'` = yes; then
16313 cat >>confdefs.h <<_ACEOF
16314#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16315_ACEOF
16316
16317fi
16318
16319done
16320
16321
16322
16323for ac_header in stdlib.h
16324do
16325as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16326if eval "test \"\${$as_ac_Header+set}\" = set"; then
16327 echo "$as_me:$LINENO: checking for $ac_header" >&5
16328echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16329if eval "test \"\${$as_ac_Header+set}\" = set"; then
16330 echo $ECHO_N "(cached) $ECHO_C" >&6
16331fi
16332echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16333echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16334else
16335 # Is the header compilable?
16336echo "$as_me:$LINENO: checking $ac_header usability" >&5
16337echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16338cat >conftest.$ac_ext <<_ACEOF
16339/* confdefs.h. */
16340_ACEOF
16341cat confdefs.h >>conftest.$ac_ext
16342cat >>conftest.$ac_ext <<_ACEOF
16343/* end confdefs.h. */
16344$ac_includes_default
16345#include <$ac_header>
16346_ACEOF
16347rm -f conftest.$ac_objext
16348if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16349 (eval $ac_compile) 2>conftest.er1
a848cd7e 16350 ac_status=$?
ac1cb8d3
VS
16351 grep -v '^ *+' conftest.er1 >conftest.err
16352 rm -f conftest.er1
16353 cat conftest.err >&5
a848cd7e
SC
16354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16355 (exit $ac_status); } &&
c9a66001 16356 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16358 (eval $ac_try) 2>&5
16359 ac_status=$?
16360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16361 (exit $ac_status); }; } &&
16362 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16364 (eval $ac_try) 2>&5
16365 ac_status=$?
16366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16367 (exit $ac_status); }; }; then
16368 ac_header_compiler=yes
16369else
16370 echo "$as_me: failed program was:" >&5
16371sed 's/^/| /' conftest.$ac_ext >&5
16372
16373ac_header_compiler=no
16374fi
ac1cb8d3 16375rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16376echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16377echo "${ECHO_T}$ac_header_compiler" >&6
16378
16379# Is the header present?
16380echo "$as_me:$LINENO: checking $ac_header presence" >&5
16381echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16382cat >conftest.$ac_ext <<_ACEOF
16383/* confdefs.h. */
16384_ACEOF
16385cat confdefs.h >>conftest.$ac_ext
16386cat >>conftest.$ac_ext <<_ACEOF
16387/* end confdefs.h. */
16388#include <$ac_header>
16389_ACEOF
16390if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16391 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16392 ac_status=$?
16393 grep -v '^ *+' conftest.er1 >conftest.err
16394 rm -f conftest.er1
16395 cat conftest.err >&5
16396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16397 (exit $ac_status); } >/dev/null; then
16398 if test -s conftest.err; then
5d7b7554
VZ
16399 ac_cpp_err=$ac_cxx_preproc_warn_flag
16400 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16401 else
16402 ac_cpp_err=
16403 fi
16404else
16405 ac_cpp_err=yes
16406fi
16407if test -z "$ac_cpp_err"; then
16408 ac_header_preproc=yes
16409else
16410 echo "$as_me: failed program was:" >&5
16411sed 's/^/| /' conftest.$ac_ext >&5
16412
16413 ac_header_preproc=no
16414fi
16415rm -f conftest.err conftest.$ac_ext
16416echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16417echo "${ECHO_T}$ac_header_preproc" >&6
16418
16419# So? What about this header?
5d7b7554 16420case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16421 yes:no: )
a848cd7e
SC
16422 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16423echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16424 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16425echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16426 ac_header_preproc=yes
a848cd7e 16427 ;;
ac1cb8d3 16428 no:yes:* )
a848cd7e
SC
16429 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16430echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16431 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16432echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16433 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16434echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16435 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16436echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16437 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16438echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16439 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16440echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16441 (
16442 cat <<\_ASBOX
ac1cb8d3
VS
16443## ----------------------------------------- ##
16444## Report this to wx-dev@lists.wxwidgets.org ##
16445## ----------------------------------------- ##
a848cd7e
SC
16446_ASBOX
16447 ) |
16448 sed "s/^/$as_me: WARNING: /" >&2
16449 ;;
16450esac
16451echo "$as_me:$LINENO: checking for $ac_header" >&5
16452echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16453if eval "test \"\${$as_ac_Header+set}\" = set"; then
16454 echo $ECHO_N "(cached) $ECHO_C" >&6
16455else
ac1cb8d3 16456 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16457fi
16458echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16459echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16460
16461fi
16462if test `eval echo '${'$as_ac_Header'}'` = yes; then
16463 cat >>confdefs.h <<_ACEOF
16464#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16465_ACEOF
16466
16467fi
16468
16469done
16470
16471
16472for ac_header in malloc.h
16473do
16474as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16475if eval "test \"\${$as_ac_Header+set}\" = set"; then
16476 echo "$as_me:$LINENO: checking for $ac_header" >&5
16477echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16478if eval "test \"\${$as_ac_Header+set}\" = set"; then
16479 echo $ECHO_N "(cached) $ECHO_C" >&6
16480fi
16481echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16482echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16483else
16484 # Is the header compilable?
16485echo "$as_me:$LINENO: checking $ac_header usability" >&5
16486echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16487cat >conftest.$ac_ext <<_ACEOF
16488/* confdefs.h. */
16489_ACEOF
16490cat confdefs.h >>conftest.$ac_ext
16491cat >>conftest.$ac_ext <<_ACEOF
16492/* end confdefs.h. */
16493$ac_includes_default
16494#include <$ac_header>
16495_ACEOF
16496rm -f conftest.$ac_objext
16497if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16498 (eval $ac_compile) 2>conftest.er1
a848cd7e 16499 ac_status=$?
ac1cb8d3
VS
16500 grep -v '^ *+' conftest.er1 >conftest.err
16501 rm -f conftest.er1
16502 cat conftest.err >&5
a848cd7e
SC
16503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16504 (exit $ac_status); } &&
c9a66001 16505 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16507 (eval $ac_try) 2>&5
16508 ac_status=$?
16509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16510 (exit $ac_status); }; } &&
16511 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16513 (eval $ac_try) 2>&5
16514 ac_status=$?
16515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16516 (exit $ac_status); }; }; then
16517 ac_header_compiler=yes
16518else
16519 echo "$as_me: failed program was:" >&5
16520sed 's/^/| /' conftest.$ac_ext >&5
16521
16522ac_header_compiler=no
16523fi
ac1cb8d3 16524rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16525echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16526echo "${ECHO_T}$ac_header_compiler" >&6
16527
16528# Is the header present?
16529echo "$as_me:$LINENO: checking $ac_header presence" >&5
16530echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16531cat >conftest.$ac_ext <<_ACEOF
16532/* confdefs.h. */
16533_ACEOF
16534cat confdefs.h >>conftest.$ac_ext
16535cat >>conftest.$ac_ext <<_ACEOF
16536/* end confdefs.h. */
16537#include <$ac_header>
16538_ACEOF
16539if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16540 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16541 ac_status=$?
16542 grep -v '^ *+' conftest.er1 >conftest.err
16543 rm -f conftest.er1
16544 cat conftest.err >&5
16545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16546 (exit $ac_status); } >/dev/null; then
16547 if test -s conftest.err; then
5d7b7554
VZ
16548 ac_cpp_err=$ac_cxx_preproc_warn_flag
16549 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16550 else
16551 ac_cpp_err=
16552 fi
16553else
16554 ac_cpp_err=yes
16555fi
16556if test -z "$ac_cpp_err"; then
16557 ac_header_preproc=yes
16558else
16559 echo "$as_me: failed program was:" >&5
16560sed 's/^/| /' conftest.$ac_ext >&5
16561
16562 ac_header_preproc=no
16563fi
16564rm -f conftest.err conftest.$ac_ext
16565echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16566echo "${ECHO_T}$ac_header_preproc" >&6
16567
16568# So? What about this header?
5d7b7554 16569case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16570 yes:no: )
a848cd7e
SC
16571 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16572echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16573 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16574echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16575 ac_header_preproc=yes
a848cd7e 16576 ;;
ac1cb8d3 16577 no:yes:* )
a848cd7e
SC
16578 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16579echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16580 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16581echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16582 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16583echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16584 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16585echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16587echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16588 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16589echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16590 (
16591 cat <<\_ASBOX
ac1cb8d3
VS
16592## ----------------------------------------- ##
16593## Report this to wx-dev@lists.wxwidgets.org ##
16594## ----------------------------------------- ##
a848cd7e
SC
16595_ASBOX
16596 ) |
16597 sed "s/^/$as_me: WARNING: /" >&2
16598 ;;
16599esac
16600echo "$as_me:$LINENO: checking for $ac_header" >&5
16601echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16602if eval "test \"\${$as_ac_Header+set}\" = set"; then
16603 echo $ECHO_N "(cached) $ECHO_C" >&6
16604else
ac1cb8d3 16605 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16606fi
16607echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16608echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16609
16610fi
16611if test `eval echo '${'$as_ac_Header'}'` = yes; then
16612 cat >>confdefs.h <<_ACEOF
16613#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16614_ACEOF
16615
16616fi
16617
16618done
16619
16620
16621for ac_header in unistd.h
16622do
16623as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16624if eval "test \"\${$as_ac_Header+set}\" = set"; then
16625 echo "$as_me:$LINENO: checking for $ac_header" >&5
16626echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16627if eval "test \"\${$as_ac_Header+set}\" = set"; then
16628 echo $ECHO_N "(cached) $ECHO_C" >&6
16629fi
16630echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16631echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16632else
16633 # Is the header compilable?
16634echo "$as_me:$LINENO: checking $ac_header usability" >&5
16635echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16636cat >conftest.$ac_ext <<_ACEOF
16637/* confdefs.h. */
16638_ACEOF
16639cat confdefs.h >>conftest.$ac_ext
16640cat >>conftest.$ac_ext <<_ACEOF
16641/* end confdefs.h. */
16642$ac_includes_default
16643#include <$ac_header>
16644_ACEOF
16645rm -f conftest.$ac_objext
16646if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16647 (eval $ac_compile) 2>conftest.er1
a848cd7e 16648 ac_status=$?
ac1cb8d3
VS
16649 grep -v '^ *+' conftest.er1 >conftest.err
16650 rm -f conftest.er1
16651 cat conftest.err >&5
a848cd7e
SC
16652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16653 (exit $ac_status); } &&
c9a66001 16654 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16656 (eval $ac_try) 2>&5
16657 ac_status=$?
16658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16659 (exit $ac_status); }; } &&
16660 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16662 (eval $ac_try) 2>&5
16663 ac_status=$?
16664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16665 (exit $ac_status); }; }; then
16666 ac_header_compiler=yes
16667else
16668 echo "$as_me: failed program was:" >&5
16669sed 's/^/| /' conftest.$ac_ext >&5
16670
16671ac_header_compiler=no
16672fi
ac1cb8d3 16673rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16674echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16675echo "${ECHO_T}$ac_header_compiler" >&6
16676
16677# Is the header present?
16678echo "$as_me:$LINENO: checking $ac_header presence" >&5
16679echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16680cat >conftest.$ac_ext <<_ACEOF
16681/* confdefs.h. */
16682_ACEOF
16683cat confdefs.h >>conftest.$ac_ext
16684cat >>conftest.$ac_ext <<_ACEOF
16685/* end confdefs.h. */
16686#include <$ac_header>
16687_ACEOF
16688if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16689 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16690 ac_status=$?
16691 grep -v '^ *+' conftest.er1 >conftest.err
16692 rm -f conftest.er1
16693 cat conftest.err >&5
16694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16695 (exit $ac_status); } >/dev/null; then
16696 if test -s conftest.err; then
5d7b7554
VZ
16697 ac_cpp_err=$ac_cxx_preproc_warn_flag
16698 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16699 else
16700 ac_cpp_err=
16701 fi
16702else
16703 ac_cpp_err=yes
16704fi
16705if test -z "$ac_cpp_err"; then
16706 ac_header_preproc=yes
16707else
16708 echo "$as_me: failed program was:" >&5
16709sed 's/^/| /' conftest.$ac_ext >&5
16710
16711 ac_header_preproc=no
16712fi
16713rm -f conftest.err conftest.$ac_ext
16714echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16715echo "${ECHO_T}$ac_header_preproc" >&6
16716
16717# So? What about this header?
5d7b7554 16718case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16719 yes:no: )
a848cd7e
SC
16720 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16721echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16722 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16723echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16724 ac_header_preproc=yes
a848cd7e 16725 ;;
ac1cb8d3 16726 no:yes:* )
a848cd7e
SC
16727 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16728echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16729 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16730echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16731 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16732echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16733 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16734echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16735 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16736echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16737 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16738echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16739 (
16740 cat <<\_ASBOX
ac1cb8d3
VS
16741## ----------------------------------------- ##
16742## Report this to wx-dev@lists.wxwidgets.org ##
16743## ----------------------------------------- ##
a848cd7e
SC
16744_ASBOX
16745 ) |
16746 sed "s/^/$as_me: WARNING: /" >&2
16747 ;;
16748esac
16749echo "$as_me:$LINENO: checking for $ac_header" >&5
16750echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16751if eval "test \"\${$as_ac_Header+set}\" = set"; then
16752 echo $ECHO_N "(cached) $ECHO_C" >&6
16753else
ac1cb8d3 16754 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16755fi
16756echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16757echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16758
16759fi
16760if test `eval echo '${'$as_ac_Header'}'` = yes; then
16761 cat >>confdefs.h <<_ACEOF
16762#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16763_ACEOF
16764
16765fi
16766
16767done
16768
16769
16770for ac_header in wchar.h
16771do
16772as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16773if eval "test \"\${$as_ac_Header+set}\" = set"; then
16774 echo "$as_me:$LINENO: checking for $ac_header" >&5
16775echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16776if eval "test \"\${$as_ac_Header+set}\" = set"; then
16777 echo $ECHO_N "(cached) $ECHO_C" >&6
16778fi
16779echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16780echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16781else
16782 # Is the header compilable?
16783echo "$as_me:$LINENO: checking $ac_header usability" >&5
16784echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16785cat >conftest.$ac_ext <<_ACEOF
16786/* confdefs.h. */
16787_ACEOF
16788cat confdefs.h >>conftest.$ac_ext
16789cat >>conftest.$ac_ext <<_ACEOF
16790/* end confdefs.h. */
16791$ac_includes_default
16792#include <$ac_header>
16793_ACEOF
16794rm -f conftest.$ac_objext
16795if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16796 (eval $ac_compile) 2>conftest.er1
a848cd7e 16797 ac_status=$?
ac1cb8d3
VS
16798 grep -v '^ *+' conftest.er1 >conftest.err
16799 rm -f conftest.er1
16800 cat conftest.err >&5
a848cd7e
SC
16801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16802 (exit $ac_status); } &&
c9a66001 16803 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16805 (eval $ac_try) 2>&5
16806 ac_status=$?
16807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16808 (exit $ac_status); }; } &&
16809 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16811 (eval $ac_try) 2>&5
16812 ac_status=$?
16813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16814 (exit $ac_status); }; }; then
16815 ac_header_compiler=yes
16816else
16817 echo "$as_me: failed program was:" >&5
16818sed 's/^/| /' conftest.$ac_ext >&5
16819
16820ac_header_compiler=no
16821fi
ac1cb8d3 16822rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16823echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16824echo "${ECHO_T}$ac_header_compiler" >&6
16825
16826# Is the header present?
16827echo "$as_me:$LINENO: checking $ac_header presence" >&5
16828echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16829cat >conftest.$ac_ext <<_ACEOF
16830/* confdefs.h. */
16831_ACEOF
16832cat confdefs.h >>conftest.$ac_ext
16833cat >>conftest.$ac_ext <<_ACEOF
16834/* end confdefs.h. */
16835#include <$ac_header>
16836_ACEOF
16837if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16838 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16839 ac_status=$?
16840 grep -v '^ *+' conftest.er1 >conftest.err
16841 rm -f conftest.er1
16842 cat conftest.err >&5
16843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16844 (exit $ac_status); } >/dev/null; then
16845 if test -s conftest.err; then
5d7b7554
VZ
16846 ac_cpp_err=$ac_cxx_preproc_warn_flag
16847 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16848 else
16849 ac_cpp_err=
16850 fi
16851else
16852 ac_cpp_err=yes
16853fi
16854if test -z "$ac_cpp_err"; then
16855 ac_header_preproc=yes
16856else
16857 echo "$as_me: failed program was:" >&5
16858sed 's/^/| /' conftest.$ac_ext >&5
16859
16860 ac_header_preproc=no
16861fi
16862rm -f conftest.err conftest.$ac_ext
16863echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16864echo "${ECHO_T}$ac_header_preproc" >&6
16865
16866# So? What about this header?
5d7b7554 16867case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16868 yes:no: )
a848cd7e
SC
16869 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16870echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16871 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16872echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16873 ac_header_preproc=yes
a848cd7e 16874 ;;
ac1cb8d3 16875 no:yes:* )
a848cd7e
SC
16876 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16877echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16878 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16879echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16880 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16881echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16882 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16883echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16884 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16885echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16886 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16887echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16888 (
16889 cat <<\_ASBOX
ac1cb8d3
VS
16890## ----------------------------------------- ##
16891## Report this to wx-dev@lists.wxwidgets.org ##
16892## ----------------------------------------- ##
a848cd7e
SC
16893_ASBOX
16894 ) |
16895 sed "s/^/$as_me: WARNING: /" >&2
16896 ;;
16897esac
16898echo "$as_me:$LINENO: checking for $ac_header" >&5
16899echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16900if eval "test \"\${$as_ac_Header+set}\" = set"; then
16901 echo $ECHO_N "(cached) $ECHO_C" >&6
16902else
ac1cb8d3 16903 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16904fi
16905echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16906echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16907
16908fi
16909if test `eval echo '${'$as_ac_Header'}'` = yes; then
16910 cat >>confdefs.h <<_ACEOF
16911#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16912_ACEOF
16913
16914fi
16915
16916done
16917
16918
16919if test "$ac_cv_header_wchar_h" != "yes"; then
16920
16921for ac_header in wcstr.h
16922do
16923as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16924if eval "test \"\${$as_ac_Header+set}\" = set"; then
16925 echo "$as_me:$LINENO: checking for $ac_header" >&5
16926echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16927if eval "test \"\${$as_ac_Header+set}\" = set"; then
16928 echo $ECHO_N "(cached) $ECHO_C" >&6
16929fi
16930echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16931echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16932else
16933 # Is the header compilable?
16934echo "$as_me:$LINENO: checking $ac_header usability" >&5
16935echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16936cat >conftest.$ac_ext <<_ACEOF
16937/* confdefs.h. */
16938_ACEOF
16939cat confdefs.h >>conftest.$ac_ext
16940cat >>conftest.$ac_ext <<_ACEOF
16941/* end confdefs.h. */
16942$ac_includes_default
16943#include <$ac_header>
16944_ACEOF
16945rm -f conftest.$ac_objext
16946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16947 (eval $ac_compile) 2>conftest.er1
a848cd7e 16948 ac_status=$?
ac1cb8d3
VS
16949 grep -v '^ *+' conftest.er1 >conftest.err
16950 rm -f conftest.er1
16951 cat conftest.err >&5
a848cd7e
SC
16952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953 (exit $ac_status); } &&
c9a66001 16954 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16956 (eval $ac_try) 2>&5
16957 ac_status=$?
16958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16959 (exit $ac_status); }; } &&
16960 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16962 (eval $ac_try) 2>&5
16963 ac_status=$?
16964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16965 (exit $ac_status); }; }; then
16966 ac_header_compiler=yes
16967else
16968 echo "$as_me: failed program was:" >&5
16969sed 's/^/| /' conftest.$ac_ext >&5
16970
16971ac_header_compiler=no
16972fi
ac1cb8d3 16973rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16974echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16975echo "${ECHO_T}$ac_header_compiler" >&6
16976
16977# Is the header present?
16978echo "$as_me:$LINENO: checking $ac_header presence" >&5
16979echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16980cat >conftest.$ac_ext <<_ACEOF
16981/* confdefs.h. */
16982_ACEOF
16983cat confdefs.h >>conftest.$ac_ext
16984cat >>conftest.$ac_ext <<_ACEOF
16985/* end confdefs.h. */
16986#include <$ac_header>
16987_ACEOF
16988if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16989 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16990 ac_status=$?
16991 grep -v '^ *+' conftest.er1 >conftest.err
16992 rm -f conftest.er1
16993 cat conftest.err >&5
16994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16995 (exit $ac_status); } >/dev/null; then
16996 if test -s conftest.err; then
5d7b7554
VZ
16997 ac_cpp_err=$ac_cxx_preproc_warn_flag
16998 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16999 else
17000 ac_cpp_err=
17001 fi
17002else
17003 ac_cpp_err=yes
17004fi
17005if test -z "$ac_cpp_err"; then
17006 ac_header_preproc=yes
17007else
17008 echo "$as_me: failed program was:" >&5
17009sed 's/^/| /' conftest.$ac_ext >&5
17010
17011 ac_header_preproc=no
17012fi
17013rm -f conftest.err conftest.$ac_ext
17014echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17015echo "${ECHO_T}$ac_header_preproc" >&6
17016
17017# So? What about this header?
5d7b7554 17018case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17019 yes:no: )
a848cd7e
SC
17020 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17021echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17022 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17023echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17024 ac_header_preproc=yes
a848cd7e 17025 ;;
ac1cb8d3 17026 no:yes:* )
a848cd7e
SC
17027 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17028echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17029 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17030echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17031 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17032echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17033 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17034echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17035 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17036echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17037 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17038echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17039 (
17040 cat <<\_ASBOX
ac1cb8d3
VS
17041## ----------------------------------------- ##
17042## Report this to wx-dev@lists.wxwidgets.org ##
17043## ----------------------------------------- ##
a848cd7e
SC
17044_ASBOX
17045 ) |
17046 sed "s/^/$as_me: WARNING: /" >&2
17047 ;;
17048esac
17049echo "$as_me:$LINENO: checking for $ac_header" >&5
17050echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17051if eval "test \"\${$as_ac_Header+set}\" = set"; then
17052 echo $ECHO_N "(cached) $ECHO_C" >&6
17053else
ac1cb8d3 17054 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17055fi
17056echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17057echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17058
17059fi
17060if test `eval echo '${'$as_ac_Header'}'` = yes; then
17061 cat >>confdefs.h <<_ACEOF
17062#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17063_ACEOF
17064
17065fi
17066
17067done
17068
17069fi
17070
17071
17072for ac_header in fnmatch.h
17073do
17074as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17075if eval "test \"\${$as_ac_Header+set}\" = set"; then
17076 echo "$as_me:$LINENO: checking for $ac_header" >&5
17077echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17078if eval "test \"\${$as_ac_Header+set}\" = set"; then
17079 echo $ECHO_N "(cached) $ECHO_C" >&6
17080fi
17081echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17082echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17083else
17084 # Is the header compilable?
17085echo "$as_me:$LINENO: checking $ac_header usability" >&5
17086echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17087cat >conftest.$ac_ext <<_ACEOF
17088/* confdefs.h. */
17089_ACEOF
17090cat confdefs.h >>conftest.$ac_ext
17091cat >>conftest.$ac_ext <<_ACEOF
17092/* end confdefs.h. */
17093$ac_includes_default
17094#include <$ac_header>
17095_ACEOF
17096rm -f conftest.$ac_objext
17097if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17098 (eval $ac_compile) 2>conftest.er1
a848cd7e 17099 ac_status=$?
ac1cb8d3
VS
17100 grep -v '^ *+' conftest.er1 >conftest.err
17101 rm -f conftest.er1
17102 cat conftest.err >&5
a848cd7e
SC
17103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104 (exit $ac_status); } &&
c9a66001 17105 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17107 (eval $ac_try) 2>&5
17108 ac_status=$?
17109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110 (exit $ac_status); }; } &&
17111 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17113 (eval $ac_try) 2>&5
17114 ac_status=$?
17115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17116 (exit $ac_status); }; }; then
17117 ac_header_compiler=yes
17118else
17119 echo "$as_me: failed program was:" >&5
17120sed 's/^/| /' conftest.$ac_ext >&5
17121
17122ac_header_compiler=no
17123fi
ac1cb8d3 17124rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17125echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17126echo "${ECHO_T}$ac_header_compiler" >&6
17127
17128# Is the header present?
17129echo "$as_me:$LINENO: checking $ac_header presence" >&5
17130echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17131cat >conftest.$ac_ext <<_ACEOF
17132/* confdefs.h. */
17133_ACEOF
17134cat confdefs.h >>conftest.$ac_ext
17135cat >>conftest.$ac_ext <<_ACEOF
17136/* end confdefs.h. */
17137#include <$ac_header>
17138_ACEOF
17139if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17140 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17141 ac_status=$?
17142 grep -v '^ *+' conftest.er1 >conftest.err
17143 rm -f conftest.er1
17144 cat conftest.err >&5
17145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146 (exit $ac_status); } >/dev/null; then
17147 if test -s conftest.err; then
5d7b7554
VZ
17148 ac_cpp_err=$ac_cxx_preproc_warn_flag
17149 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17150 else
17151 ac_cpp_err=
17152 fi
17153else
17154 ac_cpp_err=yes
17155fi
17156if test -z "$ac_cpp_err"; then
17157 ac_header_preproc=yes
17158else
17159 echo "$as_me: failed program was:" >&5
17160sed 's/^/| /' conftest.$ac_ext >&5
17161
17162 ac_header_preproc=no
17163fi
17164rm -f conftest.err conftest.$ac_ext
17165echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17166echo "${ECHO_T}$ac_header_preproc" >&6
17167
17168# So? What about this header?
5d7b7554 17169case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17170 yes:no: )
a848cd7e
SC
17171 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17172echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17173 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17174echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17175 ac_header_preproc=yes
a848cd7e 17176 ;;
ac1cb8d3 17177 no:yes:* )
a848cd7e
SC
17178 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17179echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17180 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17181echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17182 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17183echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17184 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17185echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17186 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17187echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17188 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17189echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17190 (
17191 cat <<\_ASBOX
ac1cb8d3
VS
17192## ----------------------------------------- ##
17193## Report this to wx-dev@lists.wxwidgets.org ##
17194## ----------------------------------------- ##
a848cd7e
SC
17195_ASBOX
17196 ) |
17197 sed "s/^/$as_me: WARNING: /" >&2
17198 ;;
17199esac
17200echo "$as_me:$LINENO: checking for $ac_header" >&5
17201echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17202if eval "test \"\${$as_ac_Header+set}\" = set"; then
17203 echo $ECHO_N "(cached) $ECHO_C" >&6
17204else
ac1cb8d3 17205 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17206fi
17207echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17208echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17209
17210fi
17211if test `eval echo '${'$as_ac_Header'}'` = yes; then
17212 cat >>confdefs.h <<_ACEOF
17213#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17214_ACEOF
17215
17216fi
17217
17218done
17219
17220
a848cd7e
SC
17221
17222for ac_header in langinfo.h
17223do
17224as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17225if eval "test \"\${$as_ac_Header+set}\" = set"; then
17226 echo "$as_me:$LINENO: checking for $ac_header" >&5
17227echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17228if eval "test \"\${$as_ac_Header+set}\" = set"; then
17229 echo $ECHO_N "(cached) $ECHO_C" >&6
17230fi
17231echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17232echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17233else
17234 # Is the header compilable?
17235echo "$as_me:$LINENO: checking $ac_header usability" >&5
17236echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17237cat >conftest.$ac_ext <<_ACEOF
17238/* confdefs.h. */
17239_ACEOF
17240cat confdefs.h >>conftest.$ac_ext
17241cat >>conftest.$ac_ext <<_ACEOF
17242/* end confdefs.h. */
17243$ac_includes_default
17244#include <$ac_header>
17245_ACEOF
17246rm -f conftest.$ac_objext
17247if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17248 (eval $ac_compile) 2>conftest.er1
a848cd7e 17249 ac_status=$?
ac1cb8d3
VS
17250 grep -v '^ *+' conftest.er1 >conftest.err
17251 rm -f conftest.er1
17252 cat conftest.err >&5
a848cd7e
SC
17253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17254 (exit $ac_status); } &&
c9a66001 17255 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17257 (eval $ac_try) 2>&5
17258 ac_status=$?
17259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17260 (exit $ac_status); }; } &&
17261 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17263 (eval $ac_try) 2>&5
17264 ac_status=$?
17265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17266 (exit $ac_status); }; }; then
17267 ac_header_compiler=yes
17268else
17269 echo "$as_me: failed program was:" >&5
17270sed 's/^/| /' conftest.$ac_ext >&5
17271
17272ac_header_compiler=no
17273fi
ac1cb8d3 17274rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17275echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17276echo "${ECHO_T}$ac_header_compiler" >&6
17277
17278# Is the header present?
17279echo "$as_me:$LINENO: checking $ac_header presence" >&5
17280echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17281cat >conftest.$ac_ext <<_ACEOF
17282/* confdefs.h. */
17283_ACEOF
17284cat confdefs.h >>conftest.$ac_ext
17285cat >>conftest.$ac_ext <<_ACEOF
17286/* end confdefs.h. */
17287#include <$ac_header>
17288_ACEOF
17289if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17290 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17291 ac_status=$?
17292 grep -v '^ *+' conftest.er1 >conftest.err
17293 rm -f conftest.er1
17294 cat conftest.err >&5
17295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17296 (exit $ac_status); } >/dev/null; then
17297 if test -s conftest.err; then
5d7b7554
VZ
17298 ac_cpp_err=$ac_cxx_preproc_warn_flag
17299 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17300 else
17301 ac_cpp_err=
17302 fi
17303else
17304 ac_cpp_err=yes
17305fi
17306if test -z "$ac_cpp_err"; then
17307 ac_header_preproc=yes
17308else
17309 echo "$as_me: failed program was:" >&5
17310sed 's/^/| /' conftest.$ac_ext >&5
17311
17312 ac_header_preproc=no
17313fi
17314rm -f conftest.err conftest.$ac_ext
17315echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17316echo "${ECHO_T}$ac_header_preproc" >&6
17317
17318# So? What about this header?
5d7b7554 17319case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17320 yes:no: )
a848cd7e
SC
17321 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17322echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17323 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17324echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17325 ac_header_preproc=yes
a848cd7e 17326 ;;
ac1cb8d3 17327 no:yes:* )
a848cd7e
SC
17328 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17329echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17330 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17331echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17332 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17333echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17334 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17335echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17336 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17337echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17338 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17339echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17340 (
17341 cat <<\_ASBOX
ac1cb8d3
VS
17342## ----------------------------------------- ##
17343## Report this to wx-dev@lists.wxwidgets.org ##
17344## ----------------------------------------- ##
a848cd7e
SC
17345_ASBOX
17346 ) |
17347 sed "s/^/$as_me: WARNING: /" >&2
17348 ;;
17349esac
17350echo "$as_me:$LINENO: checking for $ac_header" >&5
17351echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17352if eval "test \"\${$as_ac_Header+set}\" = set"; then
17353 echo $ECHO_N "(cached) $ECHO_C" >&6
17354else
ac1cb8d3 17355 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17356fi
17357echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17358echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17359
17360fi
17361if test `eval echo '${'$as_ac_Header'}'` = yes; then
17362 cat >>confdefs.h <<_ACEOF
17363#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17364_ACEOF
17365
17366fi
17367
17368done
17369
17370
17371case "${host}" in
17372 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
17373 if test $ac_cv_header_langinfo_h = "yes" \
17374 -a \( "$wx_cv_gccversion" = "EMX2" \
17375 -o "$wx_cv_gccversion" = "EMX3" \
17376 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
17377 LIBS="$LIBS -lintl"
17378 fi
17379 ;;
17380esac
17381
bc023abb
MW
17382if test "$USE_UNIX" = 1 ; then
17383
17384for ac_header in sys/select.h
17385do
17386as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17387if eval "test \"\${$as_ac_Header+set}\" = set"; then
17388 echo "$as_me:$LINENO: checking for $ac_header" >&5
17389echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17390if eval "test \"\${$as_ac_Header+set}\" = set"; then
17391 echo $ECHO_N "(cached) $ECHO_C" >&6
17392fi
17393echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17394echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17395else
17396 # Is the header compilable?
17397echo "$as_me:$LINENO: checking $ac_header usability" >&5
17398echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17399cat >conftest.$ac_ext <<_ACEOF
17400/* confdefs.h. */
17401_ACEOF
17402cat confdefs.h >>conftest.$ac_ext
17403cat >>conftest.$ac_ext <<_ACEOF
17404/* end confdefs.h. */
17405$ac_includes_default
17406#include <$ac_header>
17407_ACEOF
17408rm -f conftest.$ac_objext
17409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17410 (eval $ac_compile) 2>conftest.er1
17411 ac_status=$?
17412 grep -v '^ *+' conftest.er1 >conftest.err
17413 rm -f conftest.er1
17414 cat conftest.err >&5
17415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416 (exit $ac_status); } &&
17417 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17419 (eval $ac_try) 2>&5
17420 ac_status=$?
17421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17422 (exit $ac_status); }; } &&
17423 { ac_try='test -s conftest.$ac_objext'
17424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17425 (eval $ac_try) 2>&5
17426 ac_status=$?
17427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17428 (exit $ac_status); }; }; then
17429 ac_header_compiler=yes
17430else
17431 echo "$as_me: failed program was:" >&5
17432sed 's/^/| /' conftest.$ac_ext >&5
17433
17434ac_header_compiler=no
17435fi
17436rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17437echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17438echo "${ECHO_T}$ac_header_compiler" >&6
17439
17440# Is the header present?
17441echo "$as_me:$LINENO: checking $ac_header presence" >&5
17442echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17443cat >conftest.$ac_ext <<_ACEOF
17444/* confdefs.h. */
17445_ACEOF
17446cat confdefs.h >>conftest.$ac_ext
17447cat >>conftest.$ac_ext <<_ACEOF
17448/* end confdefs.h. */
17449#include <$ac_header>
17450_ACEOF
17451if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17452 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17453 ac_status=$?
17454 grep -v '^ *+' conftest.er1 >conftest.err
17455 rm -f conftest.er1
17456 cat conftest.err >&5
17457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17458 (exit $ac_status); } >/dev/null; then
17459 if test -s conftest.err; then
17460 ac_cpp_err=$ac_cxx_preproc_warn_flag
17461 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
17462 else
17463 ac_cpp_err=
17464 fi
17465else
17466 ac_cpp_err=yes
17467fi
17468if test -z "$ac_cpp_err"; then
17469 ac_header_preproc=yes
17470else
17471 echo "$as_me: failed program was:" >&5
17472sed 's/^/| /' conftest.$ac_ext >&5
17473
17474 ac_header_preproc=no
17475fi
17476rm -f conftest.err conftest.$ac_ext
17477echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17478echo "${ECHO_T}$ac_header_preproc" >&6
17479
17480# So? What about this header?
17481case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
17482 yes:no: )
17483 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17484echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17485 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17486echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17487 ac_header_preproc=yes
17488 ;;
17489 no:yes:* )
17490 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17491echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17492 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17493echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17494 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17495echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17496 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17497echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17498 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17499echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17500 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17501echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17502 (
17503 cat <<\_ASBOX
17504## ----------------------------------------- ##
17505## Report this to wx-dev@lists.wxwidgets.org ##
17506## ----------------------------------------- ##
17507_ASBOX
17508 ) |
17509 sed "s/^/$as_me: WARNING: /" >&2
17510 ;;
17511esac
17512echo "$as_me:$LINENO: checking for $ac_header" >&5
17513echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17514if eval "test \"\${$as_ac_Header+set}\" = set"; then
17515 echo $ECHO_N "(cached) $ECHO_C" >&6
17516else
17517 eval "$as_ac_Header=\$ac_header_preproc"
17518fi
17519echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17520echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17521
17522fi
17523if test `eval echo '${'$as_ac_Header'}'` = yes; then
17524 cat >>confdefs.h <<_ACEOF
17525#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17526_ACEOF
17527
17528fi
17529
17530done
17531
17532fi
17533
a848cd7e
SC
17534
17535echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17536echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
17537if test "${ac_cv_c_const+set}" = set; then
17538 echo $ECHO_N "(cached) $ECHO_C" >&6
17539else
17540 cat >conftest.$ac_ext <<_ACEOF
17541/* confdefs.h. */
17542_ACEOF
17543cat confdefs.h >>conftest.$ac_ext
17544cat >>conftest.$ac_ext <<_ACEOF
17545/* end confdefs.h. */
17546
17547int
17548main ()
17549{
17550/* FIXME: Include the comments suggested by Paul. */
17551#ifndef __cplusplus
17552 /* Ultrix mips cc rejects this. */
17553 typedef int charset[2];
17554 const charset x;
17555 /* SunOS 4.1.1 cc rejects this. */
17556 char const *const *ccp;
17557 char **p;
17558 /* NEC SVR4.0.2 mips cc rejects this. */
17559 struct point {int x, y;};
17560 static struct point const zero = {0,0};
17561 /* AIX XL C 1.02.0.0 rejects this.
17562 It does not let you subtract one const X* pointer from another in
17563 an arm of an if-expression whose if-part is not a constant
17564 expression */
17565 const char *g = "string";
17566 ccp = &g + (g ? g-g : 0);
17567 /* HPUX 7.0 cc rejects these. */
17568 ++ccp;
17569 p = (char**) ccp;
17570 ccp = (char const *const *) p;
17571 { /* SCO 3.2v4 cc rejects this. */
17572 char *t;
17573 char const *s = 0 ? (char *) 0 : (char const *) 0;
17574
17575 *t++ = 0;
17576 }
17577 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17578 int x[] = {25, 17};
17579 const int *foo = &x[0];
17580 ++foo;
17581 }
17582 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17583 typedef const int *iptr;
17584 iptr p = 0;
17585 ++p;
17586 }
17587 { /* AIX XL C 1.02.0.0 rejects this saying
17588 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17589 struct s { int j; const int *ap[3]; };
17590 struct s *b; b->j = 5;
17591 }
17592 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17593 const int foo = 10;
17594 }
17595#endif
17596
17597 ;
17598 return 0;
17599}
17600_ACEOF
17601rm -f conftest.$ac_objext
17602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17603 (eval $ac_compile) 2>conftest.er1
a848cd7e 17604 ac_status=$?
ac1cb8d3
VS
17605 grep -v '^ *+' conftest.er1 >conftest.err
17606 rm -f conftest.er1
17607 cat conftest.err >&5
a848cd7e
SC
17608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17609 (exit $ac_status); } &&
c9a66001 17610 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17612 (eval $ac_try) 2>&5
17613 ac_status=$?
17614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615 (exit $ac_status); }; } &&
17616 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17618 (eval $ac_try) 2>&5
17619 ac_status=$?
17620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17621 (exit $ac_status); }; }; then
17622 ac_cv_c_const=yes
17623else
17624 echo "$as_me: failed program was:" >&5
17625sed 's/^/| /' conftest.$ac_ext >&5
17626
17627ac_cv_c_const=no
17628fi
ac1cb8d3 17629rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17630fi
17631echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17632echo "${ECHO_T}$ac_cv_c_const" >&6
17633if test $ac_cv_c_const = no; then
17634
17635cat >>confdefs.h <<\_ACEOF
17636#define const
17637_ACEOF
17638
17639fi
17640
17641echo "$as_me:$LINENO: checking for inline" >&5
17642echo $ECHO_N "checking for inline... $ECHO_C" >&6
17643if test "${ac_cv_c_inline+set}" = set; then
17644 echo $ECHO_N "(cached) $ECHO_C" >&6
17645else
17646 ac_cv_c_inline=no
17647for ac_kw in inline __inline__ __inline; do
17648 cat >conftest.$ac_ext <<_ACEOF
17649/* confdefs.h. */
17650_ACEOF
17651cat confdefs.h >>conftest.$ac_ext
17652cat >>conftest.$ac_ext <<_ACEOF
17653/* end confdefs.h. */
17654#ifndef __cplusplus
17655typedef int foo_t;
17656static $ac_kw foo_t static_foo () {return 0; }
17657$ac_kw foo_t foo () {return 0; }
17658#endif
17659
17660_ACEOF
17661rm -f conftest.$ac_objext
17662if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17663 (eval $ac_compile) 2>conftest.er1
a848cd7e 17664 ac_status=$?
ac1cb8d3
VS
17665 grep -v '^ *+' conftest.er1 >conftest.err
17666 rm -f conftest.er1
17667 cat conftest.err >&5
a848cd7e
SC
17668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17669 (exit $ac_status); } &&
c9a66001 17670 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17672 (eval $ac_try) 2>&5
17673 ac_status=$?
17674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17675 (exit $ac_status); }; } &&
17676 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17678 (eval $ac_try) 2>&5
17679 ac_status=$?
17680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17681 (exit $ac_status); }; }; then
17682 ac_cv_c_inline=$ac_kw; break
17683else
17684 echo "$as_me: failed program was:" >&5
17685sed 's/^/| /' conftest.$ac_ext >&5
17686
17687fi
ac1cb8d3 17688rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17689done
17690
17691fi
17692echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
17693echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
17694
17695
a848cd7e
SC
17696case $ac_cv_c_inline in
17697 inline | yes) ;;
ac1cb8d3
VS
17698 *)
17699 case $ac_cv_c_inline in
17700 no) ac_val=;;
17701 *) ac_val=$ac_cv_c_inline;;
17702 esac
17703 cat >>confdefs.h <<_ACEOF
17704#ifndef __cplusplus
17705#define inline $ac_val
17706#endif
de59c161 17707_ACEOF
ac1cb8d3 17708 ;;
a848cd7e
SC
17709esac
17710
17711
17712echo "$as_me:$LINENO: checking for char" >&5
17713echo $ECHO_N "checking for char... $ECHO_C" >&6
17714if test "${ac_cv_type_char+set}" = set; then
17715 echo $ECHO_N "(cached) $ECHO_C" >&6
17716else
17717 cat >conftest.$ac_ext <<_ACEOF
17718/* confdefs.h. */
17719_ACEOF
17720cat confdefs.h >>conftest.$ac_ext
17721cat >>conftest.$ac_ext <<_ACEOF
17722/* end confdefs.h. */
17723$ac_includes_default
17724int
17725main ()
17726{
17727if ((char *) 0)
17728 return 0;
17729if (sizeof (char))
17730 return 0;
17731 ;
17732 return 0;
17733}
17734_ACEOF
17735rm -f conftest.$ac_objext
17736if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17737 (eval $ac_compile) 2>conftest.er1
a848cd7e 17738 ac_status=$?
ac1cb8d3
VS
17739 grep -v '^ *+' conftest.er1 >conftest.err
17740 rm -f conftest.er1
17741 cat conftest.err >&5
a848cd7e
SC
17742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17743 (exit $ac_status); } &&
c9a66001 17744 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17746 (eval $ac_try) 2>&5
17747 ac_status=$?
17748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17749 (exit $ac_status); }; } &&
17750 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17752 (eval $ac_try) 2>&5
17753 ac_status=$?
17754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17755 (exit $ac_status); }; }; then
17756 ac_cv_type_char=yes
17757else
17758 echo "$as_me: failed program was:" >&5
17759sed 's/^/| /' conftest.$ac_ext >&5
17760
17761ac_cv_type_char=no
17762fi
ac1cb8d3 17763rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17764fi
17765echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
17766echo "${ECHO_T}$ac_cv_type_char" >&6
17767
17768echo "$as_me:$LINENO: checking size of char" >&5
17769echo $ECHO_N "checking size of char... $ECHO_C" >&6
17770if test "${ac_cv_sizeof_char+set}" = set; then
17771 echo $ECHO_N "(cached) $ECHO_C" >&6
17772else
17773 if test "$ac_cv_type_char" = yes; then
17774 # The cast to unsigned long works around a bug in the HP C Compiler
17775 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17776 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17777 # This bug is HP SR number 8606223364.
17778 if test "$cross_compiling" = yes; then
17779 # Depending upon the size, compute the lo and hi bounds.
17780cat >conftest.$ac_ext <<_ACEOF
17781/* confdefs.h. */
17782_ACEOF
17783cat confdefs.h >>conftest.$ac_ext
17784cat >>conftest.$ac_ext <<_ACEOF
17785/* end confdefs.h. */
17786$ac_includes_default
17787int
17788main ()
17789{
17790static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
17791test_array [0] = 0
17792
17793 ;
17794 return 0;
17795}
17796_ACEOF
17797rm -f conftest.$ac_objext
17798if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17799 (eval $ac_compile) 2>conftest.er1
a848cd7e 17800 ac_status=$?
ac1cb8d3
VS
17801 grep -v '^ *+' conftest.er1 >conftest.err
17802 rm -f conftest.er1
17803 cat conftest.err >&5
a848cd7e
SC
17804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17805 (exit $ac_status); } &&
c9a66001 17806 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17808 (eval $ac_try) 2>&5
17809 ac_status=$?
17810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17811 (exit $ac_status); }; } &&
17812 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17814 (eval $ac_try) 2>&5
17815 ac_status=$?
17816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17817 (exit $ac_status); }; }; then
17818 ac_lo=0 ac_mid=0
17819 while :; do
17820 cat >conftest.$ac_ext <<_ACEOF
17821/* confdefs.h. */
17822_ACEOF
17823cat confdefs.h >>conftest.$ac_ext
17824cat >>conftest.$ac_ext <<_ACEOF
17825/* end confdefs.h. */
17826$ac_includes_default
17827int
17828main ()
17829{
17830static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
17831test_array [0] = 0
17832
17833 ;
17834 return 0;
17835}
17836_ACEOF
17837rm -f conftest.$ac_objext
17838if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17839 (eval $ac_compile) 2>conftest.er1
a848cd7e 17840 ac_status=$?
ac1cb8d3
VS
17841 grep -v '^ *+' conftest.er1 >conftest.err
17842 rm -f conftest.er1
17843 cat conftest.err >&5
a848cd7e
SC
17844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17845 (exit $ac_status); } &&
c9a66001 17846 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17848 (eval $ac_try) 2>&5
17849 ac_status=$?
17850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17851 (exit $ac_status); }; } &&
17852 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17854 (eval $ac_try) 2>&5
17855 ac_status=$?
17856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17857 (exit $ac_status); }; }; then
17858 ac_hi=$ac_mid; break
17859else
17860 echo "$as_me: failed program was:" >&5
17861sed 's/^/| /' conftest.$ac_ext >&5
17862
17863ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17864 if test $ac_lo -le $ac_mid; then
17865 ac_lo= ac_hi=
17866 break
17867 fi
17868 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17869fi
ac1cb8d3 17870rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17871 done
17872else
17873 echo "$as_me: failed program was:" >&5
17874sed 's/^/| /' conftest.$ac_ext >&5
17875
17876cat >conftest.$ac_ext <<_ACEOF
17877/* confdefs.h. */
17878_ACEOF
17879cat confdefs.h >>conftest.$ac_ext
17880cat >>conftest.$ac_ext <<_ACEOF
17881/* end confdefs.h. */
17882$ac_includes_default
17883int
17884main ()
17885{
17886static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
17887test_array [0] = 0
17888
17889 ;
17890 return 0;
17891}
17892_ACEOF
17893rm -f conftest.$ac_objext
17894if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17895 (eval $ac_compile) 2>conftest.er1
a848cd7e 17896 ac_status=$?
ac1cb8d3
VS
17897 grep -v '^ *+' conftest.er1 >conftest.err
17898 rm -f conftest.er1
17899 cat conftest.err >&5
a848cd7e
SC
17900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17901 (exit $ac_status); } &&
c9a66001 17902 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17904 (eval $ac_try) 2>&5
17905 ac_status=$?
17906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17907 (exit $ac_status); }; } &&
17908 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17910 (eval $ac_try) 2>&5
17911 ac_status=$?
17912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17913 (exit $ac_status); }; }; then
17914 ac_hi=-1 ac_mid=-1
17915 while :; do
17916 cat >conftest.$ac_ext <<_ACEOF
17917/* confdefs.h. */
17918_ACEOF
17919cat confdefs.h >>conftest.$ac_ext
17920cat >>conftest.$ac_ext <<_ACEOF
17921/* end confdefs.h. */
17922$ac_includes_default
17923int
17924main ()
17925{
17926static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
17927test_array [0] = 0
17928
17929 ;
17930 return 0;
17931}
17932_ACEOF
17933rm -f conftest.$ac_objext
17934if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17935 (eval $ac_compile) 2>conftest.er1
a848cd7e 17936 ac_status=$?
ac1cb8d3
VS
17937 grep -v '^ *+' conftest.er1 >conftest.err
17938 rm -f conftest.er1
17939 cat conftest.err >&5
a848cd7e
SC
17940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17941 (exit $ac_status); } &&
c9a66001 17942 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17944 (eval $ac_try) 2>&5
17945 ac_status=$?
17946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17947 (exit $ac_status); }; } &&
17948 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17950 (eval $ac_try) 2>&5
17951 ac_status=$?
17952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17953 (exit $ac_status); }; }; then
17954 ac_lo=$ac_mid; break
17955else
17956 echo "$as_me: failed program was:" >&5
17957sed 's/^/| /' conftest.$ac_ext >&5
17958
17959ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17960 if test $ac_mid -le $ac_hi; then
17961 ac_lo= ac_hi=
17962 break
17963 fi
17964 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17965fi
ac1cb8d3 17966rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17967 done
17968else
17969 echo "$as_me: failed program was:" >&5
17970sed 's/^/| /' conftest.$ac_ext >&5
17971
17972ac_lo= ac_hi=
17973fi
ac1cb8d3 17974rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17975fi
ac1cb8d3 17976rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17977# Binary search between lo and hi bounds.
17978while test "x$ac_lo" != "x$ac_hi"; do
17979 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17980 cat >conftest.$ac_ext <<_ACEOF
17981/* confdefs.h. */
17982_ACEOF
17983cat confdefs.h >>conftest.$ac_ext
17984cat >>conftest.$ac_ext <<_ACEOF
17985/* end confdefs.h. */
17986$ac_includes_default
17987int
17988main ()
17989{
17990static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
17991test_array [0] = 0
17992
17993 ;
17994 return 0;
17995}
17996_ACEOF
17997rm -f conftest.$ac_objext
17998if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17999 (eval $ac_compile) 2>conftest.er1
a848cd7e 18000 ac_status=$?
ac1cb8d3
VS
18001 grep -v '^ *+' conftest.er1 >conftest.err
18002 rm -f conftest.er1
18003 cat conftest.err >&5
a848cd7e
SC
18004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18005 (exit $ac_status); } &&
c9a66001 18006 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18008 (eval $ac_try) 2>&5
18009 ac_status=$?
18010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18011 (exit $ac_status); }; } &&
18012 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18014 (eval $ac_try) 2>&5
18015 ac_status=$?
18016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18017 (exit $ac_status); }; }; then
18018 ac_hi=$ac_mid
18019else
18020 echo "$as_me: failed program was:" >&5
18021sed 's/^/| /' conftest.$ac_ext >&5
18022
18023ac_lo=`expr '(' $ac_mid ')' + 1`
18024fi
ac1cb8d3 18025rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18026done
18027case $ac_lo in
18028?*) ac_cv_sizeof_char=$ac_lo;;
18029'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
18030See \`config.log' for more details." >&5
18031echo "$as_me: error: cannot compute sizeof (char), 77
18032See \`config.log' for more details." >&2;}
18033 { (exit 1); exit 1; }; } ;;
18034esac
18035else
18036 if test "$cross_compiling" = yes; then
c9a66001
VZ
18037 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18038echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18039 { (exit 1); exit 1; }; }
18040else
18041 cat >conftest.$ac_ext <<_ACEOF
18042/* confdefs.h. */
18043_ACEOF
18044cat confdefs.h >>conftest.$ac_ext
18045cat >>conftest.$ac_ext <<_ACEOF
18046/* end confdefs.h. */
18047$ac_includes_default
18048long longval () { return (long) (sizeof (char)); }
18049unsigned long ulongval () { return (long) (sizeof (char)); }
18050#include <stdio.h>
18051#include <stdlib.h>
18052int
18053main ()
18054{
18055
18056 FILE *f = fopen ("conftest.val", "w");
18057 if (! f)
18058 exit (1);
18059 if (((long) (sizeof (char))) < 0)
18060 {
18061 long i = longval ();
18062 if (i != ((long) (sizeof (char))))
18063 exit (1);
18064 fprintf (f, "%ld\n", i);
18065 }
18066 else
18067 {
18068 unsigned long i = ulongval ();
18069 if (i != ((long) (sizeof (char))))
18070 exit (1);
18071 fprintf (f, "%lu\n", i);
18072 }
18073 exit (ferror (f) || fclose (f) != 0);
18074
18075 ;
18076 return 0;
18077}
18078_ACEOF
18079rm -f conftest$ac_exeext
18080if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18081 (eval $ac_link) 2>&5
18082 ac_status=$?
18083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18084 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18086 (eval $ac_try) 2>&5
18087 ac_status=$?
18088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18089 (exit $ac_status); }; }; then
18090 ac_cv_sizeof_char=`cat conftest.val`
18091else
18092 echo "$as_me: program exited with status $ac_status" >&5
18093echo "$as_me: failed program was:" >&5
18094sed 's/^/| /' conftest.$ac_ext >&5
18095
18096( exit $ac_status )
18097{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
18098See \`config.log' for more details." >&5
18099echo "$as_me: error: cannot compute sizeof (char), 77
18100See \`config.log' for more details." >&2;}
18101 { (exit 1); exit 1; }; }
18102fi
ac1cb8d3 18103rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18104fi
18105fi
18106rm -f conftest.val
18107else
18108 ac_cv_sizeof_char=0
18109fi
18110fi
18111echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
18112echo "${ECHO_T}$ac_cv_sizeof_char" >&6
18113cat >>confdefs.h <<_ACEOF
18114#define SIZEOF_CHAR $ac_cv_sizeof_char
18115_ACEOF
18116
18117
18118echo "$as_me:$LINENO: checking for short" >&5
18119echo $ECHO_N "checking for short... $ECHO_C" >&6
18120if test "${ac_cv_type_short+set}" = set; then
18121 echo $ECHO_N "(cached) $ECHO_C" >&6
18122else
18123 cat >conftest.$ac_ext <<_ACEOF
18124/* confdefs.h. */
18125_ACEOF
18126cat confdefs.h >>conftest.$ac_ext
18127cat >>conftest.$ac_ext <<_ACEOF
18128/* end confdefs.h. */
18129$ac_includes_default
18130int
18131main ()
18132{
18133if ((short *) 0)
18134 return 0;
18135if (sizeof (short))
18136 return 0;
18137 ;
18138 return 0;
18139}
18140_ACEOF
18141rm -f conftest.$ac_objext
18142if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18143 (eval $ac_compile) 2>conftest.er1
a848cd7e 18144 ac_status=$?
ac1cb8d3
VS
18145 grep -v '^ *+' conftest.er1 >conftest.err
18146 rm -f conftest.er1
18147 cat conftest.err >&5
a848cd7e
SC
18148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18149 (exit $ac_status); } &&
c9a66001 18150 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18152 (eval $ac_try) 2>&5
18153 ac_status=$?
18154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18155 (exit $ac_status); }; } &&
18156 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18158 (eval $ac_try) 2>&5
18159 ac_status=$?
18160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18161 (exit $ac_status); }; }; then
18162 ac_cv_type_short=yes
18163else
18164 echo "$as_me: failed program was:" >&5
18165sed 's/^/| /' conftest.$ac_ext >&5
18166
18167ac_cv_type_short=no
18168fi
ac1cb8d3 18169rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18170fi
18171echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
18172echo "${ECHO_T}$ac_cv_type_short" >&6
18173
18174echo "$as_me:$LINENO: checking size of short" >&5
18175echo $ECHO_N "checking size of short... $ECHO_C" >&6
18176if test "${ac_cv_sizeof_short+set}" = set; then
18177 echo $ECHO_N "(cached) $ECHO_C" >&6
18178else
18179 if test "$ac_cv_type_short" = yes; then
18180 # The cast to unsigned long works around a bug in the HP C Compiler
18181 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18182 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18183 # This bug is HP SR number 8606223364.
18184 if test "$cross_compiling" = yes; then
18185 # Depending upon the size, compute the lo and hi bounds.
18186cat >conftest.$ac_ext <<_ACEOF
18187/* confdefs.h. */
18188_ACEOF
18189cat confdefs.h >>conftest.$ac_ext
18190cat >>conftest.$ac_ext <<_ACEOF
18191/* end confdefs.h. */
18192$ac_includes_default
18193int
18194main ()
18195{
18196static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
18197test_array [0] = 0
18198
18199 ;
18200 return 0;
18201}
18202_ACEOF
18203rm -f conftest.$ac_objext
18204if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18205 (eval $ac_compile) 2>conftest.er1
a848cd7e 18206 ac_status=$?
ac1cb8d3
VS
18207 grep -v '^ *+' conftest.er1 >conftest.err
18208 rm -f conftest.er1
18209 cat conftest.err >&5
a848cd7e
SC
18210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18211 (exit $ac_status); } &&
c9a66001 18212 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18214 (eval $ac_try) 2>&5
18215 ac_status=$?
18216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18217 (exit $ac_status); }; } &&
18218 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18220 (eval $ac_try) 2>&5
18221 ac_status=$?
18222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223 (exit $ac_status); }; }; then
18224 ac_lo=0 ac_mid=0
18225 while :; do
18226 cat >conftest.$ac_ext <<_ACEOF
18227/* confdefs.h. */
18228_ACEOF
18229cat confdefs.h >>conftest.$ac_ext
18230cat >>conftest.$ac_ext <<_ACEOF
18231/* end confdefs.h. */
18232$ac_includes_default
18233int
18234main ()
18235{
18236static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
18237test_array [0] = 0
18238
18239 ;
18240 return 0;
18241}
18242_ACEOF
18243rm -f conftest.$ac_objext
18244if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18245 (eval $ac_compile) 2>conftest.er1
a848cd7e 18246 ac_status=$?
ac1cb8d3
VS
18247 grep -v '^ *+' conftest.er1 >conftest.err
18248 rm -f conftest.er1
18249 cat conftest.err >&5
a848cd7e
SC
18250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18251 (exit $ac_status); } &&
c9a66001 18252 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18254 (eval $ac_try) 2>&5
18255 ac_status=$?
18256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18257 (exit $ac_status); }; } &&
18258 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18260 (eval $ac_try) 2>&5
18261 ac_status=$?
18262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18263 (exit $ac_status); }; }; then
18264 ac_hi=$ac_mid; break
18265else
18266 echo "$as_me: failed program was:" >&5
18267sed 's/^/| /' conftest.$ac_ext >&5
18268
18269ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18270 if test $ac_lo -le $ac_mid; then
18271 ac_lo= ac_hi=
18272 break
18273 fi
18274 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18275fi
ac1cb8d3 18276rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18277 done
18278else
18279 echo "$as_me: failed program was:" >&5
18280sed 's/^/| /' conftest.$ac_ext >&5
18281
18282cat >conftest.$ac_ext <<_ACEOF
18283/* confdefs.h. */
18284_ACEOF
18285cat confdefs.h >>conftest.$ac_ext
18286cat >>conftest.$ac_ext <<_ACEOF
18287/* end confdefs.h. */
18288$ac_includes_default
18289int
18290main ()
18291{
18292static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
18293test_array [0] = 0
18294
18295 ;
18296 return 0;
18297}
18298_ACEOF
18299rm -f conftest.$ac_objext
18300if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18301 (eval $ac_compile) 2>conftest.er1
a848cd7e 18302 ac_status=$?
ac1cb8d3
VS
18303 grep -v '^ *+' conftest.er1 >conftest.err
18304 rm -f conftest.er1
18305 cat conftest.err >&5
a848cd7e
SC
18306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18307 (exit $ac_status); } &&
c9a66001 18308 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18310 (eval $ac_try) 2>&5
18311 ac_status=$?
18312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18313 (exit $ac_status); }; } &&
18314 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18316 (eval $ac_try) 2>&5
18317 ac_status=$?
18318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18319 (exit $ac_status); }; }; then
18320 ac_hi=-1 ac_mid=-1
18321 while :; do
18322 cat >conftest.$ac_ext <<_ACEOF
18323/* confdefs.h. */
18324_ACEOF
18325cat confdefs.h >>conftest.$ac_ext
18326cat >>conftest.$ac_ext <<_ACEOF
18327/* end confdefs.h. */
18328$ac_includes_default
18329int
18330main ()
18331{
18332static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
18333test_array [0] = 0
18334
18335 ;
18336 return 0;
18337}
18338_ACEOF
18339rm -f conftest.$ac_objext
18340if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18341 (eval $ac_compile) 2>conftest.er1
a848cd7e 18342 ac_status=$?
ac1cb8d3
VS
18343 grep -v '^ *+' conftest.er1 >conftest.err
18344 rm -f conftest.er1
18345 cat conftest.err >&5
a848cd7e
SC
18346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18347 (exit $ac_status); } &&
c9a66001 18348 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18350 (eval $ac_try) 2>&5
18351 ac_status=$?
18352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18353 (exit $ac_status); }; } &&
18354 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18356 (eval $ac_try) 2>&5
18357 ac_status=$?
18358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18359 (exit $ac_status); }; }; then
18360 ac_lo=$ac_mid; break
18361else
18362 echo "$as_me: failed program was:" >&5
18363sed 's/^/| /' conftest.$ac_ext >&5
18364
18365ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18366 if test $ac_mid -le $ac_hi; then
18367 ac_lo= ac_hi=
18368 break
18369 fi
18370 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18371fi
ac1cb8d3 18372rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18373 done
18374else
18375 echo "$as_me: failed program was:" >&5
18376sed 's/^/| /' conftest.$ac_ext >&5
18377
18378ac_lo= ac_hi=
18379fi
ac1cb8d3 18380rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18381fi
ac1cb8d3 18382rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18383# Binary search between lo and hi bounds.
18384while test "x$ac_lo" != "x$ac_hi"; do
18385 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18386 cat >conftest.$ac_ext <<_ACEOF
18387/* confdefs.h. */
18388_ACEOF
18389cat confdefs.h >>conftest.$ac_ext
18390cat >>conftest.$ac_ext <<_ACEOF
18391/* end confdefs.h. */
18392$ac_includes_default
18393int
18394main ()
18395{
18396static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
18397test_array [0] = 0
18398
18399 ;
18400 return 0;
18401}
18402_ACEOF
18403rm -f conftest.$ac_objext
18404if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18405 (eval $ac_compile) 2>conftest.er1
a848cd7e 18406 ac_status=$?
ac1cb8d3
VS
18407 grep -v '^ *+' conftest.er1 >conftest.err
18408 rm -f conftest.er1
18409 cat conftest.err >&5
a848cd7e
SC
18410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18411 (exit $ac_status); } &&
c9a66001 18412 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18414 (eval $ac_try) 2>&5
18415 ac_status=$?
18416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18417 (exit $ac_status); }; } &&
18418 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18420 (eval $ac_try) 2>&5
18421 ac_status=$?
18422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18423 (exit $ac_status); }; }; then
18424 ac_hi=$ac_mid
18425else
18426 echo "$as_me: failed program was:" >&5
18427sed 's/^/| /' conftest.$ac_ext >&5
18428
18429ac_lo=`expr '(' $ac_mid ')' + 1`
18430fi
ac1cb8d3 18431rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18432done
18433case $ac_lo in
18434?*) ac_cv_sizeof_short=$ac_lo;;
18435'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18436See \`config.log' for more details." >&5
18437echo "$as_me: error: cannot compute sizeof (short), 77
18438See \`config.log' for more details." >&2;}
18439 { (exit 1); exit 1; }; } ;;
18440esac
18441else
18442 if test "$cross_compiling" = yes; then
c9a66001
VZ
18443 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18444echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18445 { (exit 1); exit 1; }; }
18446else
18447 cat >conftest.$ac_ext <<_ACEOF
18448/* confdefs.h. */
18449_ACEOF
18450cat confdefs.h >>conftest.$ac_ext
18451cat >>conftest.$ac_ext <<_ACEOF
18452/* end confdefs.h. */
18453$ac_includes_default
18454long longval () { return (long) (sizeof (short)); }
18455unsigned long ulongval () { return (long) (sizeof (short)); }
18456#include <stdio.h>
18457#include <stdlib.h>
18458int
18459main ()
18460{
18461
18462 FILE *f = fopen ("conftest.val", "w");
18463 if (! f)
18464 exit (1);
18465 if (((long) (sizeof (short))) < 0)
18466 {
18467 long i = longval ();
18468 if (i != ((long) (sizeof (short))))
18469 exit (1);
18470 fprintf (f, "%ld\n", i);
18471 }
18472 else
18473 {
18474 unsigned long i = ulongval ();
18475 if (i != ((long) (sizeof (short))))
18476 exit (1);
18477 fprintf (f, "%lu\n", i);
18478 }
18479 exit (ferror (f) || fclose (f) != 0);
18480
18481 ;
18482 return 0;
18483}
18484_ACEOF
18485rm -f conftest$ac_exeext
18486if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18487 (eval $ac_link) 2>&5
18488 ac_status=$?
18489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18490 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18492 (eval $ac_try) 2>&5
18493 ac_status=$?
18494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18495 (exit $ac_status); }; }; then
18496 ac_cv_sizeof_short=`cat conftest.val`
18497else
18498 echo "$as_me: program exited with status $ac_status" >&5
18499echo "$as_me: failed program was:" >&5
18500sed 's/^/| /' conftest.$ac_ext >&5
18501
18502( exit $ac_status )
18503{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18504See \`config.log' for more details." >&5
18505echo "$as_me: error: cannot compute sizeof (short), 77
18506See \`config.log' for more details." >&2;}
18507 { (exit 1); exit 1; }; }
18508fi
ac1cb8d3 18509rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18510fi
18511fi
18512rm -f conftest.val
18513else
18514 ac_cv_sizeof_short=0
18515fi
18516fi
18517echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
18518echo "${ECHO_T}$ac_cv_sizeof_short" >&6
18519cat >>confdefs.h <<_ACEOF
18520#define SIZEOF_SHORT $ac_cv_sizeof_short
18521_ACEOF
18522
18523
18524echo "$as_me:$LINENO: checking for void *" >&5
18525echo $ECHO_N "checking for void *... $ECHO_C" >&6
18526if test "${ac_cv_type_void_p+set}" = set; then
18527 echo $ECHO_N "(cached) $ECHO_C" >&6
18528else
18529 cat >conftest.$ac_ext <<_ACEOF
18530/* confdefs.h. */
18531_ACEOF
18532cat confdefs.h >>conftest.$ac_ext
18533cat >>conftest.$ac_ext <<_ACEOF
18534/* end confdefs.h. */
18535$ac_includes_default
18536int
18537main ()
18538{
18539if ((void * *) 0)
18540 return 0;
18541if (sizeof (void *))
18542 return 0;
18543 ;
18544 return 0;
18545}
18546_ACEOF
18547rm -f conftest.$ac_objext
18548if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18549 (eval $ac_compile) 2>conftest.er1
a848cd7e 18550 ac_status=$?
ac1cb8d3
VS
18551 grep -v '^ *+' conftest.er1 >conftest.err
18552 rm -f conftest.er1
18553 cat conftest.err >&5
a848cd7e
SC
18554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18555 (exit $ac_status); } &&
c9a66001 18556 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18558 (eval $ac_try) 2>&5
18559 ac_status=$?
18560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18561 (exit $ac_status); }; } &&
18562 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18564 (eval $ac_try) 2>&5
18565 ac_status=$?
18566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18567 (exit $ac_status); }; }; then
18568 ac_cv_type_void_p=yes
18569else
18570 echo "$as_me: failed program was:" >&5
18571sed 's/^/| /' conftest.$ac_ext >&5
18572
18573ac_cv_type_void_p=no
18574fi
ac1cb8d3 18575rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18576fi
18577echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
18578echo "${ECHO_T}$ac_cv_type_void_p" >&6
18579
18580echo "$as_me:$LINENO: checking size of void *" >&5
18581echo $ECHO_N "checking size of void *... $ECHO_C" >&6
18582if test "${ac_cv_sizeof_void_p+set}" = set; then
18583 echo $ECHO_N "(cached) $ECHO_C" >&6
18584else
18585 if test "$ac_cv_type_void_p" = yes; then
18586 # The cast to unsigned long works around a bug in the HP C Compiler
18587 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18588 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18589 # This bug is HP SR number 8606223364.
18590 if test "$cross_compiling" = yes; then
18591 # Depending upon the size, compute the lo and hi bounds.
18592cat >conftest.$ac_ext <<_ACEOF
18593/* confdefs.h. */
18594_ACEOF
18595cat confdefs.h >>conftest.$ac_ext
18596cat >>conftest.$ac_ext <<_ACEOF
18597/* end confdefs.h. */
18598$ac_includes_default
18599int
18600main ()
18601{
18602static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
18603test_array [0] = 0
18604
18605 ;
18606 return 0;
18607}
18608_ACEOF
18609rm -f conftest.$ac_objext
18610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18611 (eval $ac_compile) 2>conftest.er1
a848cd7e 18612 ac_status=$?
ac1cb8d3
VS
18613 grep -v '^ *+' conftest.er1 >conftest.err
18614 rm -f conftest.er1
18615 cat conftest.err >&5
a848cd7e
SC
18616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18617 (exit $ac_status); } &&
c9a66001 18618 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18620 (eval $ac_try) 2>&5
18621 ac_status=$?
18622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18623 (exit $ac_status); }; } &&
18624 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18626 (eval $ac_try) 2>&5
18627 ac_status=$?
18628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18629 (exit $ac_status); }; }; then
18630 ac_lo=0 ac_mid=0
18631 while :; do
18632 cat >conftest.$ac_ext <<_ACEOF
18633/* confdefs.h. */
18634_ACEOF
18635cat confdefs.h >>conftest.$ac_ext
18636cat >>conftest.$ac_ext <<_ACEOF
18637/* end confdefs.h. */
18638$ac_includes_default
18639int
18640main ()
18641{
18642static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
18643test_array [0] = 0
18644
18645 ;
18646 return 0;
18647}
18648_ACEOF
18649rm -f conftest.$ac_objext
18650if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18651 (eval $ac_compile) 2>conftest.er1
a848cd7e 18652 ac_status=$?
ac1cb8d3
VS
18653 grep -v '^ *+' conftest.er1 >conftest.err
18654 rm -f conftest.er1
18655 cat conftest.err >&5
a848cd7e
SC
18656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18657 (exit $ac_status); } &&
c9a66001 18658 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18660 (eval $ac_try) 2>&5
18661 ac_status=$?
18662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18663 (exit $ac_status); }; } &&
18664 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18666 (eval $ac_try) 2>&5
18667 ac_status=$?
18668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18669 (exit $ac_status); }; }; then
18670 ac_hi=$ac_mid; break
18671else
18672 echo "$as_me: failed program was:" >&5
18673sed 's/^/| /' conftest.$ac_ext >&5
18674
18675ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18676 if test $ac_lo -le $ac_mid; then
18677 ac_lo= ac_hi=
18678 break
18679 fi
18680 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18681fi
ac1cb8d3 18682rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18683 done
18684else
18685 echo "$as_me: failed program was:" >&5
18686sed 's/^/| /' conftest.$ac_ext >&5
18687
18688cat >conftest.$ac_ext <<_ACEOF
18689/* confdefs.h. */
18690_ACEOF
18691cat confdefs.h >>conftest.$ac_ext
18692cat >>conftest.$ac_ext <<_ACEOF
18693/* end confdefs.h. */
18694$ac_includes_default
18695int
18696main ()
18697{
18698static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
18699test_array [0] = 0
18700
18701 ;
18702 return 0;
18703}
18704_ACEOF
18705rm -f conftest.$ac_objext
18706if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18707 (eval $ac_compile) 2>conftest.er1
a848cd7e 18708 ac_status=$?
ac1cb8d3
VS
18709 grep -v '^ *+' conftest.er1 >conftest.err
18710 rm -f conftest.er1
18711 cat conftest.err >&5
a848cd7e
SC
18712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18713 (exit $ac_status); } &&
c9a66001 18714 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18716 (eval $ac_try) 2>&5
18717 ac_status=$?
18718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18719 (exit $ac_status); }; } &&
18720 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18722 (eval $ac_try) 2>&5
18723 ac_status=$?
18724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18725 (exit $ac_status); }; }; then
18726 ac_hi=-1 ac_mid=-1
18727 while :; do
18728 cat >conftest.$ac_ext <<_ACEOF
18729/* confdefs.h. */
18730_ACEOF
18731cat confdefs.h >>conftest.$ac_ext
18732cat >>conftest.$ac_ext <<_ACEOF
18733/* end confdefs.h. */
18734$ac_includes_default
18735int
18736main ()
18737{
18738static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
18739test_array [0] = 0
18740
18741 ;
18742 return 0;
18743}
18744_ACEOF
18745rm -f conftest.$ac_objext
18746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18747 (eval $ac_compile) 2>conftest.er1
a848cd7e 18748 ac_status=$?
ac1cb8d3
VS
18749 grep -v '^ *+' conftest.er1 >conftest.err
18750 rm -f conftest.er1
18751 cat conftest.err >&5
a848cd7e
SC
18752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18753 (exit $ac_status); } &&
c9a66001 18754 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18756 (eval $ac_try) 2>&5
18757 ac_status=$?
18758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18759 (exit $ac_status); }; } &&
18760 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18762 (eval $ac_try) 2>&5
18763 ac_status=$?
18764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18765 (exit $ac_status); }; }; then
18766 ac_lo=$ac_mid; break
18767else
18768 echo "$as_me: failed program was:" >&5
18769sed 's/^/| /' conftest.$ac_ext >&5
18770
18771ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18772 if test $ac_mid -le $ac_hi; then
18773 ac_lo= ac_hi=
18774 break
18775 fi
18776 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18777fi
ac1cb8d3 18778rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18779 done
18780else
18781 echo "$as_me: failed program was:" >&5
18782sed 's/^/| /' conftest.$ac_ext >&5
18783
18784ac_lo= ac_hi=
18785fi
ac1cb8d3 18786rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18787fi
ac1cb8d3 18788rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18789# Binary search between lo and hi bounds.
18790while test "x$ac_lo" != "x$ac_hi"; do
18791 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18792 cat >conftest.$ac_ext <<_ACEOF
18793/* confdefs.h. */
18794_ACEOF
18795cat confdefs.h >>conftest.$ac_ext
18796cat >>conftest.$ac_ext <<_ACEOF
18797/* end confdefs.h. */
18798$ac_includes_default
18799int
18800main ()
18801{
18802static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
18803test_array [0] = 0
18804
18805 ;
18806 return 0;
18807}
18808_ACEOF
18809rm -f conftest.$ac_objext
18810if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18811 (eval $ac_compile) 2>conftest.er1
a848cd7e 18812 ac_status=$?
ac1cb8d3
VS
18813 grep -v '^ *+' conftest.er1 >conftest.err
18814 rm -f conftest.er1
18815 cat conftest.err >&5
a848cd7e
SC
18816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18817 (exit $ac_status); } &&
c9a66001 18818 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18820 (eval $ac_try) 2>&5
18821 ac_status=$?
18822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18823 (exit $ac_status); }; } &&
18824 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18826 (eval $ac_try) 2>&5
18827 ac_status=$?
18828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18829 (exit $ac_status); }; }; then
18830 ac_hi=$ac_mid
18831else
18832 echo "$as_me: failed program was:" >&5
18833sed 's/^/| /' conftest.$ac_ext >&5
18834
18835ac_lo=`expr '(' $ac_mid ')' + 1`
18836fi
ac1cb8d3 18837rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18838done
18839case $ac_lo in
18840?*) ac_cv_sizeof_void_p=$ac_lo;;
18841'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
18842See \`config.log' for more details." >&5
18843echo "$as_me: error: cannot compute sizeof (void *), 77
18844See \`config.log' for more details." >&2;}
18845 { (exit 1); exit 1; }; } ;;
18846esac
18847else
18848 if test "$cross_compiling" = yes; then
c9a66001
VZ
18849 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18850echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18851 { (exit 1); exit 1; }; }
18852else
18853 cat >conftest.$ac_ext <<_ACEOF
18854/* confdefs.h. */
18855_ACEOF
18856cat confdefs.h >>conftest.$ac_ext
18857cat >>conftest.$ac_ext <<_ACEOF
18858/* end confdefs.h. */
18859$ac_includes_default
18860long longval () { return (long) (sizeof (void *)); }
18861unsigned long ulongval () { return (long) (sizeof (void *)); }
18862#include <stdio.h>
18863#include <stdlib.h>
18864int
18865main ()
18866{
18867
18868 FILE *f = fopen ("conftest.val", "w");
18869 if (! f)
18870 exit (1);
18871 if (((long) (sizeof (void *))) < 0)
18872 {
18873 long i = longval ();
18874 if (i != ((long) (sizeof (void *))))
18875 exit (1);
18876 fprintf (f, "%ld\n", i);
18877 }
18878 else
18879 {
18880 unsigned long i = ulongval ();
18881 if (i != ((long) (sizeof (void *))))
18882 exit (1);
18883 fprintf (f, "%lu\n", i);
18884 }
18885 exit (ferror (f) || fclose (f) != 0);
18886
18887 ;
18888 return 0;
18889}
18890_ACEOF
18891rm -f conftest$ac_exeext
18892if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18893 (eval $ac_link) 2>&5
18894 ac_status=$?
18895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18896 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18898 (eval $ac_try) 2>&5
18899 ac_status=$?
18900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18901 (exit $ac_status); }; }; then
18902 ac_cv_sizeof_void_p=`cat conftest.val`
18903else
18904 echo "$as_me: program exited with status $ac_status" >&5
18905echo "$as_me: failed program was:" >&5
18906sed 's/^/| /' conftest.$ac_ext >&5
18907
18908( exit $ac_status )
18909{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
18910See \`config.log' for more details." >&5
18911echo "$as_me: error: cannot compute sizeof (void *), 77
18912See \`config.log' for more details." >&2;}
18913 { (exit 1); exit 1; }; }
18914fi
ac1cb8d3 18915rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18916fi
18917fi
18918rm -f conftest.val
18919else
18920 ac_cv_sizeof_void_p=0
18921fi
18922fi
18923echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
18924echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
18925cat >>confdefs.h <<_ACEOF
18926#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
18927_ACEOF
18928
18929
18930echo "$as_me:$LINENO: checking for int" >&5
18931echo $ECHO_N "checking for int... $ECHO_C" >&6
18932if test "${ac_cv_type_int+set}" = set; then
18933 echo $ECHO_N "(cached) $ECHO_C" >&6
18934else
18935 cat >conftest.$ac_ext <<_ACEOF
18936/* confdefs.h. */
18937_ACEOF
18938cat confdefs.h >>conftest.$ac_ext
18939cat >>conftest.$ac_ext <<_ACEOF
18940/* end confdefs.h. */
18941$ac_includes_default
18942int
18943main ()
18944{
18945if ((int *) 0)
18946 return 0;
18947if (sizeof (int))
18948 return 0;
18949 ;
18950 return 0;
18951}
18952_ACEOF
18953rm -f conftest.$ac_objext
18954if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18955 (eval $ac_compile) 2>conftest.er1
a848cd7e 18956 ac_status=$?
ac1cb8d3
VS
18957 grep -v '^ *+' conftest.er1 >conftest.err
18958 rm -f conftest.er1
18959 cat conftest.err >&5
a848cd7e
SC
18960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18961 (exit $ac_status); } &&
c9a66001 18962 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18964 (eval $ac_try) 2>&5
18965 ac_status=$?
18966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18967 (exit $ac_status); }; } &&
18968 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18970 (eval $ac_try) 2>&5
18971 ac_status=$?
18972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18973 (exit $ac_status); }; }; then
18974 ac_cv_type_int=yes
18975else
18976 echo "$as_me: failed program was:" >&5
18977sed 's/^/| /' conftest.$ac_ext >&5
18978
18979ac_cv_type_int=no
18980fi
ac1cb8d3 18981rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18982fi
18983echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
18984echo "${ECHO_T}$ac_cv_type_int" >&6
18985
18986echo "$as_me:$LINENO: checking size of int" >&5
18987echo $ECHO_N "checking size of int... $ECHO_C" >&6
18988if test "${ac_cv_sizeof_int+set}" = set; then
18989 echo $ECHO_N "(cached) $ECHO_C" >&6
18990else
18991 if test "$ac_cv_type_int" = yes; then
18992 # The cast to unsigned long works around a bug in the HP C Compiler
18993 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18994 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18995 # This bug is HP SR number 8606223364.
18996 if test "$cross_compiling" = yes; then
18997 # Depending upon the size, compute the lo and hi bounds.
18998cat >conftest.$ac_ext <<_ACEOF
18999/* confdefs.h. */
19000_ACEOF
19001cat confdefs.h >>conftest.$ac_ext
19002cat >>conftest.$ac_ext <<_ACEOF
19003/* end confdefs.h. */
19004$ac_includes_default
19005int
19006main ()
19007{
19008static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
19009test_array [0] = 0
19010
19011 ;
19012 return 0;
19013}
19014_ACEOF
19015rm -f conftest.$ac_objext
19016if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19017 (eval $ac_compile) 2>conftest.er1
a848cd7e 19018 ac_status=$?
ac1cb8d3
VS
19019 grep -v '^ *+' conftest.er1 >conftest.err
19020 rm -f conftest.er1
19021 cat conftest.err >&5
a848cd7e
SC
19022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19023 (exit $ac_status); } &&
c9a66001 19024 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19026 (eval $ac_try) 2>&5
19027 ac_status=$?
19028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19029 (exit $ac_status); }; } &&
19030 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19032 (eval $ac_try) 2>&5
19033 ac_status=$?
19034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19035 (exit $ac_status); }; }; then
19036 ac_lo=0 ac_mid=0
19037 while :; do
19038 cat >conftest.$ac_ext <<_ACEOF
19039/* confdefs.h. */
19040_ACEOF
19041cat confdefs.h >>conftest.$ac_ext
19042cat >>conftest.$ac_ext <<_ACEOF
19043/* end confdefs.h. */
19044$ac_includes_default
19045int
19046main ()
19047{
19048static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
19049test_array [0] = 0
19050
19051 ;
19052 return 0;
19053}
19054_ACEOF
19055rm -f conftest.$ac_objext
19056if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19057 (eval $ac_compile) 2>conftest.er1
a848cd7e 19058 ac_status=$?
ac1cb8d3
VS
19059 grep -v '^ *+' conftest.er1 >conftest.err
19060 rm -f conftest.er1
19061 cat conftest.err >&5
a848cd7e
SC
19062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19063 (exit $ac_status); } &&
c9a66001 19064 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19066 (eval $ac_try) 2>&5
19067 ac_status=$?
19068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19069 (exit $ac_status); }; } &&
19070 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19072 (eval $ac_try) 2>&5
19073 ac_status=$?
19074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19075 (exit $ac_status); }; }; then
19076 ac_hi=$ac_mid; break
19077else
19078 echo "$as_me: failed program was:" >&5
19079sed 's/^/| /' conftest.$ac_ext >&5
19080
19081ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19082 if test $ac_lo -le $ac_mid; then
19083 ac_lo= ac_hi=
19084 break
19085 fi
19086 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19087fi
ac1cb8d3 19088rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19089 done
19090else
19091 echo "$as_me: failed program was:" >&5
19092sed 's/^/| /' conftest.$ac_ext >&5
19093
19094cat >conftest.$ac_ext <<_ACEOF
19095/* confdefs.h. */
19096_ACEOF
19097cat confdefs.h >>conftest.$ac_ext
19098cat >>conftest.$ac_ext <<_ACEOF
19099/* end confdefs.h. */
19100$ac_includes_default
19101int
19102main ()
19103{
19104static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
19105test_array [0] = 0
19106
19107 ;
19108 return 0;
19109}
19110_ACEOF
19111rm -f conftest.$ac_objext
19112if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19113 (eval $ac_compile) 2>conftest.er1
a848cd7e 19114 ac_status=$?
ac1cb8d3
VS
19115 grep -v '^ *+' conftest.er1 >conftest.err
19116 rm -f conftest.er1
19117 cat conftest.err >&5
a848cd7e
SC
19118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19119 (exit $ac_status); } &&
c9a66001 19120 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19122 (eval $ac_try) 2>&5
19123 ac_status=$?
19124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19125 (exit $ac_status); }; } &&
19126 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19128 (eval $ac_try) 2>&5
19129 ac_status=$?
19130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19131 (exit $ac_status); }; }; then
19132 ac_hi=-1 ac_mid=-1
19133 while :; do
19134 cat >conftest.$ac_ext <<_ACEOF
19135/* confdefs.h. */
19136_ACEOF
19137cat confdefs.h >>conftest.$ac_ext
19138cat >>conftest.$ac_ext <<_ACEOF
19139/* end confdefs.h. */
19140$ac_includes_default
19141int
19142main ()
19143{
19144static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
19145test_array [0] = 0
19146
19147 ;
19148 return 0;
19149}
19150_ACEOF
19151rm -f conftest.$ac_objext
19152if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19153 (eval $ac_compile) 2>conftest.er1
a848cd7e 19154 ac_status=$?
ac1cb8d3
VS
19155 grep -v '^ *+' conftest.er1 >conftest.err
19156 rm -f conftest.er1
19157 cat conftest.err >&5
a848cd7e
SC
19158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19159 (exit $ac_status); } &&
c9a66001 19160 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19162 (eval $ac_try) 2>&5
19163 ac_status=$?
19164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19165 (exit $ac_status); }; } &&
19166 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19168 (eval $ac_try) 2>&5
19169 ac_status=$?
19170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19171 (exit $ac_status); }; }; then
19172 ac_lo=$ac_mid; break
19173else
19174 echo "$as_me: failed program was:" >&5
19175sed 's/^/| /' conftest.$ac_ext >&5
19176
19177ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19178 if test $ac_mid -le $ac_hi; then
19179 ac_lo= ac_hi=
19180 break
19181 fi
19182 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19183fi
ac1cb8d3 19184rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19185 done
19186else
19187 echo "$as_me: failed program was:" >&5
19188sed 's/^/| /' conftest.$ac_ext >&5
19189
19190ac_lo= ac_hi=
19191fi
ac1cb8d3 19192rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19193fi
ac1cb8d3 19194rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19195# Binary search between lo and hi bounds.
19196while test "x$ac_lo" != "x$ac_hi"; do
19197 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19198 cat >conftest.$ac_ext <<_ACEOF
19199/* confdefs.h. */
19200_ACEOF
19201cat confdefs.h >>conftest.$ac_ext
19202cat >>conftest.$ac_ext <<_ACEOF
19203/* end confdefs.h. */
19204$ac_includes_default
19205int
19206main ()
19207{
19208static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
19209test_array [0] = 0
19210
19211 ;
19212 return 0;
19213}
19214_ACEOF
19215rm -f conftest.$ac_objext
19216if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19217 (eval $ac_compile) 2>conftest.er1
a848cd7e 19218 ac_status=$?
ac1cb8d3
VS
19219 grep -v '^ *+' conftest.er1 >conftest.err
19220 rm -f conftest.er1
19221 cat conftest.err >&5
a848cd7e
SC
19222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19223 (exit $ac_status); } &&
c9a66001 19224 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19226 (eval $ac_try) 2>&5
19227 ac_status=$?
19228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19229 (exit $ac_status); }; } &&
19230 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19232 (eval $ac_try) 2>&5
19233 ac_status=$?
19234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19235 (exit $ac_status); }; }; then
19236 ac_hi=$ac_mid
19237else
19238 echo "$as_me: failed program was:" >&5
19239sed 's/^/| /' conftest.$ac_ext >&5
19240
19241ac_lo=`expr '(' $ac_mid ')' + 1`
19242fi
ac1cb8d3 19243rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19244done
19245case $ac_lo in
19246?*) ac_cv_sizeof_int=$ac_lo;;
19247'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
19248See \`config.log' for more details." >&5
19249echo "$as_me: error: cannot compute sizeof (int), 77
19250See \`config.log' for more details." >&2;}
19251 { (exit 1); exit 1; }; } ;;
19252esac
19253else
19254 if test "$cross_compiling" = yes; then
c9a66001
VZ
19255 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19256echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19257 { (exit 1); exit 1; }; }
19258else
19259 cat >conftest.$ac_ext <<_ACEOF
19260/* confdefs.h. */
19261_ACEOF
19262cat confdefs.h >>conftest.$ac_ext
19263cat >>conftest.$ac_ext <<_ACEOF
19264/* end confdefs.h. */
19265$ac_includes_default
19266long longval () { return (long) (sizeof (int)); }
19267unsigned long ulongval () { return (long) (sizeof (int)); }
19268#include <stdio.h>
19269#include <stdlib.h>
19270int
19271main ()
19272{
19273
19274 FILE *f = fopen ("conftest.val", "w");
19275 if (! f)
19276 exit (1);
19277 if (((long) (sizeof (int))) < 0)
19278 {
19279 long i = longval ();
19280 if (i != ((long) (sizeof (int))))
19281 exit (1);
19282 fprintf (f, "%ld\n", i);
19283 }
19284 else
19285 {
19286 unsigned long i = ulongval ();
19287 if (i != ((long) (sizeof (int))))
19288 exit (1);
19289 fprintf (f, "%lu\n", i);
19290 }
19291 exit (ferror (f) || fclose (f) != 0);
19292
19293 ;
19294 return 0;
19295}
19296_ACEOF
19297rm -f conftest$ac_exeext
19298if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19299 (eval $ac_link) 2>&5
19300 ac_status=$?
19301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19302 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19304 (eval $ac_try) 2>&5
19305 ac_status=$?
19306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19307 (exit $ac_status); }; }; then
19308 ac_cv_sizeof_int=`cat conftest.val`
19309else
19310 echo "$as_me: program exited with status $ac_status" >&5
19311echo "$as_me: failed program was:" >&5
19312sed 's/^/| /' conftest.$ac_ext >&5
19313
19314( exit $ac_status )
19315{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
19316See \`config.log' for more details." >&5
19317echo "$as_me: error: cannot compute sizeof (int), 77
19318See \`config.log' for more details." >&2;}
19319 { (exit 1); exit 1; }; }
19320fi
ac1cb8d3 19321rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19322fi
19323fi
19324rm -f conftest.val
19325else
19326 ac_cv_sizeof_int=0
19327fi
19328fi
19329echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
19330echo "${ECHO_T}$ac_cv_sizeof_int" >&6
19331cat >>confdefs.h <<_ACEOF
19332#define SIZEOF_INT $ac_cv_sizeof_int
19333_ACEOF
19334
19335
19336echo "$as_me:$LINENO: checking for long" >&5
19337echo $ECHO_N "checking for long... $ECHO_C" >&6
19338if test "${ac_cv_type_long+set}" = set; then
19339 echo $ECHO_N "(cached) $ECHO_C" >&6
19340else
19341 cat >conftest.$ac_ext <<_ACEOF
19342/* confdefs.h. */
19343_ACEOF
19344cat confdefs.h >>conftest.$ac_ext
19345cat >>conftest.$ac_ext <<_ACEOF
19346/* end confdefs.h. */
19347$ac_includes_default
19348int
19349main ()
19350{
19351if ((long *) 0)
19352 return 0;
19353if (sizeof (long))
19354 return 0;
19355 ;
19356 return 0;
19357}
19358_ACEOF
19359rm -f conftest.$ac_objext
19360if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19361 (eval $ac_compile) 2>conftest.er1
a848cd7e 19362 ac_status=$?
ac1cb8d3
VS
19363 grep -v '^ *+' conftest.er1 >conftest.err
19364 rm -f conftest.er1
19365 cat conftest.err >&5
a848cd7e
SC
19366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367 (exit $ac_status); } &&
c9a66001 19368 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19370 (eval $ac_try) 2>&5
19371 ac_status=$?
19372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19373 (exit $ac_status); }; } &&
19374 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19376 (eval $ac_try) 2>&5
19377 ac_status=$?
19378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19379 (exit $ac_status); }; }; then
19380 ac_cv_type_long=yes
19381else
19382 echo "$as_me: failed program was:" >&5
19383sed 's/^/| /' conftest.$ac_ext >&5
19384
19385ac_cv_type_long=no
19386fi
ac1cb8d3 19387rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19388fi
19389echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
19390echo "${ECHO_T}$ac_cv_type_long" >&6
19391
19392echo "$as_me:$LINENO: checking size of long" >&5
19393echo $ECHO_N "checking size of long... $ECHO_C" >&6
19394if test "${ac_cv_sizeof_long+set}" = set; then
19395 echo $ECHO_N "(cached) $ECHO_C" >&6
19396else
19397 if test "$ac_cv_type_long" = yes; then
19398 # The cast to unsigned long works around a bug in the HP C Compiler
19399 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19400 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19401 # This bug is HP SR number 8606223364.
19402 if test "$cross_compiling" = yes; then
19403 # Depending upon the size, compute the lo and hi bounds.
19404cat >conftest.$ac_ext <<_ACEOF
19405/* confdefs.h. */
19406_ACEOF
19407cat confdefs.h >>conftest.$ac_ext
19408cat >>conftest.$ac_ext <<_ACEOF
19409/* end confdefs.h. */
19410$ac_includes_default
19411int
19412main ()
19413{
19414static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
19415test_array [0] = 0
19416
19417 ;
19418 return 0;
19419}
19420_ACEOF
19421rm -f conftest.$ac_objext
19422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19423 (eval $ac_compile) 2>conftest.er1
a848cd7e 19424 ac_status=$?
ac1cb8d3
VS
19425 grep -v '^ *+' conftest.er1 >conftest.err
19426 rm -f conftest.er1
19427 cat conftest.err >&5
a848cd7e
SC
19428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19429 (exit $ac_status); } &&
c9a66001 19430 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19432 (eval $ac_try) 2>&5
19433 ac_status=$?
19434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19435 (exit $ac_status); }; } &&
19436 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19438 (eval $ac_try) 2>&5
19439 ac_status=$?
19440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441 (exit $ac_status); }; }; then
19442 ac_lo=0 ac_mid=0
19443 while :; do
19444 cat >conftest.$ac_ext <<_ACEOF
19445/* confdefs.h. */
19446_ACEOF
19447cat confdefs.h >>conftest.$ac_ext
19448cat >>conftest.$ac_ext <<_ACEOF
19449/* end confdefs.h. */
19450$ac_includes_default
19451int
19452main ()
19453{
19454static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19455test_array [0] = 0
19456
19457 ;
19458 return 0;
19459}
19460_ACEOF
19461rm -f conftest.$ac_objext
19462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19463 (eval $ac_compile) 2>conftest.er1
a848cd7e 19464 ac_status=$?
ac1cb8d3
VS
19465 grep -v '^ *+' conftest.er1 >conftest.err
19466 rm -f conftest.er1
19467 cat conftest.err >&5
a848cd7e
SC
19468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19469 (exit $ac_status); } &&
c9a66001 19470 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19472 (eval $ac_try) 2>&5
19473 ac_status=$?
19474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19475 (exit $ac_status); }; } &&
19476 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19478 (eval $ac_try) 2>&5
19479 ac_status=$?
19480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19481 (exit $ac_status); }; }; then
19482 ac_hi=$ac_mid; break
19483else
19484 echo "$as_me: failed program was:" >&5
19485sed 's/^/| /' conftest.$ac_ext >&5
19486
19487ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19488 if test $ac_lo -le $ac_mid; then
19489 ac_lo= ac_hi=
19490 break
19491 fi
19492 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19493fi
ac1cb8d3 19494rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19495 done
19496else
19497 echo "$as_me: failed program was:" >&5
19498sed 's/^/| /' conftest.$ac_ext >&5
19499
19500cat >conftest.$ac_ext <<_ACEOF
19501/* confdefs.h. */
19502_ACEOF
19503cat confdefs.h >>conftest.$ac_ext
19504cat >>conftest.$ac_ext <<_ACEOF
19505/* end confdefs.h. */
19506$ac_includes_default
19507int
19508main ()
19509{
19510static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
19511test_array [0] = 0
19512
19513 ;
19514 return 0;
19515}
19516_ACEOF
19517rm -f conftest.$ac_objext
19518if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19519 (eval $ac_compile) 2>conftest.er1
a848cd7e 19520 ac_status=$?
ac1cb8d3
VS
19521 grep -v '^ *+' conftest.er1 >conftest.err
19522 rm -f conftest.er1
19523 cat conftest.err >&5
a848cd7e
SC
19524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19525 (exit $ac_status); } &&
c9a66001 19526 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19528 (eval $ac_try) 2>&5
19529 ac_status=$?
19530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19531 (exit $ac_status); }; } &&
19532 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19534 (eval $ac_try) 2>&5
19535 ac_status=$?
19536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19537 (exit $ac_status); }; }; then
19538 ac_hi=-1 ac_mid=-1
19539 while :; do
19540 cat >conftest.$ac_ext <<_ACEOF
19541/* confdefs.h. */
19542_ACEOF
19543cat confdefs.h >>conftest.$ac_ext
19544cat >>conftest.$ac_ext <<_ACEOF
19545/* end confdefs.h. */
19546$ac_includes_default
19547int
19548main ()
19549{
19550static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
19551test_array [0] = 0
19552
19553 ;
19554 return 0;
19555}
19556_ACEOF
19557rm -f conftest.$ac_objext
19558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19559 (eval $ac_compile) 2>conftest.er1
a848cd7e 19560 ac_status=$?
ac1cb8d3
VS
19561 grep -v '^ *+' conftest.er1 >conftest.err
19562 rm -f conftest.er1
19563 cat conftest.err >&5
a848cd7e
SC
19564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19565 (exit $ac_status); } &&
c9a66001 19566 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19568 (eval $ac_try) 2>&5
19569 ac_status=$?
19570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19571 (exit $ac_status); }; } &&
19572 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19574 (eval $ac_try) 2>&5
19575 ac_status=$?
19576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19577 (exit $ac_status); }; }; then
19578 ac_lo=$ac_mid; break
19579else
19580 echo "$as_me: failed program was:" >&5
19581sed 's/^/| /' conftest.$ac_ext >&5
19582
19583ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19584 if test $ac_mid -le $ac_hi; then
19585 ac_lo= ac_hi=
19586 break
19587 fi
19588 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19589fi
ac1cb8d3 19590rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19591 done
19592else
19593 echo "$as_me: failed program was:" >&5
19594sed 's/^/| /' conftest.$ac_ext >&5
19595
19596ac_lo= ac_hi=
19597fi
ac1cb8d3 19598rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19599fi
ac1cb8d3 19600rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19601# Binary search between lo and hi bounds.
19602while test "x$ac_lo" != "x$ac_hi"; do
19603 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19604 cat >conftest.$ac_ext <<_ACEOF
19605/* confdefs.h. */
19606_ACEOF
19607cat confdefs.h >>conftest.$ac_ext
19608cat >>conftest.$ac_ext <<_ACEOF
19609/* end confdefs.h. */
19610$ac_includes_default
19611int
19612main ()
19613{
19614static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19615test_array [0] = 0
19616
19617 ;
19618 return 0;
19619}
19620_ACEOF
19621rm -f conftest.$ac_objext
19622if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19623 (eval $ac_compile) 2>conftest.er1
a848cd7e 19624 ac_status=$?
ac1cb8d3
VS
19625 grep -v '^ *+' conftest.er1 >conftest.err
19626 rm -f conftest.er1
19627 cat conftest.err >&5
a848cd7e
SC
19628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19629 (exit $ac_status); } &&
c9a66001 19630 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19632 (eval $ac_try) 2>&5
19633 ac_status=$?
19634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19635 (exit $ac_status); }; } &&
19636 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19638 (eval $ac_try) 2>&5
19639 ac_status=$?
19640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641 (exit $ac_status); }; }; then
19642 ac_hi=$ac_mid
19643else
19644 echo "$as_me: failed program was:" >&5
19645sed 's/^/| /' conftest.$ac_ext >&5
19646
19647ac_lo=`expr '(' $ac_mid ')' + 1`
19648fi
ac1cb8d3 19649rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19650done
19651case $ac_lo in
19652?*) ac_cv_sizeof_long=$ac_lo;;
19653'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19654See \`config.log' for more details." >&5
19655echo "$as_me: error: cannot compute sizeof (long), 77
19656See \`config.log' for more details." >&2;}
19657 { (exit 1); exit 1; }; } ;;
19658esac
19659else
19660 if test "$cross_compiling" = yes; then
c9a66001
VZ
19661 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19662echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19663 { (exit 1); exit 1; }; }
19664else
19665 cat >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
19672long longval () { return (long) (sizeof (long)); }
19673unsigned long ulongval () { return (long) (sizeof (long)); }
19674#include <stdio.h>
19675#include <stdlib.h>
19676int
19677main ()
19678{
19679
19680 FILE *f = fopen ("conftest.val", "w");
19681 if (! f)
19682 exit (1);
19683 if (((long) (sizeof (long))) < 0)
19684 {
19685 long i = longval ();
19686 if (i != ((long) (sizeof (long))))
19687 exit (1);
19688 fprintf (f, "%ld\n", i);
19689 }
19690 else
19691 {
19692 unsigned long i = ulongval ();
19693 if (i != ((long) (sizeof (long))))
19694 exit (1);
19695 fprintf (f, "%lu\n", i);
19696 }
19697 exit (ferror (f) || fclose (f) != 0);
19698
19699 ;
19700 return 0;
19701}
19702_ACEOF
19703rm -f conftest$ac_exeext
19704if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19705 (eval $ac_link) 2>&5
19706 ac_status=$?
19707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19708 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19710 (eval $ac_try) 2>&5
19711 ac_status=$?
19712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19713 (exit $ac_status); }; }; then
19714 ac_cv_sizeof_long=`cat conftest.val`
19715else
19716 echo "$as_me: program exited with status $ac_status" >&5
19717echo "$as_me: failed program was:" >&5
19718sed 's/^/| /' conftest.$ac_ext >&5
19719
19720( exit $ac_status )
19721{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19722See \`config.log' for more details." >&5
19723echo "$as_me: error: cannot compute sizeof (long), 77
19724See \`config.log' for more details." >&2;}
19725 { (exit 1); exit 1; }; }
19726fi
ac1cb8d3 19727rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19728fi
19729fi
19730rm -f conftest.val
19731else
19732 ac_cv_sizeof_long=0
19733fi
19734fi
19735echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
19736echo "${ECHO_T}$ac_cv_sizeof_long" >&6
19737cat >>confdefs.h <<_ACEOF
19738#define SIZEOF_LONG $ac_cv_sizeof_long
19739_ACEOF
19740
19741
19742echo "$as_me:$LINENO: checking for size_t" >&5
19743echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19744if test "${ac_cv_type_size_t+set}" = set; then
19745 echo $ECHO_N "(cached) $ECHO_C" >&6
19746else
19747 cat >conftest.$ac_ext <<_ACEOF
19748/* confdefs.h. */
19749_ACEOF
19750cat confdefs.h >>conftest.$ac_ext
19751cat >>conftest.$ac_ext <<_ACEOF
19752/* end confdefs.h. */
19753$ac_includes_default
19754int
19755main ()
19756{
19757if ((size_t *) 0)
19758 return 0;
19759if (sizeof (size_t))
19760 return 0;
19761 ;
19762 return 0;
19763}
19764_ACEOF
19765rm -f conftest.$ac_objext
19766if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19767 (eval $ac_compile) 2>conftest.er1
a848cd7e 19768 ac_status=$?
ac1cb8d3
VS
19769 grep -v '^ *+' conftest.er1 >conftest.err
19770 rm -f conftest.er1
19771 cat conftest.err >&5
a848cd7e
SC
19772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19773 (exit $ac_status); } &&
c9a66001 19774 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19776 (eval $ac_try) 2>&5
19777 ac_status=$?
19778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779 (exit $ac_status); }; } &&
19780 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19782 (eval $ac_try) 2>&5
19783 ac_status=$?
19784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19785 (exit $ac_status); }; }; then
19786 ac_cv_type_size_t=yes
19787else
19788 echo "$as_me: failed program was:" >&5
19789sed 's/^/| /' conftest.$ac_ext >&5
19790
19791ac_cv_type_size_t=no
19792fi
ac1cb8d3 19793rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19794fi
19795echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19796echo "${ECHO_T}$ac_cv_type_size_t" >&6
19797
19798echo "$as_me:$LINENO: checking size of size_t" >&5
19799echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
19800if test "${ac_cv_sizeof_size_t+set}" = set; then
19801 echo $ECHO_N "(cached) $ECHO_C" >&6
19802else
19803 if test "$ac_cv_type_size_t" = yes; then
19804 # The cast to unsigned long works around a bug in the HP C Compiler
19805 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19806 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19807 # This bug is HP SR number 8606223364.
19808 if test "$cross_compiling" = yes; then
19809 # Depending upon the size, compute the lo and hi bounds.
19810cat >conftest.$ac_ext <<_ACEOF
19811/* confdefs.h. */
19812_ACEOF
19813cat confdefs.h >>conftest.$ac_ext
19814cat >>conftest.$ac_ext <<_ACEOF
19815/* end confdefs.h. */
19816$ac_includes_default
19817int
19818main ()
19819{
19820static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
19821test_array [0] = 0
19822
19823 ;
19824 return 0;
19825}
19826_ACEOF
19827rm -f conftest.$ac_objext
19828if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19829 (eval $ac_compile) 2>conftest.er1
a848cd7e 19830 ac_status=$?
ac1cb8d3
VS
19831 grep -v '^ *+' conftest.er1 >conftest.err
19832 rm -f conftest.er1
19833 cat conftest.err >&5
a848cd7e
SC
19834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19835 (exit $ac_status); } &&
c9a66001 19836 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19838 (eval $ac_try) 2>&5
19839 ac_status=$?
19840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19841 (exit $ac_status); }; } &&
19842 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19844 (eval $ac_try) 2>&5
19845 ac_status=$?
19846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19847 (exit $ac_status); }; }; then
19848 ac_lo=0 ac_mid=0
19849 while :; do
19850 cat >conftest.$ac_ext <<_ACEOF
19851/* confdefs.h. */
19852_ACEOF
19853cat confdefs.h >>conftest.$ac_ext
19854cat >>conftest.$ac_ext <<_ACEOF
19855/* end confdefs.h. */
19856$ac_includes_default
19857int
19858main ()
19859{
19860static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
19861test_array [0] = 0
19862
19863 ;
19864 return 0;
19865}
19866_ACEOF
19867rm -f conftest.$ac_objext
19868if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19869 (eval $ac_compile) 2>conftest.er1
a848cd7e 19870 ac_status=$?
ac1cb8d3
VS
19871 grep -v '^ *+' conftest.er1 >conftest.err
19872 rm -f conftest.er1
19873 cat conftest.err >&5
a848cd7e
SC
19874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19875 (exit $ac_status); } &&
c9a66001 19876 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19878 (eval $ac_try) 2>&5
19879 ac_status=$?
19880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19881 (exit $ac_status); }; } &&
19882 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19884 (eval $ac_try) 2>&5
19885 ac_status=$?
19886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887 (exit $ac_status); }; }; then
19888 ac_hi=$ac_mid; break
19889else
19890 echo "$as_me: failed program was:" >&5
19891sed 's/^/| /' conftest.$ac_ext >&5
19892
19893ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19894 if test $ac_lo -le $ac_mid; then
19895 ac_lo= ac_hi=
19896 break
19897 fi
19898 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19899fi
ac1cb8d3 19900rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19901 done
19902else
19903 echo "$as_me: failed program was:" >&5
19904sed 's/^/| /' conftest.$ac_ext >&5
19905
19906cat >conftest.$ac_ext <<_ACEOF
19907/* confdefs.h. */
19908_ACEOF
19909cat confdefs.h >>conftest.$ac_ext
19910cat >>conftest.$ac_ext <<_ACEOF
19911/* end confdefs.h. */
19912$ac_includes_default
19913int
19914main ()
19915{
19916static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
19917test_array [0] = 0
19918
19919 ;
19920 return 0;
19921}
19922_ACEOF
19923rm -f conftest.$ac_objext
19924if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19925 (eval $ac_compile) 2>conftest.er1
a848cd7e 19926 ac_status=$?
ac1cb8d3
VS
19927 grep -v '^ *+' conftest.er1 >conftest.err
19928 rm -f conftest.er1
19929 cat conftest.err >&5
a848cd7e
SC
19930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19931 (exit $ac_status); } &&
c9a66001 19932 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19934 (eval $ac_try) 2>&5
19935 ac_status=$?
19936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19937 (exit $ac_status); }; } &&
19938 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19940 (eval $ac_try) 2>&5
19941 ac_status=$?
19942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943 (exit $ac_status); }; }; then
19944 ac_hi=-1 ac_mid=-1
19945 while :; do
19946 cat >conftest.$ac_ext <<_ACEOF
19947/* confdefs.h. */
19948_ACEOF
19949cat confdefs.h >>conftest.$ac_ext
19950cat >>conftest.$ac_ext <<_ACEOF
19951/* end confdefs.h. */
19952$ac_includes_default
19953int
19954main ()
19955{
19956static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
19957test_array [0] = 0
19958
19959 ;
19960 return 0;
19961}
19962_ACEOF
19963rm -f conftest.$ac_objext
19964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19965 (eval $ac_compile) 2>conftest.er1
a848cd7e 19966 ac_status=$?
ac1cb8d3
VS
19967 grep -v '^ *+' conftest.er1 >conftest.err
19968 rm -f conftest.er1
19969 cat conftest.err >&5
a848cd7e
SC
19970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19971 (exit $ac_status); } &&
c9a66001 19972 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19974 (eval $ac_try) 2>&5
19975 ac_status=$?
19976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19977 (exit $ac_status); }; } &&
19978 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19980 (eval $ac_try) 2>&5
19981 ac_status=$?
19982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19983 (exit $ac_status); }; }; then
19984 ac_lo=$ac_mid; break
19985else
19986 echo "$as_me: failed program was:" >&5
19987sed 's/^/| /' conftest.$ac_ext >&5
19988
19989ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19990 if test $ac_mid -le $ac_hi; then
19991 ac_lo= ac_hi=
19992 break
19993 fi
19994 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19995fi
ac1cb8d3 19996rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19997 done
19998else
19999 echo "$as_me: failed program was:" >&5
20000sed 's/^/| /' conftest.$ac_ext >&5
20001
20002ac_lo= ac_hi=
20003fi
ac1cb8d3 20004rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20005fi
ac1cb8d3 20006rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20007# Binary search between lo and hi bounds.
20008while test "x$ac_lo" != "x$ac_hi"; do
20009 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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{
20020static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
20021test_array [0] = 0
20022
20023 ;
20024 return 0;
20025}
20026_ACEOF
20027rm -f conftest.$ac_objext
20028if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20029 (eval $ac_compile) 2>conftest.er1
a848cd7e 20030 ac_status=$?
ac1cb8d3
VS
20031 grep -v '^ *+' conftest.er1 >conftest.err
20032 rm -f conftest.er1
20033 cat conftest.err >&5
a848cd7e
SC
20034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035 (exit $ac_status); } &&
c9a66001 20036 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20038 (eval $ac_try) 2>&5
20039 ac_status=$?
20040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20041 (exit $ac_status); }; } &&
20042 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20044 (eval $ac_try) 2>&5
20045 ac_status=$?
20046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20047 (exit $ac_status); }; }; then
20048 ac_hi=$ac_mid
20049else
20050 echo "$as_me: failed program was:" >&5
20051sed 's/^/| /' conftest.$ac_ext >&5
20052
20053ac_lo=`expr '(' $ac_mid ')' + 1`
20054fi
ac1cb8d3 20055rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20056done
20057case $ac_lo in
20058?*) ac_cv_sizeof_size_t=$ac_lo;;
20059'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
20060See \`config.log' for more details." >&5
20061echo "$as_me: error: cannot compute sizeof (size_t), 77
20062See \`config.log' for more details." >&2;}
20063 { (exit 1); exit 1; }; } ;;
20064esac
20065else
20066 if test "$cross_compiling" = yes; then
c9a66001
VZ
20067 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20068echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
20069 { (exit 1); exit 1; }; }
20070else
20071 cat >conftest.$ac_ext <<_ACEOF
20072/* confdefs.h. */
20073_ACEOF
20074cat confdefs.h >>conftest.$ac_ext
20075cat >>conftest.$ac_ext <<_ACEOF
20076/* end confdefs.h. */
20077$ac_includes_default
20078long longval () { return (long) (sizeof (size_t)); }
20079unsigned long ulongval () { return (long) (sizeof (size_t)); }
20080#include <stdio.h>
20081#include <stdlib.h>
20082int
20083main ()
20084{
20085
20086 FILE *f = fopen ("conftest.val", "w");
20087 if (! f)
20088 exit (1);
20089 if (((long) (sizeof (size_t))) < 0)
20090 {
20091 long i = longval ();
20092 if (i != ((long) (sizeof (size_t))))
20093 exit (1);
20094 fprintf (f, "%ld\n", i);
20095 }
20096 else
20097 {
20098 unsigned long i = ulongval ();
20099 if (i != ((long) (sizeof (size_t))))
20100 exit (1);
20101 fprintf (f, "%lu\n", i);
20102 }
20103 exit (ferror (f) || fclose (f) != 0);
20104
20105 ;
20106 return 0;
20107}
20108_ACEOF
20109rm -f conftest$ac_exeext
20110if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20111 (eval $ac_link) 2>&5
20112 ac_status=$?
20113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20114 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20116 (eval $ac_try) 2>&5
20117 ac_status=$?
20118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20119 (exit $ac_status); }; }; then
20120 ac_cv_sizeof_size_t=`cat conftest.val`
20121else
20122 echo "$as_me: program exited with status $ac_status" >&5
20123echo "$as_me: failed program was:" >&5
20124sed 's/^/| /' conftest.$ac_ext >&5
20125
20126( exit $ac_status )
20127{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
20128See \`config.log' for more details." >&5
20129echo "$as_me: error: cannot compute sizeof (size_t), 77
20130See \`config.log' for more details." >&2;}
20131 { (exit 1); exit 1; }; }
20132fi
ac1cb8d3 20133rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20134fi
20135fi
20136rm -f conftest.val
20137else
20138 ac_cv_sizeof_size_t=0
20139fi
20140fi
20141echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
20142echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
20143cat >>confdefs.h <<_ACEOF
20144#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
20145_ACEOF
20146
20147
20148
20149case "${host}" in
20150 arm-*-linux* )
20151 echo "$as_me:$LINENO: checking for long long" >&5
20152echo $ECHO_N "checking for long long... $ECHO_C" >&6
20153if test "${ac_cv_type_long_long+set}" = set; then
20154 echo $ECHO_N "(cached) $ECHO_C" >&6
20155else
20156 cat >conftest.$ac_ext <<_ACEOF
20157/* confdefs.h. */
20158_ACEOF
20159cat confdefs.h >>conftest.$ac_ext
20160cat >>conftest.$ac_ext <<_ACEOF
20161/* end confdefs.h. */
20162$ac_includes_default
20163int
20164main ()
20165{
20166if ((long long *) 0)
20167 return 0;
20168if (sizeof (long long))
20169 return 0;
20170 ;
20171 return 0;
20172}
20173_ACEOF
20174rm -f conftest.$ac_objext
20175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20176 (eval $ac_compile) 2>conftest.er1
a848cd7e 20177 ac_status=$?
ac1cb8d3
VS
20178 grep -v '^ *+' conftest.er1 >conftest.err
20179 rm -f conftest.er1
20180 cat conftest.err >&5
a848cd7e
SC
20181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20182 (exit $ac_status); } &&
c9a66001 20183 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20185 (eval $ac_try) 2>&5
20186 ac_status=$?
20187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20188 (exit $ac_status); }; } &&
20189 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20191 (eval $ac_try) 2>&5
20192 ac_status=$?
20193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20194 (exit $ac_status); }; }; then
20195 ac_cv_type_long_long=yes
20196else
20197 echo "$as_me: failed program was:" >&5
20198sed 's/^/| /' conftest.$ac_ext >&5
20199
20200ac_cv_type_long_long=no
20201fi
ac1cb8d3 20202rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20203fi
20204echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20205echo "${ECHO_T}$ac_cv_type_long_long" >&6
20206
20207echo "$as_me:$LINENO: checking size of long long" >&5
20208echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20209if test "${ac_cv_sizeof_long_long+set}" = set; then
20210 echo $ECHO_N "(cached) $ECHO_C" >&6
20211else
20212 if test "$ac_cv_type_long_long" = yes; then
20213 # The cast to unsigned long works around a bug in the HP C Compiler
20214 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20215 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20216 # This bug is HP SR number 8606223364.
20217 if test "$cross_compiling" = yes; then
20218 # Depending upon the size, compute the lo and hi bounds.
20219cat >conftest.$ac_ext <<_ACEOF
20220/* confdefs.h. */
20221_ACEOF
20222cat confdefs.h >>conftest.$ac_ext
20223cat >>conftest.$ac_ext <<_ACEOF
20224/* end confdefs.h. */
20225$ac_includes_default
20226int
20227main ()
20228{
20229static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20230test_array [0] = 0
20231
20232 ;
20233 return 0;
20234}
20235_ACEOF
20236rm -f conftest.$ac_objext
20237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20238 (eval $ac_compile) 2>conftest.er1
a848cd7e 20239 ac_status=$?
ac1cb8d3
VS
20240 grep -v '^ *+' conftest.er1 >conftest.err
20241 rm -f conftest.er1
20242 cat conftest.err >&5
a848cd7e
SC
20243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20244 (exit $ac_status); } &&
c9a66001 20245 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20247 (eval $ac_try) 2>&5
20248 ac_status=$?
20249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20250 (exit $ac_status); }; } &&
20251 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20253 (eval $ac_try) 2>&5
20254 ac_status=$?
20255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20256 (exit $ac_status); }; }; then
20257 ac_lo=0 ac_mid=0
20258 while :; do
20259 cat >conftest.$ac_ext <<_ACEOF
20260/* confdefs.h. */
20261_ACEOF
20262cat confdefs.h >>conftest.$ac_ext
20263cat >>conftest.$ac_ext <<_ACEOF
20264/* end confdefs.h. */
20265$ac_includes_default
20266int
20267main ()
20268{
20269static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20270test_array [0] = 0
20271
20272 ;
20273 return 0;
20274}
20275_ACEOF
20276rm -f conftest.$ac_objext
20277if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20278 (eval $ac_compile) 2>conftest.er1
a848cd7e 20279 ac_status=$?
ac1cb8d3
VS
20280 grep -v '^ *+' conftest.er1 >conftest.err
20281 rm -f conftest.er1
20282 cat conftest.err >&5
a848cd7e
SC
20283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20284 (exit $ac_status); } &&
c9a66001 20285 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20287 (eval $ac_try) 2>&5
20288 ac_status=$?
20289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20290 (exit $ac_status); }; } &&
20291 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20293 (eval $ac_try) 2>&5
20294 ac_status=$?
20295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20296 (exit $ac_status); }; }; then
20297 ac_hi=$ac_mid; break
20298else
20299 echo "$as_me: failed program was:" >&5
20300sed 's/^/| /' conftest.$ac_ext >&5
20301
20302ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
20303 if test $ac_lo -le $ac_mid; then
20304 ac_lo= ac_hi=
20305 break
20306 fi
20307 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20308fi
ac1cb8d3 20309rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20310 done
20311else
20312 echo "$as_me: failed program was:" >&5
20313sed 's/^/| /' conftest.$ac_ext >&5
20314
20315cat >conftest.$ac_ext <<_ACEOF
20316/* confdefs.h. */
20317_ACEOF
20318cat confdefs.h >>conftest.$ac_ext
20319cat >>conftest.$ac_ext <<_ACEOF
20320/* end confdefs.h. */
20321$ac_includes_default
20322int
20323main ()
20324{
20325static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20326test_array [0] = 0
20327
20328 ;
20329 return 0;
20330}
20331_ACEOF
20332rm -f conftest.$ac_objext
20333if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20334 (eval $ac_compile) 2>conftest.er1
a848cd7e 20335 ac_status=$?
ac1cb8d3
VS
20336 grep -v '^ *+' conftest.er1 >conftest.err
20337 rm -f conftest.er1
20338 cat conftest.err >&5
a848cd7e
SC
20339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20340 (exit $ac_status); } &&
c9a66001 20341 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20343 (eval $ac_try) 2>&5
20344 ac_status=$?
20345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20346 (exit $ac_status); }; } &&
20347 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20349 (eval $ac_try) 2>&5
20350 ac_status=$?
20351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20352 (exit $ac_status); }; }; then
20353 ac_hi=-1 ac_mid=-1
20354 while :; do
20355 cat >conftest.$ac_ext <<_ACEOF
20356/* confdefs.h. */
20357_ACEOF
20358cat confdefs.h >>conftest.$ac_ext
20359cat >>conftest.$ac_ext <<_ACEOF
20360/* end confdefs.h. */
20361$ac_includes_default
20362int
20363main ()
20364{
20365static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20366test_array [0] = 0
20367
20368 ;
20369 return 0;
20370}
20371_ACEOF
20372rm -f conftest.$ac_objext
20373if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20374 (eval $ac_compile) 2>conftest.er1
a848cd7e 20375 ac_status=$?
ac1cb8d3
VS
20376 grep -v '^ *+' conftest.er1 >conftest.err
20377 rm -f conftest.er1
20378 cat conftest.err >&5
a848cd7e
SC
20379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20380 (exit $ac_status); } &&
c9a66001 20381 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20383 (eval $ac_try) 2>&5
20384 ac_status=$?
20385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20386 (exit $ac_status); }; } &&
20387 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20389 (eval $ac_try) 2>&5
20390 ac_status=$?
20391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20392 (exit $ac_status); }; }; then
20393 ac_lo=$ac_mid; break
20394else
20395 echo "$as_me: failed program was:" >&5
20396sed 's/^/| /' conftest.$ac_ext >&5
20397
20398ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20399 if test $ac_mid -le $ac_hi; then
20400 ac_lo= ac_hi=
20401 break
20402 fi
20403 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20404fi
ac1cb8d3 20405rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20406 done
20407else
20408 echo "$as_me: failed program was:" >&5
20409sed 's/^/| /' conftest.$ac_ext >&5
20410
20411ac_lo= ac_hi=
20412fi
ac1cb8d3 20413rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20414fi
ac1cb8d3 20415rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20416# Binary search between lo and hi bounds.
20417while test "x$ac_lo" != "x$ac_hi"; do
20418 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20419 cat >conftest.$ac_ext <<_ACEOF
20420/* confdefs.h. */
20421_ACEOF
20422cat confdefs.h >>conftest.$ac_ext
20423cat >>conftest.$ac_ext <<_ACEOF
20424/* end confdefs.h. */
20425$ac_includes_default
20426int
20427main ()
20428{
20429static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20430test_array [0] = 0
20431
20432 ;
20433 return 0;
20434}
20435_ACEOF
20436rm -f conftest.$ac_objext
20437if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20438 (eval $ac_compile) 2>conftest.er1
a848cd7e 20439 ac_status=$?
ac1cb8d3
VS
20440 grep -v '^ *+' conftest.er1 >conftest.err
20441 rm -f conftest.er1
20442 cat conftest.err >&5
a848cd7e
SC
20443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20444 (exit $ac_status); } &&
c9a66001 20445 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20447 (eval $ac_try) 2>&5
20448 ac_status=$?
20449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20450 (exit $ac_status); }; } &&
20451 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20453 (eval $ac_try) 2>&5
20454 ac_status=$?
20455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20456 (exit $ac_status); }; }; then
20457 ac_hi=$ac_mid
20458else
20459 echo "$as_me: failed program was:" >&5
20460sed 's/^/| /' conftest.$ac_ext >&5
20461
20462ac_lo=`expr '(' $ac_mid ')' + 1`
20463fi
ac1cb8d3 20464rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20465done
20466case $ac_lo in
20467?*) ac_cv_sizeof_long_long=$ac_lo;;
20468'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20469See \`config.log' for more details." >&5
20470echo "$as_me: error: cannot compute sizeof (long long), 77
20471See \`config.log' for more details." >&2;}
20472 { (exit 1); exit 1; }; } ;;
20473esac
20474else
20475 if test "$cross_compiling" = yes; then
c9a66001
VZ
20476 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20477echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
20478 { (exit 1); exit 1; }; }
20479else
20480 cat >conftest.$ac_ext <<_ACEOF
20481/* confdefs.h. */
20482_ACEOF
20483cat confdefs.h >>conftest.$ac_ext
20484cat >>conftest.$ac_ext <<_ACEOF
20485/* end confdefs.h. */
20486$ac_includes_default
20487long longval () { return (long) (sizeof (long long)); }
20488unsigned long ulongval () { return (long) (sizeof (long long)); }
20489#include <stdio.h>
20490#include <stdlib.h>
20491int
20492main ()
20493{
20494
20495 FILE *f = fopen ("conftest.val", "w");
20496 if (! f)
20497 exit (1);
20498 if (((long) (sizeof (long long))) < 0)
20499 {
20500 long i = longval ();
20501 if (i != ((long) (sizeof (long long))))
20502 exit (1);
20503 fprintf (f, "%ld\n", i);
20504 }
20505 else
20506 {
20507 unsigned long i = ulongval ();
20508 if (i != ((long) (sizeof (long long))))
20509 exit (1);
20510 fprintf (f, "%lu\n", i);
20511 }
20512 exit (ferror (f) || fclose (f) != 0);
20513
20514 ;
20515 return 0;
20516}
20517_ACEOF
20518rm -f conftest$ac_exeext
20519if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20520 (eval $ac_link) 2>&5
20521 ac_status=$?
20522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20523 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20525 (eval $ac_try) 2>&5
20526 ac_status=$?
20527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20528 (exit $ac_status); }; }; then
20529 ac_cv_sizeof_long_long=`cat conftest.val`
20530else
20531 echo "$as_me: program exited with status $ac_status" >&5
20532echo "$as_me: failed program was:" >&5
20533sed 's/^/| /' conftest.$ac_ext >&5
20534
20535( exit $ac_status )
20536{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20537See \`config.log' for more details." >&5
20538echo "$as_me: error: cannot compute sizeof (long long), 77
20539See \`config.log' for more details." >&2;}
20540 { (exit 1); exit 1; }; }
20541fi
ac1cb8d3 20542rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20543fi
20544fi
20545rm -f conftest.val
20546else
20547 ac_cv_sizeof_long_long=0
20548fi
20549fi
20550echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20551echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20552cat >>confdefs.h <<_ACEOF
20553#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20554_ACEOF
20555
20556
20557 ;;
20558 *-hp-hpux* )
20559 echo "$as_me:$LINENO: checking for long long" >&5
20560echo $ECHO_N "checking for long long... $ECHO_C" >&6
20561if test "${ac_cv_type_long_long+set}" = set; then
20562 echo $ECHO_N "(cached) $ECHO_C" >&6
20563else
20564 cat >conftest.$ac_ext <<_ACEOF
20565/* confdefs.h. */
20566_ACEOF
20567cat confdefs.h >>conftest.$ac_ext
20568cat >>conftest.$ac_ext <<_ACEOF
20569/* end confdefs.h. */
20570$ac_includes_default
20571int
20572main ()
20573{
20574if ((long long *) 0)
20575 return 0;
20576if (sizeof (long long))
20577 return 0;
20578 ;
20579 return 0;
20580}
20581_ACEOF
20582rm -f conftest.$ac_objext
20583if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20584 (eval $ac_compile) 2>conftest.er1
a848cd7e 20585 ac_status=$?
ac1cb8d3
VS
20586 grep -v '^ *+' conftest.er1 >conftest.err
20587 rm -f conftest.er1
20588 cat conftest.err >&5
a848cd7e
SC
20589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20590 (exit $ac_status); } &&
c9a66001 20591 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20593 (eval $ac_try) 2>&5
20594 ac_status=$?
20595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20596 (exit $ac_status); }; } &&
20597 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20599 (eval $ac_try) 2>&5
20600 ac_status=$?
20601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20602 (exit $ac_status); }; }; then
20603 ac_cv_type_long_long=yes
20604else
20605 echo "$as_me: failed program was:" >&5
20606sed 's/^/| /' conftest.$ac_ext >&5
20607
20608ac_cv_type_long_long=no
20609fi
ac1cb8d3 20610rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20611fi
20612echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20613echo "${ECHO_T}$ac_cv_type_long_long" >&6
20614
20615echo "$as_me:$LINENO: checking size of long long" >&5
20616echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20617if test "${ac_cv_sizeof_long_long+set}" = set; then
20618 echo $ECHO_N "(cached) $ECHO_C" >&6
20619else
20620 if test "$ac_cv_type_long_long" = yes; then
20621 # The cast to unsigned long works around a bug in the HP C Compiler
20622 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20623 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20624 # This bug is HP SR number 8606223364.
20625 if test "$cross_compiling" = yes; then
20626 # Depending upon the size, compute the lo and hi bounds.
20627cat >conftest.$ac_ext <<_ACEOF
20628/* confdefs.h. */
20629_ACEOF
20630cat confdefs.h >>conftest.$ac_ext
20631cat >>conftest.$ac_ext <<_ACEOF
20632/* end confdefs.h. */
20633$ac_includes_default
20634int
20635main ()
20636{
20637static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20638test_array [0] = 0
20639
20640 ;
20641 return 0;
20642}
20643_ACEOF
20644rm -f conftest.$ac_objext
20645if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20646 (eval $ac_compile) 2>conftest.er1
a848cd7e 20647 ac_status=$?
ac1cb8d3
VS
20648 grep -v '^ *+' conftest.er1 >conftest.err
20649 rm -f conftest.er1
20650 cat conftest.err >&5
a848cd7e
SC
20651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20652 (exit $ac_status); } &&
c9a66001 20653 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20655 (eval $ac_try) 2>&5
20656 ac_status=$?
20657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20658 (exit $ac_status); }; } &&
20659 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20661 (eval $ac_try) 2>&5
20662 ac_status=$?
20663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20664 (exit $ac_status); }; }; then
20665 ac_lo=0 ac_mid=0
20666 while :; do
20667 cat >conftest.$ac_ext <<_ACEOF
20668/* confdefs.h. */
20669_ACEOF
20670cat confdefs.h >>conftest.$ac_ext
20671cat >>conftest.$ac_ext <<_ACEOF
20672/* end confdefs.h. */
20673$ac_includes_default
20674int
20675main ()
20676{
20677static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20678test_array [0] = 0
20679
20680 ;
20681 return 0;
20682}
20683_ACEOF
20684rm -f conftest.$ac_objext
20685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20686 (eval $ac_compile) 2>conftest.er1
a848cd7e 20687 ac_status=$?
ac1cb8d3
VS
20688 grep -v '^ *+' conftest.er1 >conftest.err
20689 rm -f conftest.er1
20690 cat conftest.err >&5
a848cd7e
SC
20691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20692 (exit $ac_status); } &&
c9a66001 20693 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20695 (eval $ac_try) 2>&5
20696 ac_status=$?
20697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20698 (exit $ac_status); }; } &&
20699 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20701 (eval $ac_try) 2>&5
20702 ac_status=$?
20703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20704 (exit $ac_status); }; }; then
20705 ac_hi=$ac_mid; break
20706else
20707 echo "$as_me: failed program was:" >&5
20708sed 's/^/| /' conftest.$ac_ext >&5
20709
20710ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
20711 if test $ac_lo -le $ac_mid; then
20712 ac_lo= ac_hi=
20713 break
20714 fi
20715 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20716fi
ac1cb8d3 20717rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20718 done
20719else
20720 echo "$as_me: failed program was:" >&5
20721sed 's/^/| /' conftest.$ac_ext >&5
20722
20723cat >conftest.$ac_ext <<_ACEOF
20724/* confdefs.h. */
20725_ACEOF
20726cat confdefs.h >>conftest.$ac_ext
20727cat >>conftest.$ac_ext <<_ACEOF
20728/* end confdefs.h. */
20729$ac_includes_default
20730int
20731main ()
20732{
20733static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20734test_array [0] = 0
20735
20736 ;
20737 return 0;
20738}
20739_ACEOF
20740rm -f conftest.$ac_objext
20741if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20742 (eval $ac_compile) 2>conftest.er1
a848cd7e 20743 ac_status=$?
ac1cb8d3
VS
20744 grep -v '^ *+' conftest.er1 >conftest.err
20745 rm -f conftest.er1
20746 cat conftest.err >&5
a848cd7e
SC
20747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20748 (exit $ac_status); } &&
c9a66001 20749 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20751 (eval $ac_try) 2>&5
20752 ac_status=$?
20753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20754 (exit $ac_status); }; } &&
20755 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20757 (eval $ac_try) 2>&5
20758 ac_status=$?
20759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20760 (exit $ac_status); }; }; then
20761 ac_hi=-1 ac_mid=-1
20762 while :; do
20763 cat >conftest.$ac_ext <<_ACEOF
20764/* confdefs.h. */
20765_ACEOF
20766cat confdefs.h >>conftest.$ac_ext
20767cat >>conftest.$ac_ext <<_ACEOF
20768/* end confdefs.h. */
20769$ac_includes_default
20770int
20771main ()
20772{
20773static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20774test_array [0] = 0
20775
20776 ;
20777 return 0;
20778}
20779_ACEOF
20780rm -f conftest.$ac_objext
20781if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20782 (eval $ac_compile) 2>conftest.er1
a848cd7e 20783 ac_status=$?
ac1cb8d3
VS
20784 grep -v '^ *+' conftest.er1 >conftest.err
20785 rm -f conftest.er1
20786 cat conftest.err >&5
a848cd7e
SC
20787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20788 (exit $ac_status); } &&
c9a66001 20789 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20791 (eval $ac_try) 2>&5
20792 ac_status=$?
20793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20794 (exit $ac_status); }; } &&
20795 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20797 (eval $ac_try) 2>&5
20798 ac_status=$?
20799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20800 (exit $ac_status); }; }; then
20801 ac_lo=$ac_mid; break
20802else
20803 echo "$as_me: failed program was:" >&5
20804sed 's/^/| /' conftest.$ac_ext >&5
20805
20806ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20807 if test $ac_mid -le $ac_hi; then
20808 ac_lo= ac_hi=
20809 break
20810 fi
20811 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20812fi
ac1cb8d3 20813rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20814 done
20815else
20816 echo "$as_me: failed program was:" >&5
20817sed 's/^/| /' conftest.$ac_ext >&5
20818
20819ac_lo= ac_hi=
20820fi
ac1cb8d3 20821rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20822fi
ac1cb8d3 20823rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20824# Binary search between lo and hi bounds.
20825while test "x$ac_lo" != "x$ac_hi"; do
20826 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20827 cat >conftest.$ac_ext <<_ACEOF
20828/* confdefs.h. */
20829_ACEOF
20830cat confdefs.h >>conftest.$ac_ext
20831cat >>conftest.$ac_ext <<_ACEOF
20832/* end confdefs.h. */
20833$ac_includes_default
20834int
20835main ()
20836{
20837static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20838test_array [0] = 0
20839
20840 ;
20841 return 0;
20842}
20843_ACEOF
20844rm -f conftest.$ac_objext
20845if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20846 (eval $ac_compile) 2>conftest.er1
a848cd7e 20847 ac_status=$?
ac1cb8d3
VS
20848 grep -v '^ *+' conftest.er1 >conftest.err
20849 rm -f conftest.er1
20850 cat conftest.err >&5
a848cd7e
SC
20851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20852 (exit $ac_status); } &&
c9a66001 20853 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20855 (eval $ac_try) 2>&5
20856 ac_status=$?
20857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20858 (exit $ac_status); }; } &&
20859 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20861 (eval $ac_try) 2>&5
20862 ac_status=$?
20863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20864 (exit $ac_status); }; }; then
20865 ac_hi=$ac_mid
20866else
20867 echo "$as_me: failed program was:" >&5
20868sed 's/^/| /' conftest.$ac_ext >&5
20869
20870ac_lo=`expr '(' $ac_mid ')' + 1`
20871fi
ac1cb8d3 20872rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20873done
20874case $ac_lo in
20875?*) ac_cv_sizeof_long_long=$ac_lo;;
20876'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20877See \`config.log' for more details." >&5
20878echo "$as_me: error: cannot compute sizeof (long long), 77
20879See \`config.log' for more details." >&2;}
20880 { (exit 1); exit 1; }; } ;;
20881esac
20882else
20883 if test "$cross_compiling" = yes; then
c9a66001
VZ
20884 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20885echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
20886 { (exit 1); exit 1; }; }
20887else
20888 cat >conftest.$ac_ext <<_ACEOF
20889/* confdefs.h. */
20890_ACEOF
20891cat confdefs.h >>conftest.$ac_ext
20892cat >>conftest.$ac_ext <<_ACEOF
20893/* end confdefs.h. */
20894$ac_includes_default
20895long longval () { return (long) (sizeof (long long)); }
20896unsigned long ulongval () { return (long) (sizeof (long long)); }
20897#include <stdio.h>
20898#include <stdlib.h>
20899int
20900main ()
20901{
20902
20903 FILE *f = fopen ("conftest.val", "w");
20904 if (! f)
20905 exit (1);
20906 if (((long) (sizeof (long long))) < 0)
20907 {
20908 long i = longval ();
20909 if (i != ((long) (sizeof (long long))))
20910 exit (1);
20911 fprintf (f, "%ld\n", i);
20912 }
20913 else
20914 {
20915 unsigned long i = ulongval ();
20916 if (i != ((long) (sizeof (long long))))
20917 exit (1);
20918 fprintf (f, "%lu\n", i);
20919 }
20920 exit (ferror (f) || fclose (f) != 0);
20921
20922 ;
20923 return 0;
20924}
20925_ACEOF
20926rm -f conftest$ac_exeext
20927if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20928 (eval $ac_link) 2>&5
20929 ac_status=$?
20930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20931 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20933 (eval $ac_try) 2>&5
20934 ac_status=$?
20935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20936 (exit $ac_status); }; }; then
20937 ac_cv_sizeof_long_long=`cat conftest.val`
20938else
20939 echo "$as_me: program exited with status $ac_status" >&5
20940echo "$as_me: failed program was:" >&5
20941sed 's/^/| /' conftest.$ac_ext >&5
20942
20943( exit $ac_status )
20944{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20945See \`config.log' for more details." >&5
20946echo "$as_me: error: cannot compute sizeof (long long), 77
20947See \`config.log' for more details." >&2;}
20948 { (exit 1); exit 1; }; }
20949fi
ac1cb8d3 20950rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20951fi
20952fi
20953rm -f conftest.val
20954else
20955 ac_cv_sizeof_long_long=0
20956fi
20957fi
20958echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20959echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20960cat >>confdefs.h <<_ACEOF
20961#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20962_ACEOF
20963
20964
20965 if test "$ac_cv_sizeof_long_long" != "0"; then
c92ad099 20966 CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
a848cd7e
SC
20967 fi
20968 ;;
20969 * )
20970 echo "$as_me:$LINENO: checking for long long" >&5
20971echo $ECHO_N "checking for long long... $ECHO_C" >&6
20972if test "${ac_cv_type_long_long+set}" = set; then
20973 echo $ECHO_N "(cached) $ECHO_C" >&6
20974else
20975 cat >conftest.$ac_ext <<_ACEOF
20976/* confdefs.h. */
20977_ACEOF
20978cat confdefs.h >>conftest.$ac_ext
20979cat >>conftest.$ac_ext <<_ACEOF
20980/* end confdefs.h. */
20981$ac_includes_default
20982int
20983main ()
20984{
20985if ((long long *) 0)
20986 return 0;
20987if (sizeof (long long))
20988 return 0;
20989 ;
20990 return 0;
20991}
20992_ACEOF
20993rm -f conftest.$ac_objext
20994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20995 (eval $ac_compile) 2>conftest.er1
a848cd7e 20996 ac_status=$?
ac1cb8d3
VS
20997 grep -v '^ *+' conftest.er1 >conftest.err
20998 rm -f conftest.er1
20999 cat conftest.err >&5
a848cd7e
SC
21000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21001 (exit $ac_status); } &&
c9a66001 21002 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21004 (eval $ac_try) 2>&5
21005 ac_status=$?
21006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21007 (exit $ac_status); }; } &&
21008 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21010 (eval $ac_try) 2>&5
21011 ac_status=$?
21012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21013 (exit $ac_status); }; }; then
21014 ac_cv_type_long_long=yes
21015else
21016 echo "$as_me: failed program was:" >&5
21017sed 's/^/| /' conftest.$ac_ext >&5
21018
21019ac_cv_type_long_long=no
21020fi
ac1cb8d3 21021rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21022fi
21023echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
21024echo "${ECHO_T}$ac_cv_type_long_long" >&6
21025
21026echo "$as_me:$LINENO: checking size of long long" >&5
21027echo $ECHO_N "checking size of long long... $ECHO_C" >&6
21028if test "${ac_cv_sizeof_long_long+set}" = set; then
21029 echo $ECHO_N "(cached) $ECHO_C" >&6
21030else
21031 if test "$ac_cv_type_long_long" = yes; then
21032 # The cast to unsigned long works around a bug in the HP C Compiler
21033 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21034 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21035 # This bug is HP SR number 8606223364.
21036 if test "$cross_compiling" = yes; then
21037 # Depending upon the size, compute the lo and hi bounds.
21038cat >conftest.$ac_ext <<_ACEOF
21039/* confdefs.h. */
21040_ACEOF
21041cat confdefs.h >>conftest.$ac_ext
21042cat >>conftest.$ac_ext <<_ACEOF
21043/* end confdefs.h. */
21044$ac_includes_default
21045int
21046main ()
21047{
21048static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
21049test_array [0] = 0
21050
21051 ;
21052 return 0;
21053}
21054_ACEOF
21055rm -f conftest.$ac_objext
21056if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21057 (eval $ac_compile) 2>conftest.er1
a848cd7e 21058 ac_status=$?
ac1cb8d3
VS
21059 grep -v '^ *+' conftest.er1 >conftest.err
21060 rm -f conftest.er1
21061 cat conftest.err >&5
a848cd7e
SC
21062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21063 (exit $ac_status); } &&
c9a66001 21064 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21066 (eval $ac_try) 2>&5
21067 ac_status=$?
21068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21069 (exit $ac_status); }; } &&
21070 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21072 (eval $ac_try) 2>&5
21073 ac_status=$?
21074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21075 (exit $ac_status); }; }; then
21076 ac_lo=0 ac_mid=0
21077 while :; do
21078 cat >conftest.$ac_ext <<_ACEOF
21079/* confdefs.h. */
21080_ACEOF
21081cat confdefs.h >>conftest.$ac_ext
21082cat >>conftest.$ac_ext <<_ACEOF
21083/* end confdefs.h. */
21084$ac_includes_default
21085int
21086main ()
21087{
21088static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21089test_array [0] = 0
21090
21091 ;
21092 return 0;
21093}
21094_ACEOF
21095rm -f conftest.$ac_objext
21096if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21097 (eval $ac_compile) 2>conftest.er1
a848cd7e 21098 ac_status=$?
ac1cb8d3
VS
21099 grep -v '^ *+' conftest.er1 >conftest.err
21100 rm -f conftest.er1
21101 cat conftest.err >&5
a848cd7e
SC
21102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21103 (exit $ac_status); } &&
c9a66001 21104 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21106 (eval $ac_try) 2>&5
21107 ac_status=$?
21108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21109 (exit $ac_status); }; } &&
21110 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21112 (eval $ac_try) 2>&5
21113 ac_status=$?
21114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21115 (exit $ac_status); }; }; then
21116 ac_hi=$ac_mid; break
21117else
21118 echo "$as_me: failed program was:" >&5
21119sed 's/^/| /' conftest.$ac_ext >&5
21120
21121ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
21122 if test $ac_lo -le $ac_mid; then
21123 ac_lo= ac_hi=
21124 break
21125 fi
21126 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 21127fi
ac1cb8d3 21128rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21129 done
21130else
21131 echo "$as_me: failed program was:" >&5
21132sed 's/^/| /' conftest.$ac_ext >&5
21133
21134cat >conftest.$ac_ext <<_ACEOF
21135/* confdefs.h. */
21136_ACEOF
21137cat confdefs.h >>conftest.$ac_ext
21138cat >>conftest.$ac_ext <<_ACEOF
21139/* end confdefs.h. */
21140$ac_includes_default
21141int
21142main ()
21143{
21144static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
21145test_array [0] = 0
21146
21147 ;
21148 return 0;
21149}
21150_ACEOF
21151rm -f conftest.$ac_objext
21152if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21153 (eval $ac_compile) 2>conftest.er1
a848cd7e 21154 ac_status=$?
ac1cb8d3
VS
21155 grep -v '^ *+' conftest.er1 >conftest.err
21156 rm -f conftest.er1
21157 cat conftest.err >&5
a848cd7e
SC
21158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21159 (exit $ac_status); } &&
c9a66001 21160 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21162 (eval $ac_try) 2>&5
21163 ac_status=$?
21164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21165 (exit $ac_status); }; } &&
21166 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21168 (eval $ac_try) 2>&5
21169 ac_status=$?
21170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21171 (exit $ac_status); }; }; then
21172 ac_hi=-1 ac_mid=-1
21173 while :; do
21174 cat >conftest.$ac_ext <<_ACEOF
21175/* confdefs.h. */
21176_ACEOF
21177cat confdefs.h >>conftest.$ac_ext
21178cat >>conftest.$ac_ext <<_ACEOF
21179/* end confdefs.h. */
21180$ac_includes_default
21181int
21182main ()
21183{
21184static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
21185test_array [0] = 0
21186
21187 ;
21188 return 0;
21189}
21190_ACEOF
21191rm -f conftest.$ac_objext
21192if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21193 (eval $ac_compile) 2>conftest.er1
a848cd7e 21194 ac_status=$?
ac1cb8d3
VS
21195 grep -v '^ *+' conftest.er1 >conftest.err
21196 rm -f conftest.er1
21197 cat conftest.err >&5
a848cd7e
SC
21198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21199 (exit $ac_status); } &&
c9a66001 21200 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21202 (eval $ac_try) 2>&5
21203 ac_status=$?
21204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21205 (exit $ac_status); }; } &&
21206 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21208 (eval $ac_try) 2>&5
21209 ac_status=$?
21210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21211 (exit $ac_status); }; }; then
21212 ac_lo=$ac_mid; break
21213else
21214 echo "$as_me: failed program was:" >&5
21215sed 's/^/| /' conftest.$ac_ext >&5
21216
21217ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
21218 if test $ac_mid -le $ac_hi; then
21219 ac_lo= ac_hi=
21220 break
21221 fi
21222 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 21223fi
ac1cb8d3 21224rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21225 done
21226else
21227 echo "$as_me: failed program was:" >&5
21228sed 's/^/| /' conftest.$ac_ext >&5
21229
21230ac_lo= ac_hi=
21231fi
ac1cb8d3 21232rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 21233fi
ac1cb8d3 21234rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21235# Binary search between lo and hi bounds.
21236while test "x$ac_lo" != "x$ac_hi"; do
21237 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21238 cat >conftest.$ac_ext <<_ACEOF
21239/* confdefs.h. */
21240_ACEOF
21241cat confdefs.h >>conftest.$ac_ext
21242cat >>conftest.$ac_ext <<_ACEOF
21243/* end confdefs.h. */
21244$ac_includes_default
21245int
21246main ()
21247{
21248static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21249test_array [0] = 0
21250
21251 ;
21252 return 0;
21253}
21254_ACEOF
21255rm -f conftest.$ac_objext
21256if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21257 (eval $ac_compile) 2>conftest.er1
a848cd7e 21258 ac_status=$?
ac1cb8d3
VS
21259 grep -v '^ *+' conftest.er1 >conftest.err
21260 rm -f conftest.er1
21261 cat conftest.err >&5
a848cd7e
SC
21262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21263 (exit $ac_status); } &&
c9a66001 21264 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21266 (eval $ac_try) 2>&5
21267 ac_status=$?
21268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21269 (exit $ac_status); }; } &&
21270 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21272 (eval $ac_try) 2>&5
21273 ac_status=$?
21274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21275 (exit $ac_status); }; }; then
21276 ac_hi=$ac_mid
21277else
21278 echo "$as_me: failed program was:" >&5
21279sed 's/^/| /' conftest.$ac_ext >&5
21280
21281ac_lo=`expr '(' $ac_mid ')' + 1`
21282fi
ac1cb8d3 21283rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21284done
21285case $ac_lo in
21286?*) ac_cv_sizeof_long_long=$ac_lo;;
21287'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21288See \`config.log' for more details." >&5
21289echo "$as_me: error: cannot compute sizeof (long long), 77
21290See \`config.log' for more details." >&2;}
21291 { (exit 1); exit 1; }; } ;;
21292esac
21293else
21294 if test "$cross_compiling" = yes; then
c9a66001
VZ
21295 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
21296echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
21297 { (exit 1); exit 1; }; }
21298else
21299 cat >conftest.$ac_ext <<_ACEOF
21300/* confdefs.h. */
21301_ACEOF
21302cat confdefs.h >>conftest.$ac_ext
21303cat >>conftest.$ac_ext <<_ACEOF
21304/* end confdefs.h. */
21305$ac_includes_default
21306long longval () { return (long) (sizeof (long long)); }
21307unsigned long ulongval () { return (long) (sizeof (long long)); }
21308#include <stdio.h>
21309#include <stdlib.h>
21310int
21311main ()
21312{
21313
21314 FILE *f = fopen ("conftest.val", "w");
21315 if (! f)
21316 exit (1);
21317 if (((long) (sizeof (long long))) < 0)
21318 {
21319 long i = longval ();
21320 if (i != ((long) (sizeof (long long))))
21321 exit (1);
21322 fprintf (f, "%ld\n", i);
21323 }
21324 else
21325 {
21326 unsigned long i = ulongval ();
21327 if (i != ((long) (sizeof (long long))))
21328 exit (1);
21329 fprintf (f, "%lu\n", i);
21330 }
21331 exit (ferror (f) || fclose (f) != 0);
21332
21333 ;
21334 return 0;
21335}
21336_ACEOF
21337rm -f conftest$ac_exeext
21338if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21339 (eval $ac_link) 2>&5
21340 ac_status=$?
21341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21342 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21344 (eval $ac_try) 2>&5
21345 ac_status=$?
21346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21347 (exit $ac_status); }; }; then
21348 ac_cv_sizeof_long_long=`cat conftest.val`
21349else
21350 echo "$as_me: program exited with status $ac_status" >&5
21351echo "$as_me: failed program was:" >&5
21352sed 's/^/| /' conftest.$ac_ext >&5
21353
21354( exit $ac_status )
21355{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21356See \`config.log' for more details." >&5
21357echo "$as_me: error: cannot compute sizeof (long long), 77
21358See \`config.log' for more details." >&2;}
21359 { (exit 1); exit 1; }; }
21360fi
ac1cb8d3 21361rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21362fi
21363fi
21364rm -f conftest.val
21365else
21366 ac_cv_sizeof_long_long=0
21367fi
21368fi
21369echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
21370echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
21371cat >>confdefs.h <<_ACEOF
21372#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21373_ACEOF
21374
21375
21376esac
21377
238ecede
MW
21378echo "$as_me:$LINENO: checking for wchar_t" >&5
21379echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
21380if test "${ac_cv_type_wchar_t+set}" = set; then
21381 echo $ECHO_N "(cached) $ECHO_C" >&6
21382else
21383 cat >conftest.$ac_ext <<_ACEOF
21384/* confdefs.h. */
21385_ACEOF
21386cat confdefs.h >>conftest.$ac_ext
21387cat >>conftest.$ac_ext <<_ACEOF
21388/* end confdefs.h. */
21389
83d8eb47
MW
21390 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21391 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21392 # error "fake wchar_t"
21393 #endif
21394 #ifdef HAVE_WCHAR_H
21395 # ifdef __CYGWIN__
21396 # include <stddef.h>
21397 # endif
21398 # include <wchar.h>
21399 #endif
21400 #ifdef HAVE_STDLIB_H
21401 # include <stdlib.h>
21402 #endif
21403 #include <stdio.h>
21404
21405
21406
21407int
21408main ()
21409{
21410if ((wchar_t *) 0)
21411 return 0;
21412if (sizeof (wchar_t))
21413 return 0;
21414 ;
21415 return 0;
21416}
21417_ACEOF
21418rm -f conftest.$ac_objext
21419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21420 (eval $ac_compile) 2>conftest.er1
21421 ac_status=$?
21422 grep -v '^ *+' conftest.er1 >conftest.err
21423 rm -f conftest.er1
21424 cat conftest.err >&5
21425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21426 (exit $ac_status); } &&
c9a66001 21427 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21429 (eval $ac_try) 2>&5
21430 ac_status=$?
21431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21432 (exit $ac_status); }; } &&
21433 { ac_try='test -s conftest.$ac_objext'
21434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21435 (eval $ac_try) 2>&5
21436 ac_status=$?
21437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21438 (exit $ac_status); }; }; then
21439 ac_cv_type_wchar_t=yes
21440else
21441 echo "$as_me: failed program was:" >&5
21442sed 's/^/| /' conftest.$ac_ext >&5
21443
21444ac_cv_type_wchar_t=no
21445fi
21446rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21447fi
21448echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
21449echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
21450
a848cd7e
SC
21451echo "$as_me:$LINENO: checking size of wchar_t" >&5
21452echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
238ecede 21453if test "${ac_cv_sizeof_wchar_t+set}" = set; then
a848cd7e
SC
21454 echo $ECHO_N "(cached) $ECHO_C" >&6
21455else
238ecede
MW
21456 if test "$ac_cv_type_wchar_t" = yes; then
21457 # The cast to unsigned long works around a bug in the HP C Compiler
21458 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21459 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21460 # This bug is HP SR number 8606223364.
21461 if test "$cross_compiling" = yes; then
21462 # Depending upon the size, compute the lo and hi bounds.
21463cat >conftest.$ac_ext <<_ACEOF
21464/* confdefs.h. */
21465_ACEOF
21466cat confdefs.h >>conftest.$ac_ext
21467cat >>conftest.$ac_ext <<_ACEOF
21468/* end confdefs.h. */
21469
83d8eb47
MW
21470 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21471 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21472 # error "fake wchar_t"
21473 #endif
21474 #ifdef HAVE_WCHAR_H
21475 # ifdef __CYGWIN__
21476 # include <stddef.h>
21477 # endif
21478 # include <wchar.h>
21479 #endif
21480 #ifdef HAVE_STDLIB_H
21481 # include <stdlib.h>
21482 #endif
21483 #include <stdio.h>
21484
21485
21486
21487int
21488main ()
21489{
21490static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
21491test_array [0] = 0
21492
21493 ;
21494 return 0;
21495}
21496_ACEOF
21497rm -f conftest.$ac_objext
21498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21499 (eval $ac_compile) 2>conftest.er1
21500 ac_status=$?
21501 grep -v '^ *+' conftest.er1 >conftest.err
21502 rm -f conftest.er1
21503 cat conftest.err >&5
21504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21505 (exit $ac_status); } &&
c9a66001 21506 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21508 (eval $ac_try) 2>&5
21509 ac_status=$?
21510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21511 (exit $ac_status); }; } &&
21512 { ac_try='test -s conftest.$ac_objext'
21513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21514 (eval $ac_try) 2>&5
21515 ac_status=$?
21516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21517 (exit $ac_status); }; }; then
21518 ac_lo=0 ac_mid=0
21519 while :; do
21520 cat >conftest.$ac_ext <<_ACEOF
21521/* confdefs.h. */
21522_ACEOF
21523cat confdefs.h >>conftest.$ac_ext
21524cat >>conftest.$ac_ext <<_ACEOF
21525/* end confdefs.h. */
21526
83d8eb47
MW
21527 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21528 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21529 # error "fake wchar_t"
21530 #endif
21531 #ifdef HAVE_WCHAR_H
21532 # ifdef __CYGWIN__
21533 # include <stddef.h>
21534 # endif
21535 # include <wchar.h>
21536 #endif
21537 #ifdef HAVE_STDLIB_H
21538 # include <stdlib.h>
21539 #endif
21540 #include <stdio.h>
21541
21542
21543
21544int
21545main ()
21546{
21547static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
21548test_array [0] = 0
21549
21550 ;
21551 return 0;
21552}
21553_ACEOF
21554rm -f conftest.$ac_objext
21555if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21556 (eval $ac_compile) 2>conftest.er1
21557 ac_status=$?
21558 grep -v '^ *+' conftest.er1 >conftest.err
21559 rm -f conftest.er1
21560 cat conftest.err >&5
21561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21562 (exit $ac_status); } &&
c9a66001 21563 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21565 (eval $ac_try) 2>&5
21566 ac_status=$?
21567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21568 (exit $ac_status); }; } &&
21569 { ac_try='test -s conftest.$ac_objext'
21570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21571 (eval $ac_try) 2>&5
21572 ac_status=$?
21573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21574 (exit $ac_status); }; }; then
21575 ac_hi=$ac_mid; break
21576else
21577 echo "$as_me: failed program was:" >&5
21578sed 's/^/| /' conftest.$ac_ext >&5
21579
21580ac_lo=`expr $ac_mid + 1`
21581 if test $ac_lo -le $ac_mid; then
21582 ac_lo= ac_hi=
21583 break
21584 fi
21585 ac_mid=`expr 2 '*' $ac_mid + 1`
21586fi
21587rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21588 done
21589else
21590 echo "$as_me: failed program was:" >&5
21591sed 's/^/| /' conftest.$ac_ext >&5
21592
21593cat >conftest.$ac_ext <<_ACEOF
21594/* confdefs.h. */
21595_ACEOF
21596cat confdefs.h >>conftest.$ac_ext
21597cat >>conftest.$ac_ext <<_ACEOF
21598/* end confdefs.h. */
21599
83d8eb47
MW
21600 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21601 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21602 # error "fake wchar_t"
21603 #endif
21604 #ifdef HAVE_WCHAR_H
21605 # ifdef __CYGWIN__
21606 # include <stddef.h>
21607 # endif
21608 # include <wchar.h>
21609 #endif
21610 #ifdef HAVE_STDLIB_H
21611 # include <stdlib.h>
21612 #endif
21613 #include <stdio.h>
21614
21615
21616
21617int
21618main ()
21619{
21620static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
21621test_array [0] = 0
21622
21623 ;
21624 return 0;
21625}
21626_ACEOF
21627rm -f conftest.$ac_objext
21628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21629 (eval $ac_compile) 2>conftest.er1
21630 ac_status=$?
21631 grep -v '^ *+' conftest.er1 >conftest.err
21632 rm -f conftest.er1
21633 cat conftest.err >&5
21634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21635 (exit $ac_status); } &&
c9a66001 21636 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21638 (eval $ac_try) 2>&5
21639 ac_status=$?
21640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21641 (exit $ac_status); }; } &&
21642 { ac_try='test -s conftest.$ac_objext'
21643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21644 (eval $ac_try) 2>&5
21645 ac_status=$?
21646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21647 (exit $ac_status); }; }; then
21648 ac_hi=-1 ac_mid=-1
21649 while :; do
21650 cat >conftest.$ac_ext <<_ACEOF
21651/* confdefs.h. */
21652_ACEOF
21653cat confdefs.h >>conftest.$ac_ext
21654cat >>conftest.$ac_ext <<_ACEOF
21655/* end confdefs.h. */
21656
83d8eb47
MW
21657 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21658 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21659 # error "fake wchar_t"
21660 #endif
21661 #ifdef HAVE_WCHAR_H
21662 # ifdef __CYGWIN__
21663 # include <stddef.h>
21664 # endif
21665 # include <wchar.h>
21666 #endif
21667 #ifdef HAVE_STDLIB_H
21668 # include <stdlib.h>
21669 #endif
21670 #include <stdio.h>
21671
21672
21673
21674int
21675main ()
21676{
21677static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
21678test_array [0] = 0
21679
21680 ;
21681 return 0;
21682}
21683_ACEOF
21684rm -f conftest.$ac_objext
21685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21686 (eval $ac_compile) 2>conftest.er1
21687 ac_status=$?
21688 grep -v '^ *+' conftest.er1 >conftest.err
21689 rm -f conftest.er1
21690 cat conftest.err >&5
21691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21692 (exit $ac_status); } &&
c9a66001 21693 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21695 (eval $ac_try) 2>&5
21696 ac_status=$?
21697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21698 (exit $ac_status); }; } &&
21699 { ac_try='test -s conftest.$ac_objext'
21700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21701 (eval $ac_try) 2>&5
21702 ac_status=$?
21703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21704 (exit $ac_status); }; }; then
21705 ac_lo=$ac_mid; break
21706else
21707 echo "$as_me: failed program was:" >&5
21708sed 's/^/| /' conftest.$ac_ext >&5
21709
21710ac_hi=`expr '(' $ac_mid ')' - 1`
21711 if test $ac_mid -le $ac_hi; then
21712 ac_lo= ac_hi=
21713 break
21714 fi
21715 ac_mid=`expr 2 '*' $ac_mid`
21716fi
21717rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21718 done
21719else
21720 echo "$as_me: failed program was:" >&5
21721sed 's/^/| /' conftest.$ac_ext >&5
21722
21723ac_lo= ac_hi=
21724fi
21725rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21726fi
21727rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21728# Binary search between lo and hi bounds.
21729while test "x$ac_lo" != "x$ac_hi"; do
21730 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21731 cat >conftest.$ac_ext <<_ACEOF
21732/* confdefs.h. */
21733_ACEOF
21734cat confdefs.h >>conftest.$ac_ext
21735cat >>conftest.$ac_ext <<_ACEOF
21736/* end confdefs.h. */
21737
83d8eb47
MW
21738 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21739 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21740 # error "fake wchar_t"
21741 #endif
21742 #ifdef HAVE_WCHAR_H
21743 # ifdef __CYGWIN__
21744 # include <stddef.h>
21745 # endif
21746 # include <wchar.h>
21747 #endif
21748 #ifdef HAVE_STDLIB_H
21749 # include <stdlib.h>
21750 #endif
21751 #include <stdio.h>
a848cd7e 21752
a848cd7e 21753
a848cd7e 21754
238ecede
MW
21755int
21756main ()
21757{
21758static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
21759test_array [0] = 0
a848cd7e 21760
238ecede
MW
21761 ;
21762 return 0;
21763}
21764_ACEOF
21765rm -f conftest.$ac_objext
21766if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21767 (eval $ac_compile) 2>conftest.er1
21768 ac_status=$?
21769 grep -v '^ *+' conftest.er1 >conftest.err
21770 rm -f conftest.er1
21771 cat conftest.err >&5
21772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21773 (exit $ac_status); } &&
c9a66001 21774 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21776 (eval $ac_try) 2>&5
21777 ac_status=$?
21778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21779 (exit $ac_status); }; } &&
21780 { ac_try='test -s conftest.$ac_objext'
21781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21782 (eval $ac_try) 2>&5
21783 ac_status=$?
21784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21785 (exit $ac_status); }; }; then
21786 ac_hi=$ac_mid
21787else
21788 echo "$as_me: failed program was:" >&5
21789sed 's/^/| /' conftest.$ac_ext >&5
21790
21791ac_lo=`expr '(' $ac_mid ')' + 1`
21792fi
21793rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21794done
21795case $ac_lo in
21796?*) ac_cv_sizeof_wchar_t=$ac_lo;;
21797'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
21798See \`config.log' for more details." >&5
21799echo "$as_me: error: cannot compute sizeof (wchar_t), 77
21800See \`config.log' for more details." >&2;}
21801 { (exit 1); exit 1; }; } ;;
21802esac
21803else
21804 if test "$cross_compiling" = yes; then
c9a66001
VZ
21805 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
21806echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
238ecede 21807 { (exit 1); exit 1; }; }
a848cd7e
SC
21808else
21809 cat >conftest.$ac_ext <<_ACEOF
21810/* confdefs.h. */
21811_ACEOF
21812cat confdefs.h >>conftest.$ac_ext
21813cat >>conftest.$ac_ext <<_ACEOF
21814/* end confdefs.h. */
21815
83d8eb47
MW
21816 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21817 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21818 # error "fake wchar_t"
21819 #endif
21820 #ifdef HAVE_WCHAR_H
21821 # ifdef __CYGWIN__
21822 # include <stddef.h>
21823 # endif
21824 # include <wchar.h>
21825 #endif
21826 #ifdef HAVE_STDLIB_H
21827 # include <stdlib.h>
21828 #endif
21829 #include <stdio.h>
21830
21831
21832
21833long longval () { return (long) (sizeof (wchar_t)); }
21834unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
21835#include <stdio.h>
21836#include <stdlib.h>
21837int
21838main ()
21839{
a848cd7e 21840
238ecede
MW
21841 FILE *f = fopen ("conftest.val", "w");
21842 if (! f)
21843 exit (1);
21844 if (((long) (sizeof (wchar_t))) < 0)
21845 {
21846 long i = longval ();
21847 if (i != ((long) (sizeof (wchar_t))))
21848 exit (1);
21849 fprintf (f, "%ld\n", i);
21850 }
21851 else
21852 {
21853 unsigned long i = ulongval ();
21854 if (i != ((long) (sizeof (wchar_t))))
21855 exit (1);
21856 fprintf (f, "%lu\n", i);
21857 }
21858 exit (ferror (f) || fclose (f) != 0);
21859
21860 ;
21861 return 0;
21862}
a848cd7e
SC
21863_ACEOF
21864rm -f conftest$ac_exeext
21865if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21866 (eval $ac_link) 2>&5
21867 ac_status=$?
21868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21869 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21871 (eval $ac_try) 2>&5
21872 ac_status=$?
21873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21874 (exit $ac_status); }; }; then
238ecede 21875 ac_cv_sizeof_wchar_t=`cat conftest.val`
a848cd7e
SC
21876else
21877 echo "$as_me: program exited with status $ac_status" >&5
21878echo "$as_me: failed program was:" >&5
21879sed 's/^/| /' conftest.$ac_ext >&5
21880
21881( exit $ac_status )
238ecede
MW
21882{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
21883See \`config.log' for more details." >&5
21884echo "$as_me: error: cannot compute sizeof (wchar_t), 77
21885See \`config.log' for more details." >&2;}
21886 { (exit 1); exit 1; }; }
a848cd7e 21887fi
ac1cb8d3 21888rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 21889fi
a848cd7e 21890fi
238ecede
MW
21891rm -f conftest.val
21892else
21893 ac_cv_sizeof_wchar_t=0
21894fi
21895fi
21896echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
21897echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
a848cd7e 21898cat >>confdefs.h <<_ACEOF
238ecede 21899#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
a848cd7e
SC
21900_ACEOF
21901
21902
47a7e797
MW
21903if test "$ac_cv_sizeof_wchar_t" != "0"; then
21904 wxUSE_WCHAR_T=yes
21905else
21906 wxUSE_WCHAR_T=no
21907fi
238ecede 21908
ba3d13e1
VZ
21909echo "$as_me:$LINENO: checking for va_copy" >&5
21910echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
21911if test "${wx_cv_func_va_copy+set}" = set; then
21912 echo $ECHO_N "(cached) $ECHO_C" >&6
21913else
21914
21915 cat >conftest.$ac_ext <<_ACEOF
21916
21917 #include <stdarg.h>
21918 void foo(char *f, ...)
21919 {
21920 va_list ap1, ap2;
21921 va_start(ap1, f);
21922 va_copy(ap2, ap1);
21923 va_end(ap2);
21924 va_end(ap1);
21925 }
5886b072
VZ
21926 int main()
21927 {
b902e639
VZ
21928 foo("hi", 17);
21929 return 0;
5886b072 21930 }
ba3d13e1
VZ
21931_ACEOF
21932rm -f conftest.$ac_objext conftest$ac_exeext
21933if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21934 (eval $ac_link) 2>conftest.er1
21935 ac_status=$?
21936 grep -v '^ *+' conftest.er1 >conftest.err
21937 rm -f conftest.er1
21938 cat conftest.err >&5
21939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21940 (exit $ac_status); } &&
c9a66001 21941 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ba3d13e1
VZ
21942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21943 (eval $ac_try) 2>&5
21944 ac_status=$?
21945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21946 (exit $ac_status); }; } &&
21947 { ac_try='test -s conftest$ac_exeext'
21948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21949 (eval $ac_try) 2>&5
21950 ac_status=$?
21951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21952 (exit $ac_status); }; }; then
21953 wx_cv_func_va_copy=yes
21954else
21955 echo "$as_me: failed program was:" >&5
21956sed 's/^/| /' conftest.$ac_ext >&5
21957
21958wx_cv_func_va_copy=no
21959
21960fi
21961rm -f conftest.err conftest.$ac_objext \
21962 conftest$ac_exeext conftest.$ac_ext
21963
21964
21965fi
21966echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
21967echo "${ECHO_T}$wx_cv_func_va_copy" >&6
21968
21969if test $wx_cv_func_va_copy = "yes"; then
21970 cat >>confdefs.h <<\_ACEOF
21971#define HAVE_VA_COPY 1
21972_ACEOF
21973
21974else
21975 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
21976echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
21977if test "${wx_cv_type_va_list_lvalue+set}" = set; then
21978 echo $ECHO_N "(cached) $ECHO_C" >&6
21979else
21980
21981 if test "$cross_compiling" = yes; then
21982 wx_cv_type_va_list_lvalue=yes
21983
21984else
21985 cat >conftest.$ac_ext <<_ACEOF
21986
21987 #include <stdarg.h>
21988 int foo(char *f, ...)
21989 {
21990 va_list ap1, ap2;
21991 va_start(ap1, f);
21992 ap2 = ap1;
21993 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
21994 return 1;
21995 va_end(ap2);
21996 va_end(ap1);
21997 return 0;
21998 }
21999 int main()
22000 {
22001 return foo("hi", 17);
22002 }
22003_ACEOF
22004rm -f conftest$ac_exeext
22005if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22006 (eval $ac_link) 2>&5
22007 ac_status=$?
22008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22009 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22011 (eval $ac_try) 2>&5
22012 ac_status=$?
22013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22014 (exit $ac_status); }; }; then
22015 wx_cv_type_va_list_lvalue=yes
22016else
22017 echo "$as_me: program exited with status $ac_status" >&5
22018echo "$as_me: failed program was:" >&5
22019sed 's/^/| /' conftest.$ac_ext >&5
22020
22021( exit $ac_status )
22022wx_cv_type_va_list_lvalue=no
22023fi
22024rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22025fi
22026
22027
22028fi
22029echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
22030echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
22031
22032 if test $wx_cv_type_va_list_lvalue != "yes"; then
22033 cat >>confdefs.h <<\_ACEOF
22034#define VA_LIST_IS_ARRAY 1
22035_ACEOF
22036
22037 fi
22038fi
22039
a848cd7e
SC
22040# Check whether --enable-largefile or --disable-largefile was given.
22041if test "${enable_largefile+set}" = set; then
22042 enableval="$enable_largefile"
22043
22044fi;
22045if test "$enable_largefile" != no; then
22046 wx_largefile=no
22047
22048 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
22049echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
22050if test "${ac_cv_sys_file_offset_bits+set}" = set; then
22051 echo $ECHO_N "(cached) $ECHO_C" >&6
22052else
22053
22054 cat >conftest.$ac_ext <<_ACEOF
22055/* confdefs.h. */
22056_ACEOF
22057cat confdefs.h >>conftest.$ac_ext
22058cat >>conftest.$ac_ext <<_ACEOF
22059/* end confdefs.h. */
22060#define _FILE_OFFSET_BITS 64
22061 #include <sys/types.h>
22062int
22063main ()
22064{
22065typedef struct {
22066 unsigned int field: sizeof(off_t) == 8;
22067} wxlf;
22068
22069 ;
22070 return 0;
22071}
22072_ACEOF
22073rm -f conftest.$ac_objext
22074if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22075 (eval $ac_compile) 2>conftest.er1
a848cd7e 22076 ac_status=$?
ac1cb8d3
VS
22077 grep -v '^ *+' conftest.er1 >conftest.err
22078 rm -f conftest.er1
22079 cat conftest.err >&5
a848cd7e
SC
22080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22081 (exit $ac_status); } &&
c9a66001 22082 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22084 (eval $ac_try) 2>&5
22085 ac_status=$?
22086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22087 (exit $ac_status); }; } &&
22088 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22090 (eval $ac_try) 2>&5
22091 ac_status=$?
22092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22093 (exit $ac_status); }; }; then
22094 ac_cv_sys_file_offset_bits=64
22095else
22096 echo "$as_me: failed program was:" >&5
22097sed 's/^/| /' conftest.$ac_ext >&5
22098
22099ac_cv_sys_file_offset_bits=no
22100fi
ac1cb8d3 22101rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22102
22103
22104fi
22105echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
22106echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
22107
22108 if test "$ac_cv_sys_file_offset_bits" != no; then
22109 wx_largefile=yes
22110 cat >>confdefs.h <<_ACEOF
22111#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
22112_ACEOF
22113
22114 fi
22115
22116 if test "x$wx_largefile" != "xyes"; then
22117
22118 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
22119echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
22120if test "${ac_cv_sys_large_files+set}" = set; then
22121 echo $ECHO_N "(cached) $ECHO_C" >&6
22122else
22123
22124 cat >conftest.$ac_ext <<_ACEOF
22125/* confdefs.h. */
22126_ACEOF
22127cat confdefs.h >>conftest.$ac_ext
22128cat >>conftest.$ac_ext <<_ACEOF
22129/* end confdefs.h. */
22130#define _LARGE_FILES 1
22131 #include <sys/types.h>
22132int
22133main ()
22134{
22135typedef struct {
22136 unsigned int field: sizeof(off_t) == 8;
22137} wxlf;
22138
22139 ;
22140 return 0;
22141}
22142_ACEOF
22143rm -f conftest.$ac_objext
22144if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22145 (eval $ac_compile) 2>conftest.er1
a848cd7e 22146 ac_status=$?
ac1cb8d3
VS
22147 grep -v '^ *+' conftest.er1 >conftest.err
22148 rm -f conftest.er1
22149 cat conftest.err >&5
a848cd7e
SC
22150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22151 (exit $ac_status); } &&
c9a66001 22152 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22154 (eval $ac_try) 2>&5
22155 ac_status=$?
22156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22157 (exit $ac_status); }; } &&
22158 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22160 (eval $ac_try) 2>&5
22161 ac_status=$?
22162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22163 (exit $ac_status); }; }; then
22164 ac_cv_sys_large_files=1
22165else
22166 echo "$as_me: failed program was:" >&5
22167sed 's/^/| /' conftest.$ac_ext >&5
22168
22169ac_cv_sys_large_files=no
22170fi
ac1cb8d3 22171rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22172
22173
22174fi
22175echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
22176echo "${ECHO_T}$ac_cv_sys_large_files" >&6
22177
22178 if test "$ac_cv_sys_large_files" != no; then
22179 wx_largefile=yes
22180 cat >>confdefs.h <<_ACEOF
22181#define _LARGE_FILES $ac_cv_sys_large_files
22182_ACEOF
22183
22184 fi
22185
22186 fi
22187
22188 echo "$as_me:$LINENO: checking if large file support is available" >&5
22189echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
22190 if test "x$wx_largefile" = "xyes"; then
22191 cat >>confdefs.h <<\_ACEOF
22192#define HAVE_LARGEFILE_SUPPORT 1
22193_ACEOF
22194
22195 fi
22196 echo "$as_me:$LINENO: result: $wx_largefile" >&5
22197echo "${ECHO_T}$wx_largefile" >&6
22198fi
22199
5b674b9d
DE
22200
22201if test "x$wx_largefile" = "xyes"; then
22202 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
5ff751d6 22203 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
00421666
MW
22204
22205 if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
22206 echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
22207echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6
22208if test "${wx_cv_STDC_EXT_required+set}" = set; then
22209 echo $ECHO_N "(cached) $ECHO_C" >&6
22210else
22211
00421666
MW
22212 cat >conftest.$ac_ext <<_ACEOF
22213/* confdefs.h. */
22214_ACEOF
22215cat confdefs.h >>conftest.$ac_ext
22216cat >>conftest.$ac_ext <<_ACEOF
22217/* end confdefs.h. */
22218
22219int
22220main ()
22221{
22222
22223 #ifndef __STDC_EXT__
22224 choke me
22225 #endif
22226
22227 ;
22228 return 0;
22229}
22230_ACEOF
22231rm -f conftest.$ac_objext
22232if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22233 (eval $ac_compile) 2>conftest.er1
22234 ac_status=$?
22235 grep -v '^ *+' conftest.er1 >conftest.err
22236 rm -f conftest.er1
22237 cat conftest.err >&5
22238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22239 (exit $ac_status); } &&
c9a66001 22240 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
00421666
MW
22241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22242 (eval $ac_try) 2>&5
22243 ac_status=$?
22244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22245 (exit $ac_status); }; } &&
22246 { ac_try='test -s conftest.$ac_objext'
22247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22248 (eval $ac_try) 2>&5
22249 ac_status=$?
22250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22251 (exit $ac_status); }; }; then
22252 wx_cv_STDC_EXT_required=no
22253else
22254 echo "$as_me: failed program was:" >&5
22255sed 's/^/| /' conftest.$ac_ext >&5
22256
22257wx_cv_STDC_EXT_required=yes
22258
22259fi
22260rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
00421666
MW
22261
22262
22263fi
22264echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
22265echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6
22266 if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
5ff751d6 22267 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
00421666
MW
22268 fi
22269 fi
5b674b9d 22270 else
5ff751d6 22271 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES"
5b674b9d
DE
22272 fi
22273 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
22274echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
22275if test "${ac_cv_sys_largefile_source+set}" = set; then
22276 echo $ECHO_N "(cached) $ECHO_C" >&6
22277else
22278 while :; do
22279 ac_cv_sys_largefile_source=no
22280 cat >conftest.$ac_ext <<_ACEOF
22281/* confdefs.h. */
22282_ACEOF
22283cat confdefs.h >>conftest.$ac_ext
22284cat >>conftest.$ac_ext <<_ACEOF
22285/* end confdefs.h. */
22286#include <stdio.h>
22287int
22288main ()
22289{
22290return !fseeko;
22291 ;
22292 return 0;
22293}
22294_ACEOF
22295rm -f conftest.$ac_objext
22296if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22297 (eval $ac_compile) 2>conftest.er1
22298 ac_status=$?
22299 grep -v '^ *+' conftest.er1 >conftest.err
22300 rm -f conftest.er1
22301 cat conftest.err >&5
22302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22303 (exit $ac_status); } &&
c9a66001 22304 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
22305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22306 (eval $ac_try) 2>&5
22307 ac_status=$?
22308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22309 (exit $ac_status); }; } &&
22310 { ac_try='test -s conftest.$ac_objext'
22311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22312 (eval $ac_try) 2>&5
22313 ac_status=$?
22314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22315 (exit $ac_status); }; }; then
22316 break
22317else
22318 echo "$as_me: failed program was:" >&5
22319sed 's/^/| /' conftest.$ac_ext >&5
22320
22321fi
22322rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22323 cat >conftest.$ac_ext <<_ACEOF
22324/* confdefs.h. */
22325_ACEOF
22326cat confdefs.h >>conftest.$ac_ext
22327cat >>conftest.$ac_ext <<_ACEOF
22328/* end confdefs.h. */
22329#define _LARGEFILE_SOURCE 1
22330#include <stdio.h>
22331int
22332main ()
22333{
22334return !fseeko;
22335 ;
22336 return 0;
22337}
22338_ACEOF
22339rm -f conftest.$ac_objext
22340if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22341 (eval $ac_compile) 2>conftest.er1
22342 ac_status=$?
22343 grep -v '^ *+' conftest.er1 >conftest.err
22344 rm -f conftest.er1
22345 cat conftest.err >&5
22346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22347 (exit $ac_status); } &&
c9a66001 22348 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
22349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22350 (eval $ac_try) 2>&5
22351 ac_status=$?
22352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22353 (exit $ac_status); }; } &&
22354 { ac_try='test -s conftest.$ac_objext'
22355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22356 (eval $ac_try) 2>&5
22357 ac_status=$?
22358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22359 (exit $ac_status); }; }; then
22360 ac_cv_sys_largefile_source=1; break
22361else
22362 echo "$as_me: failed program was:" >&5
22363sed 's/^/| /' conftest.$ac_ext >&5
22364
22365fi
22366rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22367 break
22368done
22369fi
22370echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
22371echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
22372if test "$ac_cv_sys_largefile_source" != no; then
22373
22374cat >>confdefs.h <<_ACEOF
22375#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
22376_ACEOF
22377
22378fi
22379rm -f conftest*
22380
22381# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
22382# in glibc 2.1.3, but that breaks too many other things.
22383# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
22384echo "$as_me:$LINENO: checking for fseeko" >&5
22385echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
22386if test "${ac_cv_func_fseeko+set}" = set; then
22387 echo $ECHO_N "(cached) $ECHO_C" >&6
22388else
22389 cat >conftest.$ac_ext <<_ACEOF
22390/* confdefs.h. */
22391_ACEOF
22392cat confdefs.h >>conftest.$ac_ext
22393cat >>conftest.$ac_ext <<_ACEOF
22394/* end confdefs.h. */
22395#include <stdio.h>
22396int
22397main ()
22398{
22399return fseeko && fseeko (stdin, 0, 0);
22400 ;
22401 return 0;
22402}
22403_ACEOF
22404rm -f conftest.$ac_objext conftest$ac_exeext
22405if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22406 (eval $ac_link) 2>conftest.er1
22407 ac_status=$?
22408 grep -v '^ *+' conftest.er1 >conftest.err
22409 rm -f conftest.er1
22410 cat conftest.err >&5
22411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22412 (exit $ac_status); } &&
c9a66001 22413 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
22414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22415 (eval $ac_try) 2>&5
22416 ac_status=$?
22417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22418 (exit $ac_status); }; } &&
22419 { ac_try='test -s conftest$ac_exeext'
22420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22421 (eval $ac_try) 2>&5
22422 ac_status=$?
22423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22424 (exit $ac_status); }; }; then
22425 ac_cv_func_fseeko=yes
22426else
22427 echo "$as_me: failed program was:" >&5
22428sed 's/^/| /' conftest.$ac_ext >&5
22429
22430ac_cv_func_fseeko=no
22431fi
22432rm -f conftest.err conftest.$ac_objext \
22433 conftest$ac_exeext conftest.$ac_ext
22434fi
22435echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
22436echo "${ECHO_T}$ac_cv_func_fseeko" >&6
22437if test $ac_cv_func_fseeko = yes; then
22438
22439cat >>confdefs.h <<\_ACEOF
22440#define HAVE_FSEEKO 1
22441_ACEOF
22442
22443fi
22444
5b674b9d 22445 if test "$ac_cv_sys_largefile_source" != no; then
5ff751d6 22446 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e 22447 fi
a848cd7e
SC
22448fi
22449
22450echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22451echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
22452if test "${ac_cv_c_bigendian+set}" = set; then
22453 echo $ECHO_N "(cached) $ECHO_C" >&6
22454else
22455 ac_cv_c_bigendian=unknown
22456# See if sys/param.h defines the BYTE_ORDER macro.
22457cat >conftest.$ac_ext <<_ACEOF
22458/* confdefs.h. */
22459_ACEOF
22460cat confdefs.h >>conftest.$ac_ext
22461cat >>conftest.$ac_ext <<_ACEOF
22462/* end confdefs.h. */
22463#include <sys/types.h>
22464#include <sys/param.h>
22465int
22466main ()
22467{
22468
22469#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
22470 bogus endian macros
22471#endif
22472 ;
22473 return 0;
22474}
22475_ACEOF
22476rm -f conftest.$ac_objext
22477if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22478 (eval $ac_compile) 2>conftest.er1
a848cd7e 22479 ac_status=$?
ac1cb8d3
VS
22480 grep -v '^ *+' conftest.er1 >conftest.err
22481 rm -f conftest.er1
22482 cat conftest.err >&5
a848cd7e
SC
22483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22484 (exit $ac_status); } &&
c9a66001 22485 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22487 (eval $ac_try) 2>&5
22488 ac_status=$?
22489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22490 (exit $ac_status); }; } &&
22491 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22493 (eval $ac_try) 2>&5
22494 ac_status=$?
22495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22496 (exit $ac_status); }; }; then
22497 # It does; now see whether it defined to BIG_ENDIAN or not.
22498cat >conftest.$ac_ext <<_ACEOF
22499/* confdefs.h. */
22500_ACEOF
22501cat confdefs.h >>conftest.$ac_ext
22502cat >>conftest.$ac_ext <<_ACEOF
22503/* end confdefs.h. */
22504#include <sys/types.h>
22505#include <sys/param.h>
22506int
22507main ()
22508{
22509
22510#if BYTE_ORDER != BIG_ENDIAN
22511 not big endian
22512#endif
22513 ;
22514 return 0;
22515}
22516_ACEOF
22517rm -f conftest.$ac_objext
22518if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22519 (eval $ac_compile) 2>conftest.er1
a848cd7e 22520 ac_status=$?
ac1cb8d3
VS
22521 grep -v '^ *+' conftest.er1 >conftest.err
22522 rm -f conftest.er1
22523 cat conftest.err >&5
a848cd7e
SC
22524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22525 (exit $ac_status); } &&
c9a66001 22526 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22528 (eval $ac_try) 2>&5
22529 ac_status=$?
22530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22531 (exit $ac_status); }; } &&
22532 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22534 (eval $ac_try) 2>&5
22535 ac_status=$?
22536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22537 (exit $ac_status); }; }; then
22538 ac_cv_c_bigendian=yes
22539else
22540 echo "$as_me: failed program was:" >&5
22541sed 's/^/| /' conftest.$ac_ext >&5
22542
22543ac_cv_c_bigendian=no
22544fi
ac1cb8d3 22545rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22546else
22547 echo "$as_me: failed program was:" >&5
22548sed 's/^/| /' conftest.$ac_ext >&5
22549
22550fi
ac1cb8d3 22551rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22552if test $ac_cv_c_bigendian = unknown; then
22553if test "$cross_compiling" = yes; then
22554 ac_cv_c_bigendian=unknown
22555else
22556 cat >conftest.$ac_ext <<_ACEOF
22557/* confdefs.h. */
22558_ACEOF
22559cat confdefs.h >>conftest.$ac_ext
22560cat >>conftest.$ac_ext <<_ACEOF
22561/* end confdefs.h. */
22562main () {
22563 /* Are we little or big endian? From Harbison&Steele. */
22564 union
22565 {
22566 long l;
22567 char c[sizeof (long)];
22568 } u;
22569 u.l = 1;
22570 exit (u.c[sizeof (long) - 1] == 1);
22571}
22572_ACEOF
22573rm -f conftest$ac_exeext
22574if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22575 (eval $ac_link) 2>&5
22576 ac_status=$?
22577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22578 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
22584 ac_cv_c_bigendian=no
22585else
22586 echo "$as_me: program exited with status $ac_status" >&5
22587echo "$as_me: failed program was:" >&5
22588sed 's/^/| /' conftest.$ac_ext >&5
22589
22590( exit $ac_status )
22591ac_cv_c_bigendian=yes
22592fi
ac1cb8d3 22593rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22594fi
22595fi
22596fi
22597echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22598echo "${ECHO_T}$ac_cv_c_bigendian" >&6
22599if test $ac_cv_c_bigendian = unknown; then
22600 { 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
22601echo "$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;}
22602fi
22603if test $ac_cv_c_bigendian = yes; then
22604 cat >>confdefs.h <<\_ACEOF
22605#define WORDS_BIGENDIAN 1
22606_ACEOF
22607
22608fi
22609
22610
a848cd7e
SC
22611
22612
22613
22614 ac_ext=cc
22615ac_cpp='$CXXCPP $CPPFLAGS'
22616ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22617ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22618ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22619
22620
22621
22622for ac_header in iostream
22623do
22624as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22625if eval "test \"\${$as_ac_Header+set}\" = set"; then
22626 echo "$as_me:$LINENO: checking for $ac_header" >&5
22627echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22628if eval "test \"\${$as_ac_Header+set}\" = set"; then
22629 echo $ECHO_N "(cached) $ECHO_C" >&6
22630fi
22631echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22632echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22633else
22634 # Is the header compilable?
22635echo "$as_me:$LINENO: checking $ac_header usability" >&5
22636echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22637cat >conftest.$ac_ext <<_ACEOF
22638/* confdefs.h. */
22639_ACEOF
22640cat confdefs.h >>conftest.$ac_ext
22641cat >>conftest.$ac_ext <<_ACEOF
22642/* end confdefs.h. */
22643$ac_includes_default
22644#include <$ac_header>
22645_ACEOF
22646rm -f conftest.$ac_objext
22647if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22648 (eval $ac_compile) 2>conftest.er1
a848cd7e 22649 ac_status=$?
ac1cb8d3
VS
22650 grep -v '^ *+' conftest.er1 >conftest.err
22651 rm -f conftest.er1
22652 cat conftest.err >&5
a848cd7e
SC
22653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22654 (exit $ac_status); } &&
c9a66001 22655 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22657 (eval $ac_try) 2>&5
22658 ac_status=$?
22659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22660 (exit $ac_status); }; } &&
22661 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22663 (eval $ac_try) 2>&5
22664 ac_status=$?
22665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22666 (exit $ac_status); }; }; then
22667 ac_header_compiler=yes
22668else
22669 echo "$as_me: failed program was:" >&5
22670sed 's/^/| /' conftest.$ac_ext >&5
22671
22672ac_header_compiler=no
22673fi
ac1cb8d3 22674rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22675echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22676echo "${ECHO_T}$ac_header_compiler" >&6
22677
22678# Is the header present?
22679echo "$as_me:$LINENO: checking $ac_header presence" >&5
22680echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22681cat >conftest.$ac_ext <<_ACEOF
22682/* confdefs.h. */
22683_ACEOF
22684cat confdefs.h >>conftest.$ac_ext
22685cat >>conftest.$ac_ext <<_ACEOF
22686/* end confdefs.h. */
22687#include <$ac_header>
22688_ACEOF
22689if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22690 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22691 ac_status=$?
22692 grep -v '^ *+' conftest.er1 >conftest.err
22693 rm -f conftest.er1
22694 cat conftest.err >&5
22695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22696 (exit $ac_status); } >/dev/null; then
22697 if test -s conftest.err; then
22698 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 22699 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
22700 else
22701 ac_cpp_err=
22702 fi
22703else
22704 ac_cpp_err=yes
22705fi
22706if test -z "$ac_cpp_err"; then
22707 ac_header_preproc=yes
22708else
22709 echo "$as_me: failed program was:" >&5
22710sed 's/^/| /' conftest.$ac_ext >&5
22711
22712 ac_header_preproc=no
22713fi
22714rm -f conftest.err conftest.$ac_ext
22715echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22716echo "${ECHO_T}$ac_header_preproc" >&6
22717
22718# So? What about this header?
ac1cb8d3
VS
22719case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22720 yes:no: )
a848cd7e
SC
22721 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22722echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22723 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22724echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22725 ac_header_preproc=yes
a848cd7e 22726 ;;
ac1cb8d3 22727 no:yes:* )
a848cd7e
SC
22728 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22729echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22730 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22731echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22732 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22733echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22734 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22735echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22736 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22737echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22738 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22739echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22740 (
22741 cat <<\_ASBOX
ac1cb8d3
VS
22742## ----------------------------------------- ##
22743## Report this to wx-dev@lists.wxwidgets.org ##
22744## ----------------------------------------- ##
a848cd7e
SC
22745_ASBOX
22746 ) |
22747 sed "s/^/$as_me: WARNING: /" >&2
22748 ;;
22749esac
22750echo "$as_me:$LINENO: checking for $ac_header" >&5
22751echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22752if eval "test \"\${$as_ac_Header+set}\" = set"; then
22753 echo $ECHO_N "(cached) $ECHO_C" >&6
22754else
ac1cb8d3 22755 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
22756fi
22757echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22758echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22759
22760fi
22761if test `eval echo '${'$as_ac_Header'}'` = yes; then
22762 cat >>confdefs.h <<_ACEOF
22763#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22764_ACEOF
22765
22766fi
22767
22768done
22769
22770
22771 if test "$ac_cv_header_iostream" = "yes" ; then
22772 :
22773 else
22774 cat >>confdefs.h <<\_ACEOF
22775#define wxUSE_IOSTREAMH 1
22776_ACEOF
22777
22778 fi
22779
5d7b7554
VZ
22780 ac_ext=cc
22781ac_cpp='$CXXCPP $CPPFLAGS'
22782ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22783ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22784ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
22785
22786
22787
22788
22789 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
22790echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
22791if test "${wx_cv_cpp_bool+set}" = set; then
22792 echo $ECHO_N "(cached) $ECHO_C" >&6
22793else
22794
22795
22796
22797 ac_ext=cc
22798ac_cpp='$CXXCPP $CPPFLAGS'
22799ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22800ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22801ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22802
22803
22804 cat >conftest.$ac_ext <<_ACEOF
22805/* confdefs.h. */
22806_ACEOF
22807cat confdefs.h >>conftest.$ac_ext
22808cat >>conftest.$ac_ext <<_ACEOF
22809/* end confdefs.h. */
22810
22811
22812int
22813main ()
22814{
22815
22816 bool b = true;
22817
22818 return 0;
22819
22820 ;
22821 return 0;
22822}
22823_ACEOF
22824rm -f conftest.$ac_objext
22825if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22826 (eval $ac_compile) 2>conftest.er1
a848cd7e 22827 ac_status=$?
ac1cb8d3
VS
22828 grep -v '^ *+' conftest.er1 >conftest.err
22829 rm -f conftest.er1
22830 cat conftest.err >&5
a848cd7e
SC
22831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22832 (exit $ac_status); } &&
c9a66001 22833 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22835 (eval $ac_try) 2>&5
22836 ac_status=$?
22837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22838 (exit $ac_status); }; } &&
22839 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22841 (eval $ac_try) 2>&5
22842 ac_status=$?
22843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22844 (exit $ac_status); }; }; then
22845
22846 wx_cv_cpp_bool=yes
22847
22848else
22849 echo "$as_me: failed program was:" >&5
22850sed 's/^/| /' conftest.$ac_ext >&5
22851
22852
22853 wx_cv_cpp_bool=no
22854
22855
22856fi
ac1cb8d3 22857rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 22858
5d7b7554
VZ
22859 ac_ext=cc
22860ac_cpp='$CXXCPP $CPPFLAGS'
22861ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22862ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22863ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
22864
22865
22866fi
22867echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
22868echo "${ECHO_T}$wx_cv_cpp_bool" >&6
22869
22870 if test "$wx_cv_cpp_bool" = "yes"; then
22871 cat >>confdefs.h <<\_ACEOF
22872#define HAVE_BOOL 1
22873_ACEOF
22874
22875 fi
22876
22877
22878
22879 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
22880echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
22881if test "${wx_cv_explicit+set}" = set; then
22882 echo $ECHO_N "(cached) $ECHO_C" >&6
22883else
22884
22885
22886
22887 ac_ext=cc
22888ac_cpp='$CXXCPP $CPPFLAGS'
22889ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22890ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22891ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22892
22893
22894 cat >conftest.$ac_ext <<_ACEOF
22895/* confdefs.h. */
22896_ACEOF
22897cat confdefs.h >>conftest.$ac_ext
22898cat >>conftest.$ac_ext <<_ACEOF
22899/* end confdefs.h. */
22900
22901 class Foo { public: explicit Foo(int) {} };
22902
22903int
22904main ()
22905{
22906
22907 return 0;
22908
22909 ;
22910 return 0;
22911}
22912_ACEOF
22913rm -f conftest.$ac_objext
22914if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22915 (eval $ac_compile) 2>conftest.er1
a848cd7e 22916 ac_status=$?
ac1cb8d3
VS
22917 grep -v '^ *+' conftest.er1 >conftest.err
22918 rm -f conftest.er1
22919 cat conftest.err >&5
a848cd7e
SC
22920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22921 (exit $ac_status); } &&
c9a66001 22922 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22924 (eval $ac_try) 2>&5
22925 ac_status=$?
22926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22927 (exit $ac_status); }; } &&
22928 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22930 (eval $ac_try) 2>&5
22931 ac_status=$?
22932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22933 (exit $ac_status); }; }; then
22934
22935 cat >conftest.$ac_ext <<_ACEOF
22936/* confdefs.h. */
22937_ACEOF
22938cat confdefs.h >>conftest.$ac_ext
22939cat >>conftest.$ac_ext <<_ACEOF
22940/* end confdefs.h. */
22941
22942 class Foo { public: explicit Foo(int) {} };
22943 static void TakeFoo(const Foo& foo) { }
22944
22945int
22946main ()
22947{
22948
22949 TakeFoo(17);
22950 return 0;
22951
22952 ;
22953 return 0;
22954}
22955_ACEOF
22956rm -f conftest.$ac_objext
22957if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22958 (eval $ac_compile) 2>conftest.er1
a848cd7e 22959 ac_status=$?
ac1cb8d3
VS
22960 grep -v '^ *+' conftest.er1 >conftest.err
22961 rm -f conftest.er1
22962 cat conftest.err >&5
a848cd7e
SC
22963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22964 (exit $ac_status); } &&
c9a66001 22965 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22967 (eval $ac_try) 2>&5
22968 ac_status=$?
22969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22970 (exit $ac_status); }; } &&
22971 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22973 (eval $ac_try) 2>&5
22974 ac_status=$?
22975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22976 (exit $ac_status); }; }; then
22977 wx_cv_explicit=no
22978else
22979 echo "$as_me: failed program was:" >&5
22980sed 's/^/| /' conftest.$ac_ext >&5
22981
22982wx_cv_explicit=yes
22983
22984fi
ac1cb8d3 22985rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22986
22987else
22988 echo "$as_me: failed program was:" >&5
22989sed 's/^/| /' conftest.$ac_ext >&5
22990
22991wx_cv_explicit=no
22992
22993fi
ac1cb8d3 22994rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 22995
5d7b7554
VZ
22996 ac_ext=cc
22997ac_cpp='$CXXCPP $CPPFLAGS'
22998ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22999ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23000ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23001
23002
23003fi
23004echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
23005echo "${ECHO_T}$wx_cv_explicit" >&6
23006
23007 if test "$wx_cv_explicit" = "yes"; then
23008 cat >>confdefs.h <<\_ACEOF
23009#define HAVE_EXPLICIT 1
23010_ACEOF
23011
23012 fi
23013
23014
23015echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
23016echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
23017if test "${ac_cv_cxx_const_cast+set}" = set; then
23018 echo $ECHO_N "(cached) $ECHO_C" >&6
23019else
23020
23021
23022 ac_ext=cc
23023ac_cpp='$CXXCPP $CPPFLAGS'
23024ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23025ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23026ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23027
23028 cat >conftest.$ac_ext <<_ACEOF
23029/* confdefs.h. */
23030_ACEOF
23031cat confdefs.h >>conftest.$ac_ext
23032cat >>conftest.$ac_ext <<_ACEOF
23033/* end confdefs.h. */
23034
23035int
23036main ()
23037{
23038int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
23039 ;
23040 return 0;
23041}
23042_ACEOF
23043rm -f conftest.$ac_objext
23044if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23045 (eval $ac_compile) 2>conftest.er1
a848cd7e 23046 ac_status=$?
ac1cb8d3
VS
23047 grep -v '^ *+' conftest.er1 >conftest.err
23048 rm -f conftest.er1
23049 cat conftest.err >&5
a848cd7e
SC
23050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23051 (exit $ac_status); } &&
c9a66001 23052 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23054 (eval $ac_try) 2>&5
23055 ac_status=$?
23056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23057 (exit $ac_status); }; } &&
23058 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23060 (eval $ac_try) 2>&5
23061 ac_status=$?
23062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23063 (exit $ac_status); }; }; then
23064 ac_cv_cxx_const_cast=yes
23065else
23066 echo "$as_me: failed program was:" >&5
23067sed 's/^/| /' conftest.$ac_ext >&5
23068
23069ac_cv_cxx_const_cast=no
23070fi
ac1cb8d3 23071rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
23072 ac_ext=cc
23073ac_cpp='$CXXCPP $CPPFLAGS'
23074ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23075ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23076ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23077
23078
23079fi
23080echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
23081echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
23082if test "$ac_cv_cxx_const_cast" = yes; then
23083
23084cat >>confdefs.h <<\_ACEOF
23085#define HAVE_CONST_CAST
23086_ACEOF
23087
23088fi
23089
7714864e
RL
23090echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
23091echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
23092if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
23093 echo $ECHO_N "(cached) $ECHO_C" >&6
23094else
23095
23096
23097 ac_ext=cc
23098ac_cpp='$CXXCPP $CPPFLAGS'
23099ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23100ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23101ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23102
23103 cat >conftest.$ac_ext <<_ACEOF
23104/* confdefs.h. */
23105_ACEOF
23106cat confdefs.h >>conftest.$ac_ext
23107cat >>conftest.$ac_ext <<_ACEOF
23108/* end confdefs.h. */
23109#include <typeinfo>
23110class Base { public : Base () {} virtual void f () = 0;};
23111class Derived : public Base { public : Derived () {} virtual void f () {} };
23112class Unrelated { public : Unrelated () {} };
23113int g (Unrelated&) { return 0; }
23114int
23115main ()
23116{
23117
23118Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
23119 ;
23120 return 0;
23121}
23122_ACEOF
23123rm -f conftest.$ac_objext
23124if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23125 (eval $ac_compile) 2>conftest.er1
23126 ac_status=$?
23127 grep -v '^ *+' conftest.er1 >conftest.err
23128 rm -f conftest.er1
23129 cat conftest.err >&5
23130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23131 (exit $ac_status); } &&
c9a66001 23132 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7714864e
RL
23133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23134 (eval $ac_try) 2>&5
23135 ac_status=$?
23136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23137 (exit $ac_status); }; } &&
23138 { ac_try='test -s conftest.$ac_objext'
23139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23140 (eval $ac_try) 2>&5
23141 ac_status=$?
23142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23143 (exit $ac_status); }; }; then
23144 ac_cv_cxx_reinterpret_cast=yes
23145else
23146 echo "$as_me: failed program was:" >&5
23147sed 's/^/| /' conftest.$ac_ext >&5
23148
23149ac_cv_cxx_reinterpret_cast=no
23150fi
23151rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
23152 ac_ext=cc
23153ac_cpp='$CXXCPP $CPPFLAGS'
23154ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23155ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23156ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7714864e
RL
23157
23158
23159fi
23160echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
23161echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
23162if test "$ac_cv_cxx_reinterpret_cast" = yes; then
23163
23164cat >>confdefs.h <<\_ACEOF
23165#define HAVE_REINTERPRET_CAST
23166_ACEOF
23167
23168fi
23169
a848cd7e
SC
23170echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
23171echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
23172if test "${ac_cv_cxx_static_cast+set}" = set; then
23173 echo $ECHO_N "(cached) $ECHO_C" >&6
23174else
23175
23176
23177 ac_ext=cc
23178ac_cpp='$CXXCPP $CPPFLAGS'
23179ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23180ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23181ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23182
23183 cat >conftest.$ac_ext <<_ACEOF
23184/* confdefs.h. */
23185_ACEOF
23186cat confdefs.h >>conftest.$ac_ext
23187cat >>conftest.$ac_ext <<_ACEOF
23188/* end confdefs.h. */
23189#include <typeinfo>
23190class Base { public : Base () {} virtual void f () = 0; };
23191class Derived : public Base { public : Derived () {} virtual void f () {} };
23192int g (Derived&) { return 0; }
23193int
23194main ()
23195{
23196
23197Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
23198 ;
23199 return 0;
23200}
23201_ACEOF
23202rm -f conftest.$ac_objext
23203if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23204 (eval $ac_compile) 2>conftest.er1
a848cd7e 23205 ac_status=$?
ac1cb8d3
VS
23206 grep -v '^ *+' conftest.er1 >conftest.err
23207 rm -f conftest.er1
23208 cat conftest.err >&5
a848cd7e
SC
23209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23210 (exit $ac_status); } &&
c9a66001 23211 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23213 (eval $ac_try) 2>&5
23214 ac_status=$?
23215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23216 (exit $ac_status); }; } &&
23217 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23219 (eval $ac_try) 2>&5
23220 ac_status=$?
23221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23222 (exit $ac_status); }; }; then
23223 ac_cv_cxx_static_cast=yes
23224else
23225 echo "$as_me: failed program was:" >&5
23226sed 's/^/| /' conftest.$ac_ext >&5
23227
23228ac_cv_cxx_static_cast=no
23229fi
ac1cb8d3 23230rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
23231 ac_ext=cc
23232ac_cpp='$CXXCPP $CPPFLAGS'
23233ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23234ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23235ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23236
23237
23238fi
23239echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
23240echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
23241if test "$ac_cv_cxx_static_cast" = yes; then
23242
23243cat >>confdefs.h <<\_ACEOF
23244#define HAVE_STATIC_CAST
23245_ACEOF
23246
23247fi
23248
23249
3c28b7cb 23250if test "x$SUNCXX" = xyes; then
c92ad099 23251 CXXFLAGS="-features=tmplife $CXXFLAGS"
3c28b7cb
MW
23252fi
23253
9122d155 23254if test "x$SUNCC" = xyes; then
c92ad099 23255 CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
9122d155
VZ
23256fi
23257
0ad5d837 23258if test "x$SGICC" = "xyes"; then
c92ad099 23259 CFLAGS="-woff 3970 $CFLAGS"
0ad5d837
VZ
23260fi
23261if test "x$SGICXX" = "xyes"; then
c92ad099 23262 CXXFLAGS="-woff 3970 $CXXFLAGS"
0ad5d837
VZ
23263fi
23264
2eef8513 23265if test "x$HPCC" = "xyes"; then
c92ad099 23266 CFLAGS="+W 2011,2450 $CFLAGS"
2eef8513
VZ
23267fi
23268if test "x$HPCXX" = "xyes"; then
c92ad099 23269 CXXFLAGS="+W 2340 $CXXFLAGS"
2eef8513
VZ
23270fi
23271
23272if test "x$COMPAQCXX" = "xyes"; then
23273 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
23274fi
23275
f56c22b4 23276if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
f56c22b4
MW
23277 if test "$wxUSE_UNICODE" = "yes"; then
23278 std_string="std::wstring"
23279 char_type="wchar_t"
23280 else
23281 std_string="std::string"
23282 char_type="char"
23283 fi
23284
23285 echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
23286echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6
a848cd7e
SC
23287 cat >conftest.$ac_ext <<_ACEOF
23288/* confdefs.h. */
23289_ACEOF
23290cat confdefs.h >>conftest.$ac_ext
23291cat >>conftest.$ac_ext <<_ACEOF
23292/* end confdefs.h. */
23293#include <string>
a848cd7e
SC
23294int
23295main ()
23296{
f56c22b4 23297$std_string foo;
a848cd7e
SC
23298 ;
23299 return 0;
23300}
23301_ACEOF
23302rm -f conftest.$ac_objext
23303if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23304 (eval $ac_compile) 2>conftest.er1
a848cd7e 23305 ac_status=$?
ac1cb8d3
VS
23306 grep -v '^ *+' conftest.er1 >conftest.err
23307 rm -f conftest.er1
23308 cat conftest.err >&5
a848cd7e
SC
23309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23310 (exit $ac_status); } &&
c9a66001 23311 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23313 (eval $ac_try) 2>&5
23314 ac_status=$?
23315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23316 (exit $ac_status); }; } &&
23317 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23319 (eval $ac_try) 2>&5
23320 ac_status=$?
23321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23322 (exit $ac_status); }; }; then
23323 echo "$as_me:$LINENO: result: yes" >&5
23324echo "${ECHO_T}yes" >&6
0a08f02a
MB
23325 cat >>confdefs.h <<\_ACEOF
23326#define HAVE_STD_WSTRING 1
23327_ACEOF
23328
a848cd7e
SC
23329else
23330 echo "$as_me: failed program was:" >&5
23331sed 's/^/| /' conftest.$ac_ext >&5
23332
23333echo "$as_me:$LINENO: result: no" >&5
23334echo "${ECHO_T}no" >&6
f56c22b4
MW
23335 echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
23336echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6
0a08f02a
MB
23337 cat >conftest.$ac_ext <<_ACEOF
23338/* confdefs.h. */
23339_ACEOF
23340cat confdefs.h >>conftest.$ac_ext
23341cat >>conftest.$ac_ext <<_ACEOF
23342/* end confdefs.h. */
23343
23344 #ifdef HAVE_WCHAR_H
23345 # ifdef __CYGWIN__
23346 # include <stddef.h>
23347 # endif
23348 # include <wchar.h>
23349 #endif
23350 #ifdef HAVE_STDLIB_H
23351 # include <stdlib.h>
23352 #endif
23353 #include <stdio.h>
23354 #include <string>
23355
23356int
23357main ()
23358{
f56c22b4
MW
23359std::basic_string<$char_type> foo;
23360 const $char_type* dummy = foo.c_str();
0a08f02a
MB
23361 ;
23362 return 0;
23363}
23364_ACEOF
23365rm -f conftest.$ac_objext
23366if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23367 (eval $ac_compile) 2>conftest.er1
23368 ac_status=$?
23369 grep -v '^ *+' conftest.er1 >conftest.err
23370 rm -f conftest.er1
23371 cat conftest.err >&5
23372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23373 (exit $ac_status); } &&
c9a66001 23374 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0a08f02a
MB
23375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23376 (eval $ac_try) 2>&5
23377 ac_status=$?
23378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23379 (exit $ac_status); }; } &&
23380 { ac_try='test -s conftest.$ac_objext'
23381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23382 (eval $ac_try) 2>&5
23383 ac_status=$?
23384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23385 (exit $ac_status); }; }; then
23386 echo "$as_me:$LINENO: result: yes" >&5
23387echo "${ECHO_T}yes" >&6
23388else
23389 echo "$as_me: failed program was:" >&5
23390sed 's/^/| /' conftest.$ac_ext >&5
23391
23392echo "$as_me:$LINENO: result: no" >&5
23393echo "${ECHO_T}no" >&6
f56c22b4 23394 if test "$wxUSE_STL" = "yes"; then
4b9918c5
MW
23395 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
23396echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
23397 { (exit 1); exit 1; }; }
23398 elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
23399 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
23400echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
a848cd7e 23401 { (exit 1); exit 1; }; }
f56c22b4
MW
23402 else
23403 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
23404echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
23405 wxUSE_STD_STRING=no
23406 fi
23407
0a08f02a 23408
a848cd7e 23409fi
ac1cb8d3 23410rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 23411
0a08f02a
MB
23412fi
23413rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f56c22b4
MW
23414fi
23415
23416if test "$wxUSE_STD_IOSTREAM" = "yes"; then
f56c22b4
MW
23417 echo "$as_me:$LINENO: checking for std::istream" >&5
23418echo $ECHO_N "checking for std::istream... $ECHO_C" >&6
23419if test "${ac_cv_type_std__istream+set}" = set; then
23420 echo $ECHO_N "(cached) $ECHO_C" >&6
23421else
23422 cat >conftest.$ac_ext <<_ACEOF
23423/* confdefs.h. */
23424_ACEOF
23425cat confdefs.h >>conftest.$ac_ext
23426cat >>conftest.$ac_ext <<_ACEOF
23427/* end confdefs.h. */
23428#include <iostream>
23429
23430int
23431main ()
23432{
23433if ((std::istream *) 0)
23434 return 0;
23435if (sizeof (std::istream))
23436 return 0;
23437 ;
23438 return 0;
23439}
23440_ACEOF
23441rm -f conftest.$ac_objext
23442if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23443 (eval $ac_compile) 2>conftest.er1
23444 ac_status=$?
23445 grep -v '^ *+' conftest.er1 >conftest.err
23446 rm -f conftest.er1
23447 cat conftest.err >&5
23448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23449 (exit $ac_status); } &&
c9a66001 23450 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
23451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23452 (eval $ac_try) 2>&5
23453 ac_status=$?
23454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23455 (exit $ac_status); }; } &&
23456 { ac_try='test -s conftest.$ac_objext'
23457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23458 (eval $ac_try) 2>&5
23459 ac_status=$?
23460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23461 (exit $ac_status); }; }; then
23462 ac_cv_type_std__istream=yes
23463else
23464 echo "$as_me: failed program was:" >&5
23465sed 's/^/| /' conftest.$ac_ext >&5
23466
23467ac_cv_type_std__istream=no
23468fi
23469rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23470fi
23471echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
23472echo "${ECHO_T}$ac_cv_type_std__istream" >&6
23473if test $ac_cv_type_std__istream = yes; then
23474
23475cat >>confdefs.h <<_ACEOF
23476#define HAVE_STD__ISTREAM 1
23477_ACEOF
23478
23479
23480else
23481 wxUSE_STD_IOSTREAM=no
23482fi
23483echo "$as_me:$LINENO: checking for std::ostream" >&5
23484echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6
23485if test "${ac_cv_type_std__ostream+set}" = set; then
23486 echo $ECHO_N "(cached) $ECHO_C" >&6
23487else
23488 cat >conftest.$ac_ext <<_ACEOF
23489/* confdefs.h. */
23490_ACEOF
23491cat confdefs.h >>conftest.$ac_ext
23492cat >>conftest.$ac_ext <<_ACEOF
23493/* end confdefs.h. */
23494#include <iostream>
23495
23496int
23497main ()
23498{
23499if ((std::ostream *) 0)
23500 return 0;
23501if (sizeof (std::ostream))
23502 return 0;
23503 ;
23504 return 0;
23505}
23506_ACEOF
23507rm -f conftest.$ac_objext
23508if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23509 (eval $ac_compile) 2>conftest.er1
23510 ac_status=$?
23511 grep -v '^ *+' conftest.er1 >conftest.err
23512 rm -f conftest.er1
23513 cat conftest.err >&5
23514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23515 (exit $ac_status); } &&
c9a66001 23516 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
23517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23518 (eval $ac_try) 2>&5
23519 ac_status=$?
23520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23521 (exit $ac_status); }; } &&
23522 { ac_try='test -s conftest.$ac_objext'
23523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23524 (eval $ac_try) 2>&5
23525 ac_status=$?
23526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23527 (exit $ac_status); }; }; then
23528 ac_cv_type_std__ostream=yes
23529else
23530 echo "$as_me: failed program was:" >&5
23531sed 's/^/| /' conftest.$ac_ext >&5
23532
23533ac_cv_type_std__ostream=no
23534fi
23535rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23536fi
23537echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
23538echo "${ECHO_T}$ac_cv_type_std__ostream" >&6
23539if test $ac_cv_type_std__ostream = yes; then
23540
23541cat >>confdefs.h <<_ACEOF
23542#define HAVE_STD__OSTREAM 1
23543_ACEOF
23544
23545
23546else
23547 wxUSE_STD_IOSTREAM=no
23548fi
23549
23550
23551 if test "$wxUSE_STD_IOSTREAM" != "yes"; then
4b9918c5
MW
23552 if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
23553 { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
23554echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
23555 { (exit 1); exit 1; }; }
23556 else
23557 { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
f56c22b4 23558echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
4b9918c5 23559 fi
f56c22b4 23560 fi
0a08f02a
MB
23561fi
23562
23563if test "$wxUSE_STL" = "yes"; then
0a08f02a
MB
23564 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
23565echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
a848cd7e
SC
23566 cat >conftest.$ac_ext <<_ACEOF
23567/* confdefs.h. */
23568_ACEOF
23569cat confdefs.h >>conftest.$ac_ext
23570cat >>conftest.$ac_ext <<_ACEOF
23571/* end confdefs.h. */
23572#include <string>
0a08f02a
MB
23573 #include <functional>
23574 #include <algorithm>
23575 #include <vector>
23576 #include <list>
a848cd7e
SC
23577int
23578main ()
23579{
0a08f02a
MB
23580std::vector<int> moo;
23581 std::list<int> foo;
23582 std::vector<int>::iterator it =
23583 std::find_if(moo.begin(), moo.end(),
23584 std::bind2nd(std::less<int>(), 3));
a848cd7e
SC
23585 ;
23586 return 0;
23587}
23588_ACEOF
23589rm -f conftest.$ac_objext
23590if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23591 (eval $ac_compile) 2>conftest.er1
a848cd7e 23592 ac_status=$?
ac1cb8d3
VS
23593 grep -v '^ *+' conftest.er1 >conftest.err
23594 rm -f conftest.er1
23595 cat conftest.err >&5
a848cd7e
SC
23596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23597 (exit $ac_status); } &&
c9a66001 23598 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23600 (eval $ac_try) 2>&5
23601 ac_status=$?
23602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23603 (exit $ac_status); }; } &&
23604 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23606 (eval $ac_try) 2>&5
23607 ac_status=$?
23608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23609 (exit $ac_status); }; }; then
23610 echo "$as_me:$LINENO: result: yes" >&5
23611echo "${ECHO_T}yes" >&6
a848cd7e
SC
23612else
23613 echo "$as_me: failed program was:" >&5
23614sed 's/^/| /' conftest.$ac_ext >&5
23615
23616echo "$as_me:$LINENO: result: no" >&5
23617echo "${ECHO_T}no" >&6
0a08f02a
MB
23618 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
23619echo "$as_me: error: Basic STL functionality missing" >&2;}
23620 { (exit 1); exit 1; }; }
a848cd7e 23621fi
ac1cb8d3 23622rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23623
23624 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
23625echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
23626 cat >conftest.$ac_ext <<_ACEOF
23627/* confdefs.h. */
23628_ACEOF
23629cat confdefs.h >>conftest.$ac_ext
23630cat >>conftest.$ac_ext <<_ACEOF
23631/* end confdefs.h. */
23632#include <string>
23633int
23634main ()
23635{
23636std::string foo, bar;
23637 foo.compare(bar);
23638 foo.compare(1, 1, bar);
23639 foo.compare(1, 1, bar, 1, 1);
23640 foo.compare("");
23641 foo.compare(1, 1, "");
23642 foo.compare(1, 1, "", 2);
23643 ;
23644 return 0;
23645}
23646_ACEOF
23647rm -f conftest.$ac_objext
23648if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23649 (eval $ac_compile) 2>conftest.er1
a848cd7e 23650 ac_status=$?
ac1cb8d3
VS
23651 grep -v '^ *+' conftest.er1 >conftest.err
23652 rm -f conftest.er1
23653 cat conftest.err >&5
a848cd7e
SC
23654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23655 (exit $ac_status); } &&
c9a66001 23656 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23658 (eval $ac_try) 2>&5
23659 ac_status=$?
23660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23661 (exit $ac_status); }; } &&
23662 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23664 (eval $ac_try) 2>&5
23665 ac_status=$?
23666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23667 (exit $ac_status); }; }; then
23668 echo "$as_me:$LINENO: result: yes" >&5
23669echo "${ECHO_T}yes" >&6
23670 cat >>confdefs.h <<\_ACEOF
23671#define HAVE_STD_STRING_COMPARE 1
23672_ACEOF
23673
23674else
23675 echo "$as_me: failed program was:" >&5
23676sed 's/^/| /' conftest.$ac_ext >&5
23677
23678echo "$as_me:$LINENO: result: no" >&5
23679echo "${ECHO_T}no" >&6
23680fi
ac1cb8d3 23681rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23682
23683 if test "${ac_cv_header_hash_map+set}" = set; then
23684 echo "$as_me:$LINENO: checking for hash_map" >&5
23685echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
23686if test "${ac_cv_header_hash_map+set}" = set; then
23687 echo $ECHO_N "(cached) $ECHO_C" >&6
23688fi
23689echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
23690echo "${ECHO_T}$ac_cv_header_hash_map" >&6
23691else
23692 # Is the header compilable?
23693echo "$as_me:$LINENO: checking hash_map usability" >&5
23694echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
23695cat >conftest.$ac_ext <<_ACEOF
23696/* confdefs.h. */
23697_ACEOF
23698cat confdefs.h >>conftest.$ac_ext
23699cat >>conftest.$ac_ext <<_ACEOF
23700/* end confdefs.h. */
23701$ac_includes_default
23702#include <hash_map>
23703_ACEOF
23704rm -f conftest.$ac_objext
23705if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23706 (eval $ac_compile) 2>conftest.er1
bdcade0a 23707 ac_status=$?
ac1cb8d3
VS
23708 grep -v '^ *+' conftest.er1 >conftest.err
23709 rm -f conftest.er1
23710 cat conftest.err >&5
bdcade0a
MB
23711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23712 (exit $ac_status); } &&
c9a66001 23713 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23715 (eval $ac_try) 2>&5
23716 ac_status=$?
23717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23718 (exit $ac_status); }; } &&
23719 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23721 (eval $ac_try) 2>&5
23722 ac_status=$?
23723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23724 (exit $ac_status); }; }; then
23725 ac_header_compiler=yes
23726else
23727 echo "$as_me: failed program was:" >&5
23728sed 's/^/| /' conftest.$ac_ext >&5
23729
23730ac_header_compiler=no
23731fi
ac1cb8d3 23732rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23733echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23734echo "${ECHO_T}$ac_header_compiler" >&6
23735
23736# Is the header present?
23737echo "$as_me:$LINENO: checking hash_map presence" >&5
23738echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
23739cat >conftest.$ac_ext <<_ACEOF
23740/* confdefs.h. */
23741_ACEOF
23742cat confdefs.h >>conftest.$ac_ext
23743cat >>conftest.$ac_ext <<_ACEOF
23744/* end confdefs.h. */
23745#include <hash_map>
23746_ACEOF
23747if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23748 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23749 ac_status=$?
23750 grep -v '^ *+' conftest.er1 >conftest.err
23751 rm -f conftest.er1
23752 cat conftest.err >&5
23753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23754 (exit $ac_status); } >/dev/null; then
23755 if test -s conftest.err; then
23756 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 23757 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
23758 else
23759 ac_cpp_err=
23760 fi
23761else
23762 ac_cpp_err=yes
23763fi
23764if test -z "$ac_cpp_err"; then
23765 ac_header_preproc=yes
23766else
23767 echo "$as_me: failed program was:" >&5
23768sed 's/^/| /' conftest.$ac_ext >&5
23769
23770 ac_header_preproc=no
23771fi
23772rm -f conftest.err conftest.$ac_ext
23773echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23774echo "${ECHO_T}$ac_header_preproc" >&6
23775
23776# So? What about this header?
ac1cb8d3
VS
23777case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23778 yes:no: )
bdcade0a
MB
23779 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
23780echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23781 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
23782echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
23783 ac_header_preproc=yes
bdcade0a 23784 ;;
ac1cb8d3 23785 no:yes:* )
bdcade0a
MB
23786 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
23787echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23788 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
23789echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
23790 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
23791echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
23792 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
23793echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
23794 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
23795echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23796 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
23797echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
23798 (
23799 cat <<\_ASBOX
ac1cb8d3
VS
23800## ----------------------------------------- ##
23801## Report this to wx-dev@lists.wxwidgets.org ##
23802## ----------------------------------------- ##
bdcade0a
MB
23803_ASBOX
23804 ) |
23805 sed "s/^/$as_me: WARNING: /" >&2
23806 ;;
23807esac
23808echo "$as_me:$LINENO: checking for hash_map" >&5
23809echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
23810if test "${ac_cv_header_hash_map+set}" = set; then
23811 echo $ECHO_N "(cached) $ECHO_C" >&6
23812else
23813 ac_cv_header_hash_map=$ac_header_preproc
23814fi
23815echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
23816echo "${ECHO_T}$ac_cv_header_hash_map" >&6
23817
23818fi
23819if test $ac_cv_header_hash_map = yes; then
23820 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
23821echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
23822 cat >conftest.$ac_ext <<_ACEOF
23823/* confdefs.h. */
23824_ACEOF
23825cat confdefs.h >>conftest.$ac_ext
23826cat >>conftest.$ac_ext <<_ACEOF
23827/* end confdefs.h. */
23828#include <hash_map>
23829 #include <hash_set>
23830int
23831main ()
23832{
23833std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
23834 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
23835 ;
23836 return 0;
23837}
23838_ACEOF
23839rm -f conftest.$ac_objext
23840if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23841 (eval $ac_compile) 2>conftest.er1
bdcade0a 23842 ac_status=$?
ac1cb8d3
VS
23843 grep -v '^ *+' conftest.er1 >conftest.err
23844 rm -f conftest.er1
23845 cat conftest.err >&5
bdcade0a
MB
23846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23847 (exit $ac_status); } &&
c9a66001 23848 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23850 (eval $ac_try) 2>&5
23851 ac_status=$?
23852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23853 (exit $ac_status); }; } &&
23854 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23856 (eval $ac_try) 2>&5
23857 ac_status=$?
23858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23859 (exit $ac_status); }; }; then
23860 echo "$as_me:$LINENO: result: yes" >&5
23861echo "${ECHO_T}yes" >&6
23862 cat >>confdefs.h <<\_ACEOF
23863#define HAVE_HASH_MAP 1
23864_ACEOF
23865
23866 cat >>confdefs.h <<\_ACEOF
23867#define HAVE_STD_HASH_MAP 1
23868_ACEOF
23869
23870else
23871 echo "$as_me: failed program was:" >&5
23872sed 's/^/| /' conftest.$ac_ext >&5
23873
23874echo "$as_me:$LINENO: result: no" >&5
23875echo "${ECHO_T}no" >&6
23876fi
ac1cb8d3 23877rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23878
23879fi
23880
23881
23882
23883 if test "${ac_cv_header_ext_hash_map+set}" = set; then
23884 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
23885echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
23886if test "${ac_cv_header_ext_hash_map+set}" = set; then
23887 echo $ECHO_N "(cached) $ECHO_C" >&6
23888fi
23889echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
23890echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
23891else
23892 # Is the header compilable?
23893echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
23894echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
23895cat >conftest.$ac_ext <<_ACEOF
23896/* confdefs.h. */
23897_ACEOF
23898cat confdefs.h >>conftest.$ac_ext
23899cat >>conftest.$ac_ext <<_ACEOF
23900/* end confdefs.h. */
23901$ac_includes_default
23902#include <ext/hash_map>
23903_ACEOF
23904rm -f conftest.$ac_objext
23905if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23906 (eval $ac_compile) 2>conftest.er1
bdcade0a 23907 ac_status=$?
ac1cb8d3
VS
23908 grep -v '^ *+' conftest.er1 >conftest.err
23909 rm -f conftest.er1
23910 cat conftest.err >&5
bdcade0a
MB
23911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23912 (exit $ac_status); } &&
c9a66001 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); }; } &&
23919 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
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
23925 ac_header_compiler=yes
23926else
23927 echo "$as_me: failed program was:" >&5
23928sed 's/^/| /' conftest.$ac_ext >&5
23929
23930ac_header_compiler=no
23931fi
ac1cb8d3 23932rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23933echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23934echo "${ECHO_T}$ac_header_compiler" >&6
23935
23936# Is the header present?
23937echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
23938echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
23939cat >conftest.$ac_ext <<_ACEOF
23940/* confdefs.h. */
23941_ACEOF
23942cat confdefs.h >>conftest.$ac_ext
23943cat >>conftest.$ac_ext <<_ACEOF
23944/* end confdefs.h. */
23945#include <ext/hash_map>
23946_ACEOF
23947if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23948 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23949 ac_status=$?
23950 grep -v '^ *+' conftest.er1 >conftest.err
23951 rm -f conftest.er1
23952 cat conftest.err >&5
23953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23954 (exit $ac_status); } >/dev/null; then
23955 if test -s conftest.err; then
23956 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 23957 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
23958 else
23959 ac_cpp_err=
23960 fi
23961else
23962 ac_cpp_err=yes
23963fi
23964if test -z "$ac_cpp_err"; then
23965 ac_header_preproc=yes
23966else
23967 echo "$as_me: failed program was:" >&5
23968sed 's/^/| /' conftest.$ac_ext >&5
23969
23970 ac_header_preproc=no
23971fi
23972rm -f conftest.err conftest.$ac_ext
23973echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23974echo "${ECHO_T}$ac_header_preproc" >&6
23975
23976# So? What about this header?
ac1cb8d3
VS
23977case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23978 yes:no: )
bdcade0a
MB
23979 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
23980echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23981 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
23982echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
23983 ac_header_preproc=yes
bdcade0a 23984 ;;
ac1cb8d3 23985 no:yes:* )
bdcade0a
MB
23986 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
23987echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23988 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
23989echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
23990 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
23991echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
23992 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
23993echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
23994 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
23995echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23996 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
23997echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
23998 (
23999 cat <<\_ASBOX
ac1cb8d3
VS
24000## ----------------------------------------- ##
24001## Report this to wx-dev@lists.wxwidgets.org ##
24002## ----------------------------------------- ##
bdcade0a
MB
24003_ASBOX
24004 ) |
24005 sed "s/^/$as_me: WARNING: /" >&2
24006 ;;
24007esac
24008echo "$as_me:$LINENO: checking for ext/hash_map" >&5
24009echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
24010if test "${ac_cv_header_ext_hash_map+set}" = set; then
24011 echo $ECHO_N "(cached) $ECHO_C" >&6
24012else
24013 ac_cv_header_ext_hash_map=$ac_header_preproc
24014fi
24015echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
24016echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
24017
24018fi
24019if test $ac_cv_header_ext_hash_map = yes; then
24020 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
24021echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
24022 cat >conftest.$ac_ext <<_ACEOF
24023/* confdefs.h. */
24024_ACEOF
24025cat confdefs.h >>conftest.$ac_ext
24026cat >>conftest.$ac_ext <<_ACEOF
24027/* end confdefs.h. */
24028#include <ext/hash_map>
24029 #include <ext/hash_set>
24030int
24031main ()
24032{
24033__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
24034 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
24035 ;
24036 return 0;
24037}
24038_ACEOF
24039rm -f conftest.$ac_objext
24040if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24041 (eval $ac_compile) 2>conftest.er1
bdcade0a 24042 ac_status=$?
ac1cb8d3
VS
24043 grep -v '^ *+' conftest.er1 >conftest.err
24044 rm -f conftest.er1
24045 cat conftest.err >&5
bdcade0a
MB
24046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24047 (exit $ac_status); } &&
c9a66001 24048 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24050 (eval $ac_try) 2>&5
24051 ac_status=$?
24052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24053 (exit $ac_status); }; } &&
24054 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
24055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24056 (eval $ac_try) 2>&5
24057 ac_status=$?
24058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24059 (exit $ac_status); }; }; then
24060 echo "$as_me:$LINENO: result: yes" >&5
24061echo "${ECHO_T}yes" >&6
24062 cat >>confdefs.h <<\_ACEOF
24063#define HAVE_EXT_HASH_MAP 1
24064_ACEOF
24065
24066 cat >>confdefs.h <<\_ACEOF
24067#define HAVE_GNU_CXX_HASH_MAP 1
24068_ACEOF
24069
24070else
24071 echo "$as_me: failed program was:" >&5
24072sed 's/^/| /' conftest.$ac_ext >&5
24073
24074echo "$as_me:$LINENO: result: no" >&5
24075echo "${ECHO_T}no" >&6
24076fi
ac1cb8d3 24077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
24078
24079fi
24080
24081
a848cd7e
SC
24082fi
24083
24084
24085SEARCH_INCLUDE="\
24086 /usr/local/include \
24087 \
24088 /usr/Motif-2.1/include \
24089 /usr/Motif-1.2/include \
24090 /usr/include/Motif1.2 \
a848cd7e
SC
24091 \
24092 /usr/dt/include \
24093 /usr/openwin/include \
24094 \
24095 /usr/include/Xm \
24096 \
24097 /usr/X11R6/include \
24098 /usr/X11R6.4/include \
24099 /usr/X11R5/include \
24100 /usr/X11R4/include \
24101 \
24102 /usr/include/X11R6 \
24103 /usr/include/X11R5 \
24104 /usr/include/X11R4 \
24105 \
24106 /usr/local/X11R6/include \
24107 /usr/local/X11R5/include \
24108 /usr/local/X11R4/include \
24109 \
24110 /usr/local/include/X11R6 \
24111 /usr/local/include/X11R5 \
24112 /usr/local/include/X11R4 \
24113 \
24114 /usr/X11/include \
24115 /usr/include/X11 \
24116 /usr/local/X11/include \
24117 /usr/local/include/X11 \
24118 \
a848cd7e 24119 /usr/XFree86/include/X11 \
e051b34e
MW
24120 /usr/pkg/include \
24121 \
a848cd7e
SC
24122 /usr/openwin/share/include"
24123
6f9cf1e6 24124echo "$as_me:$LINENO: checking for libraries directory" >&5
0ad5d837 24125echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6
6f9cf1e6
MW
24126
24127case "${host}" in
24128 *-*-irix6* )
24129 if test "${wx_cv_std_libpath+set}" = set; then
0ad5d837
VZ
24130 echo $ECHO_N "(cached) $ECHO_C" >&6
24131else
24132
c687b303
VZ
24133 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
24134 for e in a so sl dylib dll.a; do
24135 libc="$d/libc.$e"
24136 if test -f $libc; then
24137 save_LIBS="$LIBS"
24138 LIBS="$libc"
24139 cat >conftest.$ac_ext <<_ACEOF
0ad5d837
VZ
24140int main() { return 0; }
24141_ACEOF
24142rm -f conftest.$ac_objext conftest$ac_exeext
24143if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24144 (eval $ac_link) 2>conftest.er1
24145 ac_status=$?
24146 grep -v '^ *+' conftest.er1 >conftest.err
24147 rm -f conftest.er1
24148 cat conftest.err >&5
24149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24150 (exit $ac_status); } &&
c9a66001 24151 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
24152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24153 (eval $ac_try) 2>&5
24154 ac_status=$?
24155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24156 (exit $ac_status); }; } &&
24157 { ac_try='test -s conftest$ac_exeext'
24158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24159 (eval $ac_try) 2>&5
24160 ac_status=$?
24161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24162 (exit $ac_status); }; }; then
24163 wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
24164else
24165 echo "$as_me: failed program was:" >&5
24166sed 's/^/| /' conftest.$ac_ext >&5
24167
24168fi
24169rm -f conftest.err conftest.$ac_objext \
24170 conftest$ac_exeext conftest.$ac_ext
c687b303
VZ
24171 LIBS="$save_LIBS"
24172 if test "x$wx_cv_std_libpath" != "x"; then
24173 break 2
24174 fi
24175 fi
24176 done
24177 done
24178 if test "x$wx_cv_std_libpath" = "x"; then
24179 wx_cv_std_libpath="lib"
0ad5d837 24180 fi
0ad5d837
VZ
24181
24182
24183fi
6f9cf1e6
MW
24184
24185 ;;
24186
24187 *-*-solaris2* )
24188 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
24189 wx_cv_std_libpath="lib/64"
24190 else
24191 wx_cv_std_libpath="lib"
24192 fi
24193 ;;
24194
24195 *-*-linux* )
24196 if test "$ac_cv_sizeof_void_p" = 8 -a \
24197 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
24198 wx_cv_std_libpath="lib64"
24199 else
24200 wx_cv_std_libpath="lib"
24201 fi
c687b303
VZ
24202 ;;
24203
24204 *)
24205 wx_cv_std_libpath="lib";
24206 ;;
24207esac
0ad5d837 24208
6f9cf1e6
MW
24209echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
24210echo "${ECHO_T}$wx_cv_std_libpath" >&6
24211
24212SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
a848cd7e 24213
3eca31dc
MW
24214if test "$build" != "$host" -a "$GCC" = yes; then
24215 if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
24216 cross_root=`dirname $cross_root`
24217 cross_root=`dirname $cross_root`
24218
24219 SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
24220 SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
5c60e845 24221 SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
3eca31dc
MW
24222
24223 if test -z "$PKG_CONFIG_PATH"; then
24224 PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
24225 export PKG_CONFIG_PATH
24226 fi
24227
24228 if test -z "$x_includes" -o "$x_includes" = NONE; then
24229
24230ac_find_includes=
24231for ac_dir in $SEARCH_INCLUDE /usr/include;
24232 do
24233 if test -f "$ac_dir/X11/Intrinsic.h"; then
24234 ac_find_includes=$ac_dir
24235 break
24236 fi
24237 done
24238
24239 x_includes=$ac_find_includes
24240 fi
24241 if test -z "$x_libraries" -o "$x_libraries" = NONE; then
24242
0ad5d837
VZ
24243 ac_find_libraries=
24244 for ac_dir in $SEARCH_LIB;
3eca31dc
MW
24245 do
24246 for ac_extension in a so sl dylib dll.a; do
24247 if test -f "$ac_dir/libXt.$ac_extension"; then
24248 ac_find_libraries=$ac_dir
24249 break 2
24250 fi
24251 done
24252 done
24253
24254 x_libraries=$ac_find_libraries
24255 fi
24256 fi
24257fi
24258
a848cd7e
SC
24259
24260cat >confcache <<\_ACEOF
24261# This file is a shell script that caches the results of configure
24262# tests run on this system so they can be shared between configure
24263# scripts and configure runs, see configure's option --config-cache.
24264# It is not useful on other systems. If it contains results you don't
24265# want to keep, you may remove or edit it.
24266#
24267# config.status only pays attention to the cache file if you give it
24268# the --recheck option to rerun configure.
24269#
24270# `ac_cv_env_foo' variables (set or unset) will be overridden when
24271# loading this file, other *unset* `ac_cv_foo' will be assigned the
24272# following values.
24273
24274_ACEOF
24275
24276# The following way of writing the cache mishandles newlines in values,
24277# but we know of no workaround that is simple, portable, and efficient.
24278# So, don't put newlines in cache variables' values.
24279# Ultrix sh set writes to stderr and can't be redirected directly,
24280# and sets the high bit in the cache file unless we assign to the vars.
24281{
24282 (set) 2>&1 |
24283 case `(ac_space=' '; set | grep ac_space) 2>&1` in
24284 *ac_space=\ *)
24285 # `set' does not quote correctly, so add quotes (double-quote
24286 # substitution turns \\\\ into \\, and sed turns \\ into \).
24287 sed -n \
ac1cb8d3
VS
24288 "s/'/'\\\\''/g;
24289 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
24290 ;;
24291 *)
24292 # `set' quotes correctly as required by POSIX, so do not add quotes.
24293 sed -n \
ac1cb8d3 24294 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
24295 ;;
24296 esac;
24297} |
24298 sed '
24299 t clear
24300 : clear
24301 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24302 t end
24303 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24304 : end' >>confcache
24305if diff $cache_file confcache >/dev/null 2>&1; then :; else
24306 if test -w $cache_file; then
24307 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24308 cat confcache >$cache_file
24309 else
24310 echo "not updating unwritable cache $cache_file"
24311 fi
24312fi
24313rm -f confcache
24314
24315if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
24316 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
24317echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
24318if test "${wx_cv_lib_glibc21+set}" = set; then
24319 echo $ECHO_N "(cached) $ECHO_C" >&6
24320else
24321
24322 cat >conftest.$ac_ext <<_ACEOF
24323/* confdefs.h. */
24324_ACEOF
24325cat confdefs.h >>conftest.$ac_ext
24326cat >>conftest.$ac_ext <<_ACEOF
24327/* end confdefs.h. */
24328#include <features.h>
24329int
24330main ()
24331{
24332
24333 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
04e525a0 24334 not glibc 2.1
a848cd7e
SC
24335 #endif
24336
24337 ;
24338 return 0;
24339}
24340_ACEOF
24341rm -f conftest.$ac_objext
24342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24343 (eval $ac_compile) 2>conftest.er1
a848cd7e 24344 ac_status=$?
ac1cb8d3
VS
24345 grep -v '^ *+' conftest.er1 >conftest.err
24346 rm -f conftest.er1
24347 cat conftest.err >&5
a848cd7e
SC
24348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24349 (exit $ac_status); } &&
c9a66001 24350 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24352 (eval $ac_try) 2>&5
24353 ac_status=$?
24354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24355 (exit $ac_status); }; } &&
24356 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24358 (eval $ac_try) 2>&5
24359 ac_status=$?
24360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24361 (exit $ac_status); }; }; then
24362
24363 wx_cv_lib_glibc21=yes
24364
24365else
24366 echo "$as_me: failed program was:" >&5
24367sed 's/^/| /' conftest.$ac_ext >&5
24368
24369
24370 wx_cv_lib_glibc21=no
24371
24372
24373fi
ac1cb8d3 24374rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24375
24376fi
24377echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
24378echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
24379 if test "$wx_cv_lib_glibc21" = "yes"; then
24380 cat >>confdefs.h <<\_ACEOF
24381#define wxHAVE_GLIBC2 1
24382_ACEOF
24383
24384 fi
24385fi
24386
24387if test "x$wx_cv_lib_glibc21" = "xyes"; then
24388 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
24389 cat >>confdefs.h <<\_ACEOF
24390#define _GNU_SOURCE 1
24391_ACEOF
24392
24393 fi
24394fi
24395
5d7b7554
VZ
24396have_cos=0
24397have_floor=0
a848cd7e 24398
5d7b7554
VZ
24399for ac_func in cos
24400do
24401as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24402echo "$as_me:$LINENO: checking for $ac_func" >&5
24403echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24404if eval "test \"\${$as_ac_var+set}\" = set"; then
a848cd7e 24405 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 24406else
5d7b7554 24407 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
24408/* confdefs.h. */
24409_ACEOF
24410cat confdefs.h >>conftest.$ac_ext
24411cat >>conftest.$ac_ext <<_ACEOF
24412/* end confdefs.h. */
5d7b7554
VZ
24413/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24414 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24415#define $ac_func innocuous_$ac_func
24416
24417/* System header to define __stub macros and hopefully few prototypes,
24418 which can conflict with char $ac_func (); below.
24419 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24420 <limits.h> exists even on freestanding compilers. */
24421
24422#ifdef __STDC__
24423# include <limits.h>
24424#else
24425# include <assert.h>
24426#endif
24427
24428#undef $ac_func
24429
24430/* Override any gcc2 internal prototype to avoid an error. */
24431#ifdef __cplusplus
24432extern "C"
24433{
24434#endif
24435/* We use char because int might match the return type of a gcc2
24436 builtin and then its argument prototype would still apply. */
24437char $ac_func ();
24438/* The GNU C library defines this for functions which it implements
24439 to always fail with ENOSYS. Some functions are actually named
24440 something starting with __ and the normal name is an alias. */
24441#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24442choke me
24443#else
24444char (*f) () = $ac_func;
24445#endif
24446#ifdef __cplusplus
24447}
24448#endif
24449
24450int
24451main ()
24452{
24453return f != $ac_func;
24454 ;
24455 return 0;
24456}
a848cd7e 24457_ACEOF
5d7b7554
VZ
24458rm -f conftest.$ac_objext conftest$ac_exeext
24459if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24460 (eval $ac_link) 2>conftest.er1
a848cd7e 24461 ac_status=$?
ac1cb8d3
VS
24462 grep -v '^ *+' conftest.er1 >conftest.err
24463 rm -f conftest.er1
24464 cat conftest.err >&5
a848cd7e
SC
24465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24466 (exit $ac_status); } &&
c9a66001 24467 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24469 (eval $ac_try) 2>&5
24470 ac_status=$?
24471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24472 (exit $ac_status); }; } &&
5d7b7554 24473 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24475 (eval $ac_try) 2>&5
24476 ac_status=$?
24477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24478 (exit $ac_status); }; }; then
5d7b7554 24479 eval "$as_ac_var=yes"
a848cd7e
SC
24480else
24481 echo "$as_me: failed program was:" >&5
24482sed 's/^/| /' conftest.$ac_ext >&5
24483
5d7b7554 24484eval "$as_ac_var=no"
a848cd7e 24485fi
5d7b7554
VZ
24486rm -f conftest.err conftest.$ac_objext \
24487 conftest$ac_exeext conftest.$ac_ext
a848cd7e 24488fi
5d7b7554
VZ
24489echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24490echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24491if test `eval echo '${'$as_ac_var'}'` = yes; then
24492 cat >>confdefs.h <<_ACEOF
24493#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24494_ACEOF
24495 have_cos=1
a848cd7e 24496fi
5d7b7554 24497done
a848cd7e 24498
ab0f0edd 24499
5d7b7554 24500for ac_func in floor
a848cd7e
SC
24501do
24502as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24503echo "$as_me:$LINENO: checking for $ac_func" >&5
24504echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24505if eval "test \"\${$as_ac_var+set}\" = set"; then
24506 echo $ECHO_N "(cached) $ECHO_C" >&6
24507else
24508 cat >conftest.$ac_ext <<_ACEOF
24509/* confdefs.h. */
24510_ACEOF
24511cat confdefs.h >>conftest.$ac_ext
24512cat >>conftest.$ac_ext <<_ACEOF
24513/* end confdefs.h. */
ac1cb8d3
VS
24514/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24515 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24516#define $ac_func innocuous_$ac_func
24517
a848cd7e
SC
24518/* System header to define __stub macros and hopefully few prototypes,
24519 which can conflict with char $ac_func (); below.
24520 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24521 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24522
a848cd7e
SC
24523#ifdef __STDC__
24524# include <limits.h>
24525#else
24526# include <assert.h>
24527#endif
ac1cb8d3
VS
24528
24529#undef $ac_func
24530
a848cd7e
SC
24531/* Override any gcc2 internal prototype to avoid an error. */
24532#ifdef __cplusplus
24533extern "C"
24534{
24535#endif
24536/* We use char because int might match the return type of a gcc2
24537 builtin and then its argument prototype would still apply. */
24538char $ac_func ();
24539/* The GNU C library defines this for functions which it implements
24540 to always fail with ENOSYS. Some functions are actually named
24541 something starting with __ and the normal name is an alias. */
24542#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24543choke me
24544#else
24545char (*f) () = $ac_func;
24546#endif
24547#ifdef __cplusplus
24548}
24549#endif
24550
24551int
24552main ()
24553{
24554return f != $ac_func;
24555 ;
24556 return 0;
24557}
24558_ACEOF
24559rm -f conftest.$ac_objext conftest$ac_exeext
24560if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24561 (eval $ac_link) 2>conftest.er1
a848cd7e 24562 ac_status=$?
ac1cb8d3
VS
24563 grep -v '^ *+' conftest.er1 >conftest.err
24564 rm -f conftest.er1
24565 cat conftest.err >&5
a848cd7e
SC
24566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24567 (exit $ac_status); } &&
c9a66001 24568 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
24569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24570 (eval $ac_try) 2>&5
24571 ac_status=$?
24572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24573 (exit $ac_status); }; } &&
24574 { ac_try='test -s conftest$ac_exeext'
24575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24576 (eval $ac_try) 2>&5
24577 ac_status=$?
24578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24579 (exit $ac_status); }; }; then
24580 eval "$as_ac_var=yes"
24581else
24582 echo "$as_me: failed program was:" >&5
24583sed 's/^/| /' conftest.$ac_ext >&5
24584
24585eval "$as_ac_var=no"
24586fi
24587rm -f conftest.err conftest.$ac_objext \
24588 conftest$ac_exeext conftest.$ac_ext
24589fi
24590echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24591echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24592if test `eval echo '${'$as_ac_var'}'` = yes; then
24593 cat >>confdefs.h <<_ACEOF
24594#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24595_ACEOF
24596 have_floor=1
24597fi
24598done
24599
24600echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
24601echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
24602if test "$have_cos" = 1 -a "$have_floor" = 1; then
24603 echo "$as_me:$LINENO: result: yes" >&5
24604echo "${ECHO_T}yes" >&6
24605else
24606 echo "$as_me:$LINENO: result: no" >&5
24607echo "${ECHO_T}no" >&6
24608 LIBS="$LIBS -lm"
24609 # use different functions to avoid configure caching
24610 have_sin=0
24611 have_ceil=0
24612
24613for ac_func in sin
24614do
24615as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24616echo "$as_me:$LINENO: checking for $ac_func" >&5
24617echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24618if eval "test \"\${$as_ac_var+set}\" = set"; then
24619 echo $ECHO_N "(cached) $ECHO_C" >&6
24620else
24621 cat >conftest.$ac_ext <<_ACEOF
24622/* confdefs.h. */
24623_ACEOF
24624cat confdefs.h >>conftest.$ac_ext
24625cat >>conftest.$ac_ext <<_ACEOF
24626/* end confdefs.h. */
24627/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24628 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24629#define $ac_func innocuous_$ac_func
24630
24631/* System header to define __stub macros and hopefully few prototypes,
24632 which can conflict with char $ac_func (); below.
24633 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24634 <limits.h> exists even on freestanding compilers. */
24635
24636#ifdef __STDC__
24637# include <limits.h>
24638#else
24639# include <assert.h>
24640#endif
24641
24642#undef $ac_func
24643
24644/* Override any gcc2 internal prototype to avoid an error. */
24645#ifdef __cplusplus
24646extern "C"
24647{
24648#endif
24649/* We use char because int might match the return type of a gcc2
24650 builtin and then its argument prototype would still apply. */
24651char $ac_func ();
24652/* The GNU C library defines this for functions which it implements
24653 to always fail with ENOSYS. Some functions are actually named
24654 something starting with __ and the normal name is an alias. */
24655#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24656choke me
24657#else
24658char (*f) () = $ac_func;
24659#endif
24660#ifdef __cplusplus
24661}
24662#endif
24663
24664int
24665main ()
24666{
24667return f != $ac_func;
24668 ;
24669 return 0;
24670}
24671_ACEOF
24672rm -f conftest.$ac_objext conftest$ac_exeext
24673if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24674 (eval $ac_link) 2>conftest.er1
24675 ac_status=$?
24676 grep -v '^ *+' conftest.er1 >conftest.err
24677 rm -f conftest.er1
24678 cat conftest.err >&5
24679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24680 (exit $ac_status); } &&
c9a66001 24681 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
24682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24683 (eval $ac_try) 2>&5
24684 ac_status=$?
24685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24686 (exit $ac_status); }; } &&
24687 { ac_try='test -s conftest$ac_exeext'
24688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24689 (eval $ac_try) 2>&5
24690 ac_status=$?
24691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24692 (exit $ac_status); }; }; then
24693 eval "$as_ac_var=yes"
24694else
24695 echo "$as_me: failed program was:" >&5
24696sed 's/^/| /' conftest.$ac_ext >&5
24697
24698eval "$as_ac_var=no"
24699fi
24700rm -f conftest.err conftest.$ac_objext \
24701 conftest$ac_exeext conftest.$ac_ext
24702fi
24703echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24704echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24705if test `eval echo '${'$as_ac_var'}'` = yes; then
24706 cat >>confdefs.h <<_ACEOF
24707#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24708_ACEOF
24709 have_sin=1
24710fi
24711done
24712
24713
24714for ac_func in ceil
24715do
24716as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24717echo "$as_me:$LINENO: checking for $ac_func" >&5
24718echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24719if eval "test \"\${$as_ac_var+set}\" = set"; then
24720 echo $ECHO_N "(cached) $ECHO_C" >&6
24721else
24722 cat >conftest.$ac_ext <<_ACEOF
24723/* confdefs.h. */
24724_ACEOF
24725cat confdefs.h >>conftest.$ac_ext
24726cat >>conftest.$ac_ext <<_ACEOF
24727/* end confdefs.h. */
24728/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24729 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24730#define $ac_func innocuous_$ac_func
24731
24732/* System header to define __stub macros and hopefully few prototypes,
24733 which can conflict with char $ac_func (); below.
24734 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24735 <limits.h> exists even on freestanding compilers. */
24736
24737#ifdef __STDC__
24738# include <limits.h>
24739#else
24740# include <assert.h>
24741#endif
24742
24743#undef $ac_func
24744
24745/* Override any gcc2 internal prototype to avoid an error. */
24746#ifdef __cplusplus
24747extern "C"
24748{
24749#endif
24750/* We use char because int might match the return type of a gcc2
24751 builtin and then its argument prototype would still apply. */
24752char $ac_func ();
24753/* The GNU C library defines this for functions which it implements
24754 to always fail with ENOSYS. Some functions are actually named
24755 something starting with __ and the normal name is an alias. */
24756#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24757choke me
24758#else
24759char (*f) () = $ac_func;
24760#endif
24761#ifdef __cplusplus
24762}
24763#endif
24764
24765int
24766main ()
24767{
24768return f != $ac_func;
24769 ;
24770 return 0;
24771}
24772_ACEOF
24773rm -f conftest.$ac_objext conftest$ac_exeext
24774if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24775 (eval $ac_link) 2>conftest.er1
24776 ac_status=$?
24777 grep -v '^ *+' conftest.er1 >conftest.err
24778 rm -f conftest.er1
24779 cat conftest.err >&5
24780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24781 (exit $ac_status); } &&
c9a66001 24782 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
24783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24784 (eval $ac_try) 2>&5
24785 ac_status=$?
24786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24787 (exit $ac_status); }; } &&
24788 { ac_try='test -s conftest$ac_exeext'
24789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24790 (eval $ac_try) 2>&5
24791 ac_status=$?
24792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24793 (exit $ac_status); }; }; then
24794 eval "$as_ac_var=yes"
24795else
24796 echo "$as_me: failed program was:" >&5
24797sed 's/^/| /' conftest.$ac_ext >&5
24798
24799eval "$as_ac_var=no"
24800fi
24801rm -f conftest.err conftest.$ac_objext \
24802 conftest$ac_exeext conftest.$ac_ext
24803fi
24804echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24805echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24806if test `eval echo '${'$as_ac_var'}'` = yes; then
24807 cat >>confdefs.h <<_ACEOF
24808#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24809_ACEOF
24810 have_ceil=1
24811fi
24812done
24813
24814 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
24815echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
24816 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
24817 echo "$as_me:$LINENO: result: yes" >&5
24818echo "${ECHO_T}yes" >&6
24819 else
24820 echo "$as_me:$LINENO: result: no" >&5
24821echo "${ECHO_T}no" >&6
24822 # not sure we should warn the user, crash, etc.
24823 fi
24824fi
24825
24826
24827
24828if test "$wxUSE_REGEX" != "no"; then
24829 cat >>confdefs.h <<\_ACEOF
24830#define wxUSE_REGEX 1
24831_ACEOF
24832
24833
24834 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
24835 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
24836echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
24837 wxUSE_REGEX=builtin
24838 fi
24839
24840 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
24841 if test "${ac_cv_header_regex_h+set}" = set; then
24842 echo "$as_me:$LINENO: checking for regex.h" >&5
24843echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
24844if test "${ac_cv_header_regex_h+set}" = set; then
24845 echo $ECHO_N "(cached) $ECHO_C" >&6
24846fi
24847echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
24848echo "${ECHO_T}$ac_cv_header_regex_h" >&6
24849else
24850 # Is the header compilable?
24851echo "$as_me:$LINENO: checking regex.h usability" >&5
24852echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
24853cat >conftest.$ac_ext <<_ACEOF
24854/* confdefs.h. */
24855_ACEOF
24856cat confdefs.h >>conftest.$ac_ext
24857cat >>conftest.$ac_ext <<_ACEOF
24858/* end confdefs.h. */
24859$ac_includes_default
24860#include <regex.h>
24861_ACEOF
24862rm -f conftest.$ac_objext
24863if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24864 (eval $ac_compile) 2>conftest.er1
24865 ac_status=$?
24866 grep -v '^ *+' conftest.er1 >conftest.err
24867 rm -f conftest.er1
24868 cat conftest.err >&5
24869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24870 (exit $ac_status); } &&
c9a66001 24871 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
24872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24873 (eval $ac_try) 2>&5
24874 ac_status=$?
24875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24876 (exit $ac_status); }; } &&
24877 { ac_try='test -s conftest.$ac_objext'
24878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24879 (eval $ac_try) 2>&5
24880 ac_status=$?
24881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24882 (exit $ac_status); }; }; then
24883 ac_header_compiler=yes
24884else
24885 echo "$as_me: failed program was:" >&5
24886sed 's/^/| /' conftest.$ac_ext >&5
24887
24888ac_header_compiler=no
24889fi
24890rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24891echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24892echo "${ECHO_T}$ac_header_compiler" >&6
24893
24894# Is the header present?
24895echo "$as_me:$LINENO: checking regex.h presence" >&5
24896echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
24897cat >conftest.$ac_ext <<_ACEOF
24898/* confdefs.h. */
24899_ACEOF
24900cat confdefs.h >>conftest.$ac_ext
24901cat >>conftest.$ac_ext <<_ACEOF
24902/* end confdefs.h. */
24903#include <regex.h>
24904_ACEOF
24905if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24906 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24907 ac_status=$?
24908 grep -v '^ *+' conftest.er1 >conftest.err
24909 rm -f conftest.er1
24910 cat conftest.err >&5
24911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24912 (exit $ac_status); } >/dev/null; then
24913 if test -s conftest.err; then
24914 ac_cpp_err=$ac_cxx_preproc_warn_flag
24915 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24916 else
24917 ac_cpp_err=
24918 fi
24919else
24920 ac_cpp_err=yes
24921fi
24922if test -z "$ac_cpp_err"; then
24923 ac_header_preproc=yes
24924else
24925 echo "$as_me: failed program was:" >&5
24926sed 's/^/| /' conftest.$ac_ext >&5
24927
24928 ac_header_preproc=no
24929fi
24930rm -f conftest.err conftest.$ac_ext
24931echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24932echo "${ECHO_T}$ac_header_preproc" >&6
24933
24934# So? What about this header?
24935case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24936 yes:no: )
24937 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
24938echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24939 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
24940echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
24941 ac_header_preproc=yes
24942 ;;
24943 no:yes:* )
24944 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
24945echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
24946 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
24947echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
24948 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
24949echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
24950 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
24951echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
24952 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
24953echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
24954 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
24955echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
24956 (
24957 cat <<\_ASBOX
24958## ----------------------------------------- ##
24959## Report this to wx-dev@lists.wxwidgets.org ##
24960## ----------------------------------------- ##
24961_ASBOX
24962 ) |
24963 sed "s/^/$as_me: WARNING: /" >&2
24964 ;;
24965esac
24966echo "$as_me:$LINENO: checking for regex.h" >&5
24967echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
24968if test "${ac_cv_header_regex_h+set}" = set; then
24969 echo $ECHO_N "(cached) $ECHO_C" >&6
24970else
24971 ac_cv_header_regex_h=$ac_header_preproc
24972fi
24973echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
24974echo "${ECHO_T}$ac_cv_header_regex_h" >&6
24975
24976fi
24977if test $ac_cv_header_regex_h = yes; then
24978
24979
24980for ac_func in regcomp re_search
24981do
24982as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24983echo "$as_me:$LINENO: checking for $ac_func" >&5
24984echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24985if eval "test \"\${$as_ac_var+set}\" = set"; then
24986 echo $ECHO_N "(cached) $ECHO_C" >&6
24987else
24988 cat >conftest.$ac_ext <<_ACEOF
24989/* confdefs.h. */
24990_ACEOF
24991cat confdefs.h >>conftest.$ac_ext
24992cat >>conftest.$ac_ext <<_ACEOF
24993/* end confdefs.h. */
24994/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24995 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24996#define $ac_func innocuous_$ac_func
24997
24998/* System header to define __stub macros and hopefully few prototypes,
24999 which can conflict with char $ac_func (); below.
25000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25001 <limits.h> exists even on freestanding compilers. */
25002
25003#ifdef __STDC__
25004# include <limits.h>
25005#else
25006# include <assert.h>
25007#endif
25008
25009#undef $ac_func
25010
25011/* Override any gcc2 internal prototype to avoid an error. */
25012#ifdef __cplusplus
25013extern "C"
25014{
25015#endif
25016/* We use char because int might match the return type of a gcc2
25017 builtin and then its argument prototype would still apply. */
25018char $ac_func ();
25019/* The GNU C library defines this for functions which it implements
25020 to always fail with ENOSYS. Some functions are actually named
25021 something starting with __ and the normal name is an alias. */
25022#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25023choke me
25024#else
25025char (*f) () = $ac_func;
25026#endif
25027#ifdef __cplusplus
25028}
25029#endif
25030
25031int
25032main ()
25033{
25034return f != $ac_func;
25035 ;
25036 return 0;
25037}
25038_ACEOF
25039rm -f conftest.$ac_objext conftest$ac_exeext
25040if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25041 (eval $ac_link) 2>conftest.er1
25042 ac_status=$?
25043 grep -v '^ *+' conftest.er1 >conftest.err
25044 rm -f conftest.er1
25045 cat conftest.err >&5
25046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25047 (exit $ac_status); } &&
c9a66001 25048 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25050 (eval $ac_try) 2>&5
25051 ac_status=$?
25052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25053 (exit $ac_status); }; } &&
25054 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25056 (eval $ac_try) 2>&5
25057 ac_status=$?
25058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25059 (exit $ac_status); }; }; then
25060 eval "$as_ac_var=yes"
25061else
25062 echo "$as_me: failed program was:" >&5
25063sed 's/^/| /' conftest.$ac_ext >&5
25064
25065eval "$as_ac_var=no"
25066fi
ac1cb8d3
VS
25067rm -f conftest.err conftest.$ac_objext \
25068 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25069fi
25070echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25071echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25072if test `eval echo '${'$as_ac_var'}'` = yes; then
25073 cat >>confdefs.h <<_ACEOF
25074#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25075_ACEOF
25076
25077fi
25078done
25079
25080fi
25081
25082
25083
25084 if test "x$ac_cv_func_regcomp" != "xyes"; then
25085 if test "$wxUSE_REGEX" = "sys" ; then
25086 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
25087echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
25088 { (exit 1); exit 1; }; }
25089 else
25090 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
25091echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
25092 wxUSE_REGEX=builtin
25093 fi
25094 else
25095 wxUSE_REGEX=sys
25096 cat >>confdefs.h <<\_ACEOF
25097#define WX_NO_REGEX_ADVANCED 1
25098_ACEOF
25099
25100 fi
25101 fi
25102fi
25103
25104
25105ZLIB_LINK=
25106if test "$wxUSE_ZLIB" != "no" ; then
25107 cat >>confdefs.h <<\_ACEOF
25108#define wxUSE_ZLIB 1
25109_ACEOF
25110
25111
25112 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
25113 if test "$USE_DARWIN" = 1; then
25114 system_zlib_h_ok="yes"
25115 else
25116 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
25117echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
25118if test "${ac_cv_header_zlib_h+set}" = set; then
25119 echo $ECHO_N "(cached) $ECHO_C" >&6
25120else
25121 if test "$cross_compiling" = yes; then
25122 unset ac_cv_header_zlib_h
25123
25124else
25125 cat >conftest.$ac_ext <<_ACEOF
25126/* confdefs.h. */
25127_ACEOF
25128cat confdefs.h >>conftest.$ac_ext
25129cat >>conftest.$ac_ext <<_ACEOF
25130/* end confdefs.h. */
25131
25132 #include <zlib.h>
25133 #include <stdio.h>
25134
25135 int main()
25136 {
25137 FILE *f=fopen("conftestval", "w");
25138 if (!f) exit(1);
25139 fprintf(f, "%s",
25140 ZLIB_VERSION[0] == '1' &&
25141 (ZLIB_VERSION[2] > '1' ||
25142 (ZLIB_VERSION[2] == '1' &&
25143 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
25144 exit(0);
25145 }
25146
25147_ACEOF
25148rm -f conftest$ac_exeext
25149if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25150 (eval $ac_link) 2>&5
25151 ac_status=$?
25152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25153 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25155 (eval $ac_try) 2>&5
25156 ac_status=$?
25157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25158 (exit $ac_status); }; }; then
25159 ac_cv_header_zlib_h=`cat conftestval`
25160else
25161 echo "$as_me: program exited with status $ac_status" >&5
25162echo "$as_me: failed program was:" >&5
25163sed 's/^/| /' conftest.$ac_ext >&5
25164
25165( exit $ac_status )
25166ac_cv_header_zlib_h=no
25167fi
ac1cb8d3 25168rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25169fi
25170
25171fi
25172echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25173echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25174 if test "${ac_cv_header_zlib_h+set}" = set; then
25175 echo "$as_me:$LINENO: checking for zlib.h" >&5
25176echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
25177if test "${ac_cv_header_zlib_h+set}" = set; then
25178 echo $ECHO_N "(cached) $ECHO_C" >&6
25179fi
25180echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25181echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25182else
25183 # Is the header compilable?
25184echo "$as_me:$LINENO: checking zlib.h usability" >&5
25185echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
25186cat >conftest.$ac_ext <<_ACEOF
25187/* confdefs.h. */
25188_ACEOF
25189cat confdefs.h >>conftest.$ac_ext
25190cat >>conftest.$ac_ext <<_ACEOF
25191/* end confdefs.h. */
25192$ac_includes_default
25193#include <zlib.h>
25194_ACEOF
25195rm -f conftest.$ac_objext
25196if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25197 (eval $ac_compile) 2>conftest.er1
a848cd7e 25198 ac_status=$?
ac1cb8d3
VS
25199 grep -v '^ *+' conftest.er1 >conftest.err
25200 rm -f conftest.er1
25201 cat conftest.err >&5
a848cd7e
SC
25202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25203 (exit $ac_status); } &&
c9a66001 25204 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25206 (eval $ac_try) 2>&5
25207 ac_status=$?
25208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25209 (exit $ac_status); }; } &&
25210 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25212 (eval $ac_try) 2>&5
25213 ac_status=$?
25214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25215 (exit $ac_status); }; }; then
25216 ac_header_compiler=yes
25217else
25218 echo "$as_me: failed program was:" >&5
25219sed 's/^/| /' conftest.$ac_ext >&5
25220
25221ac_header_compiler=no
25222fi
ac1cb8d3 25223rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25224echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25225echo "${ECHO_T}$ac_header_compiler" >&6
25226
25227# Is the header present?
25228echo "$as_me:$LINENO: checking zlib.h presence" >&5
25229echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
25230cat >conftest.$ac_ext <<_ACEOF
25231/* confdefs.h. */
25232_ACEOF
25233cat confdefs.h >>conftest.$ac_ext
25234cat >>conftest.$ac_ext <<_ACEOF
25235/* end confdefs.h. */
25236#include <zlib.h>
25237_ACEOF
25238if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25239 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25240 ac_status=$?
25241 grep -v '^ *+' conftest.er1 >conftest.err
25242 rm -f conftest.er1
25243 cat conftest.err >&5
25244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25245 (exit $ac_status); } >/dev/null; then
25246 if test -s conftest.err; then
5d7b7554
VZ
25247 ac_cpp_err=$ac_cxx_preproc_warn_flag
25248 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
25249 else
25250 ac_cpp_err=
25251 fi
25252else
25253 ac_cpp_err=yes
25254fi
25255if test -z "$ac_cpp_err"; then
25256 ac_header_preproc=yes
25257else
25258 echo "$as_me: failed program was:" >&5
25259sed 's/^/| /' conftest.$ac_ext >&5
25260
25261 ac_header_preproc=no
25262fi
25263rm -f conftest.err conftest.$ac_ext
25264echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25265echo "${ECHO_T}$ac_header_preproc" >&6
25266
25267# So? What about this header?
5d7b7554 25268case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 25269 yes:no: )
a848cd7e
SC
25270 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
25271echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25272 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
25273echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
25274 ac_header_preproc=yes
a848cd7e 25275 ;;
ac1cb8d3 25276 no:yes:* )
a848cd7e
SC
25277 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
25278echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25279 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
25280echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
25281 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
25282echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
25283 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
25284echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25285 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
25286echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25287 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
25288echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25289 (
25290 cat <<\_ASBOX
ac1cb8d3
VS
25291## ----------------------------------------- ##
25292## Report this to wx-dev@lists.wxwidgets.org ##
25293## ----------------------------------------- ##
a848cd7e
SC
25294_ASBOX
25295 ) |
25296 sed "s/^/$as_me: WARNING: /" >&2
25297 ;;
25298esac
25299echo "$as_me:$LINENO: checking for zlib.h" >&5
25300echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
25301if test "${ac_cv_header_zlib_h+set}" = set; then
25302 echo $ECHO_N "(cached) $ECHO_C" >&6
25303else
25304 ac_cv_header_zlib_h=$ac_header_preproc
25305fi
25306echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25307echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25308
25309fi
25310
25311
25312
25313 system_zlib_h_ok=$ac_cv_header_zlib_h
25314 fi
25315
25316 if test "$system_zlib_h_ok" = "yes"; then
25317 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
25318echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
25319if test "${ac_cv_lib_z_deflate+set}" = set; then
25320 echo $ECHO_N "(cached) $ECHO_C" >&6
25321else
25322 ac_check_lib_save_LIBS=$LIBS
25323LIBS="-lz $LIBS"
25324cat >conftest.$ac_ext <<_ACEOF
25325/* confdefs.h. */
25326_ACEOF
25327cat confdefs.h >>conftest.$ac_ext
25328cat >>conftest.$ac_ext <<_ACEOF
25329/* end confdefs.h. */
25330
25331/* Override any gcc2 internal prototype to avoid an error. */
25332#ifdef __cplusplus
25333extern "C"
25334#endif
25335/* We use char because int might match the return type of a gcc2
25336 builtin and then its argument prototype would still apply. */
25337char deflate ();
25338int
25339main ()
25340{
25341deflate ();
25342 ;
25343 return 0;
25344}
25345_ACEOF
25346rm -f conftest.$ac_objext conftest$ac_exeext
25347if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25348 (eval $ac_link) 2>conftest.er1
a848cd7e 25349 ac_status=$?
ac1cb8d3
VS
25350 grep -v '^ *+' conftest.er1 >conftest.err
25351 rm -f conftest.er1
25352 cat conftest.err >&5
a848cd7e
SC
25353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25354 (exit $ac_status); } &&
c9a66001 25355 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25357 (eval $ac_try) 2>&5
25358 ac_status=$?
25359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25360 (exit $ac_status); }; } &&
25361 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25363 (eval $ac_try) 2>&5
25364 ac_status=$?
25365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25366 (exit $ac_status); }; }; then
25367 ac_cv_lib_z_deflate=yes
25368else
25369 echo "$as_me: failed program was:" >&5
25370sed 's/^/| /' conftest.$ac_ext >&5
25371
25372ac_cv_lib_z_deflate=no
25373fi
ac1cb8d3
VS
25374rm -f conftest.err conftest.$ac_objext \
25375 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25376LIBS=$ac_check_lib_save_LIBS
25377fi
25378echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
25379echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
25380if test $ac_cv_lib_z_deflate = yes; then
25381 ZLIB_LINK=" -lz"
25382fi
25383
25384 fi
25385
25386 if test "x$ZLIB_LINK" = "x" ; then
25387 if test "$wxUSE_ZLIB" = "sys" ; then
25388 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
25389echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
25390 { (exit 1); exit 1; }; }
25391 else
25392 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
25393echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
25394 wxUSE_ZLIB=builtin
25395 fi
25396 else
25397 wxUSE_ZLIB=sys
25398 fi
25399 fi
25400fi
25401
25402
25403PNG_LINK=
25404if test "$wxUSE_LIBPNG" != "no" ; then
25405 cat >>confdefs.h <<\_ACEOF
25406#define wxUSE_LIBPNG 1
25407_ACEOF
25408
25409
25410 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
25411 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
25412echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
25413 wxUSE_LIBPNG=sys
25414 fi
25415
25416 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
25417 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
25418echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
25419 wxUSE_LIBPNG=builtin
25420 fi
25421
25422 if test "$wxUSE_MGL" != 1 ; then
25423 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
25424 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
25425echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
25426if test "${ac_cv_header_png_h+set}" = set; then
25427 echo $ECHO_N "(cached) $ECHO_C" >&6
25428else
25429 if test "$cross_compiling" = yes; then
25430 unset ac_cv_header_png_h
25431
25432else
25433 cat >conftest.$ac_ext <<_ACEOF
25434/* confdefs.h. */
25435_ACEOF
25436cat confdefs.h >>conftest.$ac_ext
25437cat >>conftest.$ac_ext <<_ACEOF
25438/* end confdefs.h. */
25439
25440 #include <png.h>
25441 #include <stdio.h>
25442
25443 int main()
25444 {
25445 FILE *f=fopen("conftestval", "w");
25446 if (!f) exit(1);
25447 fprintf(f, "%s",
25448 PNG_LIBPNG_VER > 90 ? "yes" : "no");
25449 exit(0);
25450 }
25451
25452_ACEOF
25453rm -f conftest$ac_exeext
25454if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25455 (eval $ac_link) 2>&5
25456 ac_status=$?
25457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25458 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25460 (eval $ac_try) 2>&5
25461 ac_status=$?
25462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25463 (exit $ac_status); }; }; then
25464 ac_cv_header_png_h=`cat conftestval`
25465else
25466 echo "$as_me: program exited with status $ac_status" >&5
25467echo "$as_me: failed program was:" >&5
25468sed 's/^/| /' conftest.$ac_ext >&5
25469
25470( exit $ac_status )
25471ac_cv_header_png_h=no
25472fi
ac1cb8d3 25473rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25474fi
25475
25476fi
25477echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25478echo "${ECHO_T}$ac_cv_header_png_h" >&6
25479 if test "${ac_cv_header_png_h+set}" = set; then
25480 echo "$as_me:$LINENO: checking for png.h" >&5
25481echo $ECHO_N "checking for png.h... $ECHO_C" >&6
25482if test "${ac_cv_header_png_h+set}" = set; then
25483 echo $ECHO_N "(cached) $ECHO_C" >&6
25484fi
25485echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25486echo "${ECHO_T}$ac_cv_header_png_h" >&6
25487else
25488 # Is the header compilable?
25489echo "$as_me:$LINENO: checking png.h usability" >&5
25490echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
25491cat >conftest.$ac_ext <<_ACEOF
25492/* confdefs.h. */
25493_ACEOF
25494cat confdefs.h >>conftest.$ac_ext
25495cat >>conftest.$ac_ext <<_ACEOF
25496/* end confdefs.h. */
25497$ac_includes_default
25498#include <png.h>
25499_ACEOF
25500rm -f conftest.$ac_objext
25501if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25502 (eval $ac_compile) 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); } &&
c9a66001 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_objext'
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_header_compiler=yes
25522else
25523 echo "$as_me: failed program was:" >&5
25524sed 's/^/| /' conftest.$ac_ext >&5
25525
25526ac_header_compiler=no
25527fi
ac1cb8d3 25528rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25529echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25530echo "${ECHO_T}$ac_header_compiler" >&6
25531
25532# Is the header present?
25533echo "$as_me:$LINENO: checking png.h presence" >&5
25534echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
25535cat >conftest.$ac_ext <<_ACEOF
25536/* confdefs.h. */
25537_ACEOF
25538cat confdefs.h >>conftest.$ac_ext
25539cat >>conftest.$ac_ext <<_ACEOF
25540/* end confdefs.h. */
25541#include <png.h>
25542_ACEOF
25543if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25544 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25545 ac_status=$?
25546 grep -v '^ *+' conftest.er1 >conftest.err
25547 rm -f conftest.er1
25548 cat conftest.err >&5
25549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25550 (exit $ac_status); } >/dev/null; then
25551 if test -s conftest.err; then
5d7b7554
VZ
25552 ac_cpp_err=$ac_cxx_preproc_warn_flag
25553 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
25554 else
25555 ac_cpp_err=
25556 fi
25557else
25558 ac_cpp_err=yes
25559fi
25560if test -z "$ac_cpp_err"; then
25561 ac_header_preproc=yes
25562else
25563 echo "$as_me: failed program was:" >&5
25564sed 's/^/| /' conftest.$ac_ext >&5
25565
25566 ac_header_preproc=no
25567fi
25568rm -f conftest.err conftest.$ac_ext
25569echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25570echo "${ECHO_T}$ac_header_preproc" >&6
25571
25572# So? What about this header?
5d7b7554 25573case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 25574 yes:no: )
a848cd7e
SC
25575 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
25576echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25577 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
25578echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
25579 ac_header_preproc=yes
a848cd7e 25580 ;;
ac1cb8d3 25581 no:yes:* )
a848cd7e
SC
25582 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
25583echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25584 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
25585echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
25586 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
25587echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
25588 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
25589echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25590 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
25591echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25592 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
25593echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25594 (
25595 cat <<\_ASBOX
ac1cb8d3
VS
25596## ----------------------------------------- ##
25597## Report this to wx-dev@lists.wxwidgets.org ##
25598## ----------------------------------------- ##
a848cd7e
SC
25599_ASBOX
25600 ) |
25601 sed "s/^/$as_me: WARNING: /" >&2
25602 ;;
25603esac
25604echo "$as_me:$LINENO: checking for png.h" >&5
25605echo $ECHO_N "checking for png.h... $ECHO_C" >&6
25606if test "${ac_cv_header_png_h+set}" = set; then
25607 echo $ECHO_N "(cached) $ECHO_C" >&6
25608else
25609 ac_cv_header_png_h=$ac_header_preproc
25610fi
25611echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25612echo "${ECHO_T}$ac_cv_header_png_h" >&6
25613
25614fi
25615
25616
25617
25618 if test "$ac_cv_header_png_h" = "yes"; then
25619 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
25620echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
25621if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
25622 echo $ECHO_N "(cached) $ECHO_C" >&6
25623else
25624 ac_check_lib_save_LIBS=$LIBS
25625LIBS="-lpng -lz -lm $LIBS"
25626cat >conftest.$ac_ext <<_ACEOF
25627/* confdefs.h. */
25628_ACEOF
25629cat confdefs.h >>conftest.$ac_ext
25630cat >>conftest.$ac_ext <<_ACEOF
25631/* end confdefs.h. */
25632
25633/* Override any gcc2 internal prototype to avoid an error. */
25634#ifdef __cplusplus
25635extern "C"
25636#endif
25637/* We use char because int might match the return type of a gcc2
25638 builtin and then its argument prototype would still apply. */
25639char png_check_sig ();
25640int
25641main ()
25642{
25643png_check_sig ();
25644 ;
25645 return 0;
25646}
25647_ACEOF
25648rm -f conftest.$ac_objext conftest$ac_exeext
25649if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25650 (eval $ac_link) 2>conftest.er1
a848cd7e 25651 ac_status=$?
ac1cb8d3
VS
25652 grep -v '^ *+' conftest.er1 >conftest.err
25653 rm -f conftest.er1
25654 cat conftest.err >&5
a848cd7e
SC
25655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25656 (exit $ac_status); } &&
c9a66001 25657 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25659 (eval $ac_try) 2>&5
25660 ac_status=$?
25661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25662 (exit $ac_status); }; } &&
25663 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25665 (eval $ac_try) 2>&5
25666 ac_status=$?
25667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25668 (exit $ac_status); }; }; then
25669 ac_cv_lib_png_png_check_sig=yes
25670else
25671 echo "$as_me: failed program was:" >&5
25672sed 's/^/| /' conftest.$ac_ext >&5
25673
25674ac_cv_lib_png_png_check_sig=no
25675fi
ac1cb8d3
VS
25676rm -f conftest.err conftest.$ac_objext \
25677 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25678LIBS=$ac_check_lib_save_LIBS
25679fi
25680echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
25681echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
25682if test $ac_cv_lib_png_png_check_sig = yes; then
25683 PNG_LINK=" -lpng -lz"
25684fi
25685
25686 fi
25687
25688 if test "x$PNG_LINK" = "x" ; then
25689 if test "$wxUSE_LIBPNG" = "sys" ; then
25690 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
25691echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
25692 { (exit 1); exit 1; }; }
25693 else
25694 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
25695echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
25696 wxUSE_LIBPNG=builtin
25697 fi
25698 else
25699 wxUSE_LIBPNG=sys
25700 fi
25701 fi
25702 fi
25703
25704 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
25705fi
25706
25707
25708JPEG_LINK=
25709if test "$wxUSE_LIBJPEG" != "no" ; then
25710 cat >>confdefs.h <<\_ACEOF
25711#define wxUSE_LIBJPEG 1
25712_ACEOF
25713
25714
25715 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
25716 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
25717echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
25718 wxUSE_LIBJPEG=sys
25719 fi
25720
25721 if test "$wxUSE_MGL" != 1 ; then
25722 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
25723 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
25724echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
25725 if test "${ac_cv_header_jpeglib_h+set}" = set; then
25726 echo $ECHO_N "(cached) $ECHO_C" >&6
25727else
25728 cat >conftest.$ac_ext <<_ACEOF
25729/* confdefs.h. */
25730_ACEOF
25731cat confdefs.h >>conftest.$ac_ext
25732cat >>conftest.$ac_ext <<_ACEOF
25733/* end confdefs.h. */
25734
25735 #undef HAVE_STDLIB_H
25736 #include <stdio.h>
25737 #include <jpeglib.h>
25738
25739int
25740main ()
25741{
25742
25743
25744 ;
25745 return 0;
25746}
25747_ACEOF
25748rm -f conftest.$ac_objext
25749if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25750 (eval $ac_compile) 2>conftest.er1
a848cd7e 25751 ac_status=$?
ac1cb8d3
VS
25752 grep -v '^ *+' conftest.er1 >conftest.err
25753 rm -f conftest.er1
25754 cat conftest.err >&5
a848cd7e
SC
25755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25756 (exit $ac_status); } &&
c9a66001 25757 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25759 (eval $ac_try) 2>&5
25760 ac_status=$?
25761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25762 (exit $ac_status); }; } &&
25763 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25765 (eval $ac_try) 2>&5
25766 ac_status=$?
25767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25768 (exit $ac_status); }; }; then
25769 ac_cv_header_jpeglib_h=yes
25770else
25771 echo "$as_me: failed program was:" >&5
25772sed 's/^/| /' conftest.$ac_ext >&5
25773
25774ac_cv_header_jpeglib_h=no
25775
25776fi
ac1cb8d3 25777rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25778
25779fi
25780
25781 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
25782echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
25783
25784 if test "$ac_cv_header_jpeglib_h" = "yes"; then
25785 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
25786echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
25787if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
25788 echo $ECHO_N "(cached) $ECHO_C" >&6
25789else
25790 ac_check_lib_save_LIBS=$LIBS
25791LIBS="-ljpeg $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 jpeg_read_header ();
25806int
25807main ()
25808{
25809jpeg_read_header ();
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); } &&
c9a66001 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_jpeg_jpeg_read_header=yes
25836else
25837 echo "$as_me: failed program was:" >&5
25838sed 's/^/| /' conftest.$ac_ext >&5
25839
25840ac_cv_lib_jpeg_jpeg_read_header=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_jpeg_jpeg_read_header" >&5
25847echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
25848if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
25849 JPEG_LINK=" -ljpeg"
25850fi
25851
25852 fi
25853
25854 if test "x$JPEG_LINK" = "x" ; then
25855 if test "$wxUSE_LIBJPEG" = "sys" ; then
25856 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
25857echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
25858 { (exit 1); exit 1; }; }
25859 else
25860 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
25861echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
25862 wxUSE_LIBJPEG=builtin
25863 fi
25864 else
25865 wxUSE_LIBJPEG=sys
25866 fi
25867 fi
25868 fi
25869fi
25870
25871
25872TIFF_LINK=
25873TIFF_PREREQ_LINKS=-lm
25874if test "$wxUSE_LIBTIFF" != "no" ; then
25875 cat >>confdefs.h <<\_ACEOF
25876#define wxUSE_LIBTIFF 1
25877_ACEOF
25878
25879
25880 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
25881 if test "$wxUSE_LIBJPEG" = "sys"; then
25882 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
25883 fi
25884 if test "$wxUSE_ZLIB" = "sys"; then
25885 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
25886 fi
25887 if test "${ac_cv_header_tiffio_h+set}" = set; then
25888 echo "$as_me:$LINENO: checking for tiffio.h" >&5
25889echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
25890if test "${ac_cv_header_tiffio_h+set}" = set; then
25891 echo $ECHO_N "(cached) $ECHO_C" >&6
25892fi
25893echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
25894echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
25895else
25896 # Is the header compilable?
25897echo "$as_me:$LINENO: checking tiffio.h usability" >&5
25898echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
25899cat >conftest.$ac_ext <<_ACEOF
25900/* confdefs.h. */
25901_ACEOF
25902cat confdefs.h >>conftest.$ac_ext
25903cat >>conftest.$ac_ext <<_ACEOF
25904/* end confdefs.h. */
25905$ac_includes_default
25906#include <tiffio.h>
25907_ACEOF
25908rm -f conftest.$ac_objext
25909if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25910 (eval $ac_compile) 2>conftest.er1
a848cd7e 25911 ac_status=$?
ac1cb8d3
VS
25912 grep -v '^ *+' conftest.er1 >conftest.err
25913 rm -f conftest.er1
25914 cat conftest.err >&5
a848cd7e
SC
25915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25916 (exit $ac_status); } &&
c9a66001 25917 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25919 (eval $ac_try) 2>&5
25920 ac_status=$?
25921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25922 (exit $ac_status); }; } &&
25923 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25925 (eval $ac_try) 2>&5
25926 ac_status=$?
25927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25928 (exit $ac_status); }; }; then
25929 ac_header_compiler=yes
25930else
25931 echo "$as_me: failed program was:" >&5
25932sed 's/^/| /' conftest.$ac_ext >&5
25933
25934ac_header_compiler=no
25935fi
ac1cb8d3 25936rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25937echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25938echo "${ECHO_T}$ac_header_compiler" >&6
25939
25940# Is the header present?
25941echo "$as_me:$LINENO: checking tiffio.h presence" >&5
25942echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
25943cat >conftest.$ac_ext <<_ACEOF
25944/* confdefs.h. */
25945_ACEOF
25946cat confdefs.h >>conftest.$ac_ext
25947cat >>conftest.$ac_ext <<_ACEOF
25948/* end confdefs.h. */
25949#include <tiffio.h>
25950_ACEOF
25951if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25952 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25953 ac_status=$?
25954 grep -v '^ *+' conftest.er1 >conftest.err
25955 rm -f conftest.er1
25956 cat conftest.err >&5
25957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25958 (exit $ac_status); } >/dev/null; then
25959 if test -s conftest.err; then
5d7b7554
VZ
25960 ac_cpp_err=$ac_cxx_preproc_warn_flag
25961 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
25962 else
25963 ac_cpp_err=
25964 fi
25965else
25966 ac_cpp_err=yes
25967fi
25968if test -z "$ac_cpp_err"; then
25969 ac_header_preproc=yes
25970else
25971 echo "$as_me: failed program was:" >&5
25972sed 's/^/| /' conftest.$ac_ext >&5
25973
25974 ac_header_preproc=no
25975fi
25976rm -f conftest.err conftest.$ac_ext
25977echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25978echo "${ECHO_T}$ac_header_preproc" >&6
25979
25980# So? What about this header?
5d7b7554 25981case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 25982 yes:no: )
a848cd7e
SC
25983 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
25984echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25985 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
25986echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
25987 ac_header_preproc=yes
a848cd7e 25988 ;;
ac1cb8d3 25989 no:yes:* )
a848cd7e
SC
25990 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
25991echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25992 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
25993echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
25994 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
25995echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
25996 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
25997echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25998 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
25999echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26000 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
26001echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26002 (
26003 cat <<\_ASBOX
ac1cb8d3
VS
26004## ----------------------------------------- ##
26005## Report this to wx-dev@lists.wxwidgets.org ##
26006## ----------------------------------------- ##
a848cd7e
SC
26007_ASBOX
26008 ) |
26009 sed "s/^/$as_me: WARNING: /" >&2
26010 ;;
26011esac
26012echo "$as_me:$LINENO: checking for tiffio.h" >&5
26013echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
26014if test "${ac_cv_header_tiffio_h+set}" = set; then
26015 echo $ECHO_N "(cached) $ECHO_C" >&6
26016else
26017 ac_cv_header_tiffio_h=$ac_header_preproc
26018fi
26019echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
26020echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
26021
26022fi
26023if test $ac_cv_header_tiffio_h = yes; then
26024
26025 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
26026echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
26027if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
26028 echo $ECHO_N "(cached) $ECHO_C" >&6
26029else
26030 ac_check_lib_save_LIBS=$LIBS
26031LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
26032cat >conftest.$ac_ext <<_ACEOF
26033/* confdefs.h. */
26034_ACEOF
26035cat confdefs.h >>conftest.$ac_ext
26036cat >>conftest.$ac_ext <<_ACEOF
26037/* end confdefs.h. */
26038
26039/* Override any gcc2 internal prototype to avoid an error. */
26040#ifdef __cplusplus
26041extern "C"
26042#endif
26043/* We use char because int might match the return type of a gcc2
26044 builtin and then its argument prototype would still apply. */
26045char TIFFError ();
26046int
26047main ()
26048{
26049TIFFError ();
26050 ;
26051 return 0;
26052}
26053_ACEOF
26054rm -f conftest.$ac_objext conftest$ac_exeext
26055if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26056 (eval $ac_link) 2>conftest.er1
a848cd7e 26057 ac_status=$?
ac1cb8d3
VS
26058 grep -v '^ *+' conftest.er1 >conftest.err
26059 rm -f conftest.er1
26060 cat conftest.err >&5
a848cd7e
SC
26061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26062 (exit $ac_status); } &&
c9a66001 26063 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26065 (eval $ac_try) 2>&5
26066 ac_status=$?
26067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26068 (exit $ac_status); }; } &&
26069 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26071 (eval $ac_try) 2>&5
26072 ac_status=$?
26073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26074 (exit $ac_status); }; }; then
26075 ac_cv_lib_tiff_TIFFError=yes
26076else
26077 echo "$as_me: failed program was:" >&5
26078sed 's/^/| /' conftest.$ac_ext >&5
26079
26080ac_cv_lib_tiff_TIFFError=no
26081fi
ac1cb8d3
VS
26082rm -f conftest.err conftest.$ac_objext \
26083 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26084LIBS=$ac_check_lib_save_LIBS
26085fi
26086echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
26087echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
26088if test $ac_cv_lib_tiff_TIFFError = yes; then
26089 TIFF_LINK=" -ltiff"
26090fi
26091
26092
26093
26094fi
26095
26096
26097
26098 if test "x$TIFF_LINK" = "x" ; then
26099 if test "$wxUSE_LIBTIFF" = "sys" ; then
26100 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
26101echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
26102 { (exit 1); exit 1; }; }
26103 else
26104 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
26105echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
26106 wxUSE_LIBTIFF=builtin
26107 fi
26108 else
26109 wxUSE_LIBTIFF=sys
26110 fi
26111 fi
26112fi
26113
26114
47a7e797
MW
26115if test "$wxUSE_WCHAR_T" != "yes"; then
26116 if test "$wxUSE_EXPAT" != "no"; then
26117 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
26118echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
26119 wxUSE_EXPAT=no
26120 fi
26121 if test "$wxUSE_XML" != "no"; then
26122 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
26123echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
26124 wxUSE_XML=no
26125 fi
26126fi
26127
a848cd7e
SC
26128if test "$wxUSE_EXPAT" != "no"; then
26129 wxUSE_XML=yes
26130 cat >>confdefs.h <<\_ACEOF
26131#define wxUSE_EXPAT 1
26132_ACEOF
26133
26134 cat >>confdefs.h <<\_ACEOF
26135#define wxUSE_XML 1
26136_ACEOF
26137
26138
26139 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
26140 if test "${ac_cv_header_expat_h+set}" = set; then
26141 echo "$as_me:$LINENO: checking for expat.h" >&5
26142echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
26143if test "${ac_cv_header_expat_h+set}" = set; then
26144 echo $ECHO_N "(cached) $ECHO_C" >&6
26145fi
26146echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
26147echo "${ECHO_T}$ac_cv_header_expat_h" >&6
26148else
26149 # Is the header compilable?
26150echo "$as_me:$LINENO: checking expat.h usability" >&5
26151echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
26152cat >conftest.$ac_ext <<_ACEOF
26153/* confdefs.h. */
26154_ACEOF
26155cat confdefs.h >>conftest.$ac_ext
26156cat >>conftest.$ac_ext <<_ACEOF
26157/* end confdefs.h. */
26158$ac_includes_default
26159#include <expat.h>
26160_ACEOF
26161rm -f conftest.$ac_objext
26162if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26163 (eval $ac_compile) 2>conftest.er1
a848cd7e 26164 ac_status=$?
ac1cb8d3
VS
26165 grep -v '^ *+' conftest.er1 >conftest.err
26166 rm -f conftest.er1
26167 cat conftest.err >&5
a848cd7e
SC
26168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26169 (exit $ac_status); } &&
c9a66001 26170 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26172 (eval $ac_try) 2>&5
26173 ac_status=$?
26174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26175 (exit $ac_status); }; } &&
26176 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26178 (eval $ac_try) 2>&5
26179 ac_status=$?
26180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26181 (exit $ac_status); }; }; then
26182 ac_header_compiler=yes
26183else
26184 echo "$as_me: failed program was:" >&5
26185sed 's/^/| /' conftest.$ac_ext >&5
26186
26187ac_header_compiler=no
26188fi
ac1cb8d3 26189rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26190echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26191echo "${ECHO_T}$ac_header_compiler" >&6
26192
26193# Is the header present?
26194echo "$as_me:$LINENO: checking expat.h presence" >&5
26195echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
26196cat >conftest.$ac_ext <<_ACEOF
26197/* confdefs.h. */
26198_ACEOF
26199cat confdefs.h >>conftest.$ac_ext
26200cat >>conftest.$ac_ext <<_ACEOF
26201/* end confdefs.h. */
26202#include <expat.h>
26203_ACEOF
26204if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26205 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26206 ac_status=$?
26207 grep -v '^ *+' conftest.er1 >conftest.err
26208 rm -f conftest.er1
26209 cat conftest.err >&5
26210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26211 (exit $ac_status); } >/dev/null; then
26212 if test -s conftest.err; then
5d7b7554
VZ
26213 ac_cpp_err=$ac_cxx_preproc_warn_flag
26214 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26215 else
26216 ac_cpp_err=
26217 fi
26218else
26219 ac_cpp_err=yes
26220fi
26221if test -z "$ac_cpp_err"; then
26222 ac_header_preproc=yes
26223else
26224 echo "$as_me: failed program was:" >&5
26225sed 's/^/| /' conftest.$ac_ext >&5
26226
26227 ac_header_preproc=no
26228fi
26229rm -f conftest.err conftest.$ac_ext
26230echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26231echo "${ECHO_T}$ac_header_preproc" >&6
26232
26233# So? What about this header?
5d7b7554 26234case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26235 yes:no: )
a848cd7e
SC
26236 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
26237echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26238 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
26239echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
26240 ac_header_preproc=yes
a848cd7e 26241 ;;
ac1cb8d3 26242 no:yes:* )
a848cd7e
SC
26243 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
26244echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26245 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
26246echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
26247 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
26248echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
26249 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
26250echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26251 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
26252echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26253 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
26254echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26255 (
26256 cat <<\_ASBOX
ac1cb8d3
VS
26257## ----------------------------------------- ##
26258## Report this to wx-dev@lists.wxwidgets.org ##
26259## ----------------------------------------- ##
a848cd7e
SC
26260_ASBOX
26261 ) |
26262 sed "s/^/$as_me: WARNING: /" >&2
26263 ;;
26264esac
26265echo "$as_me:$LINENO: checking for expat.h" >&5
26266echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
26267if test "${ac_cv_header_expat_h+set}" = set; then
26268 echo $ECHO_N "(cached) $ECHO_C" >&6
26269else
26270 ac_cv_header_expat_h=$ac_header_preproc
26271fi
26272echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
26273echo "${ECHO_T}$ac_cv_header_expat_h" >&6
26274
26275fi
26276if test $ac_cv_header_expat_h = yes; then
26277 found_expat_h=1
26278fi
26279
26280
26281 if test "x$found_expat_h" = "x1"; then
26282 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
26283echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
26284if test "${wx_cv_expat_is_not_broken+set}" = set; then
26285 echo $ECHO_N "(cached) $ECHO_C" >&6
26286else
26287
a848cd7e
SC
26288 cat >conftest.$ac_ext <<_ACEOF
26289/* confdefs.h. */
26290_ACEOF
26291cat confdefs.h >>conftest.$ac_ext
26292cat >>conftest.$ac_ext <<_ACEOF
26293/* end confdefs.h. */
26294#include <expat.h>
26295int
26296main ()
26297{
26298
26299 ;
26300 return 0;
26301}
26302_ACEOF
26303rm -f conftest.$ac_objext
26304if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26305 (eval $ac_compile) 2>conftest.er1
a848cd7e 26306 ac_status=$?
ac1cb8d3
VS
26307 grep -v '^ *+' conftest.er1 >conftest.err
26308 rm -f conftest.er1
26309 cat conftest.err >&5
a848cd7e
SC
26310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26311 (exit $ac_status); } &&
c9a66001 26312 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26314 (eval $ac_try) 2>&5
26315 ac_status=$?
26316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26317 (exit $ac_status); }; } &&
26318 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26320 (eval $ac_try) 2>&5
26321 ac_status=$?
26322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26323 (exit $ac_status); }; }; then
26324 wx_cv_expat_is_not_broken=yes
26325else
26326 echo "$as_me: failed program was:" >&5
26327sed 's/^/| /' conftest.$ac_ext >&5
26328
26329wx_cv_expat_is_not_broken=no
26330
26331fi
ac1cb8d3 26332rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26333
26334
26335fi
26336echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
26337echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
26338 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
26339 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
26340echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
26341if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
26342 echo $ECHO_N "(cached) $ECHO_C" >&6
26343else
26344 ac_check_lib_save_LIBS=$LIBS
26345LIBS="-lexpat $LIBS"
26346cat >conftest.$ac_ext <<_ACEOF
26347/* confdefs.h. */
26348_ACEOF
26349cat confdefs.h >>conftest.$ac_ext
26350cat >>conftest.$ac_ext <<_ACEOF
26351/* end confdefs.h. */
26352
26353/* Override any gcc2 internal prototype to avoid an error. */
26354#ifdef __cplusplus
26355extern "C"
26356#endif
26357/* We use char because int might match the return type of a gcc2
26358 builtin and then its argument prototype would still apply. */
26359char XML_ParserCreate ();
26360int
26361main ()
26362{
26363XML_ParserCreate ();
26364 ;
26365 return 0;
26366}
26367_ACEOF
26368rm -f conftest.$ac_objext conftest$ac_exeext
26369if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26370 (eval $ac_link) 2>conftest.er1
a848cd7e 26371 ac_status=$?
ac1cb8d3
VS
26372 grep -v '^ *+' conftest.er1 >conftest.err
26373 rm -f conftest.er1
26374 cat conftest.err >&5
a848cd7e
SC
26375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26376 (exit $ac_status); } &&
c9a66001 26377 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26379 (eval $ac_try) 2>&5
26380 ac_status=$?
26381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26382 (exit $ac_status); }; } &&
26383 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26385 (eval $ac_try) 2>&5
26386 ac_status=$?
26387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26388 (exit $ac_status); }; }; then
26389 ac_cv_lib_expat_XML_ParserCreate=yes
26390else
26391 echo "$as_me: failed program was:" >&5
26392sed 's/^/| /' conftest.$ac_ext >&5
26393
26394ac_cv_lib_expat_XML_ParserCreate=no
26395fi
ac1cb8d3
VS
26396rm -f conftest.err conftest.$ac_objext \
26397 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26398LIBS=$ac_check_lib_save_LIBS
26399fi
26400echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
26401echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
26402if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
26403 EXPAT_LINK=" -lexpat"
26404fi
26405
26406 fi
26407 fi
26408 if test "x$EXPAT_LINK" = "x" ; then
26409 if test "$wxUSE_EXPAT" = "sys" ; then
26410 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
26411echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
26412 { (exit 1); exit 1; }; }
26413 else
26414 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
26415echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
26416 wxUSE_EXPAT=builtin
26417 fi
26418 else
26419 wxUSE_EXPAT=sys
26420 fi
26421 fi
26422 if test "$wxUSE_EXPAT" = "builtin" ; then
26423
26424
26425subdirs="$subdirs src/expat"
26426
26427 fi
26428fi
26429
26430
26431
26432if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
26433 if test "${ac_cv_header_mspack_h+set}" = set; then
26434 echo "$as_me:$LINENO: checking for mspack.h" >&5
26435echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
26436if test "${ac_cv_header_mspack_h+set}" = set; then
26437 echo $ECHO_N "(cached) $ECHO_C" >&6
26438fi
26439echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
26440echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
26441else
26442 # Is the header compilable?
26443echo "$as_me:$LINENO: checking mspack.h usability" >&5
26444echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
26445cat >conftest.$ac_ext <<_ACEOF
26446/* confdefs.h. */
26447_ACEOF
26448cat confdefs.h >>conftest.$ac_ext
26449cat >>conftest.$ac_ext <<_ACEOF
26450/* end confdefs.h. */
26451$ac_includes_default
26452#include <mspack.h>
26453_ACEOF
26454rm -f conftest.$ac_objext
26455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26456 (eval $ac_compile) 2>conftest.er1
a848cd7e 26457 ac_status=$?
ac1cb8d3
VS
26458 grep -v '^ *+' conftest.er1 >conftest.err
26459 rm -f conftest.er1
26460 cat conftest.err >&5
a848cd7e
SC
26461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26462 (exit $ac_status); } &&
c9a66001 26463 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26465 (eval $ac_try) 2>&5
26466 ac_status=$?
26467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26468 (exit $ac_status); }; } &&
26469 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26471 (eval $ac_try) 2>&5
26472 ac_status=$?
26473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26474 (exit $ac_status); }; }; then
26475 ac_header_compiler=yes
26476else
26477 echo "$as_me: failed program was:" >&5
26478sed 's/^/| /' conftest.$ac_ext >&5
26479
26480ac_header_compiler=no
26481fi
ac1cb8d3 26482rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26483echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26484echo "${ECHO_T}$ac_header_compiler" >&6
26485
26486# Is the header present?
26487echo "$as_me:$LINENO: checking mspack.h presence" >&5
26488echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
26489cat >conftest.$ac_ext <<_ACEOF
26490/* confdefs.h. */
26491_ACEOF
26492cat confdefs.h >>conftest.$ac_ext
26493cat >>conftest.$ac_ext <<_ACEOF
26494/* end confdefs.h. */
26495#include <mspack.h>
26496_ACEOF
26497if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26498 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26499 ac_status=$?
26500 grep -v '^ *+' conftest.er1 >conftest.err
26501 rm -f conftest.er1
26502 cat conftest.err >&5
26503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26504 (exit $ac_status); } >/dev/null; then
26505 if test -s conftest.err; then
5d7b7554
VZ
26506 ac_cpp_err=$ac_cxx_preproc_warn_flag
26507 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26508 else
26509 ac_cpp_err=
26510 fi
26511else
26512 ac_cpp_err=yes
26513fi
26514if test -z "$ac_cpp_err"; then
26515 ac_header_preproc=yes
26516else
26517 echo "$as_me: failed program was:" >&5
26518sed 's/^/| /' conftest.$ac_ext >&5
26519
26520 ac_header_preproc=no
26521fi
26522rm -f conftest.err conftest.$ac_ext
26523echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26524echo "${ECHO_T}$ac_header_preproc" >&6
26525
26526# So? What about this header?
5d7b7554 26527case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26528 yes:no: )
a848cd7e
SC
26529 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
26530echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26531 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
26532echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
26533 ac_header_preproc=yes
a848cd7e 26534 ;;
ac1cb8d3 26535 no:yes:* )
a848cd7e
SC
26536 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
26537echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26538 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
26539echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
26540 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
26541echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
26542 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
26543echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26544 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
26545echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26546 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
26547echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26548 (
26549 cat <<\_ASBOX
ac1cb8d3
VS
26550## ----------------------------------------- ##
26551## Report this to wx-dev@lists.wxwidgets.org ##
26552## ----------------------------------------- ##
a848cd7e
SC
26553_ASBOX
26554 ) |
26555 sed "s/^/$as_me: WARNING: /" >&2
26556 ;;
26557esac
26558echo "$as_me:$LINENO: checking for mspack.h" >&5
26559echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
26560if test "${ac_cv_header_mspack_h+set}" = set; then
26561 echo $ECHO_N "(cached) $ECHO_C" >&6
26562else
26563 ac_cv_header_mspack_h=$ac_header_preproc
26564fi
26565echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
26566echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
26567
26568fi
26569if test $ac_cv_header_mspack_h = yes; then
26570 found_mspack_h=1
26571fi
26572
26573
26574 if test "x$found_mspack_h" = "x1"; then
26575 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
26576echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
26577if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
26578 echo $ECHO_N "(cached) $ECHO_C" >&6
26579else
26580 ac_check_lib_save_LIBS=$LIBS
26581LIBS="-lmspack $LIBS"
26582cat >conftest.$ac_ext <<_ACEOF
26583/* confdefs.h. */
26584_ACEOF
26585cat confdefs.h >>conftest.$ac_ext
26586cat >>conftest.$ac_ext <<_ACEOF
26587/* end confdefs.h. */
26588
26589/* Override any gcc2 internal prototype to avoid an error. */
26590#ifdef __cplusplus
26591extern "C"
26592#endif
26593/* We use char because int might match the return type of a gcc2
26594 builtin and then its argument prototype would still apply. */
26595char mspack_create_chm_decompressor ();
26596int
26597main ()
26598{
26599mspack_create_chm_decompressor ();
26600 ;
26601 return 0;
26602}
26603_ACEOF
26604rm -f conftest.$ac_objext conftest$ac_exeext
26605if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26606 (eval $ac_link) 2>conftest.er1
a848cd7e 26607 ac_status=$?
ac1cb8d3
VS
26608 grep -v '^ *+' conftest.er1 >conftest.err
26609 rm -f conftest.er1
26610 cat conftest.err >&5
a848cd7e
SC
26611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26612 (exit $ac_status); } &&
c9a66001 26613 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26615 (eval $ac_try) 2>&5
26616 ac_status=$?
26617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26618 (exit $ac_status); }; } &&
26619 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26621 (eval $ac_try) 2>&5
26622 ac_status=$?
26623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26624 (exit $ac_status); }; }; then
26625 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
26626else
26627 echo "$as_me: failed program was:" >&5
26628sed 's/^/| /' conftest.$ac_ext >&5
26629
26630ac_cv_lib_mspack_mspack_create_chm_decompressor=no
26631fi
ac1cb8d3
VS
26632rm -f conftest.err conftest.$ac_objext \
26633 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26634LIBS=$ac_check_lib_save_LIBS
26635fi
26636echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
26637echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
26638if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
26639 MSPACK_LINK=" -lmspack"
26640fi
26641
26642 fi
26643 if test "x$MSPACK_LINK" = "x" ; then
26644 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
26645 fi
26646fi
26647
26648if test "$wxUSE_LIBMSPACK" != "no"; then
26649 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
26650#define wxUSE_LIBMSPACK 1
26651_ACEOF
26652
a848cd7e
SC
26653fi
26654
26655
26656
26657AFMINSTALL=
26658WIN32INSTALL=
26659
26660TOOLKIT=
26661TOOLKIT_INCLUDE=
26662WIDGET_SET=
26663
26664if test "$USE_WIN32" = 1 ; then
26665
26666for ac_header in w32api.h
26667do
26668as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26669if eval "test \"\${$as_ac_Header+set}\" = set"; then
26670 echo "$as_me:$LINENO: checking for $ac_header" >&5
26671echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26672if eval "test \"\${$as_ac_Header+set}\" = set"; then
26673 echo $ECHO_N "(cached) $ECHO_C" >&6
26674fi
26675echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26676echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26677else
26678 # Is the header compilable?
26679echo "$as_me:$LINENO: checking $ac_header usability" >&5
26680echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26681cat >conftest.$ac_ext <<_ACEOF
26682/* confdefs.h. */
26683_ACEOF
26684cat confdefs.h >>conftest.$ac_ext
26685cat >>conftest.$ac_ext <<_ACEOF
26686/* end confdefs.h. */
26687$ac_includes_default
26688#include <$ac_header>
26689_ACEOF
26690rm -f conftest.$ac_objext
26691if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26692 (eval $ac_compile) 2>conftest.er1
a848cd7e 26693 ac_status=$?
ac1cb8d3
VS
26694 grep -v '^ *+' conftest.er1 >conftest.err
26695 rm -f conftest.er1
26696 cat conftest.err >&5
a848cd7e
SC
26697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26698 (exit $ac_status); } &&
c9a66001 26699 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26701 (eval $ac_try) 2>&5
26702 ac_status=$?
26703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26704 (exit $ac_status); }; } &&
26705 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26707 (eval $ac_try) 2>&5
26708 ac_status=$?
26709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26710 (exit $ac_status); }; }; then
26711 ac_header_compiler=yes
26712else
26713 echo "$as_me: failed program was:" >&5
26714sed 's/^/| /' conftest.$ac_ext >&5
26715
26716ac_header_compiler=no
26717fi
ac1cb8d3 26718rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26719echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26720echo "${ECHO_T}$ac_header_compiler" >&6
26721
26722# Is the header present?
26723echo "$as_me:$LINENO: checking $ac_header presence" >&5
26724echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26725cat >conftest.$ac_ext <<_ACEOF
26726/* confdefs.h. */
26727_ACEOF
26728cat confdefs.h >>conftest.$ac_ext
26729cat >>conftest.$ac_ext <<_ACEOF
26730/* end confdefs.h. */
26731#include <$ac_header>
26732_ACEOF
26733if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26734 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26735 ac_status=$?
26736 grep -v '^ *+' conftest.er1 >conftest.err
26737 rm -f conftest.er1
26738 cat conftest.err >&5
26739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26740 (exit $ac_status); } >/dev/null; then
26741 if test -s conftest.err; then
5d7b7554
VZ
26742 ac_cpp_err=$ac_cxx_preproc_warn_flag
26743 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26744 else
26745 ac_cpp_err=
26746 fi
26747else
26748 ac_cpp_err=yes
26749fi
26750if test -z "$ac_cpp_err"; then
26751 ac_header_preproc=yes
26752else
26753 echo "$as_me: failed program was:" >&5
26754sed 's/^/| /' conftest.$ac_ext >&5
26755
26756 ac_header_preproc=no
26757fi
26758rm -f conftest.err conftest.$ac_ext
26759echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26760echo "${ECHO_T}$ac_header_preproc" >&6
26761
26762# So? What about this header?
5d7b7554 26763case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26764 yes:no: )
a848cd7e
SC
26765 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26766echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26767 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26768echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26769 ac_header_preproc=yes
a848cd7e 26770 ;;
ac1cb8d3 26771 no:yes:* )
a848cd7e
SC
26772 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26773echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26774 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26775echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26776 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26777echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26778 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26779echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26780 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26781echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26782 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26783echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26784 (
26785 cat <<\_ASBOX
ac1cb8d3
VS
26786## ----------------------------------------- ##
26787## Report this to wx-dev@lists.wxwidgets.org ##
26788## ----------------------------------------- ##
a848cd7e
SC
26789_ASBOX
26790 ) |
26791 sed "s/^/$as_me: WARNING: /" >&2
26792 ;;
26793esac
26794echo "$as_me:$LINENO: checking for $ac_header" >&5
26795echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26796if eval "test \"\${$as_ac_Header+set}\" = set"; then
26797 echo $ECHO_N "(cached) $ECHO_C" >&6
26798else
ac1cb8d3 26799 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
26800fi
26801echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26802echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26803
26804fi
26805if test `eval echo '${'$as_ac_Header'}'` = yes; then
26806 cat >>confdefs.h <<_ACEOF
26807#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26808_ACEOF
26809
26810fi
26811
26812done
26813
26814 if test "${ac_cv_header_windows_h+set}" = set; then
26815 echo "$as_me:$LINENO: checking for windows.h" >&5
26816echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
26817if test "${ac_cv_header_windows_h+set}" = set; then
26818 echo $ECHO_N "(cached) $ECHO_C" >&6
26819fi
26820echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
26821echo "${ECHO_T}$ac_cv_header_windows_h" >&6
26822else
26823 # Is the header compilable?
26824echo "$as_me:$LINENO: checking windows.h usability" >&5
26825echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
26826cat >conftest.$ac_ext <<_ACEOF
26827/* confdefs.h. */
26828_ACEOF
26829cat confdefs.h >>conftest.$ac_ext
26830cat >>conftest.$ac_ext <<_ACEOF
26831/* end confdefs.h. */
26832$ac_includes_default
26833#include <windows.h>
26834_ACEOF
26835rm -f conftest.$ac_objext
26836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26837 (eval $ac_compile) 2>conftest.er1
a848cd7e 26838 ac_status=$?
ac1cb8d3
VS
26839 grep -v '^ *+' conftest.er1 >conftest.err
26840 rm -f conftest.er1
26841 cat conftest.err >&5
a848cd7e
SC
26842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26843 (exit $ac_status); } &&
c9a66001 26844 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26846 (eval $ac_try) 2>&5
26847 ac_status=$?
26848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26849 (exit $ac_status); }; } &&
26850 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26852 (eval $ac_try) 2>&5
26853 ac_status=$?
26854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26855 (exit $ac_status); }; }; then
26856 ac_header_compiler=yes
26857else
26858 echo "$as_me: failed program was:" >&5
26859sed 's/^/| /' conftest.$ac_ext >&5
26860
26861ac_header_compiler=no
26862fi
ac1cb8d3 26863rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26864echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26865echo "${ECHO_T}$ac_header_compiler" >&6
26866
26867# Is the header present?
26868echo "$as_me:$LINENO: checking windows.h presence" >&5
26869echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
26870cat >conftest.$ac_ext <<_ACEOF
26871/* confdefs.h. */
26872_ACEOF
26873cat confdefs.h >>conftest.$ac_ext
26874cat >>conftest.$ac_ext <<_ACEOF
26875/* end confdefs.h. */
26876#include <windows.h>
26877_ACEOF
26878if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26879 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26880 ac_status=$?
26881 grep -v '^ *+' conftest.er1 >conftest.err
26882 rm -f conftest.er1
26883 cat conftest.err >&5
26884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26885 (exit $ac_status); } >/dev/null; then
26886 if test -s conftest.err; then
5d7b7554
VZ
26887 ac_cpp_err=$ac_cxx_preproc_warn_flag
26888 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26889 else
26890 ac_cpp_err=
26891 fi
26892else
26893 ac_cpp_err=yes
26894fi
26895if test -z "$ac_cpp_err"; then
26896 ac_header_preproc=yes
26897else
26898 echo "$as_me: failed program was:" >&5
26899sed 's/^/| /' conftest.$ac_ext >&5
26900
26901 ac_header_preproc=no
26902fi
26903rm -f conftest.err conftest.$ac_ext
26904echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26905echo "${ECHO_T}$ac_header_preproc" >&6
26906
26907# So? What about this header?
5d7b7554 26908case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26909 yes:no: )
a848cd7e
SC
26910 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
26911echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26912 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
26913echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
26914 ac_header_preproc=yes
a848cd7e 26915 ;;
ac1cb8d3 26916 no:yes:* )
a848cd7e
SC
26917 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
26918echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26919 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
26920echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
26921 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
26922echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
26923 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
26924echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26925 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
26926echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26927 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
26928echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26929 (
26930 cat <<\_ASBOX
ac1cb8d3
VS
26931## ----------------------------------------- ##
26932## Report this to wx-dev@lists.wxwidgets.org ##
26933## ----------------------------------------- ##
a848cd7e
SC
26934_ASBOX
26935 ) |
26936 sed "s/^/$as_me: WARNING: /" >&2
26937 ;;
26938esac
26939echo "$as_me:$LINENO: checking for windows.h" >&5
26940echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
26941if test "${ac_cv_header_windows_h+set}" = set; then
26942 echo $ECHO_N "(cached) $ECHO_C" >&6
26943else
26944 ac_cv_header_windows_h=$ac_header_preproc
26945fi
26946echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
26947echo "${ECHO_T}$ac_cv_header_windows_h" >&6
26948
26949fi
26950if test $ac_cv_header_windows_h = yes; then
26951 :
26952else
26953
26954 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
26955echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
26956 { (exit 1); exit 1; }; }
26957
26958fi
26959
26960
26961
26962 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
26963
26964 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
26965 LIBS="$LIBS -loleacc"
26966 fi
26967
26968 case "${host}" in
26969 *-*-cygwin* )
26970 LIBS="$LIBS -lkernel32 -luser32"
a848cd7e
SC
26971 esac
26972
26973 if test "$wxUSE_ODBC" = "sys" ; then
26974 wxUSE_ODBC = "yes"
26975 fi
26976 if test "$wxUSE_ODBC" = "yes" ; then
26977 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
26978 cat >>confdefs.h <<\_ACEOF
26979#define wxUSE_ODBC 1
26980_ACEOF
26981
26982 fi
26983
370d2fd7 26984 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
a848cd7e
SC
26985 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
26986
004ee6da 26987 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
370d2fd7 26988
a848cd7e
SC
26989 WIN32INSTALL=win32install
26990fi
26991
26992if test "$wxUSE_GUI" = "yes"; then
26993 USE_GUI=1
26994
26995 GUI_TK_LIBRARY=
26996
26997 WXGTK12=
26998 WXGTK127=
26999 WXGTK20=
27000 WXGPE=
27001
207bc66c
RN
27002 if test "$wxUSE_COCOA" = 1 ; then
27003 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
27004 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
27005echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
27006 wxUSE_PRINTING_ARCHITECTURE=no
27007 fi
27008 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
27009 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
27010echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
27011 wxUSE_DRAG_AND_DROP=no
27012 fi
27013 if test "$wxUSE_DRAGIMAGE" = "yes"; then
27014 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
27015echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
27016 wxUSE_DRAGIMAGE=no
27017 fi
27018 fi
27019
a848cd7e
SC
27020 if test "$wxUSE_MSW" = 1 ; then
27021 TOOLKIT=MSW
27022 GUIDIST=MSW_DIST
27023
ceec2216 27024 case "${host}" in
a848cd7e
SC
27025 *-*-mingw32* )
27026 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
27027 esac
27028 fi
27029
27030 if test "$wxUSE_GTK" = 1; then
5d7b7554
VZ
27031 ac_ext=c
27032ac_cpp='$CPP $CPPFLAGS'
27033ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27034ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27035ac_compiler_gnu=$ac_cv_c_compiler_gnu
27036
27037
a848cd7e
SC
27038 echo "$as_me:$LINENO: checking for GTK+ version" >&5
27039echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
27040
27041 gtk_version_cached=1
27042 if test "${wx_cv_lib_gtk+set}" = set; then
27043 echo $ECHO_N "(cached) $ECHO_C" >&6
27044else
27045
27046 gtk_version_cached=0
27047 echo "$as_me:$LINENO: result: " >&5
27048echo "${ECHO_T}" >&6
27049
27050 GTK_MODULES=
27051 if test "$wxUSE_THREADS" = "yes"; then
27052 GTK_MODULES=gthread
27053 fi
27054
f597b41c 27055 wx_cv_lib_gtk=
5001df0d
MW
27056 if test "x$wxGTK_VERSION" != "x1"
27057 then
27058 case "${host}" in
27059 *-*-solaris2* )
27060 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
5ff751d6 27061 enable_gtktest=no
5001df0d
MW
27062 fi
27063 esac
27064
a848cd7e
SC
27065 # Check whether --enable-gtktest or --disable-gtktest was given.
27066if test "${enable_gtktest+set}" = set; then
27067 enableval="$enable_gtktest"
27068
27069else
27070 enable_gtktest=yes
27071fi;
27072
27073 pkg_config_args=gtk+-2.0
27074 for module in . $GTK_MODULES
27075 do
27076 case "$module" in
27077 gthread)
27078 pkg_config_args="$pkg_config_args gthread-2.0"
27079 ;;
27080 esac
27081 done
27082
27083 no_gtk=""
27084
27085 # Extract the first word of "pkg-config", so it can be a program name with args.
27086set dummy pkg-config; ac_word=$2
27087echo "$as_me:$LINENO: checking for $ac_word" >&5
27088echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27089if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27090 echo $ECHO_N "(cached) $ECHO_C" >&6
27091else
27092 case $PKG_CONFIG in
27093 [\\/]* | ?:[\\/]*)
27094 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27095 ;;
27096 *)
27097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27098for as_dir in $PATH
27099do
27100 IFS=$as_save_IFS
27101 test -z "$as_dir" && as_dir=.
27102 for ac_exec_ext in '' $ac_executable_extensions; do
27103 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27104 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27106 break 2
27107 fi
27108done
27109done
27110
27111 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27112 ;;
27113esac
27114fi
27115PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27116
27117if test -n "$PKG_CONFIG"; then
27118 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27119echo "${ECHO_T}$PKG_CONFIG" >&6
27120else
27121 echo "$as_me:$LINENO: result: no" >&5
27122echo "${ECHO_T}no" >&6
27123fi
27124
27125
27126 if test x$PKG_CONFIG != xno ; then
27127 if pkg-config --atleast-pkgconfig-version 0.7 ; then
27128 :
27129 else
c2218763 27130 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
27131 no_gtk=yes
27132 PKG_CONFIG=no
27133 fi
27134 else
27135 no_gtk=yes
27136 fi
27137
27138 min_gtk_version=2.0.0
27139 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
27140echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
27141
27142 if test x$PKG_CONFIG != xno ; then
27143 ## don't try to run the test against uninstalled libtool libs
27144 if $PKG_CONFIG --uninstalled $pkg_config_args; then
27145 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
27146 enable_gtktest=no
27147 fi
27148
27149 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
27150 :
27151 else
27152 no_gtk=yes
27153 fi
27154 fi
27155
27156 if test x"$no_gtk" = x ; then
27157 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
27158 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
27159 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27160 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
27161 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27162 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
27163 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27164 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
27165 if test "x$enable_gtktest" = "xyes" ; then
27166 ac_save_CFLAGS="$CFLAGS"
27167 ac_save_LIBS="$LIBS"
27168 CFLAGS="$CFLAGS $GTK_CFLAGS"
27169 LIBS="$GTK_LIBS $LIBS"
27170 rm -f conf.gtktest
27171 if test "$cross_compiling" = yes; then
27172 echo $ac_n "cross compiling; assumed OK... $ac_c"
27173else
27174 cat >conftest.$ac_ext <<_ACEOF
27175/* confdefs.h. */
27176_ACEOF
27177cat confdefs.h >>conftest.$ac_ext
27178cat >>conftest.$ac_ext <<_ACEOF
27179/* end confdefs.h. */
27180
27181#include <gtk/gtk.h>
27182#include <stdio.h>
27183#include <stdlib.h>
27184
27185int
27186main ()
27187{
27188 int major, minor, micro;
27189 char *tmp_version;
27190
27191 system ("touch conf.gtktest");
27192
27193 /* HP/UX 9 (%@#!) writes to sscanf strings */
27194 tmp_version = g_strdup("$min_gtk_version");
27195 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
27196 printf("%s, bad version string\n", "$min_gtk_version");
27197 exit(1);
27198 }
27199
27200 if ((gtk_major_version != $gtk_config_major_version) ||
27201 (gtk_minor_version != $gtk_config_minor_version) ||
27202 (gtk_micro_version != $gtk_config_micro_version))
27203 {
27204 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
27205 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
27206 gtk_major_version, gtk_minor_version, gtk_micro_version);
27207 printf ("*** was found! If pkg-config was correct, then it is best\n");
27208 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
27209 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
27210 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
27211 printf("*** required on your system.\n");
27212 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
27213 printf("*** to point to the correct configuration files\n");
27214 }
27215 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
27216 (gtk_minor_version != GTK_MINOR_VERSION) ||
27217 (gtk_micro_version != GTK_MICRO_VERSION))
27218 {
27219 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
27220 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
27221 printf("*** library (version %d.%d.%d)\n",
27222 gtk_major_version, gtk_minor_version, gtk_micro_version);
27223 }
27224 else
27225 {
27226 if ((gtk_major_version > major) ||
27227 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
27228 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
27229 {
27230 return 0;
27231 }
27232 else
27233 {
27234 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
27235 gtk_major_version, gtk_minor_version, gtk_micro_version);
27236 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
27237 major, minor, micro);
27238 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
27239 printf("***\n");
27240 printf("*** If you have already installed a sufficiently new version, this error\n");
27241 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
27242 printf("*** being found. The easiest way to fix this is to remove the old version\n");
27243 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
27244 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
27245 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27246 printf("*** so that the correct libraries are found at run-time))\n");
27247 }
27248 }
27249 return 1;
27250}
27251
27252_ACEOF
27253rm -f conftest$ac_exeext
27254if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27255 (eval $ac_link) 2>&5
27256 ac_status=$?
27257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27258 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27260 (eval $ac_try) 2>&5
27261 ac_status=$?
27262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27263 (exit $ac_status); }; }; then
27264 :
27265else
27266 echo "$as_me: program exited with status $ac_status" >&5
27267echo "$as_me: failed program was:" >&5
27268sed 's/^/| /' conftest.$ac_ext >&5
27269
27270( exit $ac_status )
27271no_gtk=yes
27272fi
ac1cb8d3 27273rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27274fi
27275 CFLAGS="$ac_save_CFLAGS"
27276 LIBS="$ac_save_LIBS"
27277 fi
27278 fi
27279 if test "x$no_gtk" = x ; then
27280 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
27281echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
27282 wx_cv_lib_gtk=2.0
27283 else
27284 echo "$as_me:$LINENO: result: no" >&5
27285echo "${ECHO_T}no" >&6
27286 if test "$PKG_CONFIG" = "no" ; then
27287 echo "*** A new enough version of pkg-config was not found."
27288 echo "*** See http://pkgconfig.sourceforge.net"
27289 else
27290 if test -f conf.gtktest ; then
27291 :
27292 else
27293 echo "*** Could not run GTK+ test program, checking why..."
27294 ac_save_CFLAGS="$CFLAGS"
27295 ac_save_LIBS="$LIBS"
27296 CFLAGS="$CFLAGS $GTK_CFLAGS"
27297 LIBS="$LIBS $GTK_LIBS"
27298 cat >conftest.$ac_ext <<_ACEOF
27299/* confdefs.h. */
27300_ACEOF
27301cat confdefs.h >>conftest.$ac_ext
27302cat >>conftest.$ac_ext <<_ACEOF
27303/* end confdefs.h. */
27304
27305#include <gtk/gtk.h>
27306#include <stdio.h>
27307
27308int
27309main ()
27310{
27311 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
27312 ;
27313 return 0;
27314}
27315_ACEOF
27316rm -f conftest.$ac_objext conftest$ac_exeext
27317if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27318 (eval $ac_link) 2>conftest.er1
a848cd7e 27319 ac_status=$?
ac1cb8d3
VS
27320 grep -v '^ *+' conftest.er1 >conftest.err
27321 rm -f conftest.er1
27322 cat conftest.err >&5
a848cd7e
SC
27323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27324 (exit $ac_status); } &&
c9a66001 27325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27327 (eval $ac_try) 2>&5
27328 ac_status=$?
27329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27330 (exit $ac_status); }; } &&
27331 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27333 (eval $ac_try) 2>&5
27334 ac_status=$?
27335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27336 (exit $ac_status); }; }; then
27337 echo "*** The test program compiled, but did not run. This usually means"
27338 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
27339 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
27340 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
27341 echo "*** to the installed location Also, make sure you have run ldconfig if that"
27342 echo "*** is required on your system"
27343 echo "***"
27344 echo "*** If you have an old version installed, it is best to remove it, although"
27345 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
27346else
27347 echo "$as_me: failed program was:" >&5
27348sed 's/^/| /' conftest.$ac_ext >&5
27349
27350 echo "*** The test program failed to compile or link. See the file config.log for the"
27351 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
27352fi
ac1cb8d3
VS
27353rm -f conftest.err conftest.$ac_objext \
27354 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27355 CFLAGS="$ac_save_CFLAGS"
27356 LIBS="$ac_save_LIBS"
27357 fi
27358 fi
27359 GTK_CFLAGS=""
27360 GTK_LIBS=""
27361 :
27362 fi
27363
27364
27365 rm -f conf.gtktest
27366
5001df0d
MW
27367
27368 case "${host}" in
27369 *-*-solaris2* )
27370 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
27371 GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'`
27372 GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'`
27373 fi
27374 if test "$wxUSE_SHARED" != "yes"; then
27375 GTK_LIBS="$GTK_LIBS -lX11"
27376 fi
27377 esac
f597b41c
MW
27378 fi
27379
f34ca037
MW
27380 if test -z "$wx_cv_lib_gtk"; then
27381 if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
a848cd7e
SC
27382
27383# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
27384if test "${with_gtk_prefix+set}" = set; then
27385 withval="$with_gtk_prefix"
27386 gtk_config_prefix="$withval"
27387else
27388 gtk_config_prefix=""
27389fi;
27390
27391# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
27392if test "${with_gtk_exec_prefix+set}" = set; then
27393 withval="$with_gtk_exec_prefix"
27394 gtk_config_exec_prefix="$withval"
27395else
27396 gtk_config_exec_prefix=""
27397fi;
27398# Check whether --enable-gtktest or --disable-gtktest was given.
27399if test "${enable_gtktest+set}" = set; then
27400 enableval="$enable_gtktest"
27401
27402else
27403 enable_gtktest=yes
27404fi;
27405
27406 for module in . $GTK_MODULES
27407 do
27408 case "$module" in
27409 gthread)
27410 gtk_config_args="$gtk_config_args gthread"
27411 ;;
27412 esac
27413 done
27414
27415 if test x$gtk_config_exec_prefix != x ; then
27416 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
27417 if test x${GTK_CONFIG+set} != xset ; then
27418 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
27419 fi
27420 fi
27421 if test x$gtk_config_prefix != x ; then
27422 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
27423 if test x${GTK_CONFIG+set} != xset ; then
27424 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
27425 fi
27426 fi
27427
27428 # Extract the first word of "gtk-config", so it can be a program name with args.
27429set dummy gtk-config; ac_word=$2
27430echo "$as_me:$LINENO: checking for $ac_word" >&5
27431echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27432if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
27433 echo $ECHO_N "(cached) $ECHO_C" >&6
27434else
27435 case $GTK_CONFIG in
27436 [\\/]* | ?:[\\/]*)
27437 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
27438 ;;
27439 *)
27440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27441for as_dir in $PATH
27442do
27443 IFS=$as_save_IFS
27444 test -z "$as_dir" && as_dir=.
27445 for ac_exec_ext in '' $ac_executable_extensions; do
27446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27447 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27449 break 2
27450 fi
27451done
27452done
27453
27454 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
27455 ;;
27456esac
27457fi
27458GTK_CONFIG=$ac_cv_path_GTK_CONFIG
27459
27460if test -n "$GTK_CONFIG"; then
27461 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
27462echo "${ECHO_T}$GTK_CONFIG" >&6
27463else
27464 echo "$as_me:$LINENO: result: no" >&5
27465echo "${ECHO_T}no" >&6
27466fi
27467
27468 min_gtk_version=1.2.7
27469 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
27470echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
27471 no_gtk=""
27472 if test "$GTK_CONFIG" = "no" ; then
27473 no_gtk=yes
27474 else
27475 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
27476 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
27477 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
27478 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
27479 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
27480 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
27481 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
27482 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
27483 if test "x$enable_gtktest" = "xyes" ; then
27484 ac_save_CFLAGS="$CFLAGS"
27485 ac_save_LIBS="$LIBS"
27486 CFLAGS="$CFLAGS $GTK_CFLAGS"
27487 LIBS="$GTK_LIBS $LIBS"
27488 rm -f conf.gtktest
27489 if test "$cross_compiling" = yes; then
27490 echo $ac_n "cross compiling; assumed OK... $ac_c"
27491else
27492 cat >conftest.$ac_ext <<_ACEOF
27493/* confdefs.h. */
27494_ACEOF
27495cat confdefs.h >>conftest.$ac_ext
27496cat >>conftest.$ac_ext <<_ACEOF
27497/* end confdefs.h. */
27498
27499#include <gtk/gtk.h>
27500#include <stdio.h>
27501#include <stdlib.h>
27502
27503int
27504main ()
27505{
27506 int major, minor, micro;
27507 char *tmp_version;
27508
27509 system ("touch conf.gtktest");
27510
27511 /* HP/UX 9 (%@#!) writes to sscanf strings */
27512 tmp_version = g_strdup("$min_gtk_version");
27513 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
27514 printf("%s, bad version string\n", "$min_gtk_version");
27515 exit(1);
27516 }
27517
27518 if ((gtk_major_version != $gtk_config_major_version) ||
27519 (gtk_minor_version != $gtk_config_minor_version) ||
27520 (gtk_micro_version != $gtk_config_micro_version))
27521 {
27522 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
27523 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
27524 gtk_major_version, gtk_minor_version, gtk_micro_version);
27525 printf ("*** was found! If gtk-config was correct, then it is best\n");
27526 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
27527 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
27528 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
27529 printf("*** required on your system.\n");
27530 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
27531 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
27532 printf("*** before re-running configure\n");
27533 }
27534#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
27535 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
27536 (gtk_minor_version != GTK_MINOR_VERSION) ||
27537 (gtk_micro_version != GTK_MICRO_VERSION))
27538 {
27539 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
27540 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
27541 printf("*** library (version %d.%d.%d)\n",
27542 gtk_major_version, gtk_minor_version, gtk_micro_version);
27543 }
27544#endif /* defined (GTK_MAJOR_VERSION) ... */
27545 else
27546 {
27547 if ((gtk_major_version > major) ||
27548 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
27549 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
27550 {
27551 return 0;
27552 }
27553 else
27554 {
27555 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
27556 gtk_major_version, gtk_minor_version, gtk_micro_version);
27557 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
27558 major, minor, micro);
27559 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
27560 printf("***\n");
27561 printf("*** If you have already installed a sufficiently new version, this error\n");
27562 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
27563 printf("*** being found. The easiest way to fix this is to remove the old version\n");
27564 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
27565 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
27566 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27567 printf("*** so that the correct libraries are found at run-time))\n");
27568 }
27569 }
27570 return 1;
27571}
27572
27573_ACEOF
27574rm -f conftest$ac_exeext
27575if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27576 (eval $ac_link) 2>&5
27577 ac_status=$?
27578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27579 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27581 (eval $ac_try) 2>&5
27582 ac_status=$?
27583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27584 (exit $ac_status); }; }; then
27585 :
27586else
27587 echo "$as_me: program exited with status $ac_status" >&5
27588echo "$as_me: failed program was:" >&5
27589sed 's/^/| /' conftest.$ac_ext >&5
27590
27591( exit $ac_status )
27592no_gtk=yes
27593fi
ac1cb8d3 27594rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27595fi
27596 CFLAGS="$ac_save_CFLAGS"
27597 LIBS="$ac_save_LIBS"
27598 fi
27599 fi
27600 if test "x$no_gtk" = x ; then
27601 echo "$as_me:$LINENO: result: yes" >&5
27602echo "${ECHO_T}yes" >&6
27603 wx_cv_lib_gtk=1.2.7
27604 else
27605 echo "$as_me:$LINENO: result: no" >&5
27606echo "${ECHO_T}no" >&6
27607 if test "$GTK_CONFIG" = "no" ; then
27608 echo "*** The gtk-config script installed by GTK could not be found"
27609 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
27610 echo "*** your path, or set the GTK_CONFIG environment variable to the"
27611 echo "*** full path to gtk-config."
27612 else
27613 if test -f conf.gtktest ; then
27614 :
27615 else
27616 echo "*** Could not run GTK test program, checking why..."
27617 CFLAGS="$CFLAGS $GTK_CFLAGS"
27618 LIBS="$LIBS $GTK_LIBS"
27619 cat >conftest.$ac_ext <<_ACEOF
27620/* confdefs.h. */
27621_ACEOF
27622cat confdefs.h >>conftest.$ac_ext
27623cat >>conftest.$ac_ext <<_ACEOF
27624/* end confdefs.h. */
27625
27626#include <gtk/gtk.h>
27627#include <stdio.h>
27628
27629int
27630main ()
27631{
27632 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
27633 ;
27634 return 0;
27635}
27636_ACEOF
27637rm -f conftest.$ac_objext conftest$ac_exeext
27638if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27639 (eval $ac_link) 2>conftest.er1
a848cd7e 27640 ac_status=$?
ac1cb8d3
VS
27641 grep -v '^ *+' conftest.er1 >conftest.err
27642 rm -f conftest.er1
27643 cat conftest.err >&5
a848cd7e
SC
27644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27645 (exit $ac_status); } &&
c9a66001 27646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27648 (eval $ac_try) 2>&5
27649 ac_status=$?
27650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27651 (exit $ac_status); }; } &&
27652 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27654 (eval $ac_try) 2>&5
27655 ac_status=$?
27656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27657 (exit $ac_status); }; }; then
27658 echo "*** The test program compiled, but did not run. This usually means"
27659 echo "*** that the run-time linker is not finding GTK or finding the wrong"
27660 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
27661 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
27662 echo "*** to the installed location Also, make sure you have run ldconfig if that"
27663 echo "*** is required on your system"
27664 echo "***"
27665 echo "*** If you have an old version installed, it is best to remove it, although"
27666 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
27667 echo "***"
27668 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
27669 echo "*** came with the system with the command"
27670 echo "***"
27671 echo "*** rpm --erase --nodeps gtk gtk-devel"
27672else
27673 echo "$as_me: failed program was:" >&5
27674sed 's/^/| /' conftest.$ac_ext >&5
27675
27676 echo "*** The test program failed to compile or link. See the file config.log for the"
27677 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
27678 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
27679 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
27680fi
ac1cb8d3
VS
27681rm -f conftest.err conftest.$ac_objext \
27682 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27683 CFLAGS="$ac_save_CFLAGS"
27684 LIBS="$ac_save_LIBS"
27685 fi
27686 fi
27687 GTK_CFLAGS=""
27688 GTK_LIBS=""
27689 :
27690 fi
27691
27692
27693 rm -f conf.gtktest
27694
27695
f34ca037 27696 if test -z "$wx_cv_lib_gtk"; then
a848cd7e
SC
27697
27698# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
27699if test "${with_gtk_prefix+set}" = set; then
27700 withval="$with_gtk_prefix"
27701 gtk_config_prefix="$withval"
27702else
27703 gtk_config_prefix=""
27704fi;
27705
27706# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
27707if test "${with_gtk_exec_prefix+set}" = set; then
27708 withval="$with_gtk_exec_prefix"
27709 gtk_config_exec_prefix="$withval"
27710else
27711 gtk_config_exec_prefix=""
27712fi;
27713# Check whether --enable-gtktest or --disable-gtktest was given.
27714if test "${enable_gtktest+set}" = set; then
27715 enableval="$enable_gtktest"
27716
27717else
27718 enable_gtktest=yes
27719fi;
27720
27721 for module in . $GTK_MODULES
27722 do
27723 case "$module" in
27724 gthread)
27725 gtk_config_args="$gtk_config_args gthread"
27726 ;;
27727 esac
27728 done
27729
27730 if test x$gtk_config_exec_prefix != x ; then
27731 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
27732 if test x${GTK_CONFIG+set} != xset ; then
27733 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
27734 fi
27735 fi
27736 if test x$gtk_config_prefix != x ; then
27737 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
27738 if test x${GTK_CONFIG+set} != xset ; then
27739 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
27740 fi
27741 fi
27742
27743 # Extract the first word of "gtk-config", so it can be a program name with args.
27744set dummy gtk-config; ac_word=$2
27745echo "$as_me:$LINENO: checking for $ac_word" >&5
27746echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27747if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
27748 echo $ECHO_N "(cached) $ECHO_C" >&6
27749else
27750 case $GTK_CONFIG in
27751 [\\/]* | ?:[\\/]*)
27752 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
27753 ;;
27754 *)
27755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27756for as_dir in $PATH
27757do
27758 IFS=$as_save_IFS
27759 test -z "$as_dir" && as_dir=.
27760 for ac_exec_ext in '' $ac_executable_extensions; do
27761 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27762 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27764 break 2
27765 fi
27766done
27767done
27768
27769 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
27770 ;;
27771esac
27772fi
27773GTK_CONFIG=$ac_cv_path_GTK_CONFIG
27774
27775if test -n "$GTK_CONFIG"; then
27776 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
27777echo "${ECHO_T}$GTK_CONFIG" >&6
27778else
27779 echo "$as_me:$LINENO: result: no" >&5
27780echo "${ECHO_T}no" >&6
27781fi
27782
27783 min_gtk_version=1.2.3
27784 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
27785echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
27786 no_gtk=""
27787 if test "$GTK_CONFIG" = "no" ; then
27788 no_gtk=yes
27789 else
27790 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
27791 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
27792 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
27793 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
27794 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
27795 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
27796 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
27797 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
27798 if test "x$enable_gtktest" = "xyes" ; then
27799 ac_save_CFLAGS="$CFLAGS"
27800 ac_save_LIBS="$LIBS"
27801 CFLAGS="$CFLAGS $GTK_CFLAGS"
27802 LIBS="$GTK_LIBS $LIBS"
27803 rm -f conf.gtktest
27804 if test "$cross_compiling" = yes; then
27805 echo $ac_n "cross compiling; assumed OK... $ac_c"
27806else
27807 cat >conftest.$ac_ext <<_ACEOF
27808/* confdefs.h. */
27809_ACEOF
27810cat confdefs.h >>conftest.$ac_ext
27811cat >>conftest.$ac_ext <<_ACEOF
27812/* end confdefs.h. */
27813
27814#include <gtk/gtk.h>
27815#include <stdio.h>
27816#include <stdlib.h>
27817
27818int
27819main ()
27820{
27821 int major, minor, micro;
27822 char *tmp_version;
27823
27824 system ("touch conf.gtktest");
27825
27826 /* HP/UX 9 (%@#!) writes to sscanf strings */
27827 tmp_version = g_strdup("$min_gtk_version");
27828 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
27829 printf("%s, bad version string\n", "$min_gtk_version");
27830 exit(1);
27831 }
27832
27833 if ((gtk_major_version != $gtk_config_major_version) ||
27834 (gtk_minor_version != $gtk_config_minor_version) ||
27835 (gtk_micro_version != $gtk_config_micro_version))
27836 {
27837 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
27838 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
27839 gtk_major_version, gtk_minor_version, gtk_micro_version);
27840 printf ("*** was found! If gtk-config was correct, then it is best\n");
27841 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
27842 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
27843 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
27844 printf("*** required on your system.\n");
27845 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
27846 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
27847 printf("*** before re-running configure\n");
27848 }
27849#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
27850 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
27851 (gtk_minor_version != GTK_MINOR_VERSION) ||
27852 (gtk_micro_version != GTK_MICRO_VERSION))
27853 {
27854 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
27855 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
27856 printf("*** library (version %d.%d.%d)\n",
27857 gtk_major_version, gtk_minor_version, gtk_micro_version);
27858 }
27859#endif /* defined (GTK_MAJOR_VERSION) ... */
27860 else
27861 {
27862 if ((gtk_major_version > major) ||
27863 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
27864 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
27865 {
27866 return 0;
27867 }
27868 else
27869 {
27870 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
27871 gtk_major_version, gtk_minor_version, gtk_micro_version);
27872 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
27873 major, minor, micro);
27874 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
27875 printf("***\n");
27876 printf("*** If you have already installed a sufficiently new version, this error\n");
27877 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
27878 printf("*** being found. The easiest way to fix this is to remove the old version\n");
27879 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
27880 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
27881 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27882 printf("*** so that the correct libraries are found at run-time))\n");
27883 }
27884 }
27885 return 1;
27886}
27887
27888_ACEOF
27889rm -f conftest$ac_exeext
27890if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27891 (eval $ac_link) 2>&5
27892 ac_status=$?
27893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27894 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27896 (eval $ac_try) 2>&5
27897 ac_status=$?
27898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27899 (exit $ac_status); }; }; then
27900 :
27901else
27902 echo "$as_me: program exited with status $ac_status" >&5
27903echo "$as_me: failed program was:" >&5
27904sed 's/^/| /' conftest.$ac_ext >&5
27905
27906( exit $ac_status )
27907no_gtk=yes
27908fi
ac1cb8d3 27909rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27910fi
27911 CFLAGS="$ac_save_CFLAGS"
27912 LIBS="$ac_save_LIBS"
27913 fi
27914 fi
27915 if test "x$no_gtk" = x ; then
27916 echo "$as_me:$LINENO: result: yes" >&5
27917echo "${ECHO_T}yes" >&6
27918 wx_cv_lib_gtk=1.2.3
27919 else
27920 echo "$as_me:$LINENO: result: no" >&5
27921echo "${ECHO_T}no" >&6
27922 if test "$GTK_CONFIG" = "no" ; then
27923 echo "*** The gtk-config script installed by GTK could not be found"
27924 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
27925 echo "*** your path, or set the GTK_CONFIG environment variable to the"
27926 echo "*** full path to gtk-config."
27927 else
27928 if test -f conf.gtktest ; then
27929 :
27930 else
27931 echo "*** Could not run GTK test program, checking why..."
27932 CFLAGS="$CFLAGS $GTK_CFLAGS"
27933 LIBS="$LIBS $GTK_LIBS"
27934 cat >conftest.$ac_ext <<_ACEOF
27935/* confdefs.h. */
27936_ACEOF
27937cat confdefs.h >>conftest.$ac_ext
27938cat >>conftest.$ac_ext <<_ACEOF
27939/* end confdefs.h. */
27940
27941#include <gtk/gtk.h>
27942#include <stdio.h>
27943
27944int
27945main ()
27946{
27947 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
27948 ;
27949 return 0;
27950}
27951_ACEOF
27952rm -f conftest.$ac_objext conftest$ac_exeext
27953if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27954 (eval $ac_link) 2>conftest.er1
a848cd7e 27955 ac_status=$?
ac1cb8d3
VS
27956 grep -v '^ *+' conftest.er1 >conftest.err
27957 rm -f conftest.er1
27958 cat conftest.err >&5
a848cd7e
SC
27959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27960 (exit $ac_status); } &&
c9a66001 27961 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27963 (eval $ac_try) 2>&5
27964 ac_status=$?
27965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27966 (exit $ac_status); }; } &&
27967 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27969 (eval $ac_try) 2>&5
27970 ac_status=$?
27971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27972 (exit $ac_status); }; }; then
27973 echo "*** The test program compiled, but did not run. This usually means"
27974 echo "*** that the run-time linker is not finding GTK or finding the wrong"
27975 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
27976 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
27977 echo "*** to the installed location Also, make sure you have run ldconfig if that"
27978 echo "*** is required on your system"
27979 echo "***"
27980 echo "*** If you have an old version installed, it is best to remove it, although"
27981 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
27982 echo "***"
27983 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
27984 echo "*** came with the system with the command"
27985 echo "***"
27986 echo "*** rpm --erase --nodeps gtk gtk-devel"
27987else
27988 echo "$as_me: failed program was:" >&5
27989sed 's/^/| /' conftest.$ac_ext >&5
27990
27991 echo "*** The test program failed to compile or link. See the file config.log for the"
27992 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
27993 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
27994 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
27995fi
ac1cb8d3
VS
27996rm -f conftest.err conftest.$ac_objext \
27997 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27998 CFLAGS="$ac_save_CFLAGS"
27999 LIBS="$ac_save_LIBS"
28000 fi
28001 fi
28002 GTK_CFLAGS=""
28003 GTK_LIBS=""
28004 :
28005 fi
28006
28007
28008 rm -f conf.gtktest
28009
f34ca037 28010 fi
a848cd7e
SC
28011 fi
28012 fi
28013
28014 if test -z "$wx_cv_lib_gtk"; then
28015 wx_cv_lib_gtk=none
28016 else
28017 wx_cv_cflags_gtk=$GTK_CFLAGS
d2822091 28018 wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
a848cd7e
SC
28019 fi
28020
28021
28022fi
28023
28024
28025 if test "$gtk_version_cached" = 1; then
28026 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
28027echo "${ECHO_T}$wx_cv_lib_gtk" >&6
28028 fi
28029
28030 case "$wx_cv_lib_gtk" in
28031 2.0) WXGTK20=1
28032 TOOLKIT_VERSION=2
28033 ;;
28034 1.2.7) WXGTK127=1
28035 WXGTK12=1
28036 ;;
28037 1.2.3) WXGTK12=1
28038 ;;
28039 *) { { echo "$as_me:$LINENO: error:
f597b41c
MW
28040The development files for GTK+ were not found. For GTK+ 2, please
28041ensure that pkg-config is in the path and that gtk+-2.0.pc is
28042installed. For GTK+ 1.2 please check that gtk-config is in the path,
28043and that the version is 1.2.3 or above. Also check that the
28044libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
28045--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
28046 " >&5
28047echo "$as_me: error:
f597b41c
MW
28048The development files for GTK+ were not found. For GTK+ 2, please
28049ensure that pkg-config is in the path and that gtk+-2.0.pc is
28050installed. For GTK+ 1.2 please check that gtk-config is in the path,
28051and that the version is 1.2.3 or above. Also check that the
28052libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
28053--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
28054 " >&2;}
28055 { (exit 1); exit 1; }; }
28056 ;;
28057 esac
28058
28059 if test "$WXGTK20" = 1; then
6954625c 28060 save_CFLAGS="$CFLAGS"
304205f1 28061 save_LIBS="$LIBS"
6954625c 28062 CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
abc736fd 28063 LIBS="$LIBS $wx_cv_libs_gtk"
304205f1 28064
d12aef51
VZ
28065 echo "$as_me:$LINENO: checking if gtk_icon_size_lookup is missing" >&5
28066echo $ECHO_N "checking if gtk_icon_size_lookup is missing... $ECHO_C" >&6
28067 cat >conftest.$ac_ext <<_ACEOF
304205f1
VS
28068/* confdefs.h. */
28069_ACEOF
28070cat confdefs.h >>conftest.$ac_ext
28071cat >>conftest.$ac_ext <<_ACEOF
28072/* end confdefs.h. */
304205f1 28073
d12aef51 28074 #include <gtk/gtk.h>
304205f1 28075
d12aef51
VZ
28076int
28077main ()
28078{
304205f1 28079
d12aef51 28080 void *f = gtk_icon_size_lookup;
abc736fd
MW
28081
28082 ;
28083 return 0;
28084}
28085_ACEOF
28086rm -f conftest.$ac_objext
28087if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28088 (eval $ac_compile) 2>conftest.er1
28089 ac_status=$?
28090 grep -v '^ *+' conftest.er1 >conftest.err
28091 rm -f conftest.er1
28092 cat conftest.err >&5
28093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28094 (exit $ac_status); } &&
c9a66001 28095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
abc736fd
MW
28096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28097 (eval $ac_try) 2>&5
28098 ac_status=$?
28099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28100 (exit $ac_status); }; } &&
28101 { ac_try='test -s conftest.$ac_objext'
28102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28103 (eval $ac_try) 2>&5
28104 ac_status=$?
28105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28106 (exit $ac_status); }; }; then
28107
28108 echo "$as_me:$LINENO: result: no" >&5
28109echo "${ECHO_T}no" >&6
28110
28111else
28112 echo "$as_me: failed program was:" >&5
28113sed 's/^/| /' conftest.$ac_ext >&5
28114
28115
28116 cat >>confdefs.h <<\_ACEOF
28117#define NEED_GTK_ICON_SIZE_LOOKUP 1
28118_ACEOF
28119
28120 echo "$as_me:$LINENO: result: yes" >&5
28121echo "${ECHO_T}yes" >&6
28122
28123fi
28124rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28125
e9263684
VZ
28126 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
28127echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6
28128 cat >conftest.$ac_ext <<_ACEOF
28129/* confdefs.h. */
28130_ACEOF
28131cat confdefs.h >>conftest.$ac_ext
28132cat >>conftest.$ac_ext <<_ACEOF
28133/* end confdefs.h. */
28134
28135 #include <gtk/gtk.h>
28136
28137int
28138main ()
28139{
28140
28141 #if !GTK_CHECK_VERSION(2,6,0)
28142 Not GTK+ 2.6
28143 #endif
28144
28145 ;
28146 return 0;
28147}
28148_ACEOF
28149rm -f conftest.$ac_objext
28150if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28151 (eval $ac_compile) 2>conftest.er1
28152 ac_status=$?
28153 grep -v '^ *+' conftest.er1 >conftest.err
28154 rm -f conftest.er1
28155 cat conftest.err >&5
28156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28157 (exit $ac_status); } &&
c9a66001 28158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
e9263684
VZ
28159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28160 (eval $ac_try) 2>&5
28161 ac_status=$?
28162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28163 (exit $ac_status); }; } &&
28164 { ac_try='test -s conftest.$ac_objext'
28165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28166 (eval $ac_try) 2>&5
28167 ac_status=$?
28168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28169 (exit $ac_status); }; }; then
28170
28171 cat >>confdefs.h <<\_ACEOF
28172#define __WXGTK26__ 1
28173_ACEOF
28174
28175 cat >>confdefs.h <<\_ACEOF
28176#define __WXGTK24__ 1
28177_ACEOF
28178
28179 echo "$as_me:$LINENO: result: yes" >&5
28180echo "${ECHO_T}yes" >&6
28181 ac_wxgtk26=1
28182
28183else
28184 echo "$as_me: failed program was:" >&5
28185sed 's/^/| /' conftest.$ac_ext >&5
28186
28187
28188 echo "$as_me:$LINENO: result: no" >&5
28189echo "${ECHO_T}no" >&6
28190 ac_wxgtk26=0
28191
28192fi
28193rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28194
28195 if test "$ac_wxgtk26" = 0; then
9755e73b
VS
28196 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
28197echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
28198 cat >conftest.$ac_ext <<_ACEOF
28199/* confdefs.h. */
28200_ACEOF
28201cat confdefs.h >>conftest.$ac_ext
28202cat >>conftest.$ac_ext <<_ACEOF
28203/* end confdefs.h. */
28204
28205 #include <gtk/gtk.h>
28206
28207int
28208main ()
28209{
28210
28211 #if !GTK_CHECK_VERSION(2,4,0)
04e525a0 28212 Not GTK+ 2.4
9755e73b
VS
28213 #endif
28214
28215 ;
28216 return 0;
28217}
28218_ACEOF
28219rm -f conftest.$ac_objext
28220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28221 (eval $ac_compile) 2>conftest.er1
28222 ac_status=$?
28223 grep -v '^ *+' conftest.er1 >conftest.err
28224 rm -f conftest.er1
28225 cat conftest.err >&5
28226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28227 (exit $ac_status); } &&
c9a66001 28228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9755e73b
VS
28229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28230 (eval $ac_try) 2>&5
28231 ac_status=$?
28232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28233 (exit $ac_status); }; } &&
28234 { ac_try='test -s conftest.$ac_objext'
28235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28236 (eval $ac_try) 2>&5
28237 ac_status=$?
28238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28239 (exit $ac_status); }; }; then
28240
28241 cat >>confdefs.h <<\_ACEOF
28242#define __WXGTK24__ 1
28243_ACEOF
28244
28245 echo "$as_me:$LINENO: result: yes" >&5
28246echo "${ECHO_T}yes" >&6
28247
28248else
28249 echo "$as_me: failed program was:" >&5
28250sed 's/^/| /' conftest.$ac_ext >&5
28251
28252
28253 echo "$as_me:$LINENO: result: no" >&5
28254echo "${ECHO_T}no" >&6
28255
28256fi
28257rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e9263684 28258 fi
9755e73b 28259
6954625c 28260 CFLAGS="$save_CFLAGS"
304205f1 28261 LIBS="$save_LIBS"
a848cd7e
SC
28262 else
28263 if test "$wxUSE_UNICODE" = "yes"; then
28264 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
28265echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
28266 wxUSE_UNICODE=no
28267 fi
28268 fi
28269
e56f4f9e
VZ
28270 ac_ext=cc
28271ac_cpp='$CXXCPP $CPPFLAGS'
28272ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28273ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28274ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28275
28276
a848cd7e
SC
28277 if test "$USE_DARWIN" != 1; then
28278
28279for ac_func in poll
28280do
28281as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28282echo "$as_me:$LINENO: checking for $ac_func" >&5
28283echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28284if eval "test \"\${$as_ac_var+set}\" = set"; then
28285 echo $ECHO_N "(cached) $ECHO_C" >&6
28286else
28287 cat >conftest.$ac_ext <<_ACEOF
28288/* confdefs.h. */
28289_ACEOF
28290cat confdefs.h >>conftest.$ac_ext
28291cat >>conftest.$ac_ext <<_ACEOF
28292/* end confdefs.h. */
ac1cb8d3
VS
28293/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28294 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28295#define $ac_func innocuous_$ac_func
28296
a848cd7e
SC
28297/* System header to define __stub macros and hopefully few prototypes,
28298 which can conflict with char $ac_func (); below.
28299 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28300 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28301
a848cd7e
SC
28302#ifdef __STDC__
28303# include <limits.h>
28304#else
28305# include <assert.h>
28306#endif
ac1cb8d3
VS
28307
28308#undef $ac_func
28309
a848cd7e
SC
28310/* Override any gcc2 internal prototype to avoid an error. */
28311#ifdef __cplusplus
28312extern "C"
28313{
28314#endif
28315/* We use char because int might match the return type of a gcc2
28316 builtin and then its argument prototype would still apply. */
28317char $ac_func ();
28318/* The GNU C library defines this for functions which it implements
28319 to always fail with ENOSYS. Some functions are actually named
28320 something starting with __ and the normal name is an alias. */
28321#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28322choke me
28323#else
28324char (*f) () = $ac_func;
28325#endif
28326#ifdef __cplusplus
28327}
28328#endif
28329
28330int
28331main ()
28332{
28333return f != $ac_func;
28334 ;
28335 return 0;
28336}
28337_ACEOF
28338rm -f conftest.$ac_objext conftest$ac_exeext
28339if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28340 (eval $ac_link) 2>conftest.er1
a848cd7e 28341 ac_status=$?
ac1cb8d3
VS
28342 grep -v '^ *+' conftest.er1 >conftest.err
28343 rm -f conftest.er1
28344 cat conftest.err >&5
a848cd7e
SC
28345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28346 (exit $ac_status); } &&
c9a66001 28347 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28349 (eval $ac_try) 2>&5
28350 ac_status=$?
28351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28352 (exit $ac_status); }; } &&
28353 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28355 (eval $ac_try) 2>&5
28356 ac_status=$?
28357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28358 (exit $ac_status); }; }; then
28359 eval "$as_ac_var=yes"
28360else
28361 echo "$as_me: failed program was:" >&5
28362sed 's/^/| /' conftest.$ac_ext >&5
28363
28364eval "$as_ac_var=no"
28365fi
ac1cb8d3
VS
28366rm -f conftest.err conftest.$ac_objext \
28367 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28368fi
28369echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28370echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28371if test `eval echo '${'$as_ac_var'}'` = yes; then
28372 cat >>confdefs.h <<_ACEOF
28373#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28374_ACEOF
28375
28376fi
28377done
28378
28379 fi
28380
28381 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
28382 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
28383
28384 AFMINSTALL=afminstall
28385 TOOLKIT=GTK
28386 GUIDIST=GTK_DIST
28387
28388 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
28389echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
28390if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
28391 echo $ECHO_N "(cached) $ECHO_C" >&6
28392else
28393 ac_check_lib_save_LIBS=$LIBS
28394LIBS="-lgdk $LIBS"
28395cat >conftest.$ac_ext <<_ACEOF
28396/* confdefs.h. */
28397_ACEOF
28398cat confdefs.h >>conftest.$ac_ext
28399cat >>conftest.$ac_ext <<_ACEOF
28400/* end confdefs.h. */
28401
28402/* Override any gcc2 internal prototype to avoid an error. */
28403#ifdef __cplusplus
28404extern "C"
28405#endif
28406/* We use char because int might match the return type of a gcc2
28407 builtin and then its argument prototype would still apply. */
28408char gdk_im_open ();
28409int
28410main ()
28411{
28412gdk_im_open ();
28413 ;
28414 return 0;
28415}
28416_ACEOF
28417rm -f conftest.$ac_objext conftest$ac_exeext
28418if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28419 (eval $ac_link) 2>conftest.er1
a848cd7e 28420 ac_status=$?
ac1cb8d3
VS
28421 grep -v '^ *+' conftest.er1 >conftest.err
28422 rm -f conftest.er1
28423 cat conftest.err >&5
a848cd7e
SC
28424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28425 (exit $ac_status); } &&
c9a66001 28426 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28428 (eval $ac_try) 2>&5
28429 ac_status=$?
28430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28431 (exit $ac_status); }; } &&
28432 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28434 (eval $ac_try) 2>&5
28435 ac_status=$?
28436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28437 (exit $ac_status); }; }; then
28438 ac_cv_lib_gdk_gdk_im_open=yes
28439else
28440 echo "$as_me: failed program was:" >&5
28441sed 's/^/| /' conftest.$ac_ext >&5
28442
28443ac_cv_lib_gdk_gdk_im_open=no
28444fi
ac1cb8d3
VS
28445rm -f conftest.err conftest.$ac_objext \
28446 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28447LIBS=$ac_check_lib_save_LIBS
28448fi
28449echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
28450echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
28451if test $ac_cv_lib_gdk_gdk_im_open = yes; then
28452 cat >>confdefs.h <<\_ACEOF
28453#define HAVE_XIM 1
28454_ACEOF
28455
28456fi
28457
28458
28459
28460 if test "$wxUSE_GPE" = "yes"; then
28461 echo "$as_me:$LINENO: checking for gpewidget library" >&5
28462echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
28463
0ad5d837
VZ
28464 ac_find_libraries=
28465 for ac_dir in $SEARCH_LIB;
a848cd7e 28466 do
3eca31dc 28467 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
28468 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
28469 ac_find_libraries=$ac_dir
28470 break 2
28471 fi
28472 done
28473 done
28474
28475 if test "$ac_find_libraries" != "" ; then
28476
0ad5d837 28477 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
28478 ac_path_to_link=""
28479 else
0ad5d837
VZ
28480 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
28481 result=$?
28482 if test $result = 0; then
28483 ac_path_to_link=""
28484 else
28485 ac_path_to_link=" -L$ac_find_libraries"
28486 fi
a848cd7e
SC
28487 fi
28488
28489 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
28490 WXGPE=1
0ad5d837
VZ
28491 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
28492echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
28493 else
28494 echo "$as_me:$LINENO: result: not found" >&5
28495echo "${ECHO_T}not found" >&6
28496 fi
28497
28498 fi
28499 fi
28500
28501 if test "$wxUSE_MGL" = 1; then
28502 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
28503echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
28504 if test "x$MGL_ROOT" = x ; then
28505 echo "$as_me:$LINENO: result: not found" >&5
28506echo "${ECHO_T}not found" >&6
28507 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
28508echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
28509 { (exit 1); exit 1; }; }
28510 else
28511 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
28512echo "${ECHO_T}$MGL_ROOT" >&6
28513 fi
28514
28515 echo "$as_me:$LINENO: checking for libmgl location" >&5
28516echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
28517 case "${host}" in
28518 *-*-linux* )
28519 if test "x$wxUSE_SHARED" = xyes ; then
28520 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
28521 else
28522 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
28523 fi
28524 ;;
28525 *-pc-msdosdjgpp )
28526 mgl_os_candidates="dos32/dj2"
28527 ;;
28528 *)
28529 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
28530echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
28531 { (exit 1); exit 1; }; }
28532 esac
28533
28534 mgl_lib_type=""
28535 mgl_os=""
28536
28537 for mgl_os_i in $mgl_os_candidates ; do
28538 if test "x$mgl_os" = x ; then
28539 if test "$wxUSE_DEBUG_FLAG" = yes ; then
28540 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
28541 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
28542 mgl_lib_type=debug
28543 mgl_os=$mgl_os_i
28544 fi
28545 fi
28546 if test "x$mgl_lib_type" = x ; then
28547 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
28548 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
28549 mgl_lib_type=release
28550 mgl_os=$mgl_os_i
28551 fi
28552 fi
28553 fi
28554 done
28555
28556 if test "x$mgl_os" = x ; then
28557 echo "$as_me:$LINENO: result: not found" >&5
28558echo "${ECHO_T}not found" >&6
28559 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
28560echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
28561 { (exit 1); exit 1; }; }
28562 fi
28563 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
28564echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
28565
28566 wxUSE_UNIVERSAL="yes"
28567
28568 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
28569 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
28570
28571 AFMINSTALL=afminstall
28572 TOOLKIT=MGL
28573 GUIDIST=MGL_DIST
28574 fi
28575
28576 if test "$wxUSE_MICROWIN" = 1; then
28577 echo "$as_me:$LINENO: checking for MicroWindows" >&5
28578echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
28579 if test "x$MICROWINDOWS" = x ; then
28580 echo "$as_me:$LINENO: result: not found" >&5
28581echo "${ECHO_T}not found" >&6
28582 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
28583echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
28584 { (exit 1); exit 1; }; }
28585 else
28586 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
28587echo "${ECHO_T}$MICROWINDOWS" >&6
28588 fi
28589
28590 if test -f $MICROWINDOWS/lib/libmwin.a; then
28591 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
28592echo "${ECHO_T}MicroWindows' libraries found." >&6
28593 else
28594 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
28595echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
28596 { (exit 1); exit 1; }; }
28597 fi
28598
28599 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
28600 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
28601
28602 wxUSE_UNIVERSAL="yes"
28603
28604 AFMINSTALL=afminstall
28605 TOOLKIT=MICROWIN
28606 GUIDIST=MICROWIN_DIST
28607
28608 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
28609 fi
28610
74b84332 28611 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
c9a66001
VZ
28612
28613if test "x$ac_path_x_has_been_run" != xyes; then
28614 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
28615echo $ECHO_N "checking for X... $ECHO_C" >&6
28616
c9a66001 28617ac_path_x_has_been_run=yes
a848cd7e
SC
28618
28619# Check whether --with-x or --without-x was given.
28620if test "${with_x+set}" = set; then
28621 withval="$with_x"
28622
28623fi;
28624# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
28625if test "x$with_x" = xno; then
28626 # The user explicitly disabled X.
28627 have_x=disabled
28628else
28629 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
28630 # Both variables are already set.
28631 have_x=yes
28632 else
28633 if test "${ac_cv_have_x+set}" = set; then
28634 echo $ECHO_N "(cached) $ECHO_C" >&6
28635else
28636 # One or both of the vars are not set, and there is no cached value.
28637ac_x_includes=no ac_x_libraries=no
28638rm -fr conftest.dir
28639if mkdir conftest.dir; then
28640 cd conftest.dir
28641 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
28642 cat >Imakefile <<'_ACEOF'
28643acfindx:
28644 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
28645_ACEOF
28646 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
28647 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
28648 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
28649 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
28650 for ac_extension in a so sl; do
28651 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
28652 test -f $ac_im_libdir/libX11.$ac_extension; then
28653 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
28654 fi
28655 done
28656 # Screen out bogus values from the imake configuration. They are
28657 # bogus both because they are the default anyway, and because
28658 # using them would break gcc on systems where it needs fixed includes.
28659 case $ac_im_incroot in
28660 /usr/include) ;;
28661 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
28662 esac
28663 case $ac_im_usrlibdir in
28664 /usr/lib | /lib) ;;
28665 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
28666 esac
28667 fi
28668 cd ..
28669 rm -fr conftest.dir
28670fi
28671
28672# Standard set of common directories for X headers.
28673# Check X11 before X11Rn because it is often a symlink to the current release.
28674ac_x_header_dirs='
28675/usr/X11/include
28676/usr/X11R6/include
28677/usr/X11R5/include
28678/usr/X11R4/include
28679
28680/usr/include/X11
28681/usr/include/X11R6
28682/usr/include/X11R5
28683/usr/include/X11R4
28684
28685/usr/local/X11/include
28686/usr/local/X11R6/include
28687/usr/local/X11R5/include
28688/usr/local/X11R4/include
28689
28690/usr/local/include/X11
28691/usr/local/include/X11R6
28692/usr/local/include/X11R5
28693/usr/local/include/X11R4
28694
28695/usr/X386/include
28696/usr/x386/include
28697/usr/XFree86/include/X11
28698
28699/usr/include
28700/usr/local/include
28701/usr/unsupported/include
28702/usr/athena/include
28703/usr/local/x11r5/include
28704/usr/lpp/Xamples/include
28705
28706/usr/openwin/include
28707/usr/openwin/share/include'
28708
28709if test "$ac_x_includes" = no; then
c9a66001 28710 # Guess where to find include files, by looking for a specified header file.
a848cd7e
SC
28711 # First, try using that file with no special directory specified.
28712 cat >conftest.$ac_ext <<_ACEOF
28713/* confdefs.h. */
28714_ACEOF
28715cat confdefs.h >>conftest.$ac_ext
28716cat >>conftest.$ac_ext <<_ACEOF
28717/* end confdefs.h. */
5acfd58d 28718#include <X11/Intrinsic.h>
a848cd7e
SC
28719_ACEOF
28720if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28721 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28722 ac_status=$?
28723 grep -v '^ *+' conftest.er1 >conftest.err
28724 rm -f conftest.er1
28725 cat conftest.err >&5
28726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28727 (exit $ac_status); } >/dev/null; then
28728 if test -s conftest.err; then
5d7b7554
VZ
28729 ac_cpp_err=$ac_cxx_preproc_warn_flag
28730 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
28731 else
28732 ac_cpp_err=
28733 fi
28734else
28735 ac_cpp_err=yes
28736fi
28737if test -z "$ac_cpp_err"; then
28738 # We can compile using X headers with no special include directory.
28739ac_x_includes=
28740else
28741 echo "$as_me: failed program was:" >&5
28742sed 's/^/| /' conftest.$ac_ext >&5
28743
28744 for ac_dir in $ac_x_header_dirs; do
5acfd58d 28745 if test -r "$ac_dir/X11/Intrinsic.h"; then
a848cd7e
SC
28746 ac_x_includes=$ac_dir
28747 break
28748 fi
28749done
28750fi
28751rm -f conftest.err conftest.$ac_ext
28752fi # $ac_x_includes = no
28753
28754if test "$ac_x_libraries" = no; then
28755 # Check for the libraries.
28756 # See if we find them without any special options.
28757 # Don't add to $LIBS permanently.
28758 ac_save_LIBS=$LIBS
5acfd58d 28759 LIBS="-lXt $LIBS"
a848cd7e
SC
28760 cat >conftest.$ac_ext <<_ACEOF
28761/* confdefs.h. */
28762_ACEOF
28763cat confdefs.h >>conftest.$ac_ext
28764cat >>conftest.$ac_ext <<_ACEOF
28765/* end confdefs.h. */
5acfd58d 28766#include <X11/Intrinsic.h>
a848cd7e
SC
28767int
28768main ()
28769{
5acfd58d 28770XtMalloc (0)
a848cd7e
SC
28771 ;
28772 return 0;
28773}
28774_ACEOF
28775rm -f conftest.$ac_objext conftest$ac_exeext
28776if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28777 (eval $ac_link) 2>conftest.er1
a848cd7e 28778 ac_status=$?
ac1cb8d3
VS
28779 grep -v '^ *+' conftest.er1 >conftest.err
28780 rm -f conftest.er1
28781 cat conftest.err >&5
a848cd7e
SC
28782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28783 (exit $ac_status); } &&
c9a66001 28784 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28786 (eval $ac_try) 2>&5
28787 ac_status=$?
28788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28789 (exit $ac_status); }; } &&
28790 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28792 (eval $ac_try) 2>&5
28793 ac_status=$?
28794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28795 (exit $ac_status); }; }; then
28796 LIBS=$ac_save_LIBS
28797# We can link X programs with no special library path.
28798ac_x_libraries=
28799else
28800 echo "$as_me: failed program was:" >&5
28801sed 's/^/| /' conftest.$ac_ext >&5
28802
28803LIBS=$ac_save_LIBS
28804for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
28805do
28806 # Don't even attempt the hair of trying to link an X program!
28807 for ac_extension in a so sl; do
5acfd58d 28808 if test -r $ac_dir/libXt.$ac_extension; then
a848cd7e
SC
28809 ac_x_libraries=$ac_dir
28810 break 2
28811 fi
28812 done
28813done
28814fi
ac1cb8d3
VS
28815rm -f conftest.err conftest.$ac_objext \
28816 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28817fi # $ac_x_libraries = no
28818
28819if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
28820 # Didn't find X anywhere. Cache the known absence of X.
28821 ac_cv_have_x="have_x=no"
28822else
28823 # Record where we found X for the cache.
28824 ac_cv_have_x="have_x=yes \
ac1cb8d3 28825 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
28826fi
28827fi
28828
28829 fi
28830 eval "$ac_cv_have_x"
28831fi # $with_x != no
28832
28833if test "$have_x" != yes; then
28834 echo "$as_me:$LINENO: result: $have_x" >&5
28835echo "${ECHO_T}$have_x" >&6
28836 no_x=yes
28837else
28838 # If each of the values was on the command line, it overrides each guess.
28839 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
28840 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
28841 # Update the cache value to reflect the command line values.
28842 ac_cv_have_x="have_x=yes \
28843 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
c9a66001
VZ
28844 # It might be that x_includes is empty (headers are found in the
28845 # standard search path. Then output the corresponding message
28846 ac_out_x_includes=$x_includes
28847 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
28848 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
28849echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
a848cd7e
SC
28850fi
28851
c9a66001 28852fi
a848cd7e
SC
28853if test "$no_x" = yes; then
28854 # Not all programs may use this symbol, but it does not hurt to define it.
28855
28856cat >>confdefs.h <<\_ACEOF
28857#define X_DISPLAY_MISSING 1
28858_ACEOF
28859
28860 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
28861else
28862 if test -n "$x_includes"; then
28863 X_CFLAGS="$X_CFLAGS -I$x_includes"
28864 fi
28865
28866 # It would also be nice to do this for all -L options, not just this one.
28867 if test -n "$x_libraries"; then
28868 X_LIBS="$X_LIBS -L$x_libraries"
28869 # For Solaris; some versions of Sun CC require a space after -R and
28870 # others require no space. Words are not sufficient . . . .
28871 case `(uname -sr) 2>/dev/null` in
28872 "SunOS 5"*)
28873 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
28874echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
28875 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
28876 cat >conftest.$ac_ext <<_ACEOF
28877/* confdefs.h. */
28878_ACEOF
28879cat confdefs.h >>conftest.$ac_ext
28880cat >>conftest.$ac_ext <<_ACEOF
28881/* end confdefs.h. */
28882
28883int
28884main ()
28885{
28886
28887 ;
28888 return 0;
28889}
28890_ACEOF
28891rm -f conftest.$ac_objext conftest$ac_exeext
28892if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28893 (eval $ac_link) 2>conftest.er1
a848cd7e 28894 ac_status=$?
ac1cb8d3
VS
28895 grep -v '^ *+' conftest.er1 >conftest.err
28896 rm -f conftest.er1
28897 cat conftest.err >&5
a848cd7e
SC
28898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28899 (exit $ac_status); } &&
c9a66001 28900 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28902 (eval $ac_try) 2>&5
28903 ac_status=$?
28904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28905 (exit $ac_status); }; } &&
28906 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28908 (eval $ac_try) 2>&5
28909 ac_status=$?
28910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28911 (exit $ac_status); }; }; then
28912 ac_R_nospace=yes
28913else
28914 echo "$as_me: failed program was:" >&5
28915sed 's/^/| /' conftest.$ac_ext >&5
28916
28917ac_R_nospace=no
28918fi
ac1cb8d3
VS
28919rm -f conftest.err conftest.$ac_objext \
28920 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28921 if test $ac_R_nospace = yes; then
28922 echo "$as_me:$LINENO: result: no" >&5
28923echo "${ECHO_T}no" >&6
28924 X_LIBS="$X_LIBS -R$x_libraries"
28925 else
28926 LIBS="$ac_xsave_LIBS -R $x_libraries"
28927 cat >conftest.$ac_ext <<_ACEOF
28928/* confdefs.h. */
28929_ACEOF
28930cat confdefs.h >>conftest.$ac_ext
28931cat >>conftest.$ac_ext <<_ACEOF
28932/* end confdefs.h. */
28933
28934int
28935main ()
28936{
28937
28938 ;
28939 return 0;
28940}
28941_ACEOF
28942rm -f conftest.$ac_objext conftest$ac_exeext
28943if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28944 (eval $ac_link) 2>conftest.er1
a848cd7e 28945 ac_status=$?
ac1cb8d3
VS
28946 grep -v '^ *+' conftest.er1 >conftest.err
28947 rm -f conftest.er1
28948 cat conftest.err >&5
a848cd7e
SC
28949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28950 (exit $ac_status); } &&
c9a66001 28951 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28953 (eval $ac_try) 2>&5
28954 ac_status=$?
28955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28956 (exit $ac_status); }; } &&
28957 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28959 (eval $ac_try) 2>&5
28960 ac_status=$?
28961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28962 (exit $ac_status); }; }; then
28963 ac_R_space=yes
28964else
28965 echo "$as_me: failed program was:" >&5
28966sed 's/^/| /' conftest.$ac_ext >&5
28967
28968ac_R_space=no
28969fi
ac1cb8d3
VS
28970rm -f conftest.err conftest.$ac_objext \
28971 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28972 if test $ac_R_space = yes; then
28973 echo "$as_me:$LINENO: result: yes" >&5
28974echo "${ECHO_T}yes" >&6
28975 X_LIBS="$X_LIBS -R $x_libraries"
28976 else
28977 echo "$as_me:$LINENO: result: neither works" >&5
28978echo "${ECHO_T}neither works" >&6
28979 fi
28980 fi
28981 LIBS=$ac_xsave_LIBS
28982 esac
28983 fi
28984
28985 # Check for system-dependent libraries X programs must link with.
28986 # Do this before checking for the system-independent R6 libraries
28987 # (-lICE), since we may need -lsocket or whatever for X linking.
28988
28989 if test "$ISC" = yes; then
28990 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
28991 else
28992 # Martyn Johnson says this is needed for Ultrix, if the X
28993 # libraries were built with DECnet support. And Karl Berry says
28994 # the Alpha needs dnet_stub (dnet does not exist).
28995 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
28996 cat >conftest.$ac_ext <<_ACEOF
28997/* confdefs.h. */
28998_ACEOF
28999cat confdefs.h >>conftest.$ac_ext
29000cat >>conftest.$ac_ext <<_ACEOF
29001/* end confdefs.h. */
29002
29003/* Override any gcc2 internal prototype to avoid an error. */
29004#ifdef __cplusplus
29005extern "C"
29006#endif
29007/* We use char because int might match the return type of a gcc2
29008 builtin and then its argument prototype would still apply. */
29009char XOpenDisplay ();
29010int
29011main ()
29012{
29013XOpenDisplay ();
29014 ;
29015 return 0;
29016}
29017_ACEOF
29018rm -f conftest.$ac_objext conftest$ac_exeext
29019if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29020 (eval $ac_link) 2>conftest.er1
a848cd7e 29021 ac_status=$?
ac1cb8d3
VS
29022 grep -v '^ *+' conftest.er1 >conftest.err
29023 rm -f conftest.er1
29024 cat conftest.err >&5
a848cd7e
SC
29025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29026 (exit $ac_status); } &&
c9a66001 29027 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29029 (eval $ac_try) 2>&5
29030 ac_status=$?
29031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29032 (exit $ac_status); }; } &&
29033 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29035 (eval $ac_try) 2>&5
29036 ac_status=$?
29037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29038 (exit $ac_status); }; }; then
29039 :
29040else
29041 echo "$as_me: failed program was:" >&5
29042sed 's/^/| /' conftest.$ac_ext >&5
29043
29044echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29045echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
29046if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29047 echo $ECHO_N "(cached) $ECHO_C" >&6
29048else
29049 ac_check_lib_save_LIBS=$LIBS
29050LIBS="-ldnet $LIBS"
29051cat >conftest.$ac_ext <<_ACEOF
29052/* confdefs.h. */
29053_ACEOF
29054cat confdefs.h >>conftest.$ac_ext
29055cat >>conftest.$ac_ext <<_ACEOF
29056/* end confdefs.h. */
29057
29058/* Override any gcc2 internal prototype to avoid an error. */
29059#ifdef __cplusplus
29060extern "C"
29061#endif
29062/* We use char because int might match the return type of a gcc2
29063 builtin and then its argument prototype would still apply. */
29064char dnet_ntoa ();
29065int
29066main ()
29067{
29068dnet_ntoa ();
29069 ;
29070 return 0;
29071}
29072_ACEOF
29073rm -f conftest.$ac_objext conftest$ac_exeext
29074if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29075 (eval $ac_link) 2>conftest.er1
a848cd7e 29076 ac_status=$?
ac1cb8d3
VS
29077 grep -v '^ *+' conftest.er1 >conftest.err
29078 rm -f conftest.er1
29079 cat conftest.err >&5
a848cd7e
SC
29080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29081 (exit $ac_status); } &&
c9a66001 29082 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29084 (eval $ac_try) 2>&5
29085 ac_status=$?
29086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29087 (exit $ac_status); }; } &&
29088 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29090 (eval $ac_try) 2>&5
29091 ac_status=$?
29092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29093 (exit $ac_status); }; }; then
29094 ac_cv_lib_dnet_dnet_ntoa=yes
29095else
29096 echo "$as_me: failed program was:" >&5
29097sed 's/^/| /' conftest.$ac_ext >&5
29098
29099ac_cv_lib_dnet_dnet_ntoa=no
29100fi
ac1cb8d3
VS
29101rm -f conftest.err conftest.$ac_objext \
29102 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29103LIBS=$ac_check_lib_save_LIBS
29104fi
29105echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
29106echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
29107if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
29108 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
29109fi
29110
29111 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
29112 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
29113echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
29114if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
29115 echo $ECHO_N "(cached) $ECHO_C" >&6
29116else
29117 ac_check_lib_save_LIBS=$LIBS
29118LIBS="-ldnet_stub $LIBS"
29119cat >conftest.$ac_ext <<_ACEOF
29120/* confdefs.h. */
29121_ACEOF
29122cat confdefs.h >>conftest.$ac_ext
29123cat >>conftest.$ac_ext <<_ACEOF
29124/* end confdefs.h. */
29125
29126/* Override any gcc2 internal prototype to avoid an error. */
29127#ifdef __cplusplus
29128extern "C"
29129#endif
29130/* We use char because int might match the return type of a gcc2
29131 builtin and then its argument prototype would still apply. */
29132char dnet_ntoa ();
29133int
29134main ()
29135{
29136dnet_ntoa ();
29137 ;
29138 return 0;
29139}
29140_ACEOF
29141rm -f conftest.$ac_objext conftest$ac_exeext
29142if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29143 (eval $ac_link) 2>conftest.er1
a848cd7e 29144 ac_status=$?
ac1cb8d3
VS
29145 grep -v '^ *+' conftest.er1 >conftest.err
29146 rm -f conftest.er1
29147 cat conftest.err >&5
a848cd7e
SC
29148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29149 (exit $ac_status); } &&
c9a66001 29150 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29152 (eval $ac_try) 2>&5
29153 ac_status=$?
29154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29155 (exit $ac_status); }; } &&
29156 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29158 (eval $ac_try) 2>&5
29159 ac_status=$?
29160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29161 (exit $ac_status); }; }; then
29162 ac_cv_lib_dnet_stub_dnet_ntoa=yes
29163else
29164 echo "$as_me: failed program was:" >&5
29165sed 's/^/| /' conftest.$ac_ext >&5
29166
29167ac_cv_lib_dnet_stub_dnet_ntoa=no
29168fi
ac1cb8d3
VS
29169rm -f conftest.err conftest.$ac_objext \
29170 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29171LIBS=$ac_check_lib_save_LIBS
29172fi
29173echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
29174echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
29175if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
29176 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
29177fi
29178
29179 fi
29180fi
ac1cb8d3
VS
29181rm -f conftest.err conftest.$ac_objext \
29182 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29183 LIBS="$ac_xsave_LIBS"
29184
29185 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
29186 # to get the SysV transport functions.
29187 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
29188 # needs -lnsl.
29189 # The nsl library prevents programs from opening the X display
29190 # on Irix 5.2, according to T.E. Dickey.
29191 # The functions gethostbyname, getservbyname, and inet_addr are
29192 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
29193 echo "$as_me:$LINENO: checking for gethostbyname" >&5
29194echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
29195if test "${ac_cv_func_gethostbyname+set}" = set; then
29196 echo $ECHO_N "(cached) $ECHO_C" >&6
29197else
29198 cat >conftest.$ac_ext <<_ACEOF
29199/* confdefs.h. */
29200_ACEOF
29201cat confdefs.h >>conftest.$ac_ext
29202cat >>conftest.$ac_ext <<_ACEOF
29203/* end confdefs.h. */
ac1cb8d3
VS
29204/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
29205 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29206#define gethostbyname innocuous_gethostbyname
29207
a848cd7e
SC
29208/* System header to define __stub macros and hopefully few prototypes,
29209 which can conflict with char gethostbyname (); below.
29210 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29211 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29212
a848cd7e
SC
29213#ifdef __STDC__
29214# include <limits.h>
29215#else
29216# include <assert.h>
29217#endif
ac1cb8d3
VS
29218
29219#undef gethostbyname
29220
a848cd7e
SC
29221/* Override any gcc2 internal prototype to avoid an error. */
29222#ifdef __cplusplus
29223extern "C"
29224{
29225#endif
29226/* We use char because int might match the return type of a gcc2
29227 builtin and then its argument prototype would still apply. */
29228char gethostbyname ();
29229/* The GNU C library defines this for functions which it implements
29230 to always fail with ENOSYS. Some functions are actually named
29231 something starting with __ and the normal name is an alias. */
29232#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
29233choke me
29234#else
29235char (*f) () = gethostbyname;
29236#endif
29237#ifdef __cplusplus
29238}
29239#endif
29240
29241int
29242main ()
29243{
29244return f != gethostbyname;
29245 ;
29246 return 0;
29247}
29248_ACEOF
29249rm -f conftest.$ac_objext conftest$ac_exeext
29250if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29251 (eval $ac_link) 2>conftest.er1
a848cd7e 29252 ac_status=$?
ac1cb8d3
VS
29253 grep -v '^ *+' conftest.er1 >conftest.err
29254 rm -f conftest.er1
29255 cat conftest.err >&5
a848cd7e
SC
29256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29257 (exit $ac_status); } &&
c9a66001 29258 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29260 (eval $ac_try) 2>&5
29261 ac_status=$?
29262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29263 (exit $ac_status); }; } &&
29264 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29266 (eval $ac_try) 2>&5
29267 ac_status=$?
29268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29269 (exit $ac_status); }; }; then
29270 ac_cv_func_gethostbyname=yes
29271else
29272 echo "$as_me: failed program was:" >&5
29273sed 's/^/| /' conftest.$ac_ext >&5
29274
29275ac_cv_func_gethostbyname=no
29276fi
ac1cb8d3
VS
29277rm -f conftest.err conftest.$ac_objext \
29278 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29279fi
29280echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
29281echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
29282
29283 if test $ac_cv_func_gethostbyname = no; then
29284 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
29285echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
29286if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
29287 echo $ECHO_N "(cached) $ECHO_C" >&6
29288else
29289 ac_check_lib_save_LIBS=$LIBS
29290LIBS="-lnsl $LIBS"
29291cat >conftest.$ac_ext <<_ACEOF
29292/* confdefs.h. */
29293_ACEOF
29294cat confdefs.h >>conftest.$ac_ext
29295cat >>conftest.$ac_ext <<_ACEOF
29296/* end confdefs.h. */
29297
29298/* Override any gcc2 internal prototype to avoid an error. */
29299#ifdef __cplusplus
29300extern "C"
29301#endif
29302/* We use char because int might match the return type of a gcc2
29303 builtin and then its argument prototype would still apply. */
29304char gethostbyname ();
29305int
29306main ()
29307{
29308gethostbyname ();
29309 ;
29310 return 0;
29311}
29312_ACEOF
29313rm -f conftest.$ac_objext conftest$ac_exeext
29314if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
29315 (eval $ac_link) 2>conftest.er1
29316 ac_status=$?
29317 grep -v '^ *+' conftest.er1 >conftest.err
29318 rm -f conftest.er1
29319 cat conftest.err >&5
29320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29321 (exit $ac_status); } &&
c9a66001 29322 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29324 (eval $ac_try) 2>&5
29325 ac_status=$?
29326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29327 (exit $ac_status); }; } &&
29328 { ac_try='test -s conftest$ac_exeext'
29329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29330 (eval $ac_try) 2>&5
29331 ac_status=$?
29332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29333 (exit $ac_status); }; }; then
29334 ac_cv_lib_nsl_gethostbyname=yes
29335else
29336 echo "$as_me: failed program was:" >&5
29337sed 's/^/| /' conftest.$ac_ext >&5
29338
29339ac_cv_lib_nsl_gethostbyname=no
29340fi
29341rm -f conftest.err conftest.$ac_objext \
29342 conftest$ac_exeext conftest.$ac_ext
29343LIBS=$ac_check_lib_save_LIBS
29344fi
29345echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
29346echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
29347if test $ac_cv_lib_nsl_gethostbyname = yes; then
29348 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
29349fi
29350
29351 if test $ac_cv_lib_nsl_gethostbyname = no; then
29352 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
29353echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
29354if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
29355 echo $ECHO_N "(cached) $ECHO_C" >&6
29356else
29357 ac_check_lib_save_LIBS=$LIBS
29358LIBS="-lbsd $LIBS"
29359cat >conftest.$ac_ext <<_ACEOF
29360/* confdefs.h. */
29361_ACEOF
29362cat confdefs.h >>conftest.$ac_ext
29363cat >>conftest.$ac_ext <<_ACEOF
29364/* end confdefs.h. */
29365
29366/* Override any gcc2 internal prototype to avoid an error. */
29367#ifdef __cplusplus
29368extern "C"
29369#endif
29370/* We use char because int might match the return type of a gcc2
29371 builtin and then its argument prototype would still apply. */
29372char gethostbyname ();
29373int
29374main ()
29375{
29376gethostbyname ();
29377 ;
29378 return 0;
29379}
29380_ACEOF
29381rm -f conftest.$ac_objext conftest$ac_exeext
29382if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29383 (eval $ac_link) 2>conftest.er1
a848cd7e 29384 ac_status=$?
ac1cb8d3
VS
29385 grep -v '^ *+' conftest.er1 >conftest.err
29386 rm -f conftest.er1
29387 cat conftest.err >&5
a848cd7e
SC
29388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29389 (exit $ac_status); } &&
c9a66001 29390 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
29391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29392 (eval $ac_try) 2>&5
29393 ac_status=$?
29394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
29395 (exit $ac_status); }; } &&
29396 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29398 (eval $ac_try) 2>&5
29399 ac_status=$?
29400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29401 (exit $ac_status); }; }; then
29402 ac_cv_lib_bsd_gethostbyname=yes
29403else
29404 echo "$as_me: failed program was:" >&5
29405sed 's/^/| /' conftest.$ac_ext >&5
29406
29407ac_cv_lib_bsd_gethostbyname=no
29408fi
ac1cb8d3
VS
29409rm -f conftest.err conftest.$ac_objext \
29410 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29411LIBS=$ac_check_lib_save_LIBS
29412fi
29413echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
29414echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
29415if test $ac_cv_lib_bsd_gethostbyname = yes; then
29416 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
29417fi
29418
29419 fi
29420 fi
29421
29422 # lieder@skyler.mavd.honeywell.com says without -lsocket,
29423 # socket/setsockopt and other routines are undefined under SCO ODT
29424 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
29425 # on later versions), says Simon Leinen: it contains gethostby*
29426 # variants that don't use the name server (or something). -lsocket
29427 # must be given before -lnsl if both are needed. We assume that
29428 # if connect needs -lnsl, so does gethostbyname.
29429 echo "$as_me:$LINENO: checking for connect" >&5
29430echo $ECHO_N "checking for connect... $ECHO_C" >&6
29431if test "${ac_cv_func_connect+set}" = set; then
29432 echo $ECHO_N "(cached) $ECHO_C" >&6
29433else
29434 cat >conftest.$ac_ext <<_ACEOF
29435/* confdefs.h. */
29436_ACEOF
29437cat confdefs.h >>conftest.$ac_ext
29438cat >>conftest.$ac_ext <<_ACEOF
29439/* end confdefs.h. */
ac1cb8d3
VS
29440/* Define connect to an innocuous variant, in case <limits.h> declares connect.
29441 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29442#define connect innocuous_connect
29443
a848cd7e
SC
29444/* System header to define __stub macros and hopefully few prototypes,
29445 which can conflict with char connect (); below.
29446 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29447 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29448
a848cd7e
SC
29449#ifdef __STDC__
29450# include <limits.h>
29451#else
29452# include <assert.h>
29453#endif
ac1cb8d3
VS
29454
29455#undef connect
29456
a848cd7e
SC
29457/* Override any gcc2 internal prototype to avoid an error. */
29458#ifdef __cplusplus
29459extern "C"
29460{
29461#endif
29462/* We use char because int might match the return type of a gcc2
29463 builtin and then its argument prototype would still apply. */
29464char connect ();
29465/* The GNU C library defines this for functions which it implements
29466 to always fail with ENOSYS. Some functions are actually named
29467 something starting with __ and the normal name is an alias. */
29468#if defined (__stub_connect) || defined (__stub___connect)
29469choke me
29470#else
29471char (*f) () = connect;
29472#endif
29473#ifdef __cplusplus
29474}
29475#endif
29476
29477int
29478main ()
29479{
29480return f != connect;
29481 ;
29482 return 0;
29483}
29484_ACEOF
29485rm -f conftest.$ac_objext conftest$ac_exeext
29486if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29487 (eval $ac_link) 2>conftest.er1
a848cd7e 29488 ac_status=$?
ac1cb8d3
VS
29489 grep -v '^ *+' conftest.er1 >conftest.err
29490 rm -f conftest.er1
29491 cat conftest.err >&5
a848cd7e
SC
29492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29493 (exit $ac_status); } &&
c9a66001 29494 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29496 (eval $ac_try) 2>&5
29497 ac_status=$?
29498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29499 (exit $ac_status); }; } &&
29500 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29502 (eval $ac_try) 2>&5
29503 ac_status=$?
29504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29505 (exit $ac_status); }; }; then
29506 ac_cv_func_connect=yes
29507else
29508 echo "$as_me: failed program was:" >&5
29509sed 's/^/| /' conftest.$ac_ext >&5
29510
29511ac_cv_func_connect=no
29512fi
ac1cb8d3
VS
29513rm -f conftest.err conftest.$ac_objext \
29514 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29515fi
29516echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
29517echo "${ECHO_T}$ac_cv_func_connect" >&6
29518
29519 if test $ac_cv_func_connect = no; then
29520 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
29521echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
29522if test "${ac_cv_lib_socket_connect+set}" = set; then
29523 echo $ECHO_N "(cached) $ECHO_C" >&6
29524else
29525 ac_check_lib_save_LIBS=$LIBS
29526LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
29527cat >conftest.$ac_ext <<_ACEOF
29528/* confdefs.h. */
29529_ACEOF
29530cat confdefs.h >>conftest.$ac_ext
29531cat >>conftest.$ac_ext <<_ACEOF
29532/* end confdefs.h. */
29533
29534/* Override any gcc2 internal prototype to avoid an error. */
29535#ifdef __cplusplus
29536extern "C"
29537#endif
29538/* We use char because int might match the return type of a gcc2
29539 builtin and then its argument prototype would still apply. */
29540char connect ();
29541int
29542main ()
29543{
29544connect ();
29545 ;
29546 return 0;
29547}
29548_ACEOF
29549rm -f conftest.$ac_objext conftest$ac_exeext
29550if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29551 (eval $ac_link) 2>conftest.er1
a848cd7e 29552 ac_status=$?
ac1cb8d3
VS
29553 grep -v '^ *+' conftest.er1 >conftest.err
29554 rm -f conftest.er1
29555 cat conftest.err >&5
a848cd7e
SC
29556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29557 (exit $ac_status); } &&
c9a66001 29558 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29560 (eval $ac_try) 2>&5
29561 ac_status=$?
29562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29563 (exit $ac_status); }; } &&
29564 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29566 (eval $ac_try) 2>&5
29567 ac_status=$?
29568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29569 (exit $ac_status); }; }; then
29570 ac_cv_lib_socket_connect=yes
29571else
29572 echo "$as_me: failed program was:" >&5
29573sed 's/^/| /' conftest.$ac_ext >&5
29574
29575ac_cv_lib_socket_connect=no
29576fi
ac1cb8d3
VS
29577rm -f conftest.err conftest.$ac_objext \
29578 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29579LIBS=$ac_check_lib_save_LIBS
29580fi
29581echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
29582echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
29583if test $ac_cv_lib_socket_connect = yes; then
29584 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
29585fi
29586
29587 fi
29588
29589 # Guillermo Gomez says -lposix is necessary on A/UX.
29590 echo "$as_me:$LINENO: checking for remove" >&5
29591echo $ECHO_N "checking for remove... $ECHO_C" >&6
29592if test "${ac_cv_func_remove+set}" = set; then
29593 echo $ECHO_N "(cached) $ECHO_C" >&6
29594else
29595 cat >conftest.$ac_ext <<_ACEOF
29596/* confdefs.h. */
29597_ACEOF
29598cat confdefs.h >>conftest.$ac_ext
29599cat >>conftest.$ac_ext <<_ACEOF
29600/* end confdefs.h. */
ac1cb8d3
VS
29601/* Define remove to an innocuous variant, in case <limits.h> declares remove.
29602 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29603#define remove innocuous_remove
29604
a848cd7e
SC
29605/* System header to define __stub macros and hopefully few prototypes,
29606 which can conflict with char remove (); below.
29607 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29608 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29609
a848cd7e
SC
29610#ifdef __STDC__
29611# include <limits.h>
29612#else
29613# include <assert.h>
29614#endif
ac1cb8d3
VS
29615
29616#undef remove
29617
a848cd7e
SC
29618/* Override any gcc2 internal prototype to avoid an error. */
29619#ifdef __cplusplus
29620extern "C"
29621{
29622#endif
29623/* We use char because int might match the return type of a gcc2
29624 builtin and then its argument prototype would still apply. */
29625char remove ();
29626/* The GNU C library defines this for functions which it implements
29627 to always fail with ENOSYS. Some functions are actually named
29628 something starting with __ and the normal name is an alias. */
29629#if defined (__stub_remove) || defined (__stub___remove)
29630choke me
29631#else
29632char (*f) () = remove;
29633#endif
29634#ifdef __cplusplus
29635}
29636#endif
29637
29638int
29639main ()
29640{
29641return f != remove;
29642 ;
29643 return 0;
29644}
29645_ACEOF
29646rm -f conftest.$ac_objext conftest$ac_exeext
29647if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29648 (eval $ac_link) 2>conftest.er1
a848cd7e 29649 ac_status=$?
ac1cb8d3
VS
29650 grep -v '^ *+' conftest.er1 >conftest.err
29651 rm -f conftest.er1
29652 cat conftest.err >&5
a848cd7e
SC
29653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29654 (exit $ac_status); } &&
c9a66001 29655 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29657 (eval $ac_try) 2>&5
29658 ac_status=$?
29659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29660 (exit $ac_status); }; } &&
29661 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29663 (eval $ac_try) 2>&5
29664 ac_status=$?
29665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29666 (exit $ac_status); }; }; then
29667 ac_cv_func_remove=yes
29668else
29669 echo "$as_me: failed program was:" >&5
29670sed 's/^/| /' conftest.$ac_ext >&5
29671
29672ac_cv_func_remove=no
29673fi
ac1cb8d3
VS
29674rm -f conftest.err conftest.$ac_objext \
29675 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29676fi
29677echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
29678echo "${ECHO_T}$ac_cv_func_remove" >&6
29679
29680 if test $ac_cv_func_remove = no; then
29681 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
29682echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
29683if test "${ac_cv_lib_posix_remove+set}" = set; then
29684 echo $ECHO_N "(cached) $ECHO_C" >&6
29685else
29686 ac_check_lib_save_LIBS=$LIBS
29687LIBS="-lposix $LIBS"
29688cat >conftest.$ac_ext <<_ACEOF
29689/* confdefs.h. */
29690_ACEOF
29691cat confdefs.h >>conftest.$ac_ext
29692cat >>conftest.$ac_ext <<_ACEOF
29693/* end confdefs.h. */
29694
29695/* Override any gcc2 internal prototype to avoid an error. */
29696#ifdef __cplusplus
29697extern "C"
29698#endif
29699/* We use char because int might match the return type of a gcc2
29700 builtin and then its argument prototype would still apply. */
29701char remove ();
29702int
29703main ()
29704{
29705remove ();
29706 ;
29707 return 0;
29708}
29709_ACEOF
29710rm -f conftest.$ac_objext conftest$ac_exeext
29711if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29712 (eval $ac_link) 2>conftest.er1
a848cd7e 29713 ac_status=$?
ac1cb8d3
VS
29714 grep -v '^ *+' conftest.er1 >conftest.err
29715 rm -f conftest.er1
29716 cat conftest.err >&5
a848cd7e
SC
29717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29718 (exit $ac_status); } &&
c9a66001 29719 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29721 (eval $ac_try) 2>&5
29722 ac_status=$?
29723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29724 (exit $ac_status); }; } &&
29725 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29727 (eval $ac_try) 2>&5
29728 ac_status=$?
29729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29730 (exit $ac_status); }; }; then
29731 ac_cv_lib_posix_remove=yes
29732else
29733 echo "$as_me: failed program was:" >&5
29734sed 's/^/| /' conftest.$ac_ext >&5
29735
29736ac_cv_lib_posix_remove=no
29737fi
ac1cb8d3
VS
29738rm -f conftest.err conftest.$ac_objext \
29739 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29740LIBS=$ac_check_lib_save_LIBS
29741fi
29742echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
29743echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
29744if test $ac_cv_lib_posix_remove = yes; then
29745 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
29746fi
29747
29748 fi
29749
29750 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
29751 echo "$as_me:$LINENO: checking for shmat" >&5
29752echo $ECHO_N "checking for shmat... $ECHO_C" >&6
29753if test "${ac_cv_func_shmat+set}" = set; then
29754 echo $ECHO_N "(cached) $ECHO_C" >&6
29755else
29756 cat >conftest.$ac_ext <<_ACEOF
29757/* confdefs.h. */
29758_ACEOF
29759cat confdefs.h >>conftest.$ac_ext
29760cat >>conftest.$ac_ext <<_ACEOF
29761/* end confdefs.h. */
ac1cb8d3
VS
29762/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
29763 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29764#define shmat innocuous_shmat
29765
a848cd7e
SC
29766/* System header to define __stub macros and hopefully few prototypes,
29767 which can conflict with char shmat (); below.
29768 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29769 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29770
a848cd7e
SC
29771#ifdef __STDC__
29772# include <limits.h>
29773#else
29774# include <assert.h>
29775#endif
ac1cb8d3
VS
29776
29777#undef shmat
29778
a848cd7e
SC
29779/* Override any gcc2 internal prototype to avoid an error. */
29780#ifdef __cplusplus
29781extern "C"
29782{
29783#endif
29784/* We use char because int might match the return type of a gcc2
29785 builtin and then its argument prototype would still apply. */
29786char shmat ();
29787/* The GNU C library defines this for functions which it implements
29788 to always fail with ENOSYS. Some functions are actually named
29789 something starting with __ and the normal name is an alias. */
29790#if defined (__stub_shmat) || defined (__stub___shmat)
29791choke me
29792#else
29793char (*f) () = shmat;
29794#endif
29795#ifdef __cplusplus
29796}
29797#endif
29798
29799int
29800main ()
29801{
29802return f != shmat;
29803 ;
29804 return 0;
29805}
29806_ACEOF
29807rm -f conftest.$ac_objext conftest$ac_exeext
29808if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29809 (eval $ac_link) 2>conftest.er1
a848cd7e 29810 ac_status=$?
ac1cb8d3
VS
29811 grep -v '^ *+' conftest.er1 >conftest.err
29812 rm -f conftest.er1
29813 cat conftest.err >&5
a848cd7e
SC
29814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29815 (exit $ac_status); } &&
c9a66001 29816 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29818 (eval $ac_try) 2>&5
29819 ac_status=$?
29820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29821 (exit $ac_status); }; } &&
29822 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29824 (eval $ac_try) 2>&5
29825 ac_status=$?
29826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29827 (exit $ac_status); }; }; then
29828 ac_cv_func_shmat=yes
29829else
29830 echo "$as_me: failed program was:" >&5
29831sed 's/^/| /' conftest.$ac_ext >&5
29832
29833ac_cv_func_shmat=no
29834fi
ac1cb8d3
VS
29835rm -f conftest.err conftest.$ac_objext \
29836 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29837fi
29838echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
29839echo "${ECHO_T}$ac_cv_func_shmat" >&6
29840
29841 if test $ac_cv_func_shmat = no; then
29842 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
29843echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
29844if test "${ac_cv_lib_ipc_shmat+set}" = set; then
29845 echo $ECHO_N "(cached) $ECHO_C" >&6
29846else
29847 ac_check_lib_save_LIBS=$LIBS
29848LIBS="-lipc $LIBS"
29849cat >conftest.$ac_ext <<_ACEOF
29850/* confdefs.h. */
29851_ACEOF
29852cat confdefs.h >>conftest.$ac_ext
29853cat >>conftest.$ac_ext <<_ACEOF
29854/* end confdefs.h. */
29855
29856/* Override any gcc2 internal prototype to avoid an error. */
29857#ifdef __cplusplus
29858extern "C"
29859#endif
29860/* We use char because int might match the return type of a gcc2
29861 builtin and then its argument prototype would still apply. */
29862char shmat ();
29863int
29864main ()
29865{
29866shmat ();
29867 ;
29868 return 0;
29869}
29870_ACEOF
29871rm -f conftest.$ac_objext conftest$ac_exeext
29872if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29873 (eval $ac_link) 2>conftest.er1
a848cd7e 29874 ac_status=$?
ac1cb8d3
VS
29875 grep -v '^ *+' conftest.er1 >conftest.err
29876 rm -f conftest.er1
29877 cat conftest.err >&5
a848cd7e
SC
29878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29879 (exit $ac_status); } &&
c9a66001 29880 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29882 (eval $ac_try) 2>&5
29883 ac_status=$?
29884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29885 (exit $ac_status); }; } &&
29886 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29888 (eval $ac_try) 2>&5
29889 ac_status=$?
29890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29891 (exit $ac_status); }; }; then
29892 ac_cv_lib_ipc_shmat=yes
29893else
29894 echo "$as_me: failed program was:" >&5
29895sed 's/^/| /' conftest.$ac_ext >&5
29896
29897ac_cv_lib_ipc_shmat=no
29898fi
ac1cb8d3
VS
29899rm -f conftest.err conftest.$ac_objext \
29900 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29901LIBS=$ac_check_lib_save_LIBS
29902fi
29903echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
29904echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
29905if test $ac_cv_lib_ipc_shmat = yes; then
29906 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
29907fi
29908
29909 fi
29910 fi
29911
29912 # Check for libraries that X11R6 Xt/Xaw programs need.
29913 ac_save_LDFLAGS=$LDFLAGS
29914 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
29915 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
29916 # check for ICE first), but we must link in the order -lSM -lICE or
29917 # we get undefined symbols. So assume we have SM if we have ICE.
29918 # These have to be linked with before -lX11, unlike the other
29919 # libraries we check for below, so use a different variable.
29920 # John Interrante, Karl Berry
29921 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
29922echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
29923if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
29924 echo $ECHO_N "(cached) $ECHO_C" >&6
29925else
29926 ac_check_lib_save_LIBS=$LIBS
29927LIBS="-lICE $X_EXTRA_LIBS $LIBS"
29928cat >conftest.$ac_ext <<_ACEOF
29929/* confdefs.h. */
29930_ACEOF
29931cat confdefs.h >>conftest.$ac_ext
29932cat >>conftest.$ac_ext <<_ACEOF
29933/* end confdefs.h. */
29934
29935/* Override any gcc2 internal prototype to avoid an error. */
29936#ifdef __cplusplus
29937extern "C"
29938#endif
29939/* We use char because int might match the return type of a gcc2
29940 builtin and then its argument prototype would still apply. */
29941char IceConnectionNumber ();
29942int
29943main ()
29944{
29945IceConnectionNumber ();
29946 ;
29947 return 0;
29948}
29949_ACEOF
29950rm -f conftest.$ac_objext conftest$ac_exeext
29951if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29952 (eval $ac_link) 2>conftest.er1
a848cd7e 29953 ac_status=$?
ac1cb8d3
VS
29954 grep -v '^ *+' conftest.er1 >conftest.err
29955 rm -f conftest.er1
29956 cat conftest.err >&5
a848cd7e
SC
29957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29958 (exit $ac_status); } &&
c9a66001 29959 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29961 (eval $ac_try) 2>&5
29962 ac_status=$?
29963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29964 (exit $ac_status); }; } &&
29965 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29967 (eval $ac_try) 2>&5
29968 ac_status=$?
29969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29970 (exit $ac_status); }; }; then
29971 ac_cv_lib_ICE_IceConnectionNumber=yes
29972else
29973 echo "$as_me: failed program was:" >&5
29974sed 's/^/| /' conftest.$ac_ext >&5
29975
29976ac_cv_lib_ICE_IceConnectionNumber=no
29977fi
ac1cb8d3
VS
29978rm -f conftest.err conftest.$ac_objext \
29979 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29980LIBS=$ac_check_lib_save_LIBS
29981fi
29982echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
29983echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
29984if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
29985 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
29986fi
29987
29988 LDFLAGS=$ac_save_LDFLAGS
29989
29990fi
29991
29992
29993 if test "$no_x" = "yes"; then
89d90d6d
VZ
29994 { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
29995echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
29996 { (exit 1); exit 1; }; }
a848cd7e
SC
29997 fi
29998
74b84332
VS
29999 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
30000 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
30001 AFMINSTALL=afminstall
30002 COMPILED_X_PROGRAM=0
30003
74b84332
VS
30004 fi
30005
30006 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
30007 if test "$wxUSE_NANOX" = "yes"; then
30008 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
30009echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
30010 if test "x$MICROWIN" = x ; then
30011 echo "$as_me:$LINENO: result: not found" >&5
30012echo "${ECHO_T}not found" >&6
30013 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
30014echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
30015 { (exit 1); exit 1; }; }
30016 else
30017 echo "$as_me:$LINENO: result: $MICROWIN" >&5
30018echo "${ECHO_T}$MICROWIN" >&6
30019 cat >>confdefs.h <<\_ACEOF
30020#define wxUSE_NANOX 1
30021_ACEOF
30022
30023 fi
30024 fi
30025
30026 if test "$wxUSE_UNICODE" = "yes"; then
30027
a848cd7e 30028
3ecd9f92
MW
30029if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
30030 if test -n "$ac_tool_prefix"; then
30031 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
30032set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
a848cd7e
SC
30033echo "$as_me:$LINENO: checking for $ac_word" >&5
30034echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30035if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
30036 echo $ECHO_N "(cached) $ECHO_C" >&6
30037else
30038 case $PKG_CONFIG in
30039 [\\/]* | ?:[\\/]*)
30040 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
30041 ;;
30042 *)
30043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30044for as_dir in $PATH
30045do
30046 IFS=$as_save_IFS
30047 test -z "$as_dir" && as_dir=.
30048 for ac_exec_ext in '' $ac_executable_extensions; do
30049 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30050 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30052 break 2
30053 fi
30054done
30055done
30056
a848cd7e
SC
30057 ;;
30058esac
30059fi
30060PKG_CONFIG=$ac_cv_path_PKG_CONFIG
30061
30062if test -n "$PKG_CONFIG"; then
30063 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
30064echo "${ECHO_T}$PKG_CONFIG" >&6
30065else
30066 echo "$as_me:$LINENO: result: no" >&5
30067echo "${ECHO_T}no" >&6
30068fi
30069
3ecd9f92
MW
30070fi
30071if test -z "$ac_cv_path_PKG_CONFIG"; then
30072 ac_pt_PKG_CONFIG=$PKG_CONFIG
30073 # Extract the first word of "pkg-config", so it can be a program name with args.
a848cd7e
SC
30074set dummy pkg-config; ac_word=$2
30075echo "$as_me:$LINENO: checking for $ac_word" >&5
30076echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3ecd9f92 30077if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
a848cd7e
SC
30078 echo $ECHO_N "(cached) $ECHO_C" >&6
30079else
3ecd9f92 30080 case $ac_pt_PKG_CONFIG in
a848cd7e 30081 [\\/]* | ?:[\\/]*)
3ecd9f92 30082 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
a848cd7e
SC
30083 ;;
30084 *)
30085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30086for as_dir in $PATH
30087do
30088 IFS=$as_save_IFS
30089 test -z "$as_dir" && as_dir=.
30090 for ac_exec_ext in '' $ac_executable_extensions; do
30091 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3ecd9f92 30092 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
a848cd7e
SC
30093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30094 break 2
30095 fi
30096done
30097done
30098
a848cd7e
SC
30099 ;;
30100esac
30101fi
3ecd9f92 30102ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
a848cd7e 30103
3ecd9f92
MW
30104if test -n "$ac_pt_PKG_CONFIG"; then
30105 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
30106echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
a848cd7e
SC
30107else
30108 echo "$as_me:$LINENO: result: no" >&5
30109echo "${ECHO_T}no" >&6
30110fi
30111
3ecd9f92
MW
30112 PKG_CONFIG=$ac_pt_PKG_CONFIG
30113else
30114 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
30115fi
a848cd7e 30116
3ecd9f92
MW
30117fi
30118if test -n "$PKG_CONFIG"; then
30119 _pkg_min_version=0.9.0
30120 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
30121echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
30122 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
30123 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 30124echo "${ECHO_T}yes" >&6
3ecd9f92
MW
30125 else
30126 echo "$as_me:$LINENO: result: no" >&5
30127echo "${ECHO_T}no" >&6
30128 PKG_CONFIG=""
30129 fi
30130
30131fi
30132
30133pkg_failed=no
30134echo "$as_me:$LINENO: checking for PANGOX" >&5
30135echo $ECHO_N "checking for PANGOX... $ECHO_C" >&6
a848cd7e 30136
3ecd9f92
MW
30137if test -n "$PKG_CONFIG"; then
30138 if test -n "$PANGOX_CFLAGS"; then
30139 pkg_cv_PANGOX_CFLAGS="$PANGOX_CFLAGS"
30140 else
30141 if test -n "$PKG_CONFIG" && \
30142 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
30143 ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
30144 ac_status=$?
30145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30146 (exit $ac_status); }; then
30147 pkg_cv_PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox" 2>/dev/null`
30148else
30149 pkg_failed=yes
30150fi
30151 fi
30152else
30153 pkg_failed=untried
30154fi
30155if test -n "$PKG_CONFIG"; then
30156 if test -n "$PANGOX_LIBS"; then
30157 pkg_cv_PANGOX_LIBS="$PANGOX_LIBS"
30158 else
30159 if test -n "$PKG_CONFIG" && \
30160 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
30161 ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
30162 ac_status=$?
30163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30164 (exit $ac_status); }; then
30165 pkg_cv_PANGOX_LIBS=`$PKG_CONFIG --libs "pangox" 2>/dev/null`
30166else
30167 pkg_failed=yes
30168fi
30169 fi
30170else
30171 pkg_failed=untried
30172fi
30173
30174
30175
30176if test $pkg_failed = yes; then
30177
30178if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30179 _pkg_short_errors_supported=yes
30180else
30181 _pkg_short_errors_supported=no
30182fi
30183 if test $_pkg_short_errors_supported = yes; then
30184 PANGOX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangox"`
30185 else
30186 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
a848cd7e 30187 fi
3ecd9f92
MW
30188 # Put the nasty error message in config.log where it belongs
30189 echo "$PANGOX_PKG_ERRORS" >&5
a848cd7e
SC
30190
30191
3ecd9f92
MW
30192 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
30193echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
30194 { (exit 1); exit 1; }; }
a848cd7e 30195
a848cd7e 30196
3ecd9f92 30197elif test $pkg_failed = untried; then
a848cd7e 30198
3ecd9f92
MW
30199 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
30200echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
30201 { (exit 1); exit 1; }; }
30202
30203
30204else
30205 PANGOX_CFLAGS=$pkg_cv_PANGOX_CFLAGS
30206 PANGOX_LIBS=$pkg_cv_PANGOX_LIBS
30207 echo "$as_me:$LINENO: result: yes" >&5
30208echo "${ECHO_T}yes" >&6
30209
30210 CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
30211 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
30212
30213fi
30214
30215pkg_failed=no
30216echo "$as_me:$LINENO: checking for PANGOFT2" >&5
30217echo $ECHO_N "checking for PANGOFT2... $ECHO_C" >&6
30218
30219if test -n "$PKG_CONFIG"; then
30220 if test -n "$PANGOFT2_CFLAGS"; then
30221 pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS"
30222 else
30223 if test -n "$PKG_CONFIG" && \
30224 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
30225 ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
30226 ac_status=$?
30227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30228 (exit $ac_status); }; then
30229 pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
30230else
30231 pkg_failed=yes
30232fi
30233 fi
30234else
30235 pkg_failed=untried
30236fi
30237if test -n "$PKG_CONFIG"; then
30238 if test -n "$PANGOFT2_LIBS"; then
30239 pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS"
30240 else
30241 if test -n "$PKG_CONFIG" && \
30242 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
30243 ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
30244 ac_status=$?
30245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30246 (exit $ac_status); }; then
30247 pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
30248else
30249 pkg_failed=yes
30250fi
30251 fi
30252else
30253 pkg_failed=untried
30254fi
30255
30256
30257
30258if test $pkg_failed = yes; then
30259
30260if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30261 _pkg_short_errors_supported=yes
30262else
30263 _pkg_short_errors_supported=no
30264fi
30265 if test $_pkg_short_errors_supported = yes; then
30266 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2"`
30267 else
30268 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
30269 fi
30270 # Put the nasty error message in config.log where it belongs
30271 echo "$PANGOFT2_PKG_ERRORS" >&5
a848cd7e 30272
a848cd7e
SC
30273
30274 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
30275echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
30276 wxUSE_PRINTING_ARCHITECTURE="no"
30277
30278
3ecd9f92 30279elif test $pkg_failed = untried; then
a848cd7e 30280
3ecd9f92
MW
30281 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
30282echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
30283 wxUSE_PRINTING_ARCHITECTURE="no"
a848cd7e 30284
a848cd7e 30285
a848cd7e 30286else
3ecd9f92
MW
30287 PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS
30288 PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS
30289 echo "$as_me:$LINENO: result: yes" >&5
30290echo "${ECHO_T}yes" >&6
30291
30292 CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
30293 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
a848cd7e 30294
a848cd7e 30295fi
3ecd9f92
MW
30296
30297pkg_failed=no
30298echo "$as_me:$LINENO: checking for PANGOXFT" >&5
30299echo $ECHO_N "checking for PANGOXFT... $ECHO_C" >&6
a848cd7e
SC
30300
30301if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
30302 if test -n "$PANGOXFT_CFLAGS"; then
30303 pkg_cv_PANGOXFT_CFLAGS="$PANGOXFT_CFLAGS"
30304 else
30305 if test -n "$PKG_CONFIG" && \
30306 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
30307 ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
30308 ac_status=$?
30309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30310 (exit $ac_status); }; then
30311 pkg_cv_PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null`
a848cd7e 30312else
3ecd9f92
MW
30313 pkg_failed=yes
30314fi
30315 fi
30316else
30317 pkg_failed=untried
30318fi
30319if test -n "$PKG_CONFIG"; then
30320 if test -n "$PANGOXFT_LIBS"; then
30321 pkg_cv_PANGOXFT_LIBS="$PANGOXFT_LIBS"
30322 else
30323 if test -n "$PKG_CONFIG" && \
30324 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
30325 ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
30326 ac_status=$?
30327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30328 (exit $ac_status); }; then
30329 pkg_cv_PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null`
30330else
30331 pkg_failed=yes
30332fi
30333 fi
30334else
30335 pkg_failed=untried
a848cd7e
SC
30336fi
30337
a848cd7e 30338
a848cd7e 30339
3ecd9f92 30340if test $pkg_failed = yes; then
a848cd7e 30341
3ecd9f92
MW
30342if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30343 _pkg_short_errors_supported=yes
30344else
30345 _pkg_short_errors_supported=no
30346fi
30347 if test $_pkg_short_errors_supported = yes; then
30348 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoxft"`
30349 else
30350 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
a848cd7e 30351 fi
3ecd9f92
MW
30352 # Put the nasty error message in config.log where it belongs
30353 echo "$PANGOXFT_PKG_ERRORS" >&5
a848cd7e
SC
30354
30355
3ecd9f92
MW
30356 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
30357echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
30358
a848cd7e 30359
3ecd9f92 30360elif test $pkg_failed = untried; then
a848cd7e 30361
3ecd9f92
MW
30362 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
30363echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
30364
30365
30366else
30367 PANGOXFT_CFLAGS=$pkg_cv_PANGOXFT_CFLAGS
30368 PANGOXFT_LIBS=$pkg_cv_PANGOXFT_LIBS
30369 echo "$as_me:$LINENO: result: yes" >&5
30370echo "${ECHO_T}yes" >&6
a848cd7e 30371
4ae1af05
MB
30372 cat >>confdefs.h <<\_ACEOF
30373#define HAVE_PANGO_XFT 1
30374_ACEOF
30375
c92ad099 30376 CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
a848cd7e
SC
30377 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
30378
3ecd9f92 30379fi
e56f4f9e 30380 save_CXXFLAGS="$CXXFLAGS"
304205f1 30381 save_LIBS="$LIBS"
e56f4f9e 30382 CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
304205f1
VS
30383 LIBS="$LIBS $PANGOX_LIBS"
30384
30385for ac_func in pango_font_family_is_monospace
30386do
30387as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30388echo "$as_me:$LINENO: checking for $ac_func" >&5
30389echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30390if eval "test \"\${$as_ac_var+set}\" = set"; then
30391 echo $ECHO_N "(cached) $ECHO_C" >&6
30392else
30393 cat >conftest.$ac_ext <<_ACEOF
30394/* confdefs.h. */
30395_ACEOF
30396cat confdefs.h >>conftest.$ac_ext
30397cat >>conftest.$ac_ext <<_ACEOF
30398/* end confdefs.h. */
30399/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30400 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30401#define $ac_func innocuous_$ac_func
30402
30403/* System header to define __stub macros and hopefully few prototypes,
30404 which can conflict with char $ac_func (); below.
30405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30406 <limits.h> exists even on freestanding compilers. */
30407
30408#ifdef __STDC__
30409# include <limits.h>
30410#else
30411# include <assert.h>
30412#endif
30413
30414#undef $ac_func
30415
30416/* Override any gcc2 internal prototype to avoid an error. */
30417#ifdef __cplusplus
30418extern "C"
30419{
30420#endif
30421/* We use char because int might match the return type of a gcc2
30422 builtin and then its argument prototype would still apply. */
30423char $ac_func ();
30424/* The GNU C library defines this for functions which it implements
30425 to always fail with ENOSYS. Some functions are actually named
30426 something starting with __ and the normal name is an alias. */
30427#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30428choke me
30429#else
30430char (*f) () = $ac_func;
30431#endif
30432#ifdef __cplusplus
30433}
30434#endif
30435
30436int
30437main ()
30438{
30439return f != $ac_func;
30440 ;
30441 return 0;
30442}
30443_ACEOF
30444rm -f conftest.$ac_objext conftest$ac_exeext
30445if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30446 (eval $ac_link) 2>conftest.er1
30447 ac_status=$?
30448 grep -v '^ *+' conftest.er1 >conftest.err
30449 rm -f conftest.er1
30450 cat conftest.err >&5
30451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30452 (exit $ac_status); } &&
c9a66001 30453 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
304205f1
VS
30454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30455 (eval $ac_try) 2>&5
30456 ac_status=$?
30457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30458 (exit $ac_status); }; } &&
30459 { ac_try='test -s conftest$ac_exeext'
30460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30461 (eval $ac_try) 2>&5
30462 ac_status=$?
30463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30464 (exit $ac_status); }; }; then
30465 eval "$as_ac_var=yes"
30466else
30467 echo "$as_me: failed program was:" >&5
30468sed 's/^/| /' conftest.$ac_ext >&5
30469
30470eval "$as_ac_var=no"
30471fi
30472rm -f conftest.err conftest.$ac_objext \
30473 conftest$ac_exeext conftest.$ac_ext
30474fi
30475echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30476echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30477if test `eval echo '${'$as_ac_var'}'` = yes; then
30478 cat >>confdefs.h <<_ACEOF
30479#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30480_ACEOF
30481
30482fi
30483done
30484
e56f4f9e 30485 CXXFLAGS="$save_CXXFLAGS"
304205f1 30486 LIBS="$save_LIBS"
a848cd7e
SC
30487 fi
30488
30489 wxUSE_UNIVERSAL="yes"
30490
30491 if test "$wxUSE_NANOX" = "yes"; then
30492 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
30493 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"
30494 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
30495 else
30496 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
30497 fi
30498
a848cd7e
SC
30499 TOOLKIT=X11
30500 GUIDIST=X11_DIST
30501 fi
30502
30503 if test "$wxUSE_MOTIF" = 1; then
0a08f02a
MB
30504 if test "$wxUSE_UNICODE" = "yes"; then
30505 { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
30506echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
30507 { (exit 1); exit 1; }; }
30508 fi
30509
74b84332
VS
30510 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
30511echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 30512
74b84332
VS
30513ac_find_includes=
30514for ac_dir in $SEARCH_INCLUDE /usr/include;
30515 do
30516 if test -f "$ac_dir/Xm/Xm.h"; then
30517 ac_find_includes=$ac_dir
30518 break
30519 fi
30520 done
a848cd7e 30521
74b84332
VS
30522 if test "$ac_find_includes" != "" ; then
30523 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
30524echo "${ECHO_T}found in $ac_find_includes" >&6
30525
30526 if test "x$ac_find_includes" = "x/usr/include"; then
30527 ac_path_to_include=""
30528 else
30529 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
30530 result=$?
30531 if test $result = 0; then
30532 ac_path_to_include=""
30533 else
30534 ac_path_to_include=" -I$ac_find_includes"
30535 fi
a848cd7e
SC
30536 fi
30537
74b84332
VS
30538 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
30539 else
e56f4f9e
VZ
30540 save_CXXFLAGS=$CXXFLAGS
30541 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
e051b34e 30542
74b84332 30543 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
30544/* confdefs.h. */
30545_ACEOF
30546cat confdefs.h >>conftest.$ac_ext
30547cat >>conftest.$ac_ext <<_ACEOF
30548/* end confdefs.h. */
30549
74b84332
VS
30550 #include <Xm/Xm.h>
30551
a848cd7e
SC
30552int
30553main ()
30554{
30555
74b84332
VS
30556 int version;
30557 version = xmUseVersion;
30558
a848cd7e
SC
30559 ;
30560 return 0;
30561}
30562_ACEOF
74b84332
VS
30563rm -f conftest.$ac_objext
30564if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30565 (eval $ac_compile) 2>conftest.er1
a848cd7e 30566 ac_status=$?
ac1cb8d3
VS
30567 grep -v '^ *+' conftest.er1 >conftest.err
30568 rm -f conftest.er1
30569 cat conftest.err >&5
a848cd7e
SC
30570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30571 (exit $ac_status); } &&
c9a66001 30572 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30574 (eval $ac_try) 2>&5
30575 ac_status=$?
30576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30577 (exit $ac_status); }; } &&
74b84332 30578 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30580 (eval $ac_try) 2>&5
30581 ac_status=$?
30582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30583 (exit $ac_status); }; }; then
74b84332
VS
30584
30585 echo "$as_me:$LINENO: result: found in default search path" >&5
30586echo "${ECHO_T}found in default search path" >&6
30587 COMPILED_X_PROGRAM=1
30588
a848cd7e
SC
30589else
30590 echo "$as_me: failed program was:" >&5
30591sed 's/^/| /' conftest.$ac_ext >&5
30592
a848cd7e 30593
74b84332
VS
30594 echo "$as_me:$LINENO: result: no" >&5
30595echo "${ECHO_T}no" >&6
e051b34e
MW
30596 { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
30597echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
74b84332 30598 { (exit 1); exit 1; }; }
a848cd7e 30599
a848cd7e 30600
a848cd7e 30601fi
74b84332 30602rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e051b34e 30603
e56f4f9e 30604 CXXFLAGS=$save_CXXFLAGS
74b84332
VS
30605 fi
30606
0ad5d837
VZ
30607
30608 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
74b84332
VS
30609echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
30610
0ad5d837
VZ
30611 ac_find_libraries=
30612 for ac_dir in $SEARCH_LIB;
74b84332 30613 do
3eca31dc 30614 for ac_extension in a so sl dylib dll.a; do
74b84332
VS
30615 if test -f "$ac_dir/libXm.$ac_extension"; then
30616 ac_find_libraries=$ac_dir
30617 break 2
a848cd7e 30618 fi
74b84332
VS
30619 done
30620 done
a848cd7e 30621
0ad5d837
VZ
30622
30623 if test "x$ac_find_libraries" != "x" ; then
30624 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
30625echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e 30626
74b84332 30627
0ad5d837 30628 if test "$ac_find_libraries" = "default location"; then
74b84332 30629 ac_path_to_link=""
a848cd7e 30630 else
0ad5d837
VZ
30631 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
30632 result=$?
30633 if test $result = 0; then
30634 ac_path_to_link=""
30635 else
30636 ac_path_to_link=" -L$ac_find_libraries"
30637 fi
74b84332
VS
30638 fi
30639
0ad5d837
VZ
30640 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
30641 else
e56f4f9e
VZ
30642 save_CXXFLAGS=$CXXFLAGS
30643 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
6f9cf1e6
MW
30644 save_LIBS="$LIBS"
30645 LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
74b84332 30646
0ad5d837 30647 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
30648/* confdefs.h. */
30649_ACEOF
30650cat confdefs.h >>conftest.$ac_ext
30651cat >>conftest.$ac_ext <<_ACEOF
30652/* end confdefs.h. */
30653
0ad5d837 30654 #include <Xm/Xm.h>
74b84332 30655
a848cd7e
SC
30656int
30657main ()
30658{
74b84332 30659
0ad5d837
VZ
30660 int version;
30661 version = xmUseVersion;
74b84332 30662
a848cd7e
SC
30663 ;
30664 return 0;
30665}
30666_ACEOF
0ad5d837
VZ
30667rm -f conftest.$ac_objext conftest$ac_exeext
30668if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30669 (eval $ac_link) 2>conftest.er1
a848cd7e 30670 ac_status=$?
ac1cb8d3
VS
30671 grep -v '^ *+' conftest.er1 >conftest.err
30672 rm -f conftest.er1
30673 cat conftest.err >&5
a848cd7e
SC
30674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30675 (exit $ac_status); } &&
c9a66001 30676 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30678 (eval $ac_try) 2>&5
30679 ac_status=$?
30680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30681 (exit $ac_status); }; } &&
0ad5d837 30682 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30684 (eval $ac_try) 2>&5
30685 ac_status=$?
30686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30687 (exit $ac_status); }; }; then
74b84332 30688
0ad5d837 30689 echo "$as_me:$LINENO: result: found in default search path" >&5
74b84332 30690echo "${ECHO_T}found in default search path" >&6
0ad5d837 30691 COMPILED_X_PROGRAM=1
74b84332 30692
a848cd7e
SC
30693else
30694 echo "$as_me: failed program was:" >&5
30695sed 's/^/| /' conftest.$ac_ext >&5
30696
74b84332 30697
6f9cf1e6 30698 echo "$as_me:$LINENO: result: no" >&5
74b84332 30699echo "${ECHO_T}no" >&6
6f9cf1e6 30700 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
74b84332
VS
30701echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
30702 { (exit 1); exit 1; }; }
30703
30704
30705fi
0ad5d837
VZ
30706rm -f conftest.err conftest.$ac_objext \
30707 conftest$ac_exeext conftest.$ac_ext
74b84332 30708
e56f4f9e 30709 CXXFLAGS=$save_CXXFLAGS
6f9cf1e6 30710 LIBS="$save_LIBS"
74b84332
VS
30711 fi
30712
30713 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
30714echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
30715 libp_link=""
30716 libsm_ice_link=""
30717 libs_found=0
30718 for libp in "" " -lXp"; do
30719 if test "$libs_found" = "0"; then
30720 for libsm_ice in "" " -lSM -lICE"; do
30721 if test "$libs_found" = "0"; then
30722 save_LIBS="$LIBS"
30723 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
e56f4f9e
VZ
30724 save_CXXFLAGS=$CXXFLAGS
30725 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
74b84332
VS
30726
30727 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
30728/* confdefs.h. */
30729_ACEOF
30730cat confdefs.h >>conftest.$ac_ext
30731cat >>conftest.$ac_ext <<_ACEOF
30732/* end confdefs.h. */
30733
74b84332
VS
30734 #include <Xm/Xm.h>
30735 #include <Xm/List.h>
30736
a848cd7e
SC
30737int
30738main ()
30739{
74b84332
VS
30740
30741 XmString string = NULL;
30742 Widget w = NULL;
30743 int position = 0;
30744 XmListAddItem(w, string, position);
30745
a848cd7e
SC
30746 ;
30747 return 0;
30748}
30749_ACEOF
30750rm -f conftest.$ac_objext conftest$ac_exeext
30751if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30752 (eval $ac_link) 2>conftest.er1
a848cd7e 30753 ac_status=$?
ac1cb8d3
VS
30754 grep -v '^ *+' conftest.er1 >conftest.err
30755 rm -f conftest.er1
30756 cat conftest.err >&5
a848cd7e
SC
30757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30758 (exit $ac_status); } &&
c9a66001 30759 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30761 (eval $ac_try) 2>&5
30762 ac_status=$?
30763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30764 (exit $ac_status); }; } &&
30765 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30767 (eval $ac_try) 2>&5
30768 ac_status=$?
30769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30770 (exit $ac_status); }; }; then
30771
30772 libp_link="$libp"
30773 libsm_ice_link="$libsm_ice"
30774 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
30775echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
30776 libs_found=1
30777
30778else
30779 echo "$as_me: failed program was:" >&5
30780sed 's/^/| /' conftest.$ac_ext >&5
30781
30782
30783
30784fi
ac1cb8d3
VS
30785rm -f conftest.err conftest.$ac_objext \
30786 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30787
30788 LIBS="$save_LIBS"
e56f4f9e 30789 CXXFLAGS=$save_CXXFLAGS
a848cd7e
SC
30790 fi
30791 done
30792 fi
30793 done
30794
30795 if test "$libs_found" = "0"; then
30796 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
30797echo "${ECHO_T}can't find the right libraries" >&6
30798 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
30799echo "$as_me: error: can't link a simple motif program" >&2;}
30800 { (exit 1); exit 1; }; }
30801 fi
30802
62fa8b3a
MW
30803 echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
30804echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6
30805if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
30806 echo $ECHO_N "(cached) $ECHO_C" >&6
30807else
30808 ac_check_lib_save_LIBS=$LIBS
30809LIBS="-lSgm $LIBS"
30810cat >conftest.$ac_ext <<_ACEOF
30811/* confdefs.h. */
30812_ACEOF
30813cat confdefs.h >>conftest.$ac_ext
30814cat >>conftest.$ac_ext <<_ACEOF
30815/* end confdefs.h. */
30816
30817/* Override any gcc2 internal prototype to avoid an error. */
30818#ifdef __cplusplus
30819extern "C"
30820#endif
30821/* We use char because int might match the return type of a gcc2
30822 builtin and then its argument prototype would still apply. */
30823char SgCreateList ();
30824int
30825main ()
30826{
30827SgCreateList ();
30828 ;
30829 return 0;
30830}
30831_ACEOF
30832rm -f conftest.$ac_objext conftest$ac_exeext
30833if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30834 (eval $ac_link) 2>conftest.er1
30835 ac_status=$?
30836 grep -v '^ *+' conftest.er1 >conftest.err
30837 rm -f conftest.er1
30838 cat conftest.err >&5
30839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30840 (exit $ac_status); } &&
c9a66001 30841 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
30842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30843 (eval $ac_try) 2>&5
30844 ac_status=$?
30845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30846 (exit $ac_status); }; } &&
30847 { ac_try='test -s conftest$ac_exeext'
30848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30849 (eval $ac_try) 2>&5
30850 ac_status=$?
30851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30852 (exit $ac_status); }; }; then
30853 ac_cv_lib_Sgm_SgCreateList=yes
30854else
30855 echo "$as_me: failed program was:" >&5
30856sed 's/^/| /' conftest.$ac_ext >&5
30857
30858ac_cv_lib_Sgm_SgCreateList=no
30859fi
30860rm -f conftest.err conftest.$ac_objext \
30861 conftest$ac_exeext conftest.$ac_ext
30862LIBS=$ac_check_lib_save_LIBS
30863fi
30864echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
30865echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6
30866if test $ac_cv_lib_Sgm_SgCreateList = yes; then
30867 libsgm_link=" -lSgm"
30868fi
30869
30870
e56f4f9e
VZ
30871 save_CXXFLAGS=$CXXFLAGS
30872 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
0ad5d837 30873
a848cd7e
SC
30874 echo "$as_me:$LINENO: checking for Motif 2" >&5
30875echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
0ad5d837
VZ
30876if test "${wx_cv_lib_motif2+set}" = set; then
30877 echo $ECHO_N "(cached) $ECHO_C" >&6
30878else
30879 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
30880/* confdefs.h. */
30881_ACEOF
30882cat confdefs.h >>conftest.$ac_ext
30883cat >>conftest.$ac_ext <<_ACEOF
30884/* end confdefs.h. */
30885
0ad5d837 30886 #include <Xm/Xm.h>
a848cd7e
SC
30887
30888int
30889main ()
30890{
30891
0ad5d837
VZ
30892 #if XmVersion < 2000
30893 Not Motif 2
30894 #endif
a848cd7e
SC
30895
30896 ;
30897 return 0;
30898}
30899_ACEOF
30900rm -f conftest.$ac_objext
30901if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30902 (eval $ac_compile) 2>conftest.er1
a848cd7e 30903 ac_status=$?
ac1cb8d3
VS
30904 grep -v '^ *+' conftest.er1 >conftest.err
30905 rm -f conftest.er1
30906 cat conftest.err >&5
a848cd7e
SC
30907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30908 (exit $ac_status); } &&
c9a66001 30909 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30911 (eval $ac_try) 2>&5
30912 ac_status=$?
30913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30914 (exit $ac_status); }; } &&
30915 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30917 (eval $ac_try) 2>&5
30918 ac_status=$?
30919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30920 (exit $ac_status); }; }; then
0ad5d837 30921 wx_cv_lib_motif2="yes"
a848cd7e
SC
30922else
30923 echo "$as_me: failed program was:" >&5
30924sed 's/^/| /' conftest.$ac_ext >&5
30925
0ad5d837
VZ
30926wx_cv_lib_motif2="no"
30927fi
30928rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30929fi
30930echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
30931echo "${ECHO_T}$wx_cv_lib_motif2" >&6
30932 if test "$wx_cv_lib_motif2" = "yes"; then
30933 cat >>confdefs.h <<\_ACEOF
30934#define __WXMOTIF20__ 1
30935_ACEOF
a848cd7e 30936
0ad5d837
VZ
30937 else
30938 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
30939#define __WXMOTIF20__ 0
30940_ACEOF
30941
0ad5d837 30942 fi
2113bc77
MW
30943
30944 echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
30945echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6
0ad5d837
VZ
30946if test "${wx_cv_lib_lesstif+set}" = set; then
30947 echo $ECHO_N "(cached) $ECHO_C" >&6
30948else
30949 cat >conftest.$ac_ext <<_ACEOF
2113bc77
MW
30950/* confdefs.h. */
30951_ACEOF
30952cat confdefs.h >>conftest.$ac_ext
30953cat >>conftest.$ac_ext <<_ACEOF
30954/* end confdefs.h. */
30955
0ad5d837 30956 #include <Xm/Xm.h>
2113bc77
MW
30957
30958int
30959main ()
30960{
30961
0ad5d837
VZ
30962 #if !defined(LesstifVersion) || LesstifVersion <= 0
30963 Not Lesstif
30964 #endif
2113bc77
MW
30965
30966 ;
30967 return 0;
30968}
30969_ACEOF
30970rm -f conftest.$ac_objext
30971if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30972 (eval $ac_compile) 2>conftest.er1
30973 ac_status=$?
30974 grep -v '^ *+' conftest.er1 >conftest.err
30975 rm -f conftest.er1
30976 cat conftest.err >&5
30977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30978 (exit $ac_status); } &&
c9a66001 30979 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2113bc77
MW
30980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30981 (eval $ac_try) 2>&5
30982 ac_status=$?
30983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30984 (exit $ac_status); }; } &&
30985 { ac_try='test -s conftest.$ac_objext'
30986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30987 (eval $ac_try) 2>&5
30988 ac_status=$?
30989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30990 (exit $ac_status); }; }; then
0ad5d837 30991 wx_cv_lib_lesstif="yes"
2113bc77
MW
30992else
30993 echo "$as_me: failed program was:" >&5
30994sed 's/^/| /' conftest.$ac_ext >&5
30995
0ad5d837
VZ
30996wx_cv_lib_lesstif="no"
30997fi
30998rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2113bc77 30999
0ad5d837
VZ
31000fi
31001echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
31002echo "${ECHO_T}$wx_cv_lib_lesstif" >&6
31003 if test "$wx_cv_lib_lesstif" = "yes"; then
31004 cat >>confdefs.h <<\_ACEOF
31005#define __WXLESSTIF__ 1
31006_ACEOF
31007
31008 else
31009 cat >>confdefs.h <<\_ACEOF
2113bc77
MW
31010#define __WXLESSTIF__ 0
31011_ACEOF
31012
0ad5d837 31013 fi
2113bc77 31014
e56f4f9e 31015 CXXFLAGS=$save_CXXFLAGS
a848cd7e 31016
62fa8b3a 31017 GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
31018 TOOLKIT=MOTIF
31019 GUIDIST=MOTIF_DIST
31020 fi
31021
74b84332 31022 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
31023 if test "$wxUSE_LIBXPM" = "sys"; then
31024 echo "$as_me:$LINENO: checking for Xpm library" >&5
31025echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
31026
0ad5d837
VZ
31027 ac_find_libraries=
31028 for ac_dir in $SEARCH_LIB;
a848cd7e 31029 do
3eca31dc 31030 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
31031 if test -f "$ac_dir/libXpm.$ac_extension"; then
31032 ac_find_libraries=$ac_dir
31033 break 2
31034 fi
31035 done
31036 done
31037
31038 if test "$ac_find_libraries" != "" ; then
31039
0ad5d837 31040 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31041 ac_path_to_link=""
31042 else
0ad5d837
VZ
31043 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
31044 result=$?
31045 if test $result = 0; then
31046 ac_path_to_link=""
31047 else
31048 ac_path_to_link=" -L$ac_find_libraries"
31049 fi
a848cd7e
SC
31050 fi
31051
31052 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
0ad5d837
VZ
31053 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
31054echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
31055
31056 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
31057echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
31058if test "${wx_cv_x11_xpm_h+set}" = set; then
31059 echo $ECHO_N "(cached) $ECHO_C" >&6
31060else
31061
e56f4f9e
VZ
31062 save_CXXFLAGS=$CXXFLAGS
31063 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
a848cd7e
SC
31064
31065 cat >conftest.$ac_ext <<_ACEOF
31066/* confdefs.h. */
31067_ACEOF
31068cat confdefs.h >>conftest.$ac_ext
31069cat >>conftest.$ac_ext <<_ACEOF
31070/* end confdefs.h. */
31071
31072 #include <X11/xpm.h>
31073
31074int
31075main ()
31076{
31077
31078 int version;
31079 version = XpmLibraryVersion();
31080
31081 ;
31082 return 0;
31083}
31084_ACEOF
31085rm -f conftest.$ac_objext
31086if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31087 (eval $ac_compile) 2>conftest.er1
a848cd7e 31088 ac_status=$?
ac1cb8d3
VS
31089 grep -v '^ *+' conftest.er1 >conftest.err
31090 rm -f conftest.er1
31091 cat conftest.err >&5
a848cd7e
SC
31092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31093 (exit $ac_status); } &&
c9a66001 31094 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31096 (eval $ac_try) 2>&5
31097 ac_status=$?
31098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31099 (exit $ac_status); }; } &&
31100 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31102 (eval $ac_try) 2>&5
31103 ac_status=$?
31104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31105 (exit $ac_status); }; }; then
31106 wx_cv_x11_xpm_h=yes
31107else
31108 echo "$as_me: failed program was:" >&5
31109sed 's/^/| /' conftest.$ac_ext >&5
31110
31111wx_cv_x11_xpm_h=no
31112
31113fi
ac1cb8d3 31114rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 31115
e56f4f9e 31116 CXXFLAGS=$save_CXXFLAGS
a848cd7e
SC
31117
31118
31119fi
31120echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
31121echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
31122
31123 if test $wx_cv_x11_xpm_h = "yes"; then
31124 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
31125 cat >>confdefs.h <<\_ACEOF
31126#define wxHAVE_LIB_XPM 1
31127_ACEOF
31128
31129 else
31130 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
31131echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
31132 fi
31133 fi
31134
31135 fi
31136
31137 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
31138echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
31139if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
31140 echo $ECHO_N "(cached) $ECHO_C" >&6
31141else
31142 ac_check_lib_save_LIBS=$LIBS
31143LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
31144cat >conftest.$ac_ext <<_ACEOF
31145/* confdefs.h. */
31146_ACEOF
31147cat confdefs.h >>conftest.$ac_ext
31148cat >>conftest.$ac_ext <<_ACEOF
31149/* end confdefs.h. */
31150
31151/* Override any gcc2 internal prototype to avoid an error. */
31152#ifdef __cplusplus
31153extern "C"
31154#endif
31155/* We use char because int might match the return type of a gcc2
31156 builtin and then its argument prototype would still apply. */
31157char XShapeQueryExtension ();
31158int
31159main ()
31160{
31161XShapeQueryExtension ();
31162 ;
31163 return 0;
31164}
31165_ACEOF
31166rm -f conftest.$ac_objext conftest$ac_exeext
31167if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31168 (eval $ac_link) 2>conftest.er1
a848cd7e 31169 ac_status=$?
ac1cb8d3
VS
31170 grep -v '^ *+' conftest.er1 >conftest.err
31171 rm -f conftest.er1
31172 cat conftest.err >&5
a848cd7e
SC
31173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31174 (exit $ac_status); } &&
c9a66001 31175 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31177 (eval $ac_try) 2>&5
31178 ac_status=$?
31179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31180 (exit $ac_status); }; } &&
31181 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31183 (eval $ac_try) 2>&5
31184 ac_status=$?
31185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31186 (exit $ac_status); }; }; then
31187 ac_cv_lib_Xext_XShapeQueryExtension=yes
31188else
31189 echo "$as_me: failed program was:" >&5
31190sed 's/^/| /' conftest.$ac_ext >&5
31191
31192ac_cv_lib_Xext_XShapeQueryExtension=no
31193fi
ac1cb8d3
VS
31194rm -f conftest.err conftest.$ac_objext \
31195 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31196LIBS=$ac_check_lib_save_LIBS
31197fi
31198echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
31199echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
31200if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
31201
31202 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
31203 wxHAVE_XEXT_LIB=1
31204
31205fi
31206
31207
31208 if test "$wxHAVE_XEXT_LIB" = 1; then
e56f4f9e
VZ
31209 save_CXXFLAGS="$CXXFLAGS"
31210 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
a848cd7e
SC
31211
31212 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
31213echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
31214 cat >conftest.$ac_ext <<_ACEOF
31215/* confdefs.h. */
31216_ACEOF
31217cat confdefs.h >>conftest.$ac_ext
31218cat >>conftest.$ac_ext <<_ACEOF
31219/* end confdefs.h. */
31220
31221 #include <X11/Xlib.h>
31222 #include <X11/extensions/shape.h>
31223
31224int
31225main ()
31226{
31227
31228 int dummy1, dummy2;
31229 XShapeQueryExtension((Display*)NULL,
31230 (int*)NULL, (int*)NULL);
31231
31232 ;
31233 return 0;
31234}
31235_ACEOF
31236rm -f conftest.$ac_objext
31237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31238 (eval $ac_compile) 2>conftest.er1
a848cd7e 31239 ac_status=$?
ac1cb8d3
VS
31240 grep -v '^ *+' conftest.er1 >conftest.err
31241 rm -f conftest.er1
31242 cat conftest.err >&5
a848cd7e
SC
31243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31244 (exit $ac_status); } &&
c9a66001 31245 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31247 (eval $ac_try) 2>&5
31248 ac_status=$?
31249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31250 (exit $ac_status); }; } &&
31251 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31253 (eval $ac_try) 2>&5
31254 ac_status=$?
31255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31256 (exit $ac_status); }; }; then
31257
31258 cat >>confdefs.h <<\_ACEOF
31259#define HAVE_XSHAPE 1
31260_ACEOF
31261
31262 echo "$as_me:$LINENO: result: found" >&5
31263echo "${ECHO_T}found" >&6
31264
31265else
31266 echo "$as_me: failed program was:" >&5
31267sed 's/^/| /' conftest.$ac_ext >&5
31268
31269
31270 echo "$as_me:$LINENO: result: not found" >&5
31271echo "${ECHO_T}not found" >&6
31272
31273fi
ac1cb8d3 31274rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e56f4f9e 31275 CXXFLAGS="$save_CXXFLAGS"
a848cd7e
SC
31276
31277 fi
31278 fi
31279
31280 if test "$wxUSE_MAC" = 1; then
31281 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
31282echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
31283 if test "$GCC" = yes; then
31284 echo "$as_me:$LINENO: result: gcc" >&5
31285echo "${ECHO_T}gcc" >&6
31286 CPPFLAGS_PASCAL="-fpascal-strings"
31287 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
31288 echo "$as_me:$LINENO: result: xlc" >&5
31289echo "${ECHO_T}xlc" >&6
31290 CPPFLAGS_PASCAL="-qmacpstr"
31291 else
31292 echo "$as_me:$LINENO: result: none" >&5
31293echo "${ECHO_T}none" >&6
31294 fi
31295
1e9e8aba 31296 if test "x$wxUSE_UNIX" = "xyes"; then
c92ad099 31297 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS"
1e9e8aba 31298 else
c92ad099 31299 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS"
1e9e8aba 31300 fi
a848cd7e 31301
a848cd7e
SC
31302 TOOLKIT=MAC
31303 GUIDIST=MACX_DIST
dd21ced8 31304 WXBASEPORT="_carbon"
a848cd7e
SC
31305 fi
31306
31307 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
31308 TOOLKIT=COCOA
31309 GUIDIST=COCOA_DIST
31310 fi
31311
31312 if test "$wxUSE_PM" = 1; then
31313 TOOLKIT=PM
de59c161
RD
31314 GUIDIST=PM_DIST
31315 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
31316echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
31317if test "${wx_cv_spbcdata+set}" = set; then
31318 echo $ECHO_N "(cached) $ECHO_C" >&6
31319else
31320
31321 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
31322/* confdefs.h. */
31323_ACEOF
31324cat confdefs.h >>conftest.$ac_ext
31325cat >>conftest.$ac_ext <<_ACEOF
31326/* end confdefs.h. */
31327
31328 #define INCL_PM
31329 #include <os2.h>
31330
31331int
31332main ()
31333{
31334
31335 SPBCDATA test;
31336
31337 ;
31338 return 0;
31339}
31340_ACEOF
31341rm -f conftest.$ac_objext
31342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31343 (eval $ac_compile) 2>conftest.er1
de59c161 31344 ac_status=$?
ac1cb8d3
VS
31345 grep -v '^ *+' conftest.er1 >conftest.err
31346 rm -f conftest.er1
31347 cat conftest.err >&5
de59c161
RD
31348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31349 (exit $ac_status); } &&
c9a66001 31350 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31352 (eval $ac_try) 2>&5
31353 ac_status=$?
31354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31355 (exit $ac_status); }; } &&
31356 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
31357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31358 (eval $ac_try) 2>&5
31359 ac_status=$?
31360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31361 (exit $ac_status); }; }; then
31362 wx_cv_spbcdata=yes
31363else
31364 echo "$as_me: failed program was:" >&5
31365sed 's/^/| /' conftest.$ac_ext >&5
31366
31367wx_cv_spbcdata=no
31368
31369fi
ac1cb8d3 31370rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
31371
31372
31373fi
31374echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
31375echo "${ECHO_T}$wx_cv_spbcdata" >&6
31376
31377 if test $wx_cv_spbcdata = "yes"; then
31378 cat >>confdefs.h <<\_ACEOF
31379#define HAVE_SPBCDATA 1
31380_ACEOF
31381
31382 fi
a848cd7e
SC
31383 fi
31384
31385 if test "$TOOLKIT" = "PM" ; then
31386 TOOLKIT_DIR="os2"
31387 else
31388 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
31389 fi
31390
a848cd7e 31391 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
31392 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
31393 WIDGET_SET=univ
a848cd7e
SC
31394 fi
31395
31396 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
31397 DISTDIR="wx\$(TOOLKIT)"
31398else
31399 USE_GUI=0
31400
31401 TOOLKIT_DIR="base"
31402
31403 if test "$USE_WIN32" = 1 ; then
a848cd7e 31404 TOOLKIT="MSW"
a848cd7e
SC
31405 fi
31406
a848cd7e
SC
31407 GUIDIST="BASE_DIST"
31408 DISTDIR="wxBase"
31409fi
31410
31411
d12aef51
VZ
31412if test "$wxUSE_GUI" = "yes"; then
31413 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
31414
31415for ac_header in X11/Xlib.h
31416do
31417as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31418if eval "test \"\${$as_ac_Header+set}\" = set"; then
31419 echo "$as_me:$LINENO: checking for $ac_header" >&5
31420echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31421if eval "test \"\${$as_ac_Header+set}\" = set"; then
31422 echo $ECHO_N "(cached) $ECHO_C" >&6
31423fi
31424echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31425echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31426else
31427 # Is the header compilable?
31428echo "$as_me:$LINENO: checking $ac_header usability" >&5
31429echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31430cat >conftest.$ac_ext <<_ACEOF
31431/* confdefs.h. */
31432_ACEOF
31433cat confdefs.h >>conftest.$ac_ext
31434cat >>conftest.$ac_ext <<_ACEOF
31435/* end confdefs.h. */
31436$ac_includes_default
31437#include <$ac_header>
31438_ACEOF
31439rm -f conftest.$ac_objext
31440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31441 (eval $ac_compile) 2>conftest.er1
31442 ac_status=$?
31443 grep -v '^ *+' conftest.er1 >conftest.err
31444 rm -f conftest.er1
31445 cat conftest.err >&5
31446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31447 (exit $ac_status); } &&
c9a66001 31448 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
31449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31450 (eval $ac_try) 2>&5
31451 ac_status=$?
31452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31453 (exit $ac_status); }; } &&
31454 { ac_try='test -s conftest.$ac_objext'
31455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31456 (eval $ac_try) 2>&5
31457 ac_status=$?
31458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31459 (exit $ac_status); }; }; then
31460 ac_header_compiler=yes
31461else
31462 echo "$as_me: failed program was:" >&5
31463sed 's/^/| /' conftest.$ac_ext >&5
31464
31465ac_header_compiler=no
31466fi
31467rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31468echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31469echo "${ECHO_T}$ac_header_compiler" >&6
31470
31471# Is the header present?
31472echo "$as_me:$LINENO: checking $ac_header presence" >&5
31473echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31474cat >conftest.$ac_ext <<_ACEOF
31475/* confdefs.h. */
31476_ACEOF
31477cat confdefs.h >>conftest.$ac_ext
31478cat >>conftest.$ac_ext <<_ACEOF
31479/* end confdefs.h. */
31480#include <$ac_header>
31481_ACEOF
31482if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31483 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31484 ac_status=$?
31485 grep -v '^ *+' conftest.er1 >conftest.err
31486 rm -f conftest.er1
31487 cat conftest.err >&5
31488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31489 (exit $ac_status); } >/dev/null; then
31490 if test -s conftest.err; then
5d7b7554
VZ
31491 ac_cpp_err=$ac_cxx_preproc_warn_flag
31492 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
d12aef51
VZ
31493 else
31494 ac_cpp_err=
31495 fi
31496else
31497 ac_cpp_err=yes
31498fi
31499if test -z "$ac_cpp_err"; then
31500 ac_header_preproc=yes
31501else
31502 echo "$as_me: failed program was:" >&5
31503sed 's/^/| /' conftest.$ac_ext >&5
31504
31505 ac_header_preproc=no
31506fi
31507rm -f conftest.err conftest.$ac_ext
31508echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31509echo "${ECHO_T}$ac_header_preproc" >&6
31510
31511# So? What about this header?
5d7b7554 31512case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
d12aef51
VZ
31513 yes:no: )
31514 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31515echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31516 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31517echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31518 ac_header_preproc=yes
31519 ;;
31520 no:yes:* )
31521 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31522echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31523 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31524echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31525 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31526echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31527 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31528echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31530echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31531 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31532echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31533 (
31534 cat <<\_ASBOX
31535## ----------------------------------------- ##
31536## Report this to wx-dev@lists.wxwidgets.org ##
31537## ----------------------------------------- ##
31538_ASBOX
31539 ) |
31540 sed "s/^/$as_me: WARNING: /" >&2
31541 ;;
31542esac
31543echo "$as_me:$LINENO: checking for $ac_header" >&5
31544echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31545if eval "test \"\${$as_ac_Header+set}\" = set"; then
31546 echo $ECHO_N "(cached) $ECHO_C" >&6
31547else
31548 eval "$as_ac_Header=\$ac_header_preproc"
31549fi
31550echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31551echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31552
31553fi
31554if test `eval echo '${'$as_ac_Header'}'` = yes; then
31555 cat >>confdefs.h <<_ACEOF
31556#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31557_ACEOF
31558
31559fi
31560
31561done
31562
31563
31564for ac_header in X11/XKBlib.h
31565do
31566as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31567echo "$as_me:$LINENO: checking for $ac_header" >&5
31568echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31569if eval "test \"\${$as_ac_Header+set}\" = set"; then
31570 echo $ECHO_N "(cached) $ECHO_C" >&6
31571else
31572 cat >conftest.$ac_ext <<_ACEOF
31573/* confdefs.h. */
31574_ACEOF
31575cat confdefs.h >>conftest.$ac_ext
31576cat >>conftest.$ac_ext <<_ACEOF
31577/* end confdefs.h. */
31578
31579 #if HAVE_X11_XLIB_H
31580 #include <X11/Xlib.h>
31581 #endif
31582
31583
31584#include <$ac_header>
31585_ACEOF
31586rm -f conftest.$ac_objext
31587if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31588 (eval $ac_compile) 2>conftest.er1
31589 ac_status=$?
31590 grep -v '^ *+' conftest.er1 >conftest.err
31591 rm -f conftest.er1
31592 cat conftest.err >&5
31593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31594 (exit $ac_status); } &&
c9a66001 31595 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
31596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31597 (eval $ac_try) 2>&5
31598 ac_status=$?
31599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31600 (exit $ac_status); }; } &&
31601 { ac_try='test -s conftest.$ac_objext'
31602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31603 (eval $ac_try) 2>&5
31604 ac_status=$?
31605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31606 (exit $ac_status); }; }; then
31607 eval "$as_ac_Header=yes"
31608else
31609 echo "$as_me: failed program was:" >&5
31610sed 's/^/| /' conftest.$ac_ext >&5
31611
31612eval "$as_ac_Header=no"
31613fi
31614rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31615fi
31616echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31617echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31618if test `eval echo '${'$as_ac_Header'}'` = yes; then
31619 cat >>confdefs.h <<_ACEOF
31620#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31621_ACEOF
31622
31623fi
31624
31625done
31626
31627 fi
31628fi
31629
a848cd7e
SC
31630
31631
31632IODBC_C_SRC=""
31633
31634
31635if test "$TOOLKIT" != "MSW" ; then
31636
31637 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
31638
31639 if test "${ac_cv_header_sql_h+set}" = set; then
31640 echo "$as_me:$LINENO: checking for sql.h" >&5
31641echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
31642if test "${ac_cv_header_sql_h+set}" = set; then
31643 echo $ECHO_N "(cached) $ECHO_C" >&6
31644fi
31645echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
31646echo "${ECHO_T}$ac_cv_header_sql_h" >&6
31647else
31648 # Is the header compilable?
31649echo "$as_me:$LINENO: checking sql.h usability" >&5
31650echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
31651cat >conftest.$ac_ext <<_ACEOF
31652/* confdefs.h. */
31653_ACEOF
31654cat confdefs.h >>conftest.$ac_ext
31655cat >>conftest.$ac_ext <<_ACEOF
31656/* end confdefs.h. */
31657$ac_includes_default
31658#include <sql.h>
31659_ACEOF
31660rm -f conftest.$ac_objext
31661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31662 (eval $ac_compile) 2>conftest.er1
a848cd7e 31663 ac_status=$?
ac1cb8d3
VS
31664 grep -v '^ *+' conftest.er1 >conftest.err
31665 rm -f conftest.er1
31666 cat conftest.err >&5
a848cd7e
SC
31667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31668 (exit $ac_status); } &&
c9a66001 31669 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31671 (eval $ac_try) 2>&5
31672 ac_status=$?
31673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31674 (exit $ac_status); }; } &&
31675 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31677 (eval $ac_try) 2>&5
31678 ac_status=$?
31679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31680 (exit $ac_status); }; }; then
31681 ac_header_compiler=yes
31682else
31683 echo "$as_me: failed program was:" >&5
31684sed 's/^/| /' conftest.$ac_ext >&5
31685
31686ac_header_compiler=no
31687fi
ac1cb8d3 31688rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31689echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31690echo "${ECHO_T}$ac_header_compiler" >&6
31691
31692# Is the header present?
31693echo "$as_me:$LINENO: checking sql.h presence" >&5
31694echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
31695cat >conftest.$ac_ext <<_ACEOF
31696/* confdefs.h. */
31697_ACEOF
31698cat confdefs.h >>conftest.$ac_ext
31699cat >>conftest.$ac_ext <<_ACEOF
31700/* end confdefs.h. */
31701#include <sql.h>
31702_ACEOF
31703if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31704 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31705 ac_status=$?
31706 grep -v '^ *+' conftest.er1 >conftest.err
31707 rm -f conftest.er1
31708 cat conftest.err >&5
31709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31710 (exit $ac_status); } >/dev/null; then
31711 if test -s conftest.err; then
5d7b7554
VZ
31712 ac_cpp_err=$ac_cxx_preproc_warn_flag
31713 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
31714 else
31715 ac_cpp_err=
31716 fi
31717else
31718 ac_cpp_err=yes
31719fi
31720if test -z "$ac_cpp_err"; then
31721 ac_header_preproc=yes
31722else
31723 echo "$as_me: failed program was:" >&5
31724sed 's/^/| /' conftest.$ac_ext >&5
31725
31726 ac_header_preproc=no
31727fi
31728rm -f conftest.err conftest.$ac_ext
31729echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31730echo "${ECHO_T}$ac_header_preproc" >&6
31731
31732# So? What about this header?
5d7b7554 31733case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 31734 yes:no: )
a848cd7e
SC
31735 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
31736echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
31737 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
31738echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
31739 ac_header_preproc=yes
a848cd7e 31740 ;;
ac1cb8d3 31741 no:yes:* )
a848cd7e
SC
31742 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
31743echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
31744 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
31745echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
31746 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
31747echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
31748 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
31749echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
31750 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
31751echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
31752 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
31753echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
31754 (
31755 cat <<\_ASBOX
ac1cb8d3
VS
31756## ----------------------------------------- ##
31757## Report this to wx-dev@lists.wxwidgets.org ##
31758## ----------------------------------------- ##
a848cd7e
SC
31759_ASBOX
31760 ) |
31761 sed "s/^/$as_me: WARNING: /" >&2
31762 ;;
31763esac
31764echo "$as_me:$LINENO: checking for sql.h" >&5
31765echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
31766if test "${ac_cv_header_sql_h+set}" = set; then
31767 echo $ECHO_N "(cached) $ECHO_C" >&6
31768else
31769 ac_cv_header_sql_h=$ac_header_preproc
31770fi
31771echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
31772echo "${ECHO_T}$ac_cv_header_sql_h" >&6
31773
31774fi
31775if test $ac_cv_header_sql_h = yes; then
31776 found_sql_h=1
31777fi
31778
31779
31780 if test "x$found_sql_h" = "x1" ; then
31781 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
31782echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
31783if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
31784 echo $ECHO_N "(cached) $ECHO_C" >&6
31785else
31786 ac_check_lib_save_LIBS=$LIBS
31787LIBS="-liodbc $LIBS"
31788cat >conftest.$ac_ext <<_ACEOF
31789/* confdefs.h. */
31790_ACEOF
31791cat confdefs.h >>conftest.$ac_ext
31792cat >>conftest.$ac_ext <<_ACEOF
31793/* end confdefs.h. */
31794
31795/* Override any gcc2 internal prototype to avoid an error. */
31796#ifdef __cplusplus
31797extern "C"
31798#endif
31799/* We use char because int might match the return type of a gcc2
31800 builtin and then its argument prototype would still apply. */
31801char SQLAllocEnv ();
31802int
31803main ()
31804{
31805SQLAllocEnv ();
31806 ;
31807 return 0;
31808}
31809_ACEOF
31810rm -f conftest.$ac_objext conftest$ac_exeext
31811if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31812 (eval $ac_link) 2>conftest.er1
a848cd7e 31813 ac_status=$?
ac1cb8d3
VS
31814 grep -v '^ *+' conftest.er1 >conftest.err
31815 rm -f conftest.er1
31816 cat conftest.err >&5
a848cd7e
SC
31817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31818 (exit $ac_status); } &&
c9a66001 31819 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31821 (eval $ac_try) 2>&5
31822 ac_status=$?
31823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31824 (exit $ac_status); }; } &&
31825 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31827 (eval $ac_try) 2>&5
31828 ac_status=$?
31829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31830 (exit $ac_status); }; }; then
31831 ac_cv_lib_iodbc_SQLAllocEnv=yes
31832else
31833 echo "$as_me: failed program was:" >&5
31834sed 's/^/| /' conftest.$ac_ext >&5
31835
31836ac_cv_lib_iodbc_SQLAllocEnv=no
31837fi
ac1cb8d3
VS
31838rm -f conftest.err conftest.$ac_objext \
31839 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31840LIBS=$ac_check_lib_save_LIBS
31841fi
31842echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
31843echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
31844if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
31845 ODBC_LINK=" -liodbc"
31846else
31847
31848 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
31849echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
31850if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
31851 echo $ECHO_N "(cached) $ECHO_C" >&6
31852else
31853 ac_check_lib_save_LIBS=$LIBS
31854LIBS="-lunixodbc $LIBS"
31855cat >conftest.$ac_ext <<_ACEOF
31856/* confdefs.h. */
31857_ACEOF
31858cat confdefs.h >>conftest.$ac_ext
31859cat >>conftest.$ac_ext <<_ACEOF
31860/* end confdefs.h. */
31861
31862/* Override any gcc2 internal prototype to avoid an error. */
31863#ifdef __cplusplus
31864extern "C"
31865#endif
31866/* We use char because int might match the return type of a gcc2
31867 builtin and then its argument prototype would still apply. */
31868char SQLAllocEnv ();
31869int
31870main ()
31871{
31872SQLAllocEnv ();
31873 ;
31874 return 0;
31875}
31876_ACEOF
31877rm -f conftest.$ac_objext conftest$ac_exeext
31878if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31879 (eval $ac_link) 2>conftest.er1
a848cd7e 31880 ac_status=$?
ac1cb8d3
VS
31881 grep -v '^ *+' conftest.er1 >conftest.err
31882 rm -f conftest.er1
31883 cat conftest.err >&5
a848cd7e
SC
31884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31885 (exit $ac_status); } &&
c9a66001 31886 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31888 (eval $ac_try) 2>&5
31889 ac_status=$?
31890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31891 (exit $ac_status); }; } &&
31892 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31894 (eval $ac_try) 2>&5
31895 ac_status=$?
31896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31897 (exit $ac_status); }; }; then
31898 ac_cv_lib_unixodbc_SQLAllocEnv=yes
31899else
31900 echo "$as_me: failed program was:" >&5
31901sed 's/^/| /' conftest.$ac_ext >&5
31902
31903ac_cv_lib_unixodbc_SQLAllocEnv=no
31904fi
ac1cb8d3
VS
31905rm -f conftest.err conftest.$ac_objext \
31906 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31907LIBS=$ac_check_lib_save_LIBS
31908fi
31909echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
31910echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
31911if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
31912 ODBC_LINK=" -lunixodbc"
31913else
31914
31915 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
31916echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
31917if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
31918 echo $ECHO_N "(cached) $ECHO_C" >&6
31919else
31920 ac_check_lib_save_LIBS=$LIBS
31921LIBS="-lodbc $LIBS"
31922cat >conftest.$ac_ext <<_ACEOF
31923/* confdefs.h. */
31924_ACEOF
31925cat confdefs.h >>conftest.$ac_ext
31926cat >>conftest.$ac_ext <<_ACEOF
31927/* end confdefs.h. */
31928
31929/* Override any gcc2 internal prototype to avoid an error. */
31930#ifdef __cplusplus
31931extern "C"
31932#endif
31933/* We use char because int might match the return type of a gcc2
31934 builtin and then its argument prototype would still apply. */
31935char SQLAllocEnv ();
31936int
31937main ()
31938{
31939SQLAllocEnv ();
31940 ;
31941 return 0;
31942}
31943_ACEOF
31944rm -f conftest.$ac_objext conftest$ac_exeext
31945if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31946 (eval $ac_link) 2>conftest.er1
a848cd7e 31947 ac_status=$?
ac1cb8d3
VS
31948 grep -v '^ *+' conftest.er1 >conftest.err
31949 rm -f conftest.er1
31950 cat conftest.err >&5
a848cd7e
SC
31951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31952 (exit $ac_status); } &&
c9a66001 31953 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31955 (eval $ac_try) 2>&5
31956 ac_status=$?
31957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31958 (exit $ac_status); }; } &&
31959 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31961 (eval $ac_try) 2>&5
31962 ac_status=$?
31963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31964 (exit $ac_status); }; }; then
31965 ac_cv_lib_odbc_SQLAllocEnv=yes
31966else
31967 echo "$as_me: failed program was:" >&5
31968sed 's/^/| /' conftest.$ac_ext >&5
31969
31970ac_cv_lib_odbc_SQLAllocEnv=no
31971fi
ac1cb8d3
VS
31972rm -f conftest.err conftest.$ac_objext \
31973 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31974LIBS=$ac_check_lib_save_LIBS
31975fi
31976echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
31977echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
31978if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
31979 ODBC_LINK=" -lodbc"
31980fi
31981
31982
31983fi
31984
31985
31986fi
31987
31988 fi
31989 if test "x$ODBC_LINK" = "x" ; then
31990 if test "$wxUSE_ODBC" = "sys" ; then
31991 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
31992echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
31993 { (exit 1); exit 1; }; }
31994 else
31995 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
31996echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
31997 wxUSE_ODBC=builtin
31998 fi
31999 else
32000 wxUSE_ODBC=sys
32001 fi
32002 fi
a848cd7e 32003
2da0c077
RD
32004 if test "$wxUSE_ODBC" = "builtin" ; then
32005 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
32006#define wxUSE_BUILTIN_IODBC 1
32007_ACEOF
32008
a848cd7e
SC
32009 fi
32010fi
32011
2da0c077
RD
32012if test "$wxUSE_ODBC" != "no" ; then
32013 cat >>confdefs.h <<\_ACEOF
32014#define wxUSE_ODBC 1
32015_ACEOF
32016
32017 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
32018
5ff751d6 32019 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_IODBC_"
2da0c077 32020fi
a848cd7e 32021
01cb68df 32022
a848cd7e 32023if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 32024 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
32025 echo "$as_me:$LINENO: checking for Xinerama" >&5
32026echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
32027
0ad5d837
VZ
32028 ac_find_libraries=
32029 for ac_dir in $SEARCH_LIB;
32030 do
32031 for ac_extension in a so sl dylib dll.a; do
32032 if test -f "$ac_dir/libXinerama.$ac_extension"; then
32033 ac_find_libraries=$ac_dir
32034 break 2
32035 fi
32036 done
32037 done
32038
a848cd7e
SC
32039 if test "$ac_find_libraries" != "" ; then
32040
0ad5d837 32041 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
32042 ac_path_to_link=""
32043 else
0ad5d837
VZ
32044 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32045 result=$?
32046 if test $result = 0; then
32047 ac_path_to_link=""
32048 else
32049 ac_path_to_link=" -L$ac_find_libraries"
32050 fi
a848cd7e
SC
32051 fi
32052
32053 if test "$ac_path_to_link" != " -L/usr/lib" ; then
32054 LDFLAGS="$LDFLAGS $ac_path_to_link"
32055 fi
32056 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
32057 echo "$as_me:$LINENO: result: yes" >&5
32058echo "${ECHO_T}yes" >&6
32059
32060 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
32061echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
32062
0ad5d837
VZ
32063 ac_find_libraries=
32064 for ac_dir in $SEARCH_LIB;
a848cd7e 32065 do
3eca31dc 32066 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
32067 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
32068 ac_find_libraries=$ac_dir
32069 break 2
32070 fi
32071 done
32072 done
32073
32074 if test "$ac_find_libraries" != "" ; then
32075 echo "$as_me:$LINENO: result: yes" >&5
32076echo "${ECHO_T}yes" >&6
32077
32078for ac_header in X11/extensions/xf86vmode.h
32079do
32080as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32081echo "$as_me:$LINENO: checking for $ac_header" >&5
32082echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32083if eval "test \"\${$as_ac_Header+set}\" = set"; then
32084 echo $ECHO_N "(cached) $ECHO_C" >&6
32085else
32086 cat >conftest.$ac_ext <<_ACEOF
32087/* confdefs.h. */
32088_ACEOF
32089cat confdefs.h >>conftest.$ac_ext
32090cat >>conftest.$ac_ext <<_ACEOF
32091/* end confdefs.h. */
32092
32093 #if HAVE_X11_XLIB_H
32094 #include <X11/Xlib.h>
32095 #endif
32096
32097
32098#include <$ac_header>
32099_ACEOF
32100rm -f conftest.$ac_objext
32101if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32102 (eval $ac_compile) 2>conftest.er1
a848cd7e 32103 ac_status=$?
ac1cb8d3
VS
32104 grep -v '^ *+' conftest.er1 >conftest.err
32105 rm -f conftest.er1
32106 cat conftest.err >&5
a848cd7e
SC
32107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32108 (exit $ac_status); } &&
c9a66001 32109 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32111 (eval $ac_try) 2>&5
32112 ac_status=$?
32113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32114 (exit $ac_status); }; } &&
32115 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32117 (eval $ac_try) 2>&5
32118 ac_status=$?
32119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32120 (exit $ac_status); }; }; then
32121 eval "$as_ac_Header=yes"
32122else
32123 echo "$as_me: failed program was:" >&5
32124sed 's/^/| /' conftest.$ac_ext >&5
32125
32126eval "$as_ac_Header=no"
32127fi
ac1cb8d3 32128rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32129fi
32130echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32131echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32132if test `eval echo '${'$as_ac_Header'}'` = yes; then
32133 cat >>confdefs.h <<_ACEOF
32134#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32135_ACEOF
32136
32137 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
32138
32139fi
32140
32141done
32142
32143 else
32144 echo "$as_me:$LINENO: result: no" >&5
32145echo "${ECHO_T}no" >&6
32146 fi
32147
32148 else
32149 echo "$as_me:$LINENO: result: no" >&5
32150echo "${ECHO_T}no" >&6
dcc1b6ad
VS
32151 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
32152echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
32153 wxUSE_DISPLAY="no"
32154 fi
01cb68df
RG
32155 elif test "$wxUSE_MSW" = 1; then
32156
e5efa97e 32157for ac_header in ddraw.h
01cb68df
RG
32158do
32159as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 32160echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
32161echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32162if eval "test \"\${$as_ac_Header+set}\" = set"; then
32163 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 32164else
5294a27e 32165 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
32166/* confdefs.h. */
32167_ACEOF
32168cat confdefs.h >>conftest.$ac_ext
32169cat >>conftest.$ac_ext <<_ACEOF
32170/* end confdefs.h. */
5294a27e
VZ
32171#include <windows.h>
32172
01cb68df
RG
32173#include <$ac_header>
32174_ACEOF
32175rm -f conftest.$ac_objext
32176if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32177 (eval $ac_compile) 2>conftest.er1
01cb68df 32178 ac_status=$?
ac1cb8d3
VS
32179 grep -v '^ *+' conftest.er1 >conftest.err
32180 rm -f conftest.er1
32181 cat conftest.err >&5
01cb68df
RG
32182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32183 (exit $ac_status); } &&
c9a66001 32184 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32186 (eval $ac_try) 2>&5
32187 ac_status=$?
32188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32189 (exit $ac_status); }; } &&
32190 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
32191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32192 (eval $ac_try) 2>&5
32193 ac_status=$?
32194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32195 (exit $ac_status); }; }; then
5294a27e 32196 eval "$as_ac_Header=yes"
01cb68df
RG
32197else
32198 echo "$as_me: failed program was:" >&5
32199sed 's/^/| /' conftest.$ac_ext >&5
32200
5294a27e 32201eval "$as_ac_Header=no"
01cb68df 32202fi
ac1cb8d3 32203rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
32204fi
32205echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32206echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
32207if test `eval echo '${'$as_ac_Header'}'` = yes; then
32208 cat >>confdefs.h <<_ACEOF
32209#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32210_ACEOF
32211
01cb68df
RG
32212fi
32213
32214done
32215
a848cd7e
SC
32216 fi
32217fi
32218
32219
32220USE_OPENGL=0
32221if test "$wxUSE_OPENGL" = "yes"; then
32222 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
32223 OPENGL_LIBS="-framework OpenGL -framework AGL"
32224 elif test "$wxUSE_MSW" = 1; then
32225 OPENGL_LIBS="-lopengl32 -lglu32"
32226 else
32227
32228
32229ac_find_includes=
32230for ac_dir in $SEARCH_INCLUDE /usr/include;
32231 do
32232 if test -f "$ac_dir/GL/gl.h"; then
32233 ac_find_includes=$ac_dir
32234 break
32235 fi
32236 done
32237
32238 if test "$ac_find_includes" != "" ; then
32239 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
32240echo "${ECHO_T}found in $ac_find_includes" >&6
32241
32242 if test "x$ac_find_includes" = "x/usr/include"; then
32243 ac_path_to_include=""
32244 else
32245 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
32246 result=$?
32247 if test $result = 0; then
32248 ac_path_to_include=""
32249 else
32250 ac_path_to_include=" -I$ac_find_includes"
32251 fi
32252 fi
32253
c92ad099 32254 CPPFLAGS="$ac_path_to_include $CPPFLAGS"
a848cd7e
SC
32255 fi
32256
32257 if test "${ac_cv_header_GL_gl_h+set}" = set; then
32258 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
32259echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
32260if test "${ac_cv_header_GL_gl_h+set}" = set; then
32261 echo $ECHO_N "(cached) $ECHO_C" >&6
32262fi
32263echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
32264echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
32265else
32266 # Is the header compilable?
32267echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
32268echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
32269cat >conftest.$ac_ext <<_ACEOF
32270/* confdefs.h. */
32271_ACEOF
32272cat confdefs.h >>conftest.$ac_ext
32273cat >>conftest.$ac_ext <<_ACEOF
32274/* end confdefs.h. */
32275$ac_includes_default
32276#include <GL/gl.h>
32277_ACEOF
32278rm -f conftest.$ac_objext
32279if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32280 (eval $ac_compile) 2>conftest.er1
a848cd7e 32281 ac_status=$?
ac1cb8d3
VS
32282 grep -v '^ *+' conftest.er1 >conftest.err
32283 rm -f conftest.er1
32284 cat conftest.err >&5
a848cd7e
SC
32285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32286 (exit $ac_status); } &&
c9a66001 32287 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32289 (eval $ac_try) 2>&5
32290 ac_status=$?
32291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32292 (exit $ac_status); }; } &&
32293 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32295 (eval $ac_try) 2>&5
32296 ac_status=$?
32297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32298 (exit $ac_status); }; }; then
32299 ac_header_compiler=yes
32300else
32301 echo "$as_me: failed program was:" >&5
32302sed 's/^/| /' conftest.$ac_ext >&5
32303
32304ac_header_compiler=no
32305fi
ac1cb8d3 32306rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32307echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32308echo "${ECHO_T}$ac_header_compiler" >&6
32309
32310# Is the header present?
32311echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
32312echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
32313cat >conftest.$ac_ext <<_ACEOF
32314/* confdefs.h. */
32315_ACEOF
32316cat confdefs.h >>conftest.$ac_ext
32317cat >>conftest.$ac_ext <<_ACEOF
32318/* end confdefs.h. */
32319#include <GL/gl.h>
32320_ACEOF
32321if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32322 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32323 ac_status=$?
32324 grep -v '^ *+' conftest.er1 >conftest.err
32325 rm -f conftest.er1
32326 cat conftest.err >&5
32327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32328 (exit $ac_status); } >/dev/null; then
32329 if test -s conftest.err; then
5d7b7554
VZ
32330 ac_cpp_err=$ac_cxx_preproc_warn_flag
32331 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
32332 else
32333 ac_cpp_err=
32334 fi
32335else
32336 ac_cpp_err=yes
32337fi
32338if test -z "$ac_cpp_err"; then
32339 ac_header_preproc=yes
32340else
32341 echo "$as_me: failed program was:" >&5
32342sed 's/^/| /' conftest.$ac_ext >&5
32343
32344 ac_header_preproc=no
32345fi
32346rm -f conftest.err conftest.$ac_ext
32347echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32348echo "${ECHO_T}$ac_header_preproc" >&6
32349
32350# So? What about this header?
5d7b7554 32351case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 32352 yes:no: )
a848cd7e
SC
32353 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
32354echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
32355 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
32356echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
32357 ac_header_preproc=yes
a848cd7e 32358 ;;
ac1cb8d3 32359 no:yes:* )
a848cd7e
SC
32360 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
32361echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
32362 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
32363echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
32364 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
32365echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
32366 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
32367echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
32368 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
32369echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
32370 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
32371echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
32372 (
32373 cat <<\_ASBOX
ac1cb8d3
VS
32374## ----------------------------------------- ##
32375## Report this to wx-dev@lists.wxwidgets.org ##
32376## ----------------------------------------- ##
a848cd7e
SC
32377_ASBOX
32378 ) |
32379 sed "s/^/$as_me: WARNING: /" >&2
32380 ;;
32381esac
32382echo "$as_me:$LINENO: checking for GL/gl.h" >&5
32383echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
32384if test "${ac_cv_header_GL_gl_h+set}" = set; then
32385 echo $ECHO_N "(cached) $ECHO_C" >&6
32386else
32387 ac_cv_header_GL_gl_h=$ac_header_preproc
32388fi
32389echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
32390echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
32391
32392fi
32393if test $ac_cv_header_GL_gl_h = yes; then
32394
32395 found_gl=0
32396
32397 echo "$as_me:$LINENO: checking for -lGL" >&5
32398echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
32399
0ad5d837
VZ
32400 ac_find_libraries=
32401 for ac_dir in $SEARCH_LIB;
a848cd7e 32402 do
3eca31dc 32403 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
32404 if test -f "$ac_dir/libGL.$ac_extension"; then
32405 ac_find_libraries=$ac_dir
32406 break 2
32407 fi
32408 done
32409 done
32410
32411 if test "$ac_find_libraries" != "" ; then
69120ee4
VZ
32412 echo "$as_me:$LINENO: result: yes" >&5
32413echo "${ECHO_T}yes" >&6
32414
a848cd7e 32415
0ad5d837 32416 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
32417 ac_path_to_link=""
32418 else
0ad5d837
VZ
32419 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32420 result=$?
32421 if test $result = 0; then
32422 ac_path_to_link=""
32423 else
32424 ac_path_to_link=" -L$ac_find_libraries"
32425 fi
a848cd7e
SC
32426 fi
32427
32428 if test "$ac_path_to_link" != " -L/usr/lib" ; then
32429 LDFLAGS_GL="$ac_path_to_link"
32430 fi
32431
69120ee4
VZ
32432 echo "$as_me:$LINENO: checking for -lGLU" >&5
32433echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
a848cd7e 32434
0ad5d837
VZ
32435 ac_find_libraries=
32436 for ac_dir in $SEARCH_LIB;
32437 do
32438 for ac_extension in a so sl dylib dll.a; do
32439 if test -f "$ac_dir/libGLU.$ac_extension"; then
32440 ac_find_libraries=$ac_dir
32441 break 2
32442 fi
32443 done
32444 done
32445
a848cd7e
SC
32446 if test "$ac_find_libraries" != "" ; then
32447
0ad5d837 32448 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
32449 ac_path_to_link=""
32450 else
0ad5d837
VZ
32451 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32452 result=$?
32453 if test $result = 0; then
32454 ac_path_to_link=""
32455 else
32456 ac_path_to_link=" -L$ac_find_libraries"
32457 fi
a848cd7e
SC
32458 fi
32459
32460 if test "$ac_path_to_link" != " -L/usr/lib" -a \
32461 "$ac_path_to_link" != "$LDFLAGS_GL"; then
32462 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
32463 fi
32464
32465 found_gl=1
32466 OPENGL_LIBS="-lGL -lGLU"
32467 echo "$as_me:$LINENO: result: yes" >&5
32468echo "${ECHO_T}yes" >&6
69120ee4
VZ
32469 else
32470 echo "$as_me:$LINENO: result: no" >&5
32471echo "${ECHO_T}no" >&6
a848cd7e 32472 fi
69120ee4
VZ
32473 else
32474 echo "$as_me:$LINENO: result: no" >&5
32475echo "${ECHO_T}no" >&6
a848cd7e
SC
32476 fi
32477
32478 if test "$found_gl" != 1; then
a848cd7e
SC
32479 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
32480echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
32481
0ad5d837
VZ
32482 ac_find_libraries=
32483 for ac_dir in $SEARCH_LIB;
a848cd7e 32484 do
3eca31dc 32485 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
32486 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
32487 ac_find_libraries=$ac_dir
32488 break 2
32489 fi
32490 done
32491 done
32492
32493 if test "$ac_find_libraries" != "" ; then
32494
0ad5d837 32495 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
32496 ac_path_to_link=""
32497 else
0ad5d837
VZ
32498 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32499 result=$?
32500 if test $result = 0; then
32501 ac_path_to_link=""
32502 else
32503 ac_path_to_link=" -L$ac_find_libraries"
32504 fi
a848cd7e
SC
32505 fi
32506
32507 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
32508 OPENGL_LIBS="-lMesaGL -lMesaGLU"
32509 echo "$as_me:$LINENO: result: yes" >&5
32510echo "${ECHO_T}yes" >&6
32511 else
32512 echo "$as_me:$LINENO: result: no" >&5
32513echo "${ECHO_T}no" >&6
32514 fi
32515 fi
32516
32517fi
32518
32519
32520
32521 if test "x$OPENGL_LIBS" = "x"; then
32522 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
32523echo "$as_me: error: OpenGL libraries not available" >&2;}
32524 { (exit 1); exit 1; }; }
32525 fi
32526 fi
32527
32528 if test "$wxUSE_OPENGL" = "yes"; then
32529 USE_OPENGL=1
32530 cat >>confdefs.h <<\_ACEOF
32531#define wxUSE_OPENGL 1
32532_ACEOF
32533
32534 cat >>confdefs.h <<\_ACEOF
32535#define wxUSE_GLCANVAS 1
32536_ACEOF
32537
32538 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
32539 fi
32540fi
32541
a848cd7e
SC
32542
32543if test -n "$TOOLKIT" ; then
32544 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
32545fi
32546
a848cd7e
SC
32547
32548
32549if test "$wxUSE_SHARED" = "yes"; then
32550 case "${host}" in
32551 *-pc-msdosdjgpp )
32552 wxUSE_SHARED=no
32553 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
32554echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
32555 ;;
32556 esac
32557fi
32558
a848cd7e 32559if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
32560
32561
32562 found_versioning=no
32563
32564
32565 if test $found_versioning = no ; then
32566 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
32567echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
32568if test "${wx_cv_version_script+set}" = set; then
32569 echo $ECHO_N "(cached) $ECHO_C" >&6
32570else
32571
32572 echo "VER_1 { *; };" >conftest.sym
32573 echo "int main() { return 0; }" >conftest.cpp
32574
32575 if { ac_try='
32576 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
32577 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
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 if test -s conftest.stderr ; then
32584 wx_cv_version_script=no
32585 else
32586 wx_cv_version_script=yes
32587 fi
32588 else
32589 wx_cv_version_script=no
32590 fi
e5d4b470
MW
32591
32592 if test $wx_cv_version_script = yes
32593 then
32594 echo "struct B { virtual ~B() { } }; \
32595 struct D : public B { }; \
32596 void F() { D d; }" > conftest.cpp
32597
32598 if { ac_try='
32599 $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
32600 -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
32601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32602 (eval $ac_try) 2>&5
32603 ac_status=$?
32604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32605 (exit $ac_status); }; } &&
32606 { ac_try='
32607 $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
32608 -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
32609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32610 (eval $ac_try) 2>&5
32611 ac_status=$?
32612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32613 (exit $ac_status); }; }
32614 then
32615 if { ac_try='
32616 $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
32617 -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
32618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32619 (eval $ac_try) 2>&5
32620 ac_status=$?
32621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32622 (exit $ac_status); }; }
32623 then
32624 wx_cv_version_script=yes
32625 else
32626 wx_cv_version_script=no
32627 fi
32628 fi
32629 fi
32630
a848cd7e 32631 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
e5d4b470 32632 rm -f conftest1.output conftest2.output conftest3.output
a848cd7e
SC
32633
32634fi
32635echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
32636echo "${ECHO_T}$wx_cv_version_script" >&6
32637 if test $wx_cv_version_script = yes ; then
32638 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
32639 fi
32640 fi
32641
32642
32643 case "${host}" in
32644 *-*-linux* | *-*-gnu* )
32645 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 32646 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
6ebeb4c7 32647 ;;
a848cd7e
SC
32648
32649 *-*-solaris2* )
32650 if test "$GCC" = yes ; then
c92ad099 32651 CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
a848cd7e
SC
32652
32653 saveLdflags="$LDFLAGS"
32654 LDFLAGS="$saveLdflags -Wl,-rpath,/"
32655 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
32656echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
32657 cat >conftest.$ac_ext <<_ACEOF
32658/* confdefs.h. */
32659_ACEOF
32660cat confdefs.h >>conftest.$ac_ext
32661cat >>conftest.$ac_ext <<_ACEOF
32662/* end confdefs.h. */
32663
32664int
32665main ()
32666{
32667
32668 ;
32669 return 0;
32670}
32671_ACEOF
32672rm -f conftest.$ac_objext conftest$ac_exeext
32673if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32674 (eval $ac_link) 2>conftest.er1
a848cd7e 32675 ac_status=$?
ac1cb8d3
VS
32676 grep -v '^ *+' conftest.er1 >conftest.err
32677 rm -f conftest.er1
32678 cat conftest.err >&5
a848cd7e
SC
32679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32680 (exit $ac_status); } &&
c9a66001 32681 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32683 (eval $ac_try) 2>&5
32684 ac_status=$?
32685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32686 (exit $ac_status); }; } &&
32687 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32689 (eval $ac_try) 2>&5
32690 ac_status=$?
32691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32692 (exit $ac_status); }; }; then
32693
32694 echo "$as_me:$LINENO: result: yes" >&5
32695echo "${ECHO_T}yes" >&6
32696 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 32697 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
32698
32699else
32700 echo "$as_me: failed program was:" >&5
32701sed 's/^/| /' conftest.$ac_ext >&5
32702
32703
32704 echo "$as_me:$LINENO: result: no" >&5
32705echo "${ECHO_T}no" >&6
32706 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
32707echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
32708 LDFLAGS="$saveLdflags -Wl,-R,/"
32709 cat >conftest.$ac_ext <<_ACEOF
32710/* confdefs.h. */
32711_ACEOF
32712cat confdefs.h >>conftest.$ac_ext
32713cat >>conftest.$ac_ext <<_ACEOF
32714/* end confdefs.h. */
32715
32716int
32717main ()
32718{
32719
32720 ;
32721 return 0;
32722}
32723_ACEOF
32724rm -f conftest.$ac_objext conftest$ac_exeext
32725if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32726 (eval $ac_link) 2>conftest.er1
a848cd7e 32727 ac_status=$?
ac1cb8d3
VS
32728 grep -v '^ *+' conftest.er1 >conftest.err
32729 rm -f conftest.er1
32730 cat conftest.err >&5
a848cd7e
SC
32731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32732 (exit $ac_status); } &&
c9a66001 32733 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32735 (eval $ac_try) 2>&5
32736 ac_status=$?
32737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32738 (exit $ac_status); }; } &&
32739 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32741 (eval $ac_try) 2>&5
32742 ac_status=$?
32743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32744 (exit $ac_status); }; }; then
32745
ffa0583f 32746 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 32747echo "${ECHO_T}yes" >&6
ffa0583f
RL
32748 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
32749 WXCONFIG_RPATH="-Wl,-R,\$libdir"
32750
a848cd7e
SC
32751else
32752 echo "$as_me: failed program was:" >&5
32753sed 's/^/| /' conftest.$ac_ext >&5
32754
32755
32756 echo "$as_me:$LINENO: result: no" >&5
32757echo "${ECHO_T}no" >&6
32758
32759fi
ac1cb8d3
VS
32760rm -f conftest.err conftest.$ac_objext \
32761 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32762
32763fi
ac1cb8d3
VS
32764rm -f conftest.err conftest.$ac_objext \
32765 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32766 LDFLAGS="$saveLdflags"
32767 else
a848cd7e 32768 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 32769 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
32770 fi
32771 ;;
32772
cfda0ea8 32773 *-*-darwin* )
0caebc27
MW
32774 install_name_tool=`which install_name_tool`
32775 if test "$install_name_tool" -a -x "$install_name_tool"; then
32776 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
32777 cat <<EOF >change-install-names
a848cd7e
SC
32778#!/bin/sh
32779libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
32780inst_cmd="install_name_tool "
32781for i in \${libnames} ; do
32782 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
32783done
32784\${inst_cmd} \${3}
32785EOF
0caebc27
MW
32786 chmod +x change-install-names
32787 fi
a848cd7e
SC
32788 ;;
32789
32790 *-*-cygwin* | *-*-mingw32* )
5ff751d6
VZ
32791 WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
32792 ;;
a848cd7e 32793
81f90336
MW
32794 *-*-hpux* )
32795 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
32796 WXCONFIG_RPATH="-Wl,+b,\$libdir"
5ff751d6 32797 ;;
81f90336 32798
a848cd7e 32799 esac
ceec2216 32800
ffa0583f
RL
32801 if test $wxUSE_RPATH = "no"; then
32802 SAMPLES_RPATH_FLAG=''
32803 SAMPLES_RPATH_POSTLINK=''
32804 WXCONFIG_RPATH=''
32805 fi
32806
32807 SHARED=1
32808
32809else
32810
ceec2216
RL
32811 config_linkage_component="-static"
32812 SHARED=0
ffa0583f 32813
ceec2216 32814fi
a848cd7e 32815
a848cd7e 32816
ceec2216
RL
32817UNICODE=0
32818lib_unicode_suffix=
32819WX_CHARTYPE="ansi"
32820if test "$wxUSE_UNICODE" = "yes"; then
32821 lib_unicode_suffix=u
32822 WX_CHARTYPE="unicode"
32823 UNICODE=1
a848cd7e
SC
32824fi
32825
ceec2216
RL
32826lib_debug_suffix=
32827WX_DEBUGTYPE="release"
32828DEBUG_FLAG=0
32829if test "$wxUSE_DEBUG_FLAG" = "yes"; then
32830 lib_debug_suffix=d
32831 WX_DEBUGTYPE="debug"
32832 DEBUG_FLAG=1
32833fi
a848cd7e 32834
ceec2216
RL
32835WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
32836WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 32837
ceec2216
RL
32838DEBUG_INFO=0
32839if test "$wxUSE_DEBUG_INFO" = "yes"; then
32840 DEBUG_INFO=1
32841fi
a848cd7e 32842
ceec2216 32843WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 32844
ceec2216 32845TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 32846
ceec2216 32847TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 32848
ceec2216
RL
32849if test "$cross_compiling" = "yes"; then
32850 HOST_SUFFIX="-$host_alias"
32851 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
32852 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
32853fi
32854
dd21ced8 32855WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
abc736fd
MW
32856if test "${TOOLKIT_DIR}" = "os2"; then
32857 WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
32858else
32859 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
32860fi
ceec2216
RL
32861
32862
32863
1d1af5ea
DE
32864if test "$wxUSE_COCOA" = 1; then
32865
32866
32867 ac_ext=c
32868ac_cpp='$CPP $CPPFLAGS'
32869ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32870ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32871ac_compiler_gnu=$ac_cv_c_compiler_gnu
32872
32873ac_ext=m
32874
32875 echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
32876echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
32877 cat >conftest.$ac_ext <<_ACEOF
32878/* confdefs.h. */
32879_ACEOF
32880cat confdefs.h >>conftest.$ac_ext
32881cat >>conftest.$ac_ext <<_ACEOF
32882/* end confdefs.h. */
32883#include <AppKit/NSEvent.h>
32884#include <CoreFoundation/CoreFoundation.h>
32885
32886int
32887main ()
32888{
32889
32890 ;
32891 return 0;
32892}
32893_ACEOF
32894rm -f conftest.$ac_objext
32895if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32896 (eval $ac_compile) 2>conftest.er1
32897 ac_status=$?
32898 grep -v '^ *+' conftest.er1 >conftest.err
32899 rm -f conftest.er1
32900 cat conftest.err >&5
32901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32902 (exit $ac_status); } &&
c9a66001 32903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
32904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32905 (eval $ac_try) 2>&5
32906 ac_status=$?
32907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32908 (exit $ac_status); }; } &&
32909 { ac_try='test -s conftest.$ac_objext'
32910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32911 (eval $ac_try) 2>&5
32912 ac_status=$?
32913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32914 (exit $ac_status); }; }; then
32915 echo "$as_me:$LINENO: result: no" >&5
32916echo "${ECHO_T}no" >&6
32917else
32918 echo "$as_me: failed program was:" >&5
32919sed 's/^/| /' conftest.$ac_ext >&5
32920
32921echo "$as_me:$LINENO: result: yes" >&5
32922echo "${ECHO_T}yes" >&6
32923 echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
32924echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
32925 cat >conftest.$ac_ext <<_ACEOF
32926/* confdefs.h. */
32927_ACEOF
32928cat confdefs.h >>conftest.$ac_ext
32929cat >>conftest.$ac_ext <<_ACEOF
32930/* end confdefs.h. */
32931#define __Point__ 1
32932#include <AppKit/NSEvent.h>
32933#include <CoreFoundation/CoreFoundation.h>
32934
32935int
32936main ()
32937{
32938
32939 ;
32940 return 0;
32941}
32942_ACEOF
32943rm -f conftest.$ac_objext
32944if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32945 (eval $ac_compile) 2>conftest.er1
32946 ac_status=$?
32947 grep -v '^ *+' conftest.er1 >conftest.err
32948 rm -f conftest.er1
32949 cat conftest.err >&5
32950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32951 (exit $ac_status); } &&
c9a66001 32952 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
32953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32954 (eval $ac_try) 2>&5
32955 ac_status=$?
32956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32957 (exit $ac_status); }; } &&
32958 { ac_try='test -s conftest.$ac_objext'
32959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32960 (eval $ac_try) 2>&5
32961 ac_status=$?
32962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32963 (exit $ac_status); }; }; then
32964 echo "$as_me:$LINENO: result: yes" >&5
32965echo "${ECHO_T}yes" >&6
32966 cat >>confdefs.h <<\_ACEOF
32967#define __Point__ 1
32968_ACEOF
32969
32970
32971else
32972 echo "$as_me: failed program was:" >&5
32973sed 's/^/| /' conftest.$ac_ext >&5
32974
32975{ { echo "$as_me:$LINENO: error: no
32976See \`config.log' for more details." >&5
32977echo "$as_me: error: no
32978See \`config.log' for more details." >&2;}
32979 { (exit 1); exit 1; }; }
32980
32981fi
32982rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32983
32984fi
32985rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
32986 ac_ext=cc
32987ac_cpp='$CXXCPP $CPPFLAGS'
32988ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32989ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32990ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1d1af5ea
DE
32991
32992fi
32993
a848cd7e 32994if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
32995 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
32996 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 32997
a848cd7e 32998 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
32999
33000 # Extract the first word of "Rez", so it can be a program name with args.
33001set dummy Rez; ac_word=$2
33002echo "$as_me:$LINENO: checking for $ac_word" >&5
33003echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 33004if test "${ac_cv_prog_REZ+set}" = set; then
a848cd7e
SC
33005 echo $ECHO_N "(cached) $ECHO_C" >&6
33006else
8ced02f6
DE
33007 if test -n "$REZ"; then
33008 ac_cv_prog_REZ="$REZ" # Let the user override the test.
a848cd7e
SC
33009else
33010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33011for as_dir in $PATH
33012do
33013 IFS=$as_save_IFS
33014 test -z "$as_dir" && as_dir=.
33015 for ac_exec_ext in '' $ac_executable_extensions; do
33016 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 33017 ac_cv_prog_REZ="Rez"
a848cd7e
SC
33018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33019 break 2
33020 fi
33021done
33022done
33023
8ced02f6 33024 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
a848cd7e
SC
33025fi
33026fi
8ced02f6
DE
33027REZ=$ac_cv_prog_REZ
33028if test -n "$REZ"; then
33029 echo "$as_me:$LINENO: result: $REZ" >&5
33030echo "${ECHO_T}$REZ" >&6
a848cd7e
SC
33031else
33032 echo "$as_me:$LINENO: result: no" >&5
33033echo "${ECHO_T}no" >&6
33034fi
33035
33036 # Extract the first word of "DeRez", so it can be a program name with args.
33037set dummy DeRez; ac_word=$2
33038echo "$as_me:$LINENO: checking for $ac_word" >&5
33039echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33040if test "${ac_cv_prog_DEREZ+set}" = set; then
33041 echo $ECHO_N "(cached) $ECHO_C" >&6
33042else
33043 if test -n "$DEREZ"; then
33044 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
33045else
33046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33047for as_dir in $PATH
33048do
33049 IFS=$as_save_IFS
33050 test -z "$as_dir" && as_dir=.
33051 for ac_exec_ext in '' $ac_executable_extensions; do
33052 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33053 ac_cv_prog_DEREZ="DeRez"
33054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33055 break 2
33056 fi
33057done
33058done
33059
33060 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
33061fi
33062fi
33063DEREZ=$ac_cv_prog_DEREZ
33064if test -n "$DEREZ"; then
33065 echo "$as_me:$LINENO: result: $DEREZ" >&5
33066echo "${ECHO_T}$DEREZ" >&6
33067else
33068 echo "$as_me:$LINENO: result: no" >&5
33069echo "${ECHO_T}no" >&6
33070fi
33071
33072 # Extract the first word of "SetFile", so it can be a program name with args.
33073set dummy SetFile; ac_word=$2
33074echo "$as_me:$LINENO: checking for $ac_word" >&5
33075echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33076if test "${ac_cv_prog_SETFILE+set}" = set; then
33077 echo $ECHO_N "(cached) $ECHO_C" >&6
33078else
33079 if test -n "$SETFILE"; then
33080 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
33081else
33082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33083for as_dir in $PATH
33084do
33085 IFS=$as_save_IFS
33086 test -z "$as_dir" && as_dir=.
33087 for ac_exec_ext in '' $ac_executable_extensions; do
33088 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33089 ac_cv_prog_SETFILE="SetFile"
33090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33091 break 2
33092 fi
33093done
33094done
33095
33096 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
33097fi
33098fi
33099SETFILE=$ac_cv_prog_SETFILE
33100if test -n "$SETFILE"; then
33101 echo "$as_me:$LINENO: result: $SETFILE" >&5
33102echo "${ECHO_T}$SETFILE" >&6
33103else
33104 echo "$as_me:$LINENO: result: no" >&5
33105echo "${ECHO_T}no" >&6
33106fi
33107
33108
33109 MACSETFILE="\$(SETFILE)"
33110
33111 if test "$wxUSE_MAC" = 1; then
8ced02f6 33112 POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
004ee6da
RL
33113 RESCOMP="$REZ"
33114 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e 33115 else
004ee6da
RL
33116 POSTLINK_COMMAND="echo -n | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
33117 RESCOMP="echo -n \| $REZ"
33118 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
a848cd7e 33119 fi
004ee6da 33120
a848cd7e 33121else
ffa0583f 33122 MACSETFILE="@true"
a848cd7e 33123
8ced02f6 33124 if test "$wxUSE_PM" = 1; then
004ee6da
RL
33125 RESCOMP="emxbind"
33126 WXCONFIG_RESFLAGS="-ep"
33127
33128 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
a848cd7e 33129 else
8ced02f6 33130 POSTLINK_COMMAND="@true"
a848cd7e 33131 fi
004ee6da 33132
a848cd7e
SC
33133fi
33134
33135
33136
33137echo "$as_me:$LINENO: checking for mode_t" >&5
33138echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
33139if test "${ac_cv_type_mode_t+set}" = set; then
33140 echo $ECHO_N "(cached) $ECHO_C" >&6
33141else
33142 cat >conftest.$ac_ext <<_ACEOF
33143/* confdefs.h. */
33144_ACEOF
33145cat confdefs.h >>conftest.$ac_ext
33146cat >>conftest.$ac_ext <<_ACEOF
33147/* end confdefs.h. */
33148$ac_includes_default
33149int
33150main ()
33151{
33152if ((mode_t *) 0)
33153 return 0;
33154if (sizeof (mode_t))
33155 return 0;
33156 ;
33157 return 0;
33158}
33159_ACEOF
33160rm -f conftest.$ac_objext
33161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33162 (eval $ac_compile) 2>conftest.er1
a848cd7e 33163 ac_status=$?
ac1cb8d3
VS
33164 grep -v '^ *+' conftest.er1 >conftest.err
33165 rm -f conftest.er1
33166 cat conftest.err >&5
a848cd7e
SC
33167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33168 (exit $ac_status); } &&
c9a66001 33169 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33171 (eval $ac_try) 2>&5
33172 ac_status=$?
33173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33174 (exit $ac_status); }; } &&
33175 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33177 (eval $ac_try) 2>&5
33178 ac_status=$?
33179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33180 (exit $ac_status); }; }; then
33181 ac_cv_type_mode_t=yes
33182else
33183 echo "$as_me: failed program was:" >&5
33184sed 's/^/| /' conftest.$ac_ext >&5
33185
33186ac_cv_type_mode_t=no
33187fi
ac1cb8d3 33188rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33189fi
33190echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33191echo "${ECHO_T}$ac_cv_type_mode_t" >&6
33192if test $ac_cv_type_mode_t = yes; then
33193 :
33194else
33195
33196cat >>confdefs.h <<_ACEOF
33197#define mode_t int
33198_ACEOF
33199
33200fi
33201
33202echo "$as_me:$LINENO: checking for off_t" >&5
33203echo $ECHO_N "checking for off_t... $ECHO_C" >&6
33204if test "${ac_cv_type_off_t+set}" = set; then
33205 echo $ECHO_N "(cached) $ECHO_C" >&6
33206else
33207 cat >conftest.$ac_ext <<_ACEOF
33208/* confdefs.h. */
33209_ACEOF
33210cat confdefs.h >>conftest.$ac_ext
33211cat >>conftest.$ac_ext <<_ACEOF
33212/* end confdefs.h. */
33213$ac_includes_default
33214int
33215main ()
33216{
33217if ((off_t *) 0)
33218 return 0;
33219if (sizeof (off_t))
33220 return 0;
33221 ;
33222 return 0;
33223}
33224_ACEOF
33225rm -f conftest.$ac_objext
33226if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33227 (eval $ac_compile) 2>conftest.er1
a848cd7e 33228 ac_status=$?
ac1cb8d3
VS
33229 grep -v '^ *+' conftest.er1 >conftest.err
33230 rm -f conftest.er1
33231 cat conftest.err >&5
a848cd7e
SC
33232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33233 (exit $ac_status); } &&
c9a66001 33234 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33236 (eval $ac_try) 2>&5
33237 ac_status=$?
33238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33239 (exit $ac_status); }; } &&
33240 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33242 (eval $ac_try) 2>&5
33243 ac_status=$?
33244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33245 (exit $ac_status); }; }; then
33246 ac_cv_type_off_t=yes
33247else
33248 echo "$as_me: failed program was:" >&5
33249sed 's/^/| /' conftest.$ac_ext >&5
33250
33251ac_cv_type_off_t=no
33252fi
ac1cb8d3 33253rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33254fi
33255echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33256echo "${ECHO_T}$ac_cv_type_off_t" >&6
33257if test $ac_cv_type_off_t = yes; then
33258 :
33259else
33260
33261cat >>confdefs.h <<_ACEOF
33262#define off_t long
33263_ACEOF
33264
33265fi
33266
33267echo "$as_me:$LINENO: checking for pid_t" >&5
33268echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
33269if test "${ac_cv_type_pid_t+set}" = set; then
33270 echo $ECHO_N "(cached) $ECHO_C" >&6
33271else
33272 cat >conftest.$ac_ext <<_ACEOF
33273/* confdefs.h. */
33274_ACEOF
33275cat confdefs.h >>conftest.$ac_ext
33276cat >>conftest.$ac_ext <<_ACEOF
33277/* end confdefs.h. */
33278$ac_includes_default
33279int
33280main ()
33281{
33282if ((pid_t *) 0)
33283 return 0;
33284if (sizeof (pid_t))
33285 return 0;
33286 ;
33287 return 0;
33288}
33289_ACEOF
33290rm -f conftest.$ac_objext
33291if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33292 (eval $ac_compile) 2>conftest.er1
a848cd7e 33293 ac_status=$?
ac1cb8d3
VS
33294 grep -v '^ *+' conftest.er1 >conftest.err
33295 rm -f conftest.er1
33296 cat conftest.err >&5
a848cd7e
SC
33297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33298 (exit $ac_status); } &&
c9a66001 33299 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33301 (eval $ac_try) 2>&5
33302 ac_status=$?
33303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33304 (exit $ac_status); }; } &&
33305 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33307 (eval $ac_try) 2>&5
33308 ac_status=$?
33309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33310 (exit $ac_status); }; }; then
33311 ac_cv_type_pid_t=yes
33312else
33313 echo "$as_me: failed program was:" >&5
33314sed 's/^/| /' conftest.$ac_ext >&5
33315
33316ac_cv_type_pid_t=no
33317fi
ac1cb8d3 33318rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33319fi
33320echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33321echo "${ECHO_T}$ac_cv_type_pid_t" >&6
33322if test $ac_cv_type_pid_t = yes; then
33323 :
33324else
33325
33326cat >>confdefs.h <<_ACEOF
33327#define pid_t int
33328_ACEOF
33329
33330fi
33331
33332echo "$as_me:$LINENO: checking for size_t" >&5
33333echo $ECHO_N "checking for size_t... $ECHO_C" >&6
33334if test "${ac_cv_type_size_t+set}" = set; then
33335 echo $ECHO_N "(cached) $ECHO_C" >&6
33336else
33337 cat >conftest.$ac_ext <<_ACEOF
33338/* confdefs.h. */
33339_ACEOF
33340cat confdefs.h >>conftest.$ac_ext
33341cat >>conftest.$ac_ext <<_ACEOF
33342/* end confdefs.h. */
33343$ac_includes_default
33344int
33345main ()
33346{
33347if ((size_t *) 0)
33348 return 0;
33349if (sizeof (size_t))
33350 return 0;
33351 ;
33352 return 0;
33353}
33354_ACEOF
33355rm -f conftest.$ac_objext
33356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33357 (eval $ac_compile) 2>conftest.er1
a848cd7e 33358 ac_status=$?
ac1cb8d3
VS
33359 grep -v '^ *+' conftest.er1 >conftest.err
33360 rm -f conftest.er1
33361 cat conftest.err >&5
a848cd7e
SC
33362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33363 (exit $ac_status); } &&
c9a66001 33364 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33366 (eval $ac_try) 2>&5
33367 ac_status=$?
33368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33369 (exit $ac_status); }; } &&
33370 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33372 (eval $ac_try) 2>&5
33373 ac_status=$?
33374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33375 (exit $ac_status); }; }; then
33376 ac_cv_type_size_t=yes
33377else
33378 echo "$as_me: failed program was:" >&5
33379sed 's/^/| /' conftest.$ac_ext >&5
33380
33381ac_cv_type_size_t=no
33382fi
ac1cb8d3 33383rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33384fi
33385echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33386echo "${ECHO_T}$ac_cv_type_size_t" >&6
33387if test $ac_cv_type_size_t = yes; then
33388 :
33389else
33390
33391cat >>confdefs.h <<_ACEOF
33392#define size_t unsigned
33393_ACEOF
33394
33395fi
33396
33397echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33398echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
33399if test "${ac_cv_type_uid_t+set}" = set; then
33400 echo $ECHO_N "(cached) $ECHO_C" >&6
33401else
33402 cat >conftest.$ac_ext <<_ACEOF
33403/* confdefs.h. */
33404_ACEOF
33405cat confdefs.h >>conftest.$ac_ext
33406cat >>conftest.$ac_ext <<_ACEOF
33407/* end confdefs.h. */
33408#include <sys/types.h>
33409
33410_ACEOF
33411if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33412 $EGREP "uid_t" >/dev/null 2>&1; then
33413 ac_cv_type_uid_t=yes
33414else
33415 ac_cv_type_uid_t=no
33416fi
33417rm -f conftest*
33418
33419fi
33420echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33421echo "${ECHO_T}$ac_cv_type_uid_t" >&6
33422if test $ac_cv_type_uid_t = no; then
33423
33424cat >>confdefs.h <<\_ACEOF
33425#define uid_t int
33426_ACEOF
33427
33428
33429cat >>confdefs.h <<\_ACEOF
33430#define gid_t int
33431_ACEOF
33432
33433fi
33434
33435
d51253e8
RL
33436echo "$as_me:$LINENO: checking for ssize_t" >&5
33437echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
33438if test "${ac_cv_type_ssize_t+set}" = set; then
33439 echo $ECHO_N "(cached) $ECHO_C" >&6
33440else
33441 cat >conftest.$ac_ext <<_ACEOF
33442/* confdefs.h. */
33443_ACEOF
33444cat confdefs.h >>conftest.$ac_ext
33445cat >>conftest.$ac_ext <<_ACEOF
33446/* end confdefs.h. */
33447$ac_includes_default
33448int
33449main ()
33450{
33451if ((ssize_t *) 0)
33452 return 0;
33453if (sizeof (ssize_t))
33454 return 0;
33455 ;
33456 return 0;
33457}
33458_ACEOF
33459rm -f conftest.$ac_objext
33460if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33461 (eval $ac_compile) 2>conftest.er1
33462 ac_status=$?
33463 grep -v '^ *+' conftest.er1 >conftest.err
33464 rm -f conftest.er1
33465 cat conftest.err >&5
33466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33467 (exit $ac_status); } &&
c9a66001 33468 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d51253e8
RL
33469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33470 (eval $ac_try) 2>&5
33471 ac_status=$?
33472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33473 (exit $ac_status); }; } &&
33474 { ac_try='test -s conftest.$ac_objext'
33475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33476 (eval $ac_try) 2>&5
33477 ac_status=$?
33478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33479 (exit $ac_status); }; }; then
33480 ac_cv_type_ssize_t=yes
33481else
33482 echo "$as_me: failed program was:" >&5
33483sed 's/^/| /' conftest.$ac_ext >&5
33484
33485ac_cv_type_ssize_t=no
33486fi
33487rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33488fi
33489echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
33490echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
33491if test $ac_cv_type_ssize_t = yes; then
33492
33493cat >>confdefs.h <<_ACEOF
33494#define HAVE_SSIZE_T 1
33495_ACEOF
33496
33497
33498fi
33499
33500
a848cd7e
SC
33501echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
33502echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
33503if test "${wx_cv_size_t_is_uint+set}" = set; then
33504 echo $ECHO_N "(cached) $ECHO_C" >&6
33505else
33506
33507 cat >conftest.$ac_ext <<_ACEOF
33508/* confdefs.h. */
33509_ACEOF
33510cat confdefs.h >>conftest.$ac_ext
33511cat >>conftest.$ac_ext <<_ACEOF
33512/* end confdefs.h. */
33513#include <stddef.h>
33514int
33515main ()
33516{
33517
33518 return 0; }
33519
33520 struct Foo { void foo(size_t); void foo(unsigned int); };
33521
33522 int bar() {
33523
33524 ;
33525 return 0;
33526}
33527_ACEOF
33528rm -f conftest.$ac_objext
33529if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33530 (eval $ac_compile) 2>conftest.er1
a848cd7e 33531 ac_status=$?
ac1cb8d3
VS
33532 grep -v '^ *+' conftest.er1 >conftest.err
33533 rm -f conftest.er1
33534 cat conftest.err >&5
a848cd7e
SC
33535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33536 (exit $ac_status); } &&
c9a66001 33537 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33539 (eval $ac_try) 2>&5
33540 ac_status=$?
33541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33542 (exit $ac_status); }; } &&
33543 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33545 (eval $ac_try) 2>&5
33546 ac_status=$?
33547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33548 (exit $ac_status); }; }; then
33549 wx_cv_size_t_is_uint=no
33550else
33551 echo "$as_me: failed program was:" >&5
33552sed 's/^/| /' conftest.$ac_ext >&5
33553
33554wx_cv_size_t_is_uint=yes
33555
33556fi
ac1cb8d3 33557rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33558
33559
33560fi
33561echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
33562echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
33563
33564if test "$wx_cv_size_t_is_uint" = "yes"; then
33565 cat >>confdefs.h <<\_ACEOF
33566#define wxSIZE_T_IS_UINT 1
33567_ACEOF
33568
33569else
33570 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
33571echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
33572if test "${wx_cv_size_t_is_ulong+set}" = set; then
33573 echo $ECHO_N "(cached) $ECHO_C" >&6
33574else
33575 cat >conftest.$ac_ext <<_ACEOF
33576/* confdefs.h. */
33577_ACEOF
33578cat confdefs.h >>conftest.$ac_ext
33579cat >>conftest.$ac_ext <<_ACEOF
33580/* end confdefs.h. */
33581#include <stddef.h>
33582int
33583main ()
33584{
33585
33586 return 0; }
33587
33588 struct Foo { void foo(size_t); void foo(unsigned long); };
33589
33590 int bar() {
33591
33592 ;
33593 return 0;
33594}
33595_ACEOF
33596rm -f conftest.$ac_objext
33597if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33598 (eval $ac_compile) 2>conftest.er1
a848cd7e 33599 ac_status=$?
ac1cb8d3
VS
33600 grep -v '^ *+' conftest.er1 >conftest.err
33601 rm -f conftest.er1
33602 cat conftest.err >&5
a848cd7e
SC
33603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33604 (exit $ac_status); } &&
c9a66001 33605 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33607 (eval $ac_try) 2>&5
33608 ac_status=$?
33609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33610 (exit $ac_status); }; } &&
33611 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33613 (eval $ac_try) 2>&5
33614 ac_status=$?
33615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33616 (exit $ac_status); }; }; then
33617 wx_cv_size_t_is_ulong=no
33618else
33619 echo "$as_me: failed program was:" >&5
33620sed 's/^/| /' conftest.$ac_ext >&5
33621
33622wx_cv_size_t_is_ulong=yes
33623
33624fi
ac1cb8d3 33625rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33626
33627fi
33628echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
33629echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
33630
33631 if test "$wx_cv_size_t_is_ulong" = "yes"; then
33632 cat >>confdefs.h <<\_ACEOF
33633#define wxSIZE_T_IS_ULONG 1
33634_ACEOF
33635
33636 fi
33637fi
33638
a848cd7e
SC
33639
33640echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
33641echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
33642if test "${wx_cv_struct_pw_gecos+set}" = set; then
33643 echo $ECHO_N "(cached) $ECHO_C" >&6
33644else
33645
33646 cat >conftest.$ac_ext <<_ACEOF
33647/* confdefs.h. */
33648_ACEOF
33649cat confdefs.h >>conftest.$ac_ext
33650cat >>conftest.$ac_ext <<_ACEOF
33651/* end confdefs.h. */
33652#include <pwd.h>
33653int
33654main ()
33655{
33656
33657 char *p;
33658 struct passwd *pw;
33659 p = pw->pw_gecos;
33660
33661 ;
33662 return 0;
33663}
33664_ACEOF
33665rm -f conftest.$ac_objext
33666if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33667 (eval $ac_compile) 2>conftest.er1
a848cd7e 33668 ac_status=$?
ac1cb8d3
VS
33669 grep -v '^ *+' conftest.er1 >conftest.err
33670 rm -f conftest.er1
33671 cat conftest.err >&5
a848cd7e
SC
33672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33673 (exit $ac_status); } &&
c9a66001 33674 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33676 (eval $ac_try) 2>&5
33677 ac_status=$?
33678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33679 (exit $ac_status); }; } &&
33680 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33682 (eval $ac_try) 2>&5
33683 ac_status=$?
33684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33685 (exit $ac_status); }; }; then
33686
33687 wx_cv_struct_pw_gecos=yes
33688
33689else
33690 echo "$as_me: failed program was:" >&5
33691sed 's/^/| /' conftest.$ac_ext >&5
33692
33693
33694 wx_cv_struct_pw_gecos=no
33695
33696
33697fi
ac1cb8d3 33698rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33699
33700
33701fi
33702echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
33703echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
33704
33705if test "$wx_cv_struct_pw_gecos" = "yes"; then
33706 cat >>confdefs.h <<\_ACEOF
33707#define HAVE_PW_GECOS 1
33708_ACEOF
33709
33710fi
33711
33712
47a7e797 33713if test "$wxUSE_WCHAR_T" = "yes"; then
a848cd7e
SC
33714 cat >>confdefs.h <<\_ACEOF
33715#define wxUSE_WCHAR_T 1
33716_ACEOF
33717
33718
33719 WCSLEN_FOUND=0
33720 WCHAR_LINK=
33721
33722for ac_func in wcslen
33723do
33724as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33725echo "$as_me:$LINENO: checking for $ac_func" >&5
33726echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33727if eval "test \"\${$as_ac_var+set}\" = set"; then
33728 echo $ECHO_N "(cached) $ECHO_C" >&6
33729else
33730 cat >conftest.$ac_ext <<_ACEOF
33731/* confdefs.h. */
33732_ACEOF
33733cat confdefs.h >>conftest.$ac_ext
33734cat >>conftest.$ac_ext <<_ACEOF
33735/* end confdefs.h. */
ac1cb8d3
VS
33736/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33737 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33738#define $ac_func innocuous_$ac_func
33739
a848cd7e
SC
33740/* System header to define __stub macros and hopefully few prototypes,
33741 which can conflict with char $ac_func (); below.
33742 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33743 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33744
a848cd7e
SC
33745#ifdef __STDC__
33746# include <limits.h>
33747#else
33748# include <assert.h>
33749#endif
ac1cb8d3
VS
33750
33751#undef $ac_func
33752
a848cd7e
SC
33753/* Override any gcc2 internal prototype to avoid an error. */
33754#ifdef __cplusplus
33755extern "C"
33756{
33757#endif
33758/* We use char because int might match the return type of a gcc2
33759 builtin and then its argument prototype would still apply. */
33760char $ac_func ();
33761/* The GNU C library defines this for functions which it implements
33762 to always fail with ENOSYS. Some functions are actually named
33763 something starting with __ and the normal name is an alias. */
33764#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33765choke me
33766#else
33767char (*f) () = $ac_func;
33768#endif
33769#ifdef __cplusplus
33770}
33771#endif
33772
33773int
33774main ()
33775{
33776return f != $ac_func;
33777 ;
33778 return 0;
33779}
33780_ACEOF
33781rm -f conftest.$ac_objext conftest$ac_exeext
33782if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33783 (eval $ac_link) 2>conftest.er1
a848cd7e 33784 ac_status=$?
ac1cb8d3
VS
33785 grep -v '^ *+' conftest.er1 >conftest.err
33786 rm -f conftest.er1
33787 cat conftest.err >&5
a848cd7e
SC
33788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33789 (exit $ac_status); } &&
c9a66001 33790 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33792 (eval $ac_try) 2>&5
33793 ac_status=$?
33794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33795 (exit $ac_status); }; } &&
33796 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33798 (eval $ac_try) 2>&5
33799 ac_status=$?
33800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33801 (exit $ac_status); }; }; then
33802 eval "$as_ac_var=yes"
33803else
33804 echo "$as_me: failed program was:" >&5
33805sed 's/^/| /' conftest.$ac_ext >&5
33806
33807eval "$as_ac_var=no"
33808fi
ac1cb8d3
VS
33809rm -f conftest.err conftest.$ac_objext \
33810 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33811fi
33812echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33813echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33814if test `eval echo '${'$as_ac_var'}'` = yes; then
33815 cat >>confdefs.h <<_ACEOF
33816#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33817_ACEOF
33818 WCSLEN_FOUND=1
33819fi
33820done
33821
33822
33823 if test "$WCSLEN_FOUND" = 0; then
33824 if test "$TOOLKIT" = "MSW"; then
33825 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
33826echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
33827if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
33828 echo $ECHO_N "(cached) $ECHO_C" >&6
33829else
33830 ac_check_lib_save_LIBS=$LIBS
33831LIBS="-lmsvcrt $LIBS"
33832cat >conftest.$ac_ext <<_ACEOF
33833/* confdefs.h. */
33834_ACEOF
33835cat confdefs.h >>conftest.$ac_ext
33836cat >>conftest.$ac_ext <<_ACEOF
33837/* end confdefs.h. */
33838
33839/* Override any gcc2 internal prototype to avoid an error. */
33840#ifdef __cplusplus
33841extern "C"
33842#endif
33843/* We use char because int might match the return type of a gcc2
33844 builtin and then its argument prototype would still apply. */
33845char wcslen ();
33846int
33847main ()
33848{
33849wcslen ();
33850 ;
33851 return 0;
33852}
33853_ACEOF
33854rm -f conftest.$ac_objext conftest$ac_exeext
33855if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33856 (eval $ac_link) 2>conftest.er1
a848cd7e 33857 ac_status=$?
ac1cb8d3
VS
33858 grep -v '^ *+' conftest.er1 >conftest.err
33859 rm -f conftest.er1
33860 cat conftest.err >&5
a848cd7e
SC
33861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33862 (exit $ac_status); } &&
c9a66001 33863 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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_exeext'
a848cd7e
SC
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 ac_cv_lib_msvcrt_wcslen=yes
33876else
33877 echo "$as_me: failed program was:" >&5
33878sed 's/^/| /' conftest.$ac_ext >&5
33879
33880ac_cv_lib_msvcrt_wcslen=no
33881fi
ac1cb8d3
VS
33882rm -f conftest.err conftest.$ac_objext \
33883 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33884LIBS=$ac_check_lib_save_LIBS
33885fi
33886echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
33887echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
33888if test $ac_cv_lib_msvcrt_wcslen = yes; then
33889 WCHAR_OK=1
33890fi
33891
33892 else
33893 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
33894echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
33895if test "${ac_cv_lib_w_wcslen+set}" = set; then
33896 echo $ECHO_N "(cached) $ECHO_C" >&6
33897else
33898 ac_check_lib_save_LIBS=$LIBS
33899LIBS="-lw $LIBS"
33900cat >conftest.$ac_ext <<_ACEOF
33901/* confdefs.h. */
33902_ACEOF
33903cat confdefs.h >>conftest.$ac_ext
33904cat >>conftest.$ac_ext <<_ACEOF
33905/* end confdefs.h. */
33906
33907/* Override any gcc2 internal prototype to avoid an error. */
33908#ifdef __cplusplus
33909extern "C"
33910#endif
33911/* We use char because int might match the return type of a gcc2
33912 builtin and then its argument prototype would still apply. */
33913char wcslen ();
33914int
33915main ()
33916{
33917wcslen ();
33918 ;
33919 return 0;
33920}
33921_ACEOF
33922rm -f conftest.$ac_objext conftest$ac_exeext
33923if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33924 (eval $ac_link) 2>conftest.er1
a848cd7e 33925 ac_status=$?
ac1cb8d3
VS
33926 grep -v '^ *+' conftest.er1 >conftest.err
33927 rm -f conftest.er1
33928 cat conftest.err >&5
a848cd7e
SC
33929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33930 (exit $ac_status); } &&
c9a66001 33931 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33933 (eval $ac_try) 2>&5
33934 ac_status=$?
33935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33936 (exit $ac_status); }; } &&
33937 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33939 (eval $ac_try) 2>&5
33940 ac_status=$?
33941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33942 (exit $ac_status); }; }; then
33943 ac_cv_lib_w_wcslen=yes
33944else
33945 echo "$as_me: failed program was:" >&5
33946sed 's/^/| /' conftest.$ac_ext >&5
33947
33948ac_cv_lib_w_wcslen=no
33949fi
ac1cb8d3
VS
33950rm -f conftest.err conftest.$ac_objext \
33951 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33952LIBS=$ac_check_lib_save_LIBS
33953fi
33954echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
33955echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
33956if test $ac_cv_lib_w_wcslen = yes; then
33957
33958 WCHAR_LINK=" -lw"
33959 WCSLEN_FOUND=1
33960
33961fi
33962
33963 fi
33964 fi
33965
33966 if test "$WCSLEN_FOUND" = 1; then
33967 cat >>confdefs.h <<\_ACEOF
33968#define HAVE_WCSLEN 1
33969_ACEOF
33970
33971 fi
33972
efdf6afe 33973 if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
c92ad099 33974 CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
473276a9
VS
33975 fi
33976
efdf6afe
VZ
33977 echo "$as_me:$LINENO: checking for mbstate_t" >&5
33978echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
33979if test "${ac_cv_type_mbstate_t+set}" = set; then
33980 echo $ECHO_N "(cached) $ECHO_C" >&6
33981else
33982 cat >conftest.$ac_ext <<_ACEOF
33983/* confdefs.h. */
33984_ACEOF
33985cat confdefs.h >>conftest.$ac_ext
33986cat >>conftest.$ac_ext <<_ACEOF
33987/* end confdefs.h. */
33988#include <wchar.h>
33989
33990int
33991main ()
33992{
33993if ((mbstate_t *) 0)
33994 return 0;
33995if (sizeof (mbstate_t))
33996 return 0;
33997 ;
33998 return 0;
33999}
34000_ACEOF
34001rm -f conftest.$ac_objext
34002if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34003 (eval $ac_compile) 2>conftest.er1
34004 ac_status=$?
34005 grep -v '^ *+' conftest.er1 >conftest.err
34006 rm -f conftest.er1
34007 cat conftest.err >&5
34008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34009 (exit $ac_status); } &&
c9a66001 34010 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
efdf6afe
VZ
34011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34012 (eval $ac_try) 2>&5
34013 ac_status=$?
34014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34015 (exit $ac_status); }; } &&
34016 { ac_try='test -s conftest.$ac_objext'
34017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34018 (eval $ac_try) 2>&5
34019 ac_status=$?
34020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34021 (exit $ac_status); }; }; then
34022 ac_cv_type_mbstate_t=yes
34023else
34024 echo "$as_me: failed program was:" >&5
34025sed 's/^/| /' conftest.$ac_ext >&5
34026
34027ac_cv_type_mbstate_t=no
34028fi
34029rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34030fi
34031echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
34032echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
34033if test $ac_cv_type_mbstate_t = yes; then
34034
34035cat >>confdefs.h <<_ACEOF
34036#define HAVE_MBSTATE_T 1
34037_ACEOF
34038
a848cd7e
SC
34039
34040for ac_func in wcsrtombs
34041do
34042as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34043echo "$as_me:$LINENO: checking for $ac_func" >&5
34044echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34045if eval "test \"\${$as_ac_var+set}\" = set"; then
34046 echo $ECHO_N "(cached) $ECHO_C" >&6
34047else
34048 cat >conftest.$ac_ext <<_ACEOF
34049/* confdefs.h. */
34050_ACEOF
34051cat confdefs.h >>conftest.$ac_ext
34052cat >>conftest.$ac_ext <<_ACEOF
34053/* end confdefs.h. */
ac1cb8d3
VS
34054/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34055 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34056#define $ac_func innocuous_$ac_func
34057
a848cd7e
SC
34058/* System header to define __stub macros and hopefully few prototypes,
34059 which can conflict with char $ac_func (); below.
34060 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34061 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34062
a848cd7e
SC
34063#ifdef __STDC__
34064# include <limits.h>
34065#else
34066# include <assert.h>
34067#endif
ac1cb8d3
VS
34068
34069#undef $ac_func
34070
a848cd7e
SC
34071/* Override any gcc2 internal prototype to avoid an error. */
34072#ifdef __cplusplus
34073extern "C"
34074{
34075#endif
34076/* We use char because int might match the return type of a gcc2
34077 builtin and then its argument prototype would still apply. */
34078char $ac_func ();
34079/* The GNU C library defines this for functions which it implements
34080 to always fail with ENOSYS. Some functions are actually named
34081 something starting with __ and the normal name is an alias. */
34082#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34083choke me
34084#else
34085char (*f) () = $ac_func;
34086#endif
34087#ifdef __cplusplus
34088}
34089#endif
34090
34091int
34092main ()
34093{
34094return f != $ac_func;
34095 ;
34096 return 0;
34097}
34098_ACEOF
34099rm -f conftest.$ac_objext conftest$ac_exeext
34100if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34101 (eval $ac_link) 2>conftest.er1
a848cd7e 34102 ac_status=$?
ac1cb8d3
VS
34103 grep -v '^ *+' conftest.er1 >conftest.err
34104 rm -f conftest.er1
34105 cat conftest.err >&5
a848cd7e
SC
34106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34107 (exit $ac_status); } &&
c9a66001 34108 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34110 (eval $ac_try) 2>&5
34111 ac_status=$?
34112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34113 (exit $ac_status); }; } &&
34114 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34116 (eval $ac_try) 2>&5
34117 ac_status=$?
34118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34119 (exit $ac_status); }; }; then
34120 eval "$as_ac_var=yes"
34121else
34122 echo "$as_me: failed program was:" >&5
34123sed 's/^/| /' conftest.$ac_ext >&5
34124
34125eval "$as_ac_var=no"
34126fi
ac1cb8d3
VS
34127rm -f conftest.err conftest.$ac_objext \
34128 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34129fi
34130echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34131echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34132if test `eval echo '${'$as_ac_var'}'` = yes; then
34133 cat >>confdefs.h <<_ACEOF
34134#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34135_ACEOF
34136
34137fi
34138done
34139
efdf6afe
VZ
34140fi
34141
a848cd7e
SC
34142else
34143 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
34144echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
34145fi
34146
a848cd7e 34147
4a767dd5
VZ
34148
34149for ac_func in snprintf vsnprintf
a848cd7e
SC
34150do
34151as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34152echo "$as_me:$LINENO: checking for $ac_func" >&5
34153echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34154if eval "test \"\${$as_ac_var+set}\" = set"; then
34155 echo $ECHO_N "(cached) $ECHO_C" >&6
34156else
34157 cat >conftest.$ac_ext <<_ACEOF
34158/* confdefs.h. */
34159_ACEOF
34160cat confdefs.h >>conftest.$ac_ext
34161cat >>conftest.$ac_ext <<_ACEOF
34162/* end confdefs.h. */
ac1cb8d3
VS
34163/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34164 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34165#define $ac_func innocuous_$ac_func
34166
a848cd7e
SC
34167/* System header to define __stub macros and hopefully few prototypes,
34168 which can conflict with char $ac_func (); below.
34169 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34170 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34171
a848cd7e
SC
34172#ifdef __STDC__
34173# include <limits.h>
34174#else
34175# include <assert.h>
34176#endif
ac1cb8d3
VS
34177
34178#undef $ac_func
34179
a848cd7e
SC
34180/* Override any gcc2 internal prototype to avoid an error. */
34181#ifdef __cplusplus
34182extern "C"
34183{
34184#endif
34185/* We use char because int might match the return type of a gcc2
34186 builtin and then its argument prototype would still apply. */
34187char $ac_func ();
34188/* The GNU C library defines this for functions which it implements
34189 to always fail with ENOSYS. Some functions are actually named
34190 something starting with __ and the normal name is an alias. */
34191#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34192choke me
34193#else
34194char (*f) () = $ac_func;
34195#endif
34196#ifdef __cplusplus
34197}
34198#endif
34199
34200int
34201main ()
34202{
34203return f != $ac_func;
34204 ;
34205 return 0;
34206}
34207_ACEOF
34208rm -f conftest.$ac_objext conftest$ac_exeext
34209if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34210 (eval $ac_link) 2>conftest.er1
a848cd7e 34211 ac_status=$?
ac1cb8d3
VS
34212 grep -v '^ *+' conftest.er1 >conftest.err
34213 rm -f conftest.er1
34214 cat conftest.err >&5
a848cd7e
SC
34215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34216 (exit $ac_status); } &&
c9a66001 34217 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34219 (eval $ac_try) 2>&5
34220 ac_status=$?
34221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34222 (exit $ac_status); }; } &&
34223 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34225 (eval $ac_try) 2>&5
34226 ac_status=$?
34227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34228 (exit $ac_status); }; }; then
34229 eval "$as_ac_var=yes"
34230else
34231 echo "$as_me: failed program was:" >&5
34232sed 's/^/| /' conftest.$ac_ext >&5
34233
34234eval "$as_ac_var=no"
34235fi
ac1cb8d3
VS
34236rm -f conftest.err conftest.$ac_objext \
34237 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34238fi
34239echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34240echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34241if test `eval echo '${'$as_ac_var'}'` = yes; then
34242 cat >>confdefs.h <<_ACEOF
34243#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34244_ACEOF
34245
34246fi
34247done
34248
34249
34250if test "$ac_cv_func_vsnprintf" = "yes"; then
34251 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
34252echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
34253if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
34254 echo $ECHO_N "(cached) $ECHO_C" >&6
34255else
34256
efdf6afe 34257 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
34258/* confdefs.h. */
34259_ACEOF
34260cat confdefs.h >>conftest.$ac_ext
34261cat >>conftest.$ac_ext <<_ACEOF
34262/* end confdefs.h. */
34263
34264 #include <stdio.h>
34265 #include <stdarg.h>
efdf6afe
VZ
34266 #ifdef __MSL__
34267 #if __MSL__ >= 0x6000
34268 namespace std {}
34269 using namespace std;
34270 #endif
34271 #endif
a848cd7e
SC
34272
34273int
34274main ()
34275{
34276
34277 char *buf;
34278 va_list ap;
62fa8b3a 34279 vsnprintf(buf, 10u, "%s", ap);
c122b164
DE
34280
34281 ;
34282 return 0;
34283}
34284_ACEOF
34285rm -f conftest.$ac_objext
34286if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34287 (eval $ac_compile) 2>conftest.er1
34288 ac_status=$?
34289 grep -v '^ *+' conftest.er1 >conftest.err
34290 rm -f conftest.er1
34291 cat conftest.err >&5
34292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34293 (exit $ac_status); } &&
c9a66001 34294 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
c122b164
DE
34295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34296 (eval $ac_try) 2>&5
34297 ac_status=$?
34298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34299 (exit $ac_status); }; } &&
34300 { ac_try='test -s conftest.$ac_objext'
34301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34302 (eval $ac_try) 2>&5
34303 ac_status=$?
34304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34305 (exit $ac_status); }; }; then
34306 wx_cv_func_vsnprintf_decl=yes
34307else
34308 echo "$as_me: failed program was:" >&5
34309sed 's/^/| /' conftest.$ac_ext >&5
34310
a848cd7e
SC
34311wx_cv_func_vsnprintf_decl=no
34312
34313fi
ac1cb8d3 34314rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34315
34316
34317fi
34318echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
34319echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
34320
34321 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
34322 cat >>confdefs.h <<\_ACEOF
34323#define HAVE_VSNPRINTF_DECL 1
34324_ACEOF
34325
62fa8b3a
MW
34326
34327 echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
34328echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6
34329if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
34330 echo $ECHO_N "(cached) $ECHO_C" >&6
34331else
34332
34333 cat >conftest.$ac_ext <<_ACEOF
34334/* confdefs.h. */
34335_ACEOF
34336cat confdefs.h >>conftest.$ac_ext
34337cat >>conftest.$ac_ext <<_ACEOF
34338/* end confdefs.h. */
34339
34340 #include <stdio.h>
34341 #include <stdarg.h>
34342 #ifdef __MSL__
34343 #if __MSL__ >= 0x6000
34344 namespace std {}
34345 using namespace std;
34346 #endif
34347 #endif
34348
34349int
34350main ()
34351{
34352
34353 char *buf;
34354 va_list ap;
34355 const char *fmt = "%s";
34356 vsnprintf(buf, 10u, fmt, ap);
34357
34358 ;
34359 return 0;
34360}
34361_ACEOF
34362rm -f conftest.$ac_objext
34363if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34364 (eval $ac_compile) 2>conftest.er1
34365 ac_status=$?
34366 grep -v '^ *+' conftest.er1 >conftest.err
34367 rm -f conftest.er1
34368 cat conftest.err >&5
34369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34370 (exit $ac_status); } &&
c9a66001 34371 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
34372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34373 (eval $ac_try) 2>&5
34374 ac_status=$?
34375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34376 (exit $ac_status); }; } &&
34377 { ac_try='test -s conftest.$ac_objext'
34378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34379 (eval $ac_try) 2>&5
34380 ac_status=$?
34381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34382 (exit $ac_status); }; }; then
34383 wx_cv_func_broken_vsnprintf_decl=no
34384else
34385 echo "$as_me: failed program was:" >&5
34386sed 's/^/| /' conftest.$ac_ext >&5
34387
34388wx_cv_func_broken_vsnprintf_decl=yes
34389
34390fi
34391rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34392
34393
34394fi
34395echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
34396echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6
34397
34398 if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
34399 cat >>confdefs.h <<\_ACEOF
34400#define HAVE_BROKEN_VSNPRINTF_DECL 1
34401_ACEOF
34402
34403 fi
a848cd7e
SC
34404 fi
34405fi
34406
4a767dd5
VZ
34407if test "$ac_cv_func_snprintf" = "yes"; then
34408 echo "$as_me:$LINENO: checking for snprintf declaration" >&5
34409echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
34410if test "${wx_cv_func_snprintf_decl+set}" = set; then
34411 echo $ECHO_N "(cached) $ECHO_C" >&6
34412else
34413
34414 cat >conftest.$ac_ext <<_ACEOF
34415/* confdefs.h. */
34416_ACEOF
34417cat confdefs.h >>conftest.$ac_ext
34418cat >>conftest.$ac_ext <<_ACEOF
34419/* end confdefs.h. */
34420
34421 #include <stdio.h>
34422 #include <stdarg.h>
34423 #ifdef __MSL__
34424 #if __MSL__ >= 0x6000
34425 namespace std {}
34426 using namespace std;
34427 #endif
34428 #endif
34429
34430int
34431main ()
34432{
34433
34434 char *buf;
62fa8b3a 34435 snprintf(buf, 10u, "%s", "wx");
4a767dd5
VZ
34436
34437 ;
34438 return 0;
34439}
34440_ACEOF
34441rm -f conftest.$ac_objext
34442if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34443 (eval $ac_compile) 2>conftest.er1
34444 ac_status=$?
34445 grep -v '^ *+' conftest.er1 >conftest.err
34446 rm -f conftest.er1
34447 cat conftest.err >&5
34448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34449 (exit $ac_status); } &&
c9a66001 34450 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4a767dd5
VZ
34451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34452 (eval $ac_try) 2>&5
34453 ac_status=$?
34454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34455 (exit $ac_status); }; } &&
34456 { ac_try='test -s conftest.$ac_objext'
34457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34458 (eval $ac_try) 2>&5
34459 ac_status=$?
34460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34461 (exit $ac_status); }; }; then
34462 wx_cv_func_snprintf_decl=yes
34463else
34464 echo "$as_me: failed program was:" >&5
34465sed 's/^/| /' conftest.$ac_ext >&5
34466
34467wx_cv_func_snprintf_decl=no
34468
34469fi
34470rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34471
34472
34473fi
34474echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
34475echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6
34476
34477 if test "$wx_cv_func_snprintf_decl" = "yes"; then
34478 cat >>confdefs.h <<\_ACEOF
34479#define HAVE_SNPRINTF_DECL 1
34480_ACEOF
34481
62fa8b3a
MW
34482
34483 echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5
34484echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6
34485if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then
34486 echo $ECHO_N "(cached) $ECHO_C" >&6
34487else
34488
34489 cat >conftest.$ac_ext <<_ACEOF
34490/* confdefs.h. */
34491_ACEOF
34492cat confdefs.h >>conftest.$ac_ext
34493cat >>conftest.$ac_ext <<_ACEOF
34494/* end confdefs.h. */
34495
34496 #include <stdio.h>
34497 #include <stdarg.h>
34498 #ifdef __MSL__
34499 #if __MSL__ >= 0x6000
34500 namespace std {}
34501 using namespace std;
34502 #endif
34503 #endif
34504
34505int
34506main ()
34507{
34508
34509 char *buf;
34510 const char *fmt = "%s";
34511 snprintf(buf, 10u, fmt, "wx");
34512
34513 ;
34514 return 0;
34515}
34516_ACEOF
34517rm -f conftest.$ac_objext
34518if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34519 (eval $ac_compile) 2>conftest.er1
34520 ac_status=$?
34521 grep -v '^ *+' conftest.er1 >conftest.err
34522 rm -f conftest.er1
34523 cat conftest.err >&5
34524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34525 (exit $ac_status); } &&
c9a66001 34526 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
34527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34528 (eval $ac_try) 2>&5
34529 ac_status=$?
34530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34531 (exit $ac_status); }; } &&
34532 { ac_try='test -s conftest.$ac_objext'
34533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34534 (eval $ac_try) 2>&5
34535 ac_status=$?
34536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34537 (exit $ac_status); }; }; then
34538 wx_cv_func_broken_snprintf_decl=no
34539else
34540 echo "$as_me: failed program was:" >&5
34541sed 's/^/| /' conftest.$ac_ext >&5
34542
34543wx_cv_func_broken_snprintf_decl=yes
34544
34545fi
34546rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34547
34548
34549fi
34550echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5
34551echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6
34552
34553 if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then
34554 cat >>confdefs.h <<\_ACEOF
34555#define HAVE_BROKEN_SNPRINTF_DECL 1
8b6682b9
JS
34556_ACEOF
34557
34558 fi
34559 fi
34560
34561 if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
34562
34563 echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5
34564echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6
34565if test "${wx_cv_func_snprintf_pos_params+set}" = set; then
34566 echo $ECHO_N "(cached) $ECHO_C" >&6
34567else
34568
34569 if test "$cross_compiling" = yes; then
27cc9142
VS
34570 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
34571echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
8b6682b9
JS
34572 { (exit 1); exit 1; }; }
34573else
34574 cat >conftest.$ac_ext <<_ACEOF
34575/* confdefs.h. */
34576_ACEOF
34577cat confdefs.h >>conftest.$ac_ext
34578cat >>conftest.$ac_ext <<_ACEOF
34579/* end confdefs.h. */
34580
34581 #include <stdio.h>
34582
34583 int main (void)
34584 {
34585 char buffer[128];
34586 snprintf (buffer, 128, "%2\$d %3\$d %1\$d", 1, 2, 3);
34587 if (strcmp ("2 3 1", buffer) == 0)
34588 exit (0);
34589 exit (1);
34590 }
34591
34592_ACEOF
34593rm -f conftest$ac_exeext
34594if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34595 (eval $ac_link) 2>&5
34596 ac_status=$?
34597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34598 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34600 (eval $ac_try) 2>&5
34601 ac_status=$?
34602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34603 (exit $ac_status); }; }; then
34604 wx_cv_func_snprintf_pos_params=no
34605else
34606 echo "$as_me: program exited with status $ac_status" >&5
34607echo "$as_me: failed program was:" >&5
34608sed 's/^/| /' conftest.$ac_ext >&5
34609
34610( exit $ac_status )
34611wx_cv_func_snprintf_pos_params=yes
34612
34613fi
34614rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34615fi
34616
34617
34618fi
34619echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5
34620echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6
34621
34622 if test "$wx_cv_func_snprintf_pos_params" = "yes"; then
34623 cat >>confdefs.h <<\_ACEOF
34624#define HAVE_UNIX98_PRINTF 1
62fa8b3a
MW
34625_ACEOF
34626
34627 fi
4a767dd5
VZ
34628 fi
34629fi
34630
8b6682b9 34631
a848cd7e
SC
34632if test "$wxUSE_UNICODE" = yes; then
34633
34634
34635
fbe47c7b
VS
34636
34637
34638
34639for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
34640do
34641as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34642echo "$as_me:$LINENO: checking for $ac_func" >&5
34643echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34644if eval "test \"\${$as_ac_var+set}\" = set"; then
34645 echo $ECHO_N "(cached) $ECHO_C" >&6
34646else
34647 cat >conftest.$ac_ext <<_ACEOF
34648/* confdefs.h. */
34649_ACEOF
34650cat confdefs.h >>conftest.$ac_ext
34651cat >>conftest.$ac_ext <<_ACEOF
34652/* end confdefs.h. */
ac1cb8d3
VS
34653/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34654 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34655#define $ac_func innocuous_$ac_func
34656
a848cd7e
SC
34657/* System header to define __stub macros and hopefully few prototypes,
34658 which can conflict with char $ac_func (); below.
34659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34660 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34661
a848cd7e
SC
34662#ifdef __STDC__
34663# include <limits.h>
34664#else
34665# include <assert.h>
34666#endif
ac1cb8d3
VS
34667
34668#undef $ac_func
34669
a848cd7e
SC
34670/* Override any gcc2 internal prototype to avoid an error. */
34671#ifdef __cplusplus
34672extern "C"
34673{
34674#endif
34675/* We use char because int might match the return type of a gcc2
34676 builtin and then its argument prototype would still apply. */
34677char $ac_func ();
34678/* The GNU C library defines this for functions which it implements
34679 to always fail with ENOSYS. Some functions are actually named
34680 something starting with __ and the normal name is an alias. */
34681#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34682choke me
34683#else
34684char (*f) () = $ac_func;
34685#endif
34686#ifdef __cplusplus
34687}
34688#endif
34689
34690int
34691main ()
34692{
34693return f != $ac_func;
34694 ;
34695 return 0;
34696}
34697_ACEOF
34698rm -f conftest.$ac_objext conftest$ac_exeext
34699if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34700 (eval $ac_link) 2>conftest.er1
a848cd7e 34701 ac_status=$?
ac1cb8d3
VS
34702 grep -v '^ *+' conftest.er1 >conftest.err
34703 rm -f conftest.er1
34704 cat conftest.err >&5
a848cd7e
SC
34705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34706 (exit $ac_status); } &&
c9a66001 34707 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34709 (eval $ac_try) 2>&5
34710 ac_status=$?
34711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34712 (exit $ac_status); }; } &&
34713 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34715 (eval $ac_try) 2>&5
34716 ac_status=$?
34717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34718 (exit $ac_status); }; }; then
34719 eval "$as_ac_var=yes"
34720else
34721 echo "$as_me: failed program was:" >&5
34722sed 's/^/| /' conftest.$ac_ext >&5
34723
34724eval "$as_ac_var=no"
34725fi
ac1cb8d3
VS
34726rm -f conftest.err conftest.$ac_objext \
34727 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34728fi
34729echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34730echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34731if test `eval echo '${'$as_ac_var'}'` = yes; then
34732 cat >>confdefs.h <<_ACEOF
34733#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34734_ACEOF
34735
34736fi
34737done
34738
34739
34740 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
34741echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
34742 cat >conftest.$ac_ext <<_ACEOF
34743/* confdefs.h. */
34744_ACEOF
34745cat confdefs.h >>conftest.$ac_ext
34746cat >>conftest.$ac_ext <<_ACEOF
34747/* end confdefs.h. */
34748#include <wchar.h>
34749int
34750main ()
34751{
34752&_vsnwprintf;
34753 ;
34754 return 0;
34755}
34756_ACEOF
34757rm -f conftest.$ac_objext
34758if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34759 (eval $ac_compile) 2>conftest.er1
a848cd7e 34760 ac_status=$?
ac1cb8d3
VS
34761 grep -v '^ *+' conftest.er1 >conftest.err
34762 rm -f conftest.er1
34763 cat conftest.err >&5
a848cd7e
SC
34764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34765 (exit $ac_status); } &&
c9a66001 34766 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34768 (eval $ac_try) 2>&5
34769 ac_status=$?
34770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34771 (exit $ac_status); }; } &&
34772 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34774 (eval $ac_try) 2>&5
34775 ac_status=$?
34776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34777 (exit $ac_status); }; }; then
34778 echo "$as_me:$LINENO: result: yes" >&5
34779echo "${ECHO_T}yes" >&6
34780 cat >>confdefs.h <<\_ACEOF
34781#define HAVE__VSNWPRINTF 1
34782_ACEOF
34783
34784else
34785 echo "$as_me: failed program was:" >&5
34786sed 's/^/| /' conftest.$ac_ext >&5
34787
34788echo "$as_me:$LINENO: result: no" >&5
34789echo "${ECHO_T}no" >&6
34790fi
ac1cb8d3 34791rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
34792fi
34793
6ebeb4c7
VZ
34794if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
34795
34796for ac_func in fnmatch
34797do
34798as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34799echo "$as_me:$LINENO: checking for $ac_func" >&5
34800echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34801if eval "test \"\${$as_ac_var+set}\" = set"; then
34802 echo $ECHO_N "(cached) $ECHO_C" >&6
34803else
34804 cat >conftest.$ac_ext <<_ACEOF
34805/* confdefs.h. */
34806_ACEOF
34807cat confdefs.h >>conftest.$ac_ext
34808cat >>conftest.$ac_ext <<_ACEOF
34809/* end confdefs.h. */
34810/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34811 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34812#define $ac_func innocuous_$ac_func
34813
34814/* System header to define __stub macros and hopefully few prototypes,
34815 which can conflict with char $ac_func (); below.
34816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34817 <limits.h> exists even on freestanding compilers. */
34818
34819#ifdef __STDC__
34820# include <limits.h>
34821#else
34822# include <assert.h>
34823#endif
34824
34825#undef $ac_func
34826
34827/* Override any gcc2 internal prototype to avoid an error. */
34828#ifdef __cplusplus
34829extern "C"
34830{
34831#endif
34832/* We use char because int might match the return type of a gcc2
34833 builtin and then its argument prototype would still apply. */
34834char $ac_func ();
34835/* The GNU C library defines this for functions which it implements
34836 to always fail with ENOSYS. Some functions are actually named
34837 something starting with __ and the normal name is an alias. */
34838#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34839choke me
34840#else
34841char (*f) () = $ac_func;
34842#endif
34843#ifdef __cplusplus
34844}
34845#endif
34846
34847int
34848main ()
34849{
34850return f != $ac_func;
34851 ;
34852 return 0;
34853}
34854_ACEOF
34855rm -f conftest.$ac_objext conftest$ac_exeext
34856if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34857 (eval $ac_link) 2>conftest.er1
34858 ac_status=$?
34859 grep -v '^ *+' conftest.er1 >conftest.err
34860 rm -f conftest.er1
34861 cat conftest.err >&5
34862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34863 (exit $ac_status); } &&
c9a66001 34864 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
34865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34866 (eval $ac_try) 2>&5
34867 ac_status=$?
34868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34869 (exit $ac_status); }; } &&
34870 { ac_try='test -s conftest$ac_exeext'
34871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34872 (eval $ac_try) 2>&5
34873 ac_status=$?
34874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34875 (exit $ac_status); }; }; then
34876 eval "$as_ac_var=yes"
34877else
34878 echo "$as_me: failed program was:" >&5
34879sed 's/^/| /' conftest.$ac_ext >&5
34880
34881eval "$as_ac_var=no"
34882fi
34883rm -f conftest.err conftest.$ac_objext \
34884 conftest$ac_exeext conftest.$ac_ext
34885fi
34886echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34887echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34888if test `eval echo '${'$as_ac_var'}'` = yes; then
34889 cat >>confdefs.h <<_ACEOF
34890#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34891_ACEOF
34892
34893fi
34894done
34895
34896fi
34897
34898if test "$wxUSE_FILE" = "yes"; then
34899
34900for ac_func in fsync
34901do
34902as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34903echo "$as_me:$LINENO: checking for $ac_func" >&5
34904echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34905if eval "test \"\${$as_ac_var+set}\" = set"; then
34906 echo $ECHO_N "(cached) $ECHO_C" >&6
34907else
34908 cat >conftest.$ac_ext <<_ACEOF
34909/* confdefs.h. */
34910_ACEOF
34911cat confdefs.h >>conftest.$ac_ext
34912cat >>conftest.$ac_ext <<_ACEOF
34913/* end confdefs.h. */
34914/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34915 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34916#define $ac_func innocuous_$ac_func
34917
34918/* System header to define __stub macros and hopefully few prototypes,
34919 which can conflict with char $ac_func (); below.
34920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34921 <limits.h> exists even on freestanding compilers. */
34922
34923#ifdef __STDC__
34924# include <limits.h>
34925#else
34926# include <assert.h>
34927#endif
34928
34929#undef $ac_func
34930
34931/* Override any gcc2 internal prototype to avoid an error. */
34932#ifdef __cplusplus
34933extern "C"
34934{
34935#endif
34936/* We use char because int might match the return type of a gcc2
34937 builtin and then its argument prototype would still apply. */
34938char $ac_func ();
34939/* The GNU C library defines this for functions which it implements
34940 to always fail with ENOSYS. Some functions are actually named
34941 something starting with __ and the normal name is an alias. */
34942#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34943choke me
34944#else
34945char (*f) () = $ac_func;
34946#endif
34947#ifdef __cplusplus
34948}
34949#endif
34950
34951int
34952main ()
34953{
34954return f != $ac_func;
34955 ;
34956 return 0;
34957}
34958_ACEOF
34959rm -f conftest.$ac_objext conftest$ac_exeext
34960if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34961 (eval $ac_link) 2>conftest.er1
34962 ac_status=$?
34963 grep -v '^ *+' conftest.er1 >conftest.err
34964 rm -f conftest.er1
34965 cat conftest.err >&5
34966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34967 (exit $ac_status); } &&
c9a66001 34968 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
34969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34970 (eval $ac_try) 2>&5
34971 ac_status=$?
34972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34973 (exit $ac_status); }; } &&
34974 { ac_try='test -s conftest$ac_exeext'
34975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34976 (eval $ac_try) 2>&5
34977 ac_status=$?
34978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34979 (exit $ac_status); }; }; then
34980 eval "$as_ac_var=yes"
34981else
34982 echo "$as_me: failed program was:" >&5
34983sed 's/^/| /' conftest.$ac_ext >&5
34984
34985eval "$as_ac_var=no"
34986fi
34987rm -f conftest.err conftest.$ac_objext \
34988 conftest$ac_exeext conftest.$ac_ext
34989fi
34990echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34991echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34992if test `eval echo '${'$as_ac_var'}'` = yes; then
34993 cat >>confdefs.h <<_ACEOF
34994#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34995_ACEOF
34996
34997fi
34998done
34999
35000fi
a848cd7e
SC
35001
35002
c2e9ada4
VZ
35003for ac_func in round
35004do
35005as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35006echo "$as_me:$LINENO: checking for $ac_func" >&5
35007echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35008if eval "test \"\${$as_ac_var+set}\" = set"; then
35009 echo $ECHO_N "(cached) $ECHO_C" >&6
35010else
35011 cat >conftest.$ac_ext <<_ACEOF
35012/* confdefs.h. */
35013_ACEOF
35014cat confdefs.h >>conftest.$ac_ext
35015cat >>conftest.$ac_ext <<_ACEOF
35016/* end confdefs.h. */
35017/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35018 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35019#define $ac_func innocuous_$ac_func
35020
35021/* System header to define __stub macros and hopefully few prototypes,
35022 which can conflict with char $ac_func (); below.
35023 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35024 <limits.h> exists even on freestanding compilers. */
35025
35026#ifdef __STDC__
35027# include <limits.h>
35028#else
35029# include <assert.h>
35030#endif
35031
35032#undef $ac_func
35033
35034/* Override any gcc2 internal prototype to avoid an error. */
35035#ifdef __cplusplus
35036extern "C"
35037{
35038#endif
35039/* We use char because int might match the return type of a gcc2
35040 builtin and then its argument prototype would still apply. */
35041char $ac_func ();
35042/* The GNU C library defines this for functions which it implements
35043 to always fail with ENOSYS. Some functions are actually named
35044 something starting with __ and the normal name is an alias. */
35045#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35046choke me
35047#else
35048char (*f) () = $ac_func;
35049#endif
35050#ifdef __cplusplus
35051}
35052#endif
35053
35054int
35055main ()
35056{
35057return f != $ac_func;
35058 ;
35059 return 0;
35060}
35061_ACEOF
35062rm -f conftest.$ac_objext conftest$ac_exeext
35063if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35064 (eval $ac_link) 2>conftest.er1
35065 ac_status=$?
35066 grep -v '^ *+' conftest.er1 >conftest.err
35067 rm -f conftest.er1
35068 cat conftest.err >&5
35069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35070 (exit $ac_status); } &&
35071 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
35072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35073 (eval $ac_try) 2>&5
35074 ac_status=$?
35075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35076 (exit $ac_status); }; } &&
35077 { ac_try='test -s conftest$ac_exeext'
35078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35079 (eval $ac_try) 2>&5
35080 ac_status=$?
35081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35082 (exit $ac_status); }; }; then
35083 eval "$as_ac_var=yes"
35084else
35085 echo "$as_me: failed program was:" >&5
35086sed 's/^/| /' conftest.$ac_ext >&5
35087
35088eval "$as_ac_var=no"
35089fi
35090rm -f conftest.err conftest.$ac_objext \
35091 conftest$ac_exeext conftest.$ac_ext
35092fi
35093echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35094echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35095if test `eval echo '${'$as_ac_var'}'` = yes; then
35096 cat >>confdefs.h <<_ACEOF
35097#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35098_ACEOF
35099
35100fi
35101done
35102
35103if test "$ac_cv_func_round" = yes; then
35104 echo "$as_me:$LINENO: checking whether round is declared" >&5
35105echo $ECHO_N "checking whether round is declared... $ECHO_C" >&6
35106if test "${ac_cv_have_decl_round+set}" = set; then
35107 echo $ECHO_N "(cached) $ECHO_C" >&6
35108else
35109 cat >conftest.$ac_ext <<_ACEOF
35110/* confdefs.h. */
35111_ACEOF
35112cat confdefs.h >>conftest.$ac_ext
35113cat >>conftest.$ac_ext <<_ACEOF
35114/* end confdefs.h. */
35115#include <math.h>
35116
35117int
35118main ()
35119{
35120#ifndef round
35121 char *p = (char *) round;
35122#endif
35123
35124 ;
35125 return 0;
35126}
35127_ACEOF
35128rm -f conftest.$ac_objext
35129if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35130 (eval $ac_compile) 2>conftest.er1
35131 ac_status=$?
35132 grep -v '^ *+' conftest.er1 >conftest.err
35133 rm -f conftest.er1
35134 cat conftest.err >&5
35135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35136 (exit $ac_status); } &&
35137 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
35138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35139 (eval $ac_try) 2>&5
35140 ac_status=$?
35141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35142 (exit $ac_status); }; } &&
35143 { ac_try='test -s conftest.$ac_objext'
35144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35145 (eval $ac_try) 2>&5
35146 ac_status=$?
35147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35148 (exit $ac_status); }; }; then
35149 ac_cv_have_decl_round=yes
35150else
35151 echo "$as_me: failed program was:" >&5
35152sed 's/^/| /' conftest.$ac_ext >&5
35153
35154ac_cv_have_decl_round=no
35155fi
35156rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35157fi
35158echo "$as_me:$LINENO: result: $ac_cv_have_decl_round" >&5
35159echo "${ECHO_T}$ac_cv_have_decl_round" >&6
35160if test $ac_cv_have_decl_round = yes; then
35161
35162cat >>confdefs.h <<_ACEOF
35163#define HAVE_DECL_ROUND 1
35164_ACEOF
35165
35166
35167else
35168 cat >>confdefs.h <<_ACEOF
35169#define HAVE_DECL_ROUND 0
35170_ACEOF
35171
35172
35173fi
35174
35175
35176fi
35177
35178
a848cd7e
SC
35179if test "$TOOLKIT" != "MSW"; then
35180
35181
a848cd7e
SC
35182
35183
35184
35185# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
35186if test "${with_libiconv_prefix+set}" = set; then
35187 withval="$with_libiconv_prefix"
35188
35189 for dir in `echo "$withval" | tr : ' '`; do
35190 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
35191 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
35192 done
35193
35194fi;
35195
35196 echo "$as_me:$LINENO: checking for iconv" >&5
35197echo $ECHO_N "checking for iconv... $ECHO_C" >&6
35198if test "${am_cv_func_iconv+set}" = set; then
35199 echo $ECHO_N "(cached) $ECHO_C" >&6
35200else
35201
35202 am_cv_func_iconv="no, consider installing GNU libiconv"
35203 am_cv_lib_iconv=no
35204 cat >conftest.$ac_ext <<_ACEOF
35205/* confdefs.h. */
35206_ACEOF
35207cat confdefs.h >>conftest.$ac_ext
35208cat >>conftest.$ac_ext <<_ACEOF
35209/* end confdefs.h. */
35210#include <stdlib.h>
35211#include <iconv.h>
35212int
35213main ()
35214{
35215iconv_t cd = iconv_open("","");
35216 iconv(cd,NULL,NULL,NULL,NULL);
35217 iconv_close(cd);
35218 ;
35219 return 0;
35220}
35221_ACEOF
35222rm -f conftest.$ac_objext conftest$ac_exeext
35223if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35224 (eval $ac_link) 2>conftest.er1
a848cd7e 35225 ac_status=$?
ac1cb8d3
VS
35226 grep -v '^ *+' conftest.er1 >conftest.err
35227 rm -f conftest.er1
35228 cat conftest.err >&5
a848cd7e
SC
35229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35230 (exit $ac_status); } &&
c9a66001 35231 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35233 (eval $ac_try) 2>&5
35234 ac_status=$?
35235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35236 (exit $ac_status); }; } &&
35237 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35239 (eval $ac_try) 2>&5
35240 ac_status=$?
35241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35242 (exit $ac_status); }; }; then
35243 am_cv_func_iconv=yes
35244else
35245 echo "$as_me: failed program was:" >&5
35246sed 's/^/| /' conftest.$ac_ext >&5
35247
35248fi
ac1cb8d3
VS
35249rm -f conftest.err conftest.$ac_objext \
35250 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35251 if test "$am_cv_func_iconv" != yes; then
35252 am_save_LIBS="$LIBS"
35253 LIBS="$LIBS -liconv"
35254 cat >conftest.$ac_ext <<_ACEOF
35255/* confdefs.h. */
35256_ACEOF
35257cat confdefs.h >>conftest.$ac_ext
35258cat >>conftest.$ac_ext <<_ACEOF
35259/* end confdefs.h. */
35260#include <stdlib.h>
35261#include <iconv.h>
35262int
35263main ()
35264{
35265iconv_t cd = iconv_open("","");
35266 iconv(cd,NULL,NULL,NULL,NULL);
35267 iconv_close(cd);
35268 ;
35269 return 0;
35270}
35271_ACEOF
35272rm -f conftest.$ac_objext conftest$ac_exeext
35273if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35274 (eval $ac_link) 2>conftest.er1
a848cd7e 35275 ac_status=$?
ac1cb8d3
VS
35276 grep -v '^ *+' conftest.er1 >conftest.err
35277 rm -f conftest.er1
35278 cat conftest.err >&5
a848cd7e
SC
35279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35280 (exit $ac_status); } &&
c9a66001 35281 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35283 (eval $ac_try) 2>&5
35284 ac_status=$?
35285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35286 (exit $ac_status); }; } &&
35287 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35289 (eval $ac_try) 2>&5
35290 ac_status=$?
35291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35292 (exit $ac_status); }; }; then
35293 am_cv_lib_iconv=yes
35294 am_cv_func_iconv=yes
35295else
35296 echo "$as_me: failed program was:" >&5
35297sed 's/^/| /' conftest.$ac_ext >&5
35298
35299fi
ac1cb8d3
VS
35300rm -f conftest.err conftest.$ac_objext \
35301 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35302 LIBS="$am_save_LIBS"
35303 fi
35304
35305fi
35306echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
35307echo "${ECHO_T}$am_cv_func_iconv" >&6
35308 if test "$am_cv_func_iconv" = yes; then
35309
35310cat >>confdefs.h <<\_ACEOF
35311#define HAVE_ICONV 1
35312_ACEOF
35313
35314 echo "$as_me:$LINENO: checking if iconv needs const" >&5
35315echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
35316if test "${wx_cv_func_iconv_const+set}" = set; then
35317 echo $ECHO_N "(cached) $ECHO_C" >&6
35318else
35319 cat >conftest.$ac_ext <<_ACEOF
35320/* confdefs.h. */
35321_ACEOF
35322cat confdefs.h >>conftest.$ac_ext
35323cat >>conftest.$ac_ext <<_ACEOF
35324/* end confdefs.h. */
35325
35326#include <stdlib.h>
35327#include <iconv.h>
35328extern
35329#ifdef __cplusplus
35330"C"
35331#endif
35332#if defined(__STDC__) || defined(__cplusplus)
35333size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
35334#else
35335size_t iconv();
35336#endif
35337
35338int
35339main ()
35340{
35341
35342 ;
35343 return 0;
35344}
35345_ACEOF
35346rm -f conftest.$ac_objext
35347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35348 (eval $ac_compile) 2>conftest.er1
a848cd7e 35349 ac_status=$?
ac1cb8d3
VS
35350 grep -v '^ *+' conftest.er1 >conftest.err
35351 rm -f conftest.er1
35352 cat conftest.err >&5
a848cd7e
SC
35353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35354 (exit $ac_status); } &&
c9a66001 35355 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35357 (eval $ac_try) 2>&5
35358 ac_status=$?
35359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35360 (exit $ac_status); }; } &&
35361 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35363 (eval $ac_try) 2>&5
35364 ac_status=$?
35365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35366 (exit $ac_status); }; }; then
35367 wx_cv_func_iconv_const="no"
35368else
35369 echo "$as_me: failed program was:" >&5
35370sed 's/^/| /' conftest.$ac_ext >&5
35371
35372wx_cv_func_iconv_const="yes"
35373
35374fi
ac1cb8d3 35375rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35376
35377fi
35378echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
35379echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
35380
35381 iconv_const=
35382 if test "x$wx_cv_func_iconv_const" = "xyes"; then
35383 iconv_const="const"
35384 fi
35385
35386
35387cat >>confdefs.h <<_ACEOF
35388#define ICONV_CONST $iconv_const
35389_ACEOF
35390
35391 fi
35392 LIBICONV=
35393 if test "$am_cv_lib_iconv" = yes; then
35394 LIBICONV="-liconv"
35395 fi
35396
35397
35398LIBS="$LIBICONV $LIBS"
a848cd7e
SC
35399
35400if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
35401
35402for ac_func in sigaction
35403do
35404as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35405echo "$as_me:$LINENO: checking for $ac_func" >&5
35406echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35407if eval "test \"\${$as_ac_var+set}\" = set"; then
35408 echo $ECHO_N "(cached) $ECHO_C" >&6
35409else
35410 cat >conftest.$ac_ext <<_ACEOF
35411/* confdefs.h. */
35412_ACEOF
35413cat confdefs.h >>conftest.$ac_ext
35414cat >>conftest.$ac_ext <<_ACEOF
35415/* end confdefs.h. */
ac1cb8d3
VS
35416/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35417 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35418#define $ac_func innocuous_$ac_func
35419
a848cd7e
SC
35420/* System header to define __stub macros and hopefully few prototypes,
35421 which can conflict with char $ac_func (); below.
35422 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35423 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35424
a848cd7e
SC
35425#ifdef __STDC__
35426# include <limits.h>
35427#else
35428# include <assert.h>
35429#endif
ac1cb8d3
VS
35430
35431#undef $ac_func
35432
a848cd7e
SC
35433/* Override any gcc2 internal prototype to avoid an error. */
35434#ifdef __cplusplus
35435extern "C"
35436{
35437#endif
35438/* We use char because int might match the return type of a gcc2
35439 builtin and then its argument prototype would still apply. */
35440char $ac_func ();
35441/* The GNU C library defines this for functions which it implements
35442 to always fail with ENOSYS. Some functions are actually named
35443 something starting with __ and the normal name is an alias. */
35444#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35445choke me
35446#else
35447char (*f) () = $ac_func;
35448#endif
35449#ifdef __cplusplus
35450}
35451#endif
35452
35453int
35454main ()
35455{
35456return f != $ac_func;
35457 ;
35458 return 0;
35459}
35460_ACEOF
35461rm -f conftest.$ac_objext conftest$ac_exeext
35462if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35463 (eval $ac_link) 2>conftest.er1
a848cd7e 35464 ac_status=$?
ac1cb8d3
VS
35465 grep -v '^ *+' conftest.er1 >conftest.err
35466 rm -f conftest.er1
35467 cat conftest.err >&5
a848cd7e
SC
35468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35469 (exit $ac_status); } &&
c9a66001 35470 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35472 (eval $ac_try) 2>&5
35473 ac_status=$?
35474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35475 (exit $ac_status); }; } &&
35476 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35478 (eval $ac_try) 2>&5
35479 ac_status=$?
35480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35481 (exit $ac_status); }; }; then
35482 eval "$as_ac_var=yes"
35483else
35484 echo "$as_me: failed program was:" >&5
35485sed 's/^/| /' conftest.$ac_ext >&5
35486
35487eval "$as_ac_var=no"
35488fi
ac1cb8d3
VS
35489rm -f conftest.err conftest.$ac_objext \
35490 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35491fi
35492echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35493echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35494if test `eval echo '${'$as_ac_var'}'` = yes; then
35495 cat >>confdefs.h <<_ACEOF
35496#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35497_ACEOF
35498
35499fi
35500done
35501
35502
35503 if test "$ac_cv_func_sigaction" = "no"; then
35504 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
35505echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
35506 wxUSE_ON_FATAL_EXCEPTION=no
35507 fi
35508
35509 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
a848cd7e
SC
35510 echo "$as_me:$LINENO: checking for sa_handler type" >&5
35511echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
35512if test "${wx_cv_type_sa_handler+set}" = set; then
35513 echo $ECHO_N "(cached) $ECHO_C" >&6
35514else
35515
35516 cat >conftest.$ac_ext <<_ACEOF
35517/* confdefs.h. */
35518_ACEOF
35519cat confdefs.h >>conftest.$ac_ext
35520cat >>conftest.$ac_ext <<_ACEOF
35521/* end confdefs.h. */
35522#include <signal.h>
35523int
35524main ()
35525{
35526
35527 extern void testSigHandler(int);
35528
35529 struct sigaction sa;
35530 sa.sa_handler = testSigHandler;
35531
35532 ;
35533 return 0;
35534}
35535_ACEOF
35536rm -f conftest.$ac_objext
35537if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35538 (eval $ac_compile) 2>conftest.er1
a848cd7e 35539 ac_status=$?
ac1cb8d3
VS
35540 grep -v '^ *+' conftest.er1 >conftest.err
35541 rm -f conftest.er1
35542 cat conftest.err >&5
a848cd7e
SC
35543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35544 (exit $ac_status); } &&
c9a66001 35545 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35547 (eval $ac_try) 2>&5
35548 ac_status=$?
35549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35550 (exit $ac_status); }; } &&
35551 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35553 (eval $ac_try) 2>&5
35554 ac_status=$?
35555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35556 (exit $ac_status); }; }; then
35557
35558 wx_cv_type_sa_handler=int
35559
35560else
35561 echo "$as_me: failed program was:" >&5
35562sed 's/^/| /' conftest.$ac_ext >&5
35563
35564
35565 wx_cv_type_sa_handler=void
35566
35567fi
ac1cb8d3 35568rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35569
35570fi
35571echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
35572echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
35573
a848cd7e
SC
35574 cat >>confdefs.h <<_ACEOF
35575#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
35576_ACEOF
35577
35578 fi
35579fi
35580
eaff0f0d 35581if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
eaff0f0d
VZ
35582 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
35583echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
35584if test "${wx_cv_func_backtrace+set}" = set; then
35585 echo $ECHO_N "(cached) $ECHO_C" >&6
35586else
35587
35588 cat >conftest.$ac_ext <<_ACEOF
35589/* confdefs.h. */
35590_ACEOF
35591cat confdefs.h >>conftest.$ac_ext
35592cat >>conftest.$ac_ext <<_ACEOF
35593/* end confdefs.h. */
35594#include <execinfo.h>
35595int
35596main ()
35597{
35598
35599 void *trace[1];
35600 char **messages;
35601
35602 backtrace(trace, 1);
35603 messages = backtrace_symbols(trace, 1);
35604
35605 ;
35606 return 0;
35607}
35608_ACEOF
35609rm -f conftest.$ac_objext
35610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35611 (eval $ac_compile) 2>conftest.er1
35612 ac_status=$?
35613 grep -v '^ *+' conftest.er1 >conftest.err
35614 rm -f conftest.er1
35615 cat conftest.err >&5
35616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35617 (exit $ac_status); } &&
c9a66001 35618 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
35619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35620 (eval $ac_try) 2>&5
35621 ac_status=$?
35622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35623 (exit $ac_status); }; } &&
35624 { ac_try='test -s conftest.$ac_objext'
35625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35626 (eval $ac_try) 2>&5
35627 ac_status=$?
35628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35629 (exit $ac_status); }; }; then
35630 wx_cv_func_backtrace=yes
35631else
35632 echo "$as_me: failed program was:" >&5
35633sed 's/^/| /' conftest.$ac_ext >&5
35634
35635wx_cv_func_backtrace=no
35636
35637fi
35638rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35639
35640
35641fi
35642echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
35643echo "${ECHO_T}$wx_cv_func_backtrace" >&6
35644
35645
35646 if test "$wx_cv_func_backtrace" = "no"; then
35647 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
35648echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
35649 wxUSE_STACKWALKER=no
35650 else
35651 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
35652echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
35653if test "${wx_cv_func_cxa_demangle+set}" = set; then
35654 echo $ECHO_N "(cached) $ECHO_C" >&6
35655else
35656
35657 cat >conftest.$ac_ext <<_ACEOF
35658/* confdefs.h. */
35659_ACEOF
35660cat confdefs.h >>conftest.$ac_ext
35661cat >>conftest.$ac_ext <<_ACEOF
35662/* end confdefs.h. */
35663#include <cxxabi.h>
35664int
35665main ()
35666{
35667
35668 int rc;
35669 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
35670
35671 ;
35672 return 0;
35673}
35674_ACEOF
dfe0c803
JS
35675rm -f conftest.$ac_objext conftest$ac_exeext
35676if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35677 (eval $ac_link) 2>conftest.er1
eaff0f0d
VZ
35678 ac_status=$?
35679 grep -v '^ *+' conftest.er1 >conftest.err
35680 rm -f conftest.er1
35681 cat conftest.err >&5
35682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35683 (exit $ac_status); } &&
c9a66001 35684 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
35685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35686 (eval $ac_try) 2>&5
35687 ac_status=$?
35688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35689 (exit $ac_status); }; } &&
dfe0c803 35690 { ac_try='test -s conftest$ac_exeext'
eaff0f0d
VZ
35691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35692 (eval $ac_try) 2>&5
35693 ac_status=$?
35694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35695 (exit $ac_status); }; }; then
35696 wx_cv_func_cxa_demangle=yes
35697else
35698 echo "$as_me: failed program was:" >&5
35699sed 's/^/| /' conftest.$ac_ext >&5
35700
35701wx_cv_func_cxa_demangle=no
35702
35703fi
dfe0c803
JS
35704rm -f conftest.err conftest.$ac_objext \
35705 conftest$ac_exeext conftest.$ac_ext
eaff0f0d
VZ
35706
35707
35708fi
35709echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
35710echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
35711
35712 if test "$wx_cv_func_cxa_demangle" = "yes"; then
35713 cat >>confdefs.h <<\_ACEOF
35714#define HAVE_CXA_DEMANGLE 1
35715_ACEOF
35716
35717 fi
35718 fi
eaff0f0d
VZ
35719fi
35720
898beab1
DE
35721if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
35722 { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
35723echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
35724 wxUSE_STACKWALKER=no
35725fi
35726
35727
a848cd7e
SC
35728
35729
35730for ac_func in mkstemp mktemp
35731do
35732as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35733echo "$as_me:$LINENO: checking for $ac_func" >&5
35734echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35735if eval "test \"\${$as_ac_var+set}\" = set"; then
35736 echo $ECHO_N "(cached) $ECHO_C" >&6
35737else
35738 cat >conftest.$ac_ext <<_ACEOF
35739/* confdefs.h. */
35740_ACEOF
35741cat confdefs.h >>conftest.$ac_ext
35742cat >>conftest.$ac_ext <<_ACEOF
35743/* end confdefs.h. */
ac1cb8d3
VS
35744/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35745 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35746#define $ac_func innocuous_$ac_func
35747
a848cd7e
SC
35748/* System header to define __stub macros and hopefully few prototypes,
35749 which can conflict with char $ac_func (); below.
35750 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35751 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35752
a848cd7e
SC
35753#ifdef __STDC__
35754# include <limits.h>
35755#else
35756# include <assert.h>
35757#endif
ac1cb8d3
VS
35758
35759#undef $ac_func
35760
a848cd7e
SC
35761/* Override any gcc2 internal prototype to avoid an error. */
35762#ifdef __cplusplus
35763extern "C"
35764{
35765#endif
35766/* We use char because int might match the return type of a gcc2
35767 builtin and then its argument prototype would still apply. */
35768char $ac_func ();
35769/* The GNU C library defines this for functions which it implements
35770 to always fail with ENOSYS. Some functions are actually named
35771 something starting with __ and the normal name is an alias. */
35772#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35773choke me
35774#else
35775char (*f) () = $ac_func;
35776#endif
35777#ifdef __cplusplus
35778}
35779#endif
35780
35781int
35782main ()
35783{
35784return f != $ac_func;
35785 ;
35786 return 0;
35787}
35788_ACEOF
35789rm -f conftest.$ac_objext conftest$ac_exeext
35790if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35791 (eval $ac_link) 2>conftest.er1
a848cd7e 35792 ac_status=$?
ac1cb8d3
VS
35793 grep -v '^ *+' conftest.er1 >conftest.err
35794 rm -f conftest.er1
35795 cat conftest.err >&5
a848cd7e
SC
35796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35797 (exit $ac_status); } &&
c9a66001 35798 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35800 (eval $ac_try) 2>&5
35801 ac_status=$?
35802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35803 (exit $ac_status); }; } &&
35804 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35806 (eval $ac_try) 2>&5
35807 ac_status=$?
35808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35809 (exit $ac_status); }; }; then
35810 eval "$as_ac_var=yes"
35811else
35812 echo "$as_me: failed program was:" >&5
35813sed 's/^/| /' conftest.$ac_ext >&5
35814
35815eval "$as_ac_var=no"
35816fi
ac1cb8d3
VS
35817rm -f conftest.err conftest.$ac_objext \
35818 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35819fi
35820echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35821echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35822if test `eval echo '${'$as_ac_var'}'` = yes; then
35823 cat >>confdefs.h <<_ACEOF
35824#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35825_ACEOF
35826 break
35827fi
35828done
35829
35830
35831echo "$as_me:$LINENO: checking for statfs" >&5
35832echo $ECHO_N "checking for statfs... $ECHO_C" >&6
35833if test "${wx_cv_func_statfs+set}" = set; then
35834 echo $ECHO_N "(cached) $ECHO_C" >&6
35835else
35836 cat >conftest.$ac_ext <<_ACEOF
35837/* confdefs.h. */
35838_ACEOF
35839cat confdefs.h >>conftest.$ac_ext
35840cat >>conftest.$ac_ext <<_ACEOF
35841/* end confdefs.h. */
35842
35843 #if defined(__BSD__)
84ae7ca4
VZ
35844 #include <sys/param.h>
35845 #include <sys/mount.h>
a848cd7e 35846 #else
84ae7ca4 35847 #include <sys/vfs.h>
a848cd7e
SC
35848 #endif
35849
35850int
35851main ()
35852{
35853
35854 long l;
35855 struct statfs fs;
35856 statfs("/", &fs);
35857 l = fs.f_bsize;
35858 l += fs.f_blocks;
35859 l += fs.f_bavail;
35860
35861 ;
35862 return 0;
35863}
35864_ACEOF
35865rm -f conftest.$ac_objext
35866if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35867 (eval $ac_compile) 2>conftest.er1
a848cd7e 35868 ac_status=$?
ac1cb8d3
VS
35869 grep -v '^ *+' conftest.er1 >conftest.err
35870 rm -f conftest.er1
35871 cat conftest.err >&5
a848cd7e
SC
35872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35873 (exit $ac_status); } &&
c9a66001 35874 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35876 (eval $ac_try) 2>&5
35877 ac_status=$?
35878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35879 (exit $ac_status); }; } &&
35880 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35882 (eval $ac_try) 2>&5
35883 ac_status=$?
35884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35885 (exit $ac_status); }; }; then
84ae7ca4 35886 wx_cv_func_statfs=yes
a848cd7e
SC
35887else
35888 echo "$as_me: failed program was:" >&5
35889sed 's/^/| /' conftest.$ac_ext >&5
35890
84ae7ca4 35891wx_cv_func_statfs=no
a848cd7e
SC
35892
35893fi
ac1cb8d3 35894rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35895
35896fi
35897echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
35898echo "${ECHO_T}$wx_cv_func_statfs" >&6
35899
35900if test "$wx_cv_func_statfs" = "yes"; then
5d7b7554 35901 echo "$as_me:$LINENO: checking for statfs declaration" >&5
84ae7ca4
VZ
35902echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6
35903if test "${wx_cv_func_statfs_decl+set}" = set; then
35904 echo $ECHO_N "(cached) $ECHO_C" >&6
35905else
0683aca6
VZ
35906 cat >conftest.$ac_ext <<_ACEOF
35907/* confdefs.h. */
35908_ACEOF
35909cat confdefs.h >>conftest.$ac_ext
35910cat >>conftest.$ac_ext <<_ACEOF
35911/* end confdefs.h. */
84ae7ca4 35912
0683aca6
VZ
35913 #if defined(__BSD__)
35914 #include <sys/param.h>
35915 #include <sys/mount.h>
35916 #else
35917 #include <sys/vfs.h>
35918 #endif
35919
35920int
35921main ()
35922{
35923
35924 struct statfs fs;
35925 statfs("", &fs);
35926
35927 ;
35928 return 0;
35929}
35930_ACEOF
35931rm -f conftest.$ac_objext
35932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35933 (eval $ac_compile) 2>conftest.er1
35934 ac_status=$?
35935 grep -v '^ *+' conftest.er1 >conftest.err
35936 rm -f conftest.er1
35937 cat conftest.err >&5
35938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35939 (exit $ac_status); } &&
c9a66001 35940 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0683aca6
VZ
35941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35942 (eval $ac_try) 2>&5
35943 ac_status=$?
35944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35945 (exit $ac_status); }; } &&
35946 { ac_try='test -s conftest.$ac_objext'
35947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35948 (eval $ac_try) 2>&5
35949 ac_status=$?
35950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35951 (exit $ac_status); }; }; then
35952 wx_cv_func_statfs_decl=yes
35953else
35954 echo "$as_me: failed program was:" >&5
35955sed 's/^/| /' conftest.$ac_ext >&5
35956
35957wx_cv_func_statfs_decl=no
35958
35959fi
35960rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
84ae7ca4
VZ
35961
35962fi
35963echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
35964echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6
84ae7ca4
VZ
35965
35966 if test "$wx_cv_func_statfs_decl" = "yes"; then
35967 cat >>confdefs.h <<\_ACEOF
35968#define HAVE_STATFS_DECL 1
35969_ACEOF
35970
35971 fi
35972
a848cd7e
SC
35973 wx_cv_type_statvfs_t="struct statfs"
35974 cat >>confdefs.h <<\_ACEOF
35975#define HAVE_STATFS 1
35976_ACEOF
35977
35978else
35979 echo "$as_me:$LINENO: checking for statvfs" >&5
35980echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
35981if test "${wx_cv_func_statvfs+set}" = set; then
35982 echo $ECHO_N "(cached) $ECHO_C" >&6
35983else
35984 cat >conftest.$ac_ext <<_ACEOF
35985/* confdefs.h. */
35986_ACEOF
35987cat confdefs.h >>conftest.$ac_ext
35988cat >>conftest.$ac_ext <<_ACEOF
35989/* end confdefs.h. */
35990
35991 #include <stddef.h>
35992 #include <sys/statvfs.h>
35993
35994int
35995main ()
35996{
35997
35998 statvfs("/", NULL);
35999
36000 ;
36001 return 0;
36002}
36003_ACEOF
36004rm -f conftest.$ac_objext
36005if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36006 (eval $ac_compile) 2>conftest.er1
a848cd7e 36007 ac_status=$?
ac1cb8d3
VS
36008 grep -v '^ *+' conftest.er1 >conftest.err
36009 rm -f conftest.er1
36010 cat conftest.err >&5
a848cd7e
SC
36011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36012 (exit $ac_status); } &&
c9a66001 36013 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36015 (eval $ac_try) 2>&5
36016 ac_status=$?
36017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36018 (exit $ac_status); }; } &&
36019 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36021 (eval $ac_try) 2>&5
36022 ac_status=$?
36023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36024 (exit $ac_status); }; }; then
36025 wx_cv_func_statvfs=yes
36026else
36027 echo "$as_me: failed program was:" >&5
36028sed 's/^/| /' conftest.$ac_ext >&5
36029
36030wx_cv_func_statvfs=no
36031
36032fi
ac1cb8d3 36033rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36034
36035fi
36036echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
36037echo "${ECHO_T}$wx_cv_func_statvfs" >&6
36038
36039 if test "$wx_cv_func_statvfs" = "yes"; then
5d7b7554 36040 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
a848cd7e
SC
36041echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
36042if test "${wx_cv_type_statvfs_t+set}" = set; then
36043 echo $ECHO_N "(cached) $ECHO_C" >&6
36044else
36045 cat >conftest.$ac_ext <<_ACEOF
36046/* confdefs.h. */
36047_ACEOF
36048cat confdefs.h >>conftest.$ac_ext
36049cat >>conftest.$ac_ext <<_ACEOF
36050/* end confdefs.h. */
36051
36052 #include <sys/statvfs.h>
36053
36054int
36055main ()
36056{
36057
36058 long l;
36059 statvfs_t fs;
36060 statvfs("/", &fs);
36061 l = fs.f_bsize;
36062 l += fs.f_blocks;
36063 l += fs.f_bavail;
36064
36065 ;
36066 return 0;
36067}
36068_ACEOF
36069rm -f conftest.$ac_objext
36070if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36071 (eval $ac_compile) 2>conftest.er1
a848cd7e 36072 ac_status=$?
ac1cb8d3
VS
36073 grep -v '^ *+' conftest.er1 >conftest.err
36074 rm -f conftest.er1
36075 cat conftest.err >&5
a848cd7e
SC
36076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36077 (exit $ac_status); } &&
c9a66001 36078 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36080 (eval $ac_try) 2>&5
36081 ac_status=$?
36082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36083 (exit $ac_status); }; } &&
36084 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36086 (eval $ac_try) 2>&5
36087 ac_status=$?
36088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36089 (exit $ac_status); }; }; then
36090 wx_cv_type_statvfs_t=statvfs_t
36091else
36092 echo "$as_me: failed program was:" >&5
36093sed 's/^/| /' conftest.$ac_ext >&5
36094
36095
36096 cat >conftest.$ac_ext <<_ACEOF
36097/* confdefs.h. */
36098_ACEOF
36099cat confdefs.h >>conftest.$ac_ext
36100cat >>conftest.$ac_ext <<_ACEOF
36101/* end confdefs.h. */
36102
36103 #include <sys/statvfs.h>
36104
36105int
36106main ()
36107{
36108
36109 long l;
36110 struct statvfs fs;
36111 statvfs("/", &fs);
36112 l = fs.f_bsize;
36113 l += fs.f_blocks;
36114 l += fs.f_bavail;
36115
36116 ;
36117 return 0;
36118}
36119_ACEOF
36120rm -f conftest.$ac_objext
36121if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36122 (eval $ac_compile) 2>conftest.er1
a848cd7e 36123 ac_status=$?
ac1cb8d3
VS
36124 grep -v '^ *+' conftest.er1 >conftest.err
36125 rm -f conftest.er1
36126 cat conftest.err >&5
a848cd7e
SC
36127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36128 (exit $ac_status); } &&
c9a66001 36129 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36131 (eval $ac_try) 2>&5
36132 ac_status=$?
36133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36134 (exit $ac_status); }; } &&
36135 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36137 (eval $ac_try) 2>&5
36138 ac_status=$?
36139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36140 (exit $ac_status); }; }; then
36141 wx_cv_type_statvfs_t="struct statvfs"
36142else
36143 echo "$as_me: failed program was:" >&5
36144sed 's/^/| /' conftest.$ac_ext >&5
36145
36146wx_cv_type_statvfs_t="unknown"
36147
36148fi
ac1cb8d3 36149rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36150
36151
36152fi
ac1cb8d3 36153rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36154
36155fi
36156echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
36157echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
36158
a848cd7e
SC
36159 if test "$wx_cv_type_statvfs_t" != "unknown"; then
36160 cat >>confdefs.h <<\_ACEOF
36161#define HAVE_STATVFS 1
36162_ACEOF
36163
36164 fi
36165 else
36166 wx_cv_type_statvfs_t="unknown"
36167 fi
36168fi
36169
36170if test "$wx_cv_type_statvfs_t" != "unknown"; then
36171 cat >>confdefs.h <<_ACEOF
36172#define WX_STATFS_T $wx_cv_type_statvfs_t
36173_ACEOF
36174
36175else
36176 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
36177echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
36178fi
36179
36180if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
36181
36182
36183for ac_func in fcntl flock
36184do
36185as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36186echo "$as_me:$LINENO: checking for $ac_func" >&5
36187echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36188if eval "test \"\${$as_ac_var+set}\" = set"; then
36189 echo $ECHO_N "(cached) $ECHO_C" >&6
36190else
36191 cat >conftest.$ac_ext <<_ACEOF
36192/* confdefs.h. */
36193_ACEOF
36194cat confdefs.h >>conftest.$ac_ext
36195cat >>conftest.$ac_ext <<_ACEOF
36196/* end confdefs.h. */
ac1cb8d3
VS
36197/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36198 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36199#define $ac_func innocuous_$ac_func
36200
a848cd7e
SC
36201/* System header to define __stub macros and hopefully few prototypes,
36202 which can conflict with char $ac_func (); below.
36203 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36204 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36205
a848cd7e
SC
36206#ifdef __STDC__
36207# include <limits.h>
36208#else
36209# include <assert.h>
36210#endif
ac1cb8d3
VS
36211
36212#undef $ac_func
36213
a848cd7e
SC
36214/* Override any gcc2 internal prototype to avoid an error. */
36215#ifdef __cplusplus
36216extern "C"
36217{
36218#endif
36219/* We use char because int might match the return type of a gcc2
36220 builtin and then its argument prototype would still apply. */
36221char $ac_func ();
36222/* The GNU C library defines this for functions which it implements
36223 to always fail with ENOSYS. Some functions are actually named
36224 something starting with __ and the normal name is an alias. */
36225#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36226choke me
36227#else
36228char (*f) () = $ac_func;
36229#endif
36230#ifdef __cplusplus
36231}
36232#endif
36233
36234int
36235main ()
36236{
36237return f != $ac_func;
36238 ;
36239 return 0;
36240}
36241_ACEOF
36242rm -f conftest.$ac_objext conftest$ac_exeext
36243if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36244 (eval $ac_link) 2>conftest.er1
a848cd7e 36245 ac_status=$?
ac1cb8d3
VS
36246 grep -v '^ *+' conftest.er1 >conftest.err
36247 rm -f conftest.er1
36248 cat conftest.err >&5
a848cd7e
SC
36249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36250 (exit $ac_status); } &&
c9a66001 36251 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36253 (eval $ac_try) 2>&5
36254 ac_status=$?
36255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36256 (exit $ac_status); }; } &&
36257 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36259 (eval $ac_try) 2>&5
36260 ac_status=$?
36261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36262 (exit $ac_status); }; }; then
36263 eval "$as_ac_var=yes"
36264else
36265 echo "$as_me: failed program was:" >&5
36266sed 's/^/| /' conftest.$ac_ext >&5
36267
36268eval "$as_ac_var=no"
36269fi
ac1cb8d3
VS
36270rm -f conftest.err conftest.$ac_objext \
36271 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36272fi
36273echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36274echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36275if test `eval echo '${'$as_ac_var'}'` = yes; then
36276 cat >>confdefs.h <<_ACEOF
36277#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36278_ACEOF
36279 break
36280fi
36281done
36282
36283
36284 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
36285 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
36286echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
36287 wxUSE_SNGLINST_CHECKER=no
36288 fi
36289fi
36290
36291
36292for ac_func in timegm
36293do
36294as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36295echo "$as_me:$LINENO: checking for $ac_func" >&5
36296echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36297if eval "test \"\${$as_ac_var+set}\" = set"; then
36298 echo $ECHO_N "(cached) $ECHO_C" >&6
36299else
36300 cat >conftest.$ac_ext <<_ACEOF
36301/* confdefs.h. */
36302_ACEOF
36303cat confdefs.h >>conftest.$ac_ext
36304cat >>conftest.$ac_ext <<_ACEOF
36305/* end confdefs.h. */
ac1cb8d3
VS
36306/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36307 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36308#define $ac_func innocuous_$ac_func
36309
a848cd7e
SC
36310/* System header to define __stub macros and hopefully few prototypes,
36311 which can conflict with char $ac_func (); below.
36312 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36313 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36314
a848cd7e
SC
36315#ifdef __STDC__
36316# include <limits.h>
36317#else
36318# include <assert.h>
36319#endif
ac1cb8d3
VS
36320
36321#undef $ac_func
36322
a848cd7e
SC
36323/* Override any gcc2 internal prototype to avoid an error. */
36324#ifdef __cplusplus
36325extern "C"
36326{
36327#endif
36328/* We use char because int might match the return type of a gcc2
36329 builtin and then its argument prototype would still apply. */
36330char $ac_func ();
36331/* The GNU C library defines this for functions which it implements
36332 to always fail with ENOSYS. Some functions are actually named
36333 something starting with __ and the normal name is an alias. */
36334#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36335choke me
36336#else
36337char (*f) () = $ac_func;
36338#endif
36339#ifdef __cplusplus
36340}
36341#endif
36342
36343int
36344main ()
36345{
36346return f != $ac_func;
36347 ;
36348 return 0;
36349}
36350_ACEOF
36351rm -f conftest.$ac_objext conftest$ac_exeext
36352if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36353 (eval $ac_link) 2>conftest.er1
a848cd7e 36354 ac_status=$?
ac1cb8d3
VS
36355 grep -v '^ *+' conftest.er1 >conftest.err
36356 rm -f conftest.er1
36357 cat conftest.err >&5
a848cd7e
SC
36358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36359 (exit $ac_status); } &&
c9a66001 36360 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36362 (eval $ac_try) 2>&5
36363 ac_status=$?
36364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36365 (exit $ac_status); }; } &&
36366 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36368 (eval $ac_try) 2>&5
36369 ac_status=$?
36370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36371 (exit $ac_status); }; }; then
36372 eval "$as_ac_var=yes"
36373else
36374 echo "$as_me: failed program was:" >&5
36375sed 's/^/| /' conftest.$ac_ext >&5
36376
36377eval "$as_ac_var=no"
36378fi
ac1cb8d3
VS
36379rm -f conftest.err conftest.$ac_objext \
36380 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36381fi
36382echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36383echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36384if test `eval echo '${'$as_ac_var'}'` = yes; then
36385 cat >>confdefs.h <<_ACEOF
36386#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36387_ACEOF
36388
36389fi
36390done
36391
36392
36393
36394
36395for ac_func in putenv setenv
36396do
36397as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36398echo "$as_me:$LINENO: checking for $ac_func" >&5
36399echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36400if eval "test \"\${$as_ac_var+set}\" = set"; then
36401 echo $ECHO_N "(cached) $ECHO_C" >&6
36402else
36403 cat >conftest.$ac_ext <<_ACEOF
36404/* confdefs.h. */
36405_ACEOF
36406cat confdefs.h >>conftest.$ac_ext
36407cat >>conftest.$ac_ext <<_ACEOF
36408/* end confdefs.h. */
ac1cb8d3
VS
36409/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36410 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36411#define $ac_func innocuous_$ac_func
36412
a848cd7e
SC
36413/* System header to define __stub macros and hopefully few prototypes,
36414 which can conflict with char $ac_func (); below.
36415 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36416 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36417
a848cd7e
SC
36418#ifdef __STDC__
36419# include <limits.h>
36420#else
36421# include <assert.h>
36422#endif
ac1cb8d3
VS
36423
36424#undef $ac_func
36425
a848cd7e
SC
36426/* Override any gcc2 internal prototype to avoid an error. */
36427#ifdef __cplusplus
36428extern "C"
36429{
36430#endif
36431/* We use char because int might match the return type of a gcc2
36432 builtin and then its argument prototype would still apply. */
36433char $ac_func ();
36434/* The GNU C library defines this for functions which it implements
36435 to always fail with ENOSYS. Some functions are actually named
36436 something starting with __ and the normal name is an alias. */
36437#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36438choke me
36439#else
36440char (*f) () = $ac_func;
36441#endif
36442#ifdef __cplusplus
36443}
36444#endif
36445
36446int
36447main ()
36448{
36449return f != $ac_func;
36450 ;
36451 return 0;
36452}
36453_ACEOF
36454rm -f conftest.$ac_objext conftest$ac_exeext
36455if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36456 (eval $ac_link) 2>conftest.er1
a848cd7e 36457 ac_status=$?
ac1cb8d3
VS
36458 grep -v '^ *+' conftest.er1 >conftest.err
36459 rm -f conftest.er1
36460 cat conftest.err >&5
a848cd7e
SC
36461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36462 (exit $ac_status); } &&
c9a66001 36463 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36465 (eval $ac_try) 2>&5
36466 ac_status=$?
36467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36468 (exit $ac_status); }; } &&
36469 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36471 (eval $ac_try) 2>&5
36472 ac_status=$?
36473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36474 (exit $ac_status); }; }; then
36475 eval "$as_ac_var=yes"
36476else
36477 echo "$as_me: failed program was:" >&5
36478sed 's/^/| /' conftest.$ac_ext >&5
36479
36480eval "$as_ac_var=no"
36481fi
ac1cb8d3
VS
36482rm -f conftest.err conftest.$ac_objext \
36483 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36484fi
36485echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36486echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36487if test `eval echo '${'$as_ac_var'}'` = yes; then
36488 cat >>confdefs.h <<_ACEOF
36489#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36490_ACEOF
36491 break
36492fi
36493done
36494
36495
36496HAVE_SOME_SLEEP_FUNC=0
36497if test "$USE_BEOS" = 1; then
36498 cat >>confdefs.h <<\_ACEOF
36499#define HAVE_SLEEP 1
36500_ACEOF
36501
36502 HAVE_SOME_SLEEP_FUNC=1
36503fi
36504
36505if test "$USE_DARWIN" = 1; then
36506 cat >>confdefs.h <<\_ACEOF
36507#define HAVE_USLEEP 1
36508_ACEOF
36509
36510 HAVE_SOME_SLEEP_FUNC=1
36511fi
36512
36513if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
36514 POSIX4_LINK=
36515
36516for ac_func in nanosleep
36517do
36518as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36519echo "$as_me:$LINENO: checking for $ac_func" >&5
36520echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36521if eval "test \"\${$as_ac_var+set}\" = set"; then
36522 echo $ECHO_N "(cached) $ECHO_C" >&6
36523else
36524 cat >conftest.$ac_ext <<_ACEOF
36525/* confdefs.h. */
36526_ACEOF
36527cat confdefs.h >>conftest.$ac_ext
36528cat >>conftest.$ac_ext <<_ACEOF
36529/* end confdefs.h. */
ac1cb8d3
VS
36530/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36531 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36532#define $ac_func innocuous_$ac_func
36533
a848cd7e
SC
36534/* System header to define __stub macros and hopefully few prototypes,
36535 which can conflict with char $ac_func (); below.
36536 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36537 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36538
a848cd7e
SC
36539#ifdef __STDC__
36540# include <limits.h>
36541#else
36542# include <assert.h>
36543#endif
ac1cb8d3
VS
36544
36545#undef $ac_func
36546
a848cd7e
SC
36547/* Override any gcc2 internal prototype to avoid an error. */
36548#ifdef __cplusplus
36549extern "C"
36550{
36551#endif
36552/* We use char because int might match the return type of a gcc2
36553 builtin and then its argument prototype would still apply. */
36554char $ac_func ();
36555/* The GNU C library defines this for functions which it implements
36556 to always fail with ENOSYS. Some functions are actually named
36557 something starting with __ and the normal name is an alias. */
36558#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36559choke me
36560#else
36561char (*f) () = $ac_func;
36562#endif
36563#ifdef __cplusplus
36564}
36565#endif
36566
36567int
36568main ()
36569{
36570return f != $ac_func;
36571 ;
36572 return 0;
36573}
36574_ACEOF
36575rm -f conftest.$ac_objext conftest$ac_exeext
36576if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36577 (eval $ac_link) 2>conftest.er1
a848cd7e 36578 ac_status=$?
ac1cb8d3
VS
36579 grep -v '^ *+' conftest.er1 >conftest.err
36580 rm -f conftest.er1
36581 cat conftest.err >&5
a848cd7e
SC
36582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36583 (exit $ac_status); } &&
c9a66001 36584 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36586 (eval $ac_try) 2>&5
36587 ac_status=$?
36588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36589 (exit $ac_status); }; } &&
36590 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36592 (eval $ac_try) 2>&5
36593 ac_status=$?
36594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36595 (exit $ac_status); }; }; then
36596 eval "$as_ac_var=yes"
36597else
36598 echo "$as_me: failed program was:" >&5
36599sed 's/^/| /' conftest.$ac_ext >&5
36600
36601eval "$as_ac_var=no"
36602fi
ac1cb8d3
VS
36603rm -f conftest.err conftest.$ac_objext \
36604 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36605fi
36606echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36607echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36608if test `eval echo '${'$as_ac_var'}'` = yes; then
36609 cat >>confdefs.h <<_ACEOF
36610#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36611_ACEOF
36612 cat >>confdefs.h <<\_ACEOF
36613#define HAVE_NANOSLEEP 1
36614_ACEOF
36615
36616else
36617
36618 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
36619echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
36620if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
36621 echo $ECHO_N "(cached) $ECHO_C" >&6
36622else
36623 ac_check_lib_save_LIBS=$LIBS
36624LIBS="-lposix4 $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 nanosleep ();
36639int
36640main ()
36641{
36642nanosleep ();
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); } &&
c9a66001 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_posix4_nanosleep=yes
36669else
36670 echo "$as_me: failed program was:" >&5
36671sed 's/^/| /' conftest.$ac_ext >&5
36672
36673ac_cv_lib_posix4_nanosleep=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_posix4_nanosleep" >&5
36680echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
36681if test $ac_cv_lib_posix4_nanosleep = yes; then
36682
36683 cat >>confdefs.h <<\_ACEOF
36684#define HAVE_NANOSLEEP 1
36685_ACEOF
36686
36687 POSIX4_LINK=" -lposix4"
36688
36689else
36690
36691
36692for ac_func in usleep
36693do
36694as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36695echo "$as_me:$LINENO: checking for $ac_func" >&5
36696echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36697if eval "test \"\${$as_ac_var+set}\" = set"; then
36698 echo $ECHO_N "(cached) $ECHO_C" >&6
36699else
36700 cat >conftest.$ac_ext <<_ACEOF
36701/* confdefs.h. */
36702_ACEOF
36703cat confdefs.h >>conftest.$ac_ext
36704cat >>conftest.$ac_ext <<_ACEOF
36705/* end confdefs.h. */
ac1cb8d3
VS
36706/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36707 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36708#define $ac_func innocuous_$ac_func
36709
a848cd7e
SC
36710/* System header to define __stub macros and hopefully few prototypes,
36711 which can conflict with char $ac_func (); below.
36712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36713 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36714
a848cd7e
SC
36715#ifdef __STDC__
36716# include <limits.h>
36717#else
36718# include <assert.h>
36719#endif
ac1cb8d3
VS
36720
36721#undef $ac_func
36722
a848cd7e
SC
36723/* Override any gcc2 internal prototype to avoid an error. */
36724#ifdef __cplusplus
36725extern "C"
36726{
36727#endif
36728/* We use char because int might match the return type of a gcc2
36729 builtin and then its argument prototype would still apply. */
36730char $ac_func ();
36731/* The GNU C library defines this for functions which it implements
36732 to always fail with ENOSYS. Some functions are actually named
36733 something starting with __ and the normal name is an alias. */
36734#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36735choke me
36736#else
36737char (*f) () = $ac_func;
36738#endif
36739#ifdef __cplusplus
36740}
36741#endif
36742
36743int
36744main ()
36745{
36746return f != $ac_func;
36747 ;
36748 return 0;
36749}
36750_ACEOF
36751rm -f conftest.$ac_objext conftest$ac_exeext
36752if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36753 (eval $ac_link) 2>conftest.er1
a848cd7e 36754 ac_status=$?
ac1cb8d3
VS
36755 grep -v '^ *+' conftest.er1 >conftest.err
36756 rm -f conftest.er1
36757 cat conftest.err >&5
a848cd7e
SC
36758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36759 (exit $ac_status); } &&
c9a66001 36760 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36762 (eval $ac_try) 2>&5
36763 ac_status=$?
36764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36765 (exit $ac_status); }; } &&
36766 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36768 (eval $ac_try) 2>&5
36769 ac_status=$?
36770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36771 (exit $ac_status); }; }; then
36772 eval "$as_ac_var=yes"
36773else
36774 echo "$as_me: failed program was:" >&5
36775sed 's/^/| /' conftest.$ac_ext >&5
36776
36777eval "$as_ac_var=no"
36778fi
ac1cb8d3
VS
36779rm -f conftest.err conftest.$ac_objext \
36780 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36781fi
36782echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36783echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36784if test `eval echo '${'$as_ac_var'}'` = yes; then
36785 cat >>confdefs.h <<_ACEOF
36786#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36787_ACEOF
36788 cat >>confdefs.h <<\_ACEOF
36789#define HAVE_USLEEP 1
36790_ACEOF
36791
36792else
36793 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
36794echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
36795
36796fi
36797done
36798
36799
36800
36801fi
36802
36803
36804
36805fi
36806done
36807
36808fi
36809
36810
36811
36812for ac_func in uname gethostname
36813do
36814as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36815echo "$as_me:$LINENO: checking for $ac_func" >&5
36816echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36817if eval "test \"\${$as_ac_var+set}\" = set"; then
36818 echo $ECHO_N "(cached) $ECHO_C" >&6
36819else
36820 cat >conftest.$ac_ext <<_ACEOF
36821/* confdefs.h. */
36822_ACEOF
36823cat confdefs.h >>conftest.$ac_ext
36824cat >>conftest.$ac_ext <<_ACEOF
36825/* end confdefs.h. */
ac1cb8d3
VS
36826/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36828#define $ac_func innocuous_$ac_func
36829
a848cd7e
SC
36830/* System header to define __stub macros and hopefully few prototypes,
36831 which can conflict with char $ac_func (); below.
36832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36833 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36834
a848cd7e
SC
36835#ifdef __STDC__
36836# include <limits.h>
36837#else
36838# include <assert.h>
36839#endif
ac1cb8d3
VS
36840
36841#undef $ac_func
36842
a848cd7e
SC
36843/* Override any gcc2 internal prototype to avoid an error. */
36844#ifdef __cplusplus
36845extern "C"
36846{
36847#endif
36848/* We use char because int might match the return type of a gcc2
36849 builtin and then its argument prototype would still apply. */
36850char $ac_func ();
36851/* The GNU C library defines this for functions which it implements
36852 to always fail with ENOSYS. Some functions are actually named
36853 something starting with __ and the normal name is an alias. */
36854#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36855choke me
36856#else
36857char (*f) () = $ac_func;
36858#endif
36859#ifdef __cplusplus
36860}
36861#endif
36862
36863int
36864main ()
36865{
36866return f != $ac_func;
36867 ;
36868 return 0;
36869}
36870_ACEOF
36871rm -f conftest.$ac_objext conftest$ac_exeext
36872if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36873 (eval $ac_link) 2>conftest.er1
a848cd7e 36874 ac_status=$?
ac1cb8d3
VS
36875 grep -v '^ *+' conftest.er1 >conftest.err
36876 rm -f conftest.er1
36877 cat conftest.err >&5
a848cd7e
SC
36878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36879 (exit $ac_status); } &&
c9a66001 36880 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36882 (eval $ac_try) 2>&5
36883 ac_status=$?
36884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36885 (exit $ac_status); }; } &&
36886 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36888 (eval $ac_try) 2>&5
36889 ac_status=$?
36890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36891 (exit $ac_status); }; }; then
36892 eval "$as_ac_var=yes"
36893else
36894 echo "$as_me: failed program was:" >&5
36895sed 's/^/| /' conftest.$ac_ext >&5
36896
36897eval "$as_ac_var=no"
36898fi
ac1cb8d3
VS
36899rm -f conftest.err conftest.$ac_objext \
36900 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36901fi
36902echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36903echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36904if test `eval echo '${'$as_ac_var'}'` = yes; then
36905 cat >>confdefs.h <<_ACEOF
36906#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36907_ACEOF
36908 break
36909fi
36910done
36911
36912
5acfd58d
MW
36913SAVE_CPPFLAGS="$CPPFLAGS"
36914CPPFLAGS="$CPPFLAGS -D_REENTRANT"
82a2636b
MW
36915echo "$as_me:$LINENO: checking whether strtok_r is declared" >&5
36916echo $ECHO_N "checking whether strtok_r is declared... $ECHO_C" >&6
36917if test "${ac_cv_have_decl_strtok_r+set}" = set; then
a848cd7e
SC
36918 echo $ECHO_N "(cached) $ECHO_C" >&6
36919else
82a2636b 36920 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
36921/* confdefs.h. */
36922_ACEOF
36923cat confdefs.h >>conftest.$ac_ext
36924cat >>conftest.$ac_ext <<_ACEOF
36925/* end confdefs.h. */
82a2636b 36926$ac_includes_default
a848cd7e
SC
36927int
36928main ()
36929{
82a2636b
MW
36930#ifndef strtok_r
36931 char *p = (char *) strtok_r;
36932#endif
5acfd58d 36933
a848cd7e
SC
36934 ;
36935 return 0;
36936}
36937_ACEOF
5acfd58d
MW
36938rm -f conftest.$ac_objext
36939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36940 (eval $ac_compile) 2>conftest.er1
a848cd7e 36941 ac_status=$?
ac1cb8d3
VS
36942 grep -v '^ *+' conftest.er1 >conftest.err
36943 rm -f conftest.er1
36944 cat conftest.err >&5
a848cd7e
SC
36945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36946 (exit $ac_status); } &&
c9a66001 36947 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36949 (eval $ac_try) 2>&5
36950 ac_status=$?
36951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36952 (exit $ac_status); }; } &&
5acfd58d 36953 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36955 (eval $ac_try) 2>&5
36956 ac_status=$?
36957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36958 (exit $ac_status); }; }; then
82a2636b 36959 ac_cv_have_decl_strtok_r=yes
a848cd7e
SC
36960else
36961 echo "$as_me: failed program was:" >&5
36962sed 's/^/| /' conftest.$ac_ext >&5
36963
82a2636b 36964ac_cv_have_decl_strtok_r=no
a848cd7e 36965fi
5acfd58d 36966rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 36967fi
82a2636b
MW
36968echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtok_r" >&5
36969echo "${ECHO_T}$ac_cv_have_decl_strtok_r" >&6
36970if test $ac_cv_have_decl_strtok_r = yes; then
5acfd58d 36971
82a2636b
MW
36972cat >>confdefs.h <<_ACEOF
36973#define HAVE_DECL_STRTOK_R 1
a848cd7e
SC
36974_ACEOF
36975
82a2636b
MW
36976cat >>confdefs.h <<\_ACEOF
36977#define HAVE_STRTOK_R 1
36978_ACEOF
a848cd7e 36979
82a2636b
MW
36980else
36981 cat >>confdefs.h <<_ACEOF
36982#define HAVE_DECL_STRTOK_R 0
36983_ACEOF
36984
36985
36986fi
5acfd58d 36987
5acfd58d
MW
36988
36989CPPFLAGS="$SAVE_CPPFLAGS"
a848cd7e 36990
a848cd7e
SC
36991INET_LINK=
36992
36993for ac_func in inet_addr
36994do
36995as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36996echo "$as_me:$LINENO: checking for $ac_func" >&5
36997echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36998if eval "test \"\${$as_ac_var+set}\" = set"; then
36999 echo $ECHO_N "(cached) $ECHO_C" >&6
37000else
37001 cat >conftest.$ac_ext <<_ACEOF
37002/* confdefs.h. */
37003_ACEOF
37004cat confdefs.h >>conftest.$ac_ext
37005cat >>conftest.$ac_ext <<_ACEOF
37006/* end confdefs.h. */
ac1cb8d3
VS
37007/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37008 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37009#define $ac_func innocuous_$ac_func
37010
a848cd7e
SC
37011/* System header to define __stub macros and hopefully few prototypes,
37012 which can conflict with char $ac_func (); below.
37013 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37014 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37015
a848cd7e
SC
37016#ifdef __STDC__
37017# include <limits.h>
37018#else
37019# include <assert.h>
37020#endif
ac1cb8d3
VS
37021
37022#undef $ac_func
37023
a848cd7e
SC
37024/* Override any gcc2 internal prototype to avoid an error. */
37025#ifdef __cplusplus
37026extern "C"
37027{
37028#endif
37029/* We use char because int might match the return type of a gcc2
37030 builtin and then its argument prototype would still apply. */
37031char $ac_func ();
37032/* The GNU C library defines this for functions which it implements
37033 to always fail with ENOSYS. Some functions are actually named
37034 something starting with __ and the normal name is an alias. */
37035#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37036choke me
37037#else
37038char (*f) () = $ac_func;
37039#endif
37040#ifdef __cplusplus
37041}
37042#endif
37043
37044int
37045main ()
37046{
37047return f != $ac_func;
37048 ;
37049 return 0;
37050}
37051_ACEOF
37052rm -f conftest.$ac_objext conftest$ac_exeext
37053if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37054 (eval $ac_link) 2>conftest.er1
a848cd7e 37055 ac_status=$?
ac1cb8d3
VS
37056 grep -v '^ *+' conftest.er1 >conftest.err
37057 rm -f conftest.er1
37058 cat conftest.err >&5
a848cd7e
SC
37059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37060 (exit $ac_status); } &&
c9a66001 37061 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37063 (eval $ac_try) 2>&5
37064 ac_status=$?
37065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37066 (exit $ac_status); }; } &&
37067 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37069 (eval $ac_try) 2>&5
37070 ac_status=$?
37071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37072 (exit $ac_status); }; }; then
37073 eval "$as_ac_var=yes"
37074else
37075 echo "$as_me: failed program was:" >&5
37076sed 's/^/| /' conftest.$ac_ext >&5
37077
37078eval "$as_ac_var=no"
37079fi
ac1cb8d3
VS
37080rm -f conftest.err conftest.$ac_objext \
37081 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37082fi
37083echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37084echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37085if test `eval echo '${'$as_ac_var'}'` = yes; then
37086 cat >>confdefs.h <<_ACEOF
37087#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37088_ACEOF
37089 cat >>confdefs.h <<\_ACEOF
37090#define HAVE_INET_ADDR 1
37091_ACEOF
37092
37093else
37094
37095 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
37096echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
37097if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
37098 echo $ECHO_N "(cached) $ECHO_C" >&6
37099else
37100 ac_check_lib_save_LIBS=$LIBS
37101LIBS="-lnsl $LIBS"
37102cat >conftest.$ac_ext <<_ACEOF
37103/* confdefs.h. */
37104_ACEOF
37105cat confdefs.h >>conftest.$ac_ext
37106cat >>conftest.$ac_ext <<_ACEOF
37107/* end confdefs.h. */
37108
37109/* Override any gcc2 internal prototype to avoid an error. */
37110#ifdef __cplusplus
37111extern "C"
37112#endif
37113/* We use char because int might match the return type of a gcc2
37114 builtin and then its argument prototype would still apply. */
37115char inet_addr ();
37116int
37117main ()
37118{
37119inet_addr ();
37120 ;
37121 return 0;
37122}
37123_ACEOF
37124rm -f conftest.$ac_objext conftest$ac_exeext
37125if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37126 (eval $ac_link) 2>conftest.er1
a848cd7e 37127 ac_status=$?
ac1cb8d3
VS
37128 grep -v '^ *+' conftest.er1 >conftest.err
37129 rm -f conftest.er1
37130 cat conftest.err >&5
a848cd7e
SC
37131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37132 (exit $ac_status); } &&
c9a66001 37133 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37135 (eval $ac_try) 2>&5
37136 ac_status=$?
37137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37138 (exit $ac_status); }; } &&
37139 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37141 (eval $ac_try) 2>&5
37142 ac_status=$?
37143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37144 (exit $ac_status); }; }; then
37145 ac_cv_lib_nsl_inet_addr=yes
37146else
37147 echo "$as_me: failed program was:" >&5
37148sed 's/^/| /' conftest.$ac_ext >&5
37149
37150ac_cv_lib_nsl_inet_addr=no
37151fi
ac1cb8d3
VS
37152rm -f conftest.err conftest.$ac_objext \
37153 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37154LIBS=$ac_check_lib_save_LIBS
37155fi
37156echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
37157echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
37158if test $ac_cv_lib_nsl_inet_addr = yes; then
37159 INET_LINK="nsl"
37160else
37161
37162 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
37163echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
37164if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
37165 echo $ECHO_N "(cached) $ECHO_C" >&6
37166else
37167 ac_check_lib_save_LIBS=$LIBS
37168LIBS="-lresolv $LIBS"
37169cat >conftest.$ac_ext <<_ACEOF
37170/* confdefs.h. */
37171_ACEOF
37172cat confdefs.h >>conftest.$ac_ext
37173cat >>conftest.$ac_ext <<_ACEOF
37174/* end confdefs.h. */
37175
37176/* Override any gcc2 internal prototype to avoid an error. */
37177#ifdef __cplusplus
37178extern "C"
37179#endif
37180/* We use char because int might match the return type of a gcc2
37181 builtin and then its argument prototype would still apply. */
37182char inet_addr ();
37183int
37184main ()
37185{
37186inet_addr ();
37187 ;
37188 return 0;
37189}
37190_ACEOF
37191rm -f conftest.$ac_objext conftest$ac_exeext
37192if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37193 (eval $ac_link) 2>conftest.er1
a848cd7e 37194 ac_status=$?
ac1cb8d3
VS
37195 grep -v '^ *+' conftest.er1 >conftest.err
37196 rm -f conftest.er1
37197 cat conftest.err >&5
a848cd7e
SC
37198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37199 (exit $ac_status); } &&
c9a66001 37200 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37202 (eval $ac_try) 2>&5
37203 ac_status=$?
37204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37205 (exit $ac_status); }; } &&
37206 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37208 (eval $ac_try) 2>&5
37209 ac_status=$?
37210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37211 (exit $ac_status); }; }; then
37212 ac_cv_lib_resolv_inet_addr=yes
37213else
37214 echo "$as_me: failed program was:" >&5
37215sed 's/^/| /' conftest.$ac_ext >&5
37216
37217ac_cv_lib_resolv_inet_addr=no
37218fi
ac1cb8d3
VS
37219rm -f conftest.err conftest.$ac_objext \
37220 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37221LIBS=$ac_check_lib_save_LIBS
37222fi
37223echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
37224echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
37225if test $ac_cv_lib_resolv_inet_addr = yes; then
37226 INET_LINK="resolv"
37227else
37228
37229 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
37230echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
37231if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
37232 echo $ECHO_N "(cached) $ECHO_C" >&6
37233else
37234 ac_check_lib_save_LIBS=$LIBS
37235LIBS="-lsocket $LIBS"
37236cat >conftest.$ac_ext <<_ACEOF
37237/* confdefs.h. */
37238_ACEOF
37239cat confdefs.h >>conftest.$ac_ext
37240cat >>conftest.$ac_ext <<_ACEOF
37241/* end confdefs.h. */
37242
37243/* Override any gcc2 internal prototype to avoid an error. */
37244#ifdef __cplusplus
37245extern "C"
37246#endif
37247/* We use char because int might match the return type of a gcc2
37248 builtin and then its argument prototype would still apply. */
37249char inet_addr ();
37250int
37251main ()
37252{
37253inet_addr ();
37254 ;
37255 return 0;
37256}
37257_ACEOF
37258rm -f conftest.$ac_objext conftest$ac_exeext
37259if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37260 (eval $ac_link) 2>conftest.er1
a848cd7e 37261 ac_status=$?
ac1cb8d3
VS
37262 grep -v '^ *+' conftest.er1 >conftest.err
37263 rm -f conftest.er1
37264 cat conftest.err >&5
a848cd7e
SC
37265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37266 (exit $ac_status); } &&
c9a66001 37267 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37269 (eval $ac_try) 2>&5
37270 ac_status=$?
37271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37272 (exit $ac_status); }; } &&
37273 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37275 (eval $ac_try) 2>&5
37276 ac_status=$?
37277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37278 (exit $ac_status); }; }; then
37279 ac_cv_lib_socket_inet_addr=yes
37280else
37281 echo "$as_me: failed program was:" >&5
37282sed 's/^/| /' conftest.$ac_ext >&5
37283
37284ac_cv_lib_socket_inet_addr=no
37285fi
ac1cb8d3
VS
37286rm -f conftest.err conftest.$ac_objext \
37287 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37288LIBS=$ac_check_lib_save_LIBS
37289fi
37290echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
37291echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
37292if test $ac_cv_lib_socket_inet_addr = yes; then
37293 INET_LINK="socket"
37294
37295fi
37296
37297
37298
37299fi
37300
37301
37302
37303fi
37304
37305
37306
37307fi
37308done
37309
37310
37311
37312for ac_func in inet_aton
37313do
37314as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37315echo "$as_me:$LINENO: checking for $ac_func" >&5
37316echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37317if eval "test \"\${$as_ac_var+set}\" = set"; then
37318 echo $ECHO_N "(cached) $ECHO_C" >&6
37319else
37320 cat >conftest.$ac_ext <<_ACEOF
37321/* confdefs.h. */
37322_ACEOF
37323cat confdefs.h >>conftest.$ac_ext
37324cat >>conftest.$ac_ext <<_ACEOF
37325/* end confdefs.h. */
ac1cb8d3
VS
37326/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37327 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37328#define $ac_func innocuous_$ac_func
37329
a848cd7e
SC
37330/* System header to define __stub macros and hopefully few prototypes,
37331 which can conflict with char $ac_func (); below.
37332 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37333 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37334
a848cd7e
SC
37335#ifdef __STDC__
37336# include <limits.h>
37337#else
37338# include <assert.h>
37339#endif
ac1cb8d3
VS
37340
37341#undef $ac_func
37342
a848cd7e
SC
37343/* Override any gcc2 internal prototype to avoid an error. */
37344#ifdef __cplusplus
37345extern "C"
37346{
37347#endif
37348/* We use char because int might match the return type of a gcc2
37349 builtin and then its argument prototype would still apply. */
37350char $ac_func ();
37351/* The GNU C library defines this for functions which it implements
37352 to always fail with ENOSYS. Some functions are actually named
37353 something starting with __ and the normal name is an alias. */
37354#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37355choke me
37356#else
37357char (*f) () = $ac_func;
37358#endif
37359#ifdef __cplusplus
37360}
37361#endif
37362
37363int
37364main ()
37365{
37366return f != $ac_func;
37367 ;
37368 return 0;
37369}
37370_ACEOF
37371rm -f conftest.$ac_objext conftest$ac_exeext
37372if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37373 (eval $ac_link) 2>conftest.er1
a848cd7e 37374 ac_status=$?
ac1cb8d3
VS
37375 grep -v '^ *+' conftest.er1 >conftest.err
37376 rm -f conftest.er1
37377 cat conftest.err >&5
a848cd7e
SC
37378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37379 (exit $ac_status); } &&
c9a66001 37380 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37382 (eval $ac_try) 2>&5
37383 ac_status=$?
37384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37385 (exit $ac_status); }; } &&
37386 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37388 (eval $ac_try) 2>&5
37389 ac_status=$?
37390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37391 (exit $ac_status); }; }; then
37392 eval "$as_ac_var=yes"
37393else
37394 echo "$as_me: failed program was:" >&5
37395sed 's/^/| /' conftest.$ac_ext >&5
37396
37397eval "$as_ac_var=no"
37398fi
ac1cb8d3
VS
37399rm -f conftest.err conftest.$ac_objext \
37400 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37401fi
37402echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37403echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37404if test `eval echo '${'$as_ac_var'}'` = yes; then
37405 cat >>confdefs.h <<_ACEOF
37406#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37407_ACEOF
37408 cat >>confdefs.h <<\_ACEOF
37409#define HAVE_INET_ATON 1
37410_ACEOF
37411
37412else
37413
37414 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
37415echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
37416echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
37417if eval "test \"\${$as_ac_Lib+set}\" = set"; then
37418 echo $ECHO_N "(cached) $ECHO_C" >&6
37419else
37420 ac_check_lib_save_LIBS=$LIBS
37421LIBS="-l$INET_LINK $LIBS"
37422cat >conftest.$ac_ext <<_ACEOF
37423/* confdefs.h. */
37424_ACEOF
37425cat confdefs.h >>conftest.$ac_ext
37426cat >>conftest.$ac_ext <<_ACEOF
37427/* end confdefs.h. */
37428
37429/* Override any gcc2 internal prototype to avoid an error. */
37430#ifdef __cplusplus
37431extern "C"
37432#endif
37433/* We use char because int might match the return type of a gcc2
37434 builtin and then its argument prototype would still apply. */
37435char inet_aton ();
37436int
37437main ()
37438{
37439inet_aton ();
37440 ;
37441 return 0;
37442}
37443_ACEOF
37444rm -f conftest.$ac_objext conftest$ac_exeext
37445if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37446 (eval $ac_link) 2>conftest.er1
a848cd7e 37447 ac_status=$?
ac1cb8d3
VS
37448 grep -v '^ *+' conftest.er1 >conftest.err
37449 rm -f conftest.er1
37450 cat conftest.err >&5
a848cd7e
SC
37451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37452 (exit $ac_status); } &&
c9a66001 37453 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37455 (eval $ac_try) 2>&5
37456 ac_status=$?
37457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37458 (exit $ac_status); }; } &&
37459 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37461 (eval $ac_try) 2>&5
37462 ac_status=$?
37463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37464 (exit $ac_status); }; }; then
37465 eval "$as_ac_Lib=yes"
37466else
37467 echo "$as_me: failed program was:" >&5
37468sed 's/^/| /' conftest.$ac_ext >&5
37469
37470eval "$as_ac_Lib=no"
37471fi
ac1cb8d3
VS
37472rm -f conftest.err conftest.$ac_objext \
37473 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37474LIBS=$ac_check_lib_save_LIBS
37475fi
37476echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
37477echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
37478if test `eval echo '${'$as_ac_Lib'}'` = yes; then
37479 cat >>confdefs.h <<\_ACEOF
37480#define HAVE_INET_ATON 1
37481_ACEOF
37482
37483fi
37484
37485
37486fi
37487done
37488
37489
37490if test "x$INET_LINK" != "x"; then
37491 cat >>confdefs.h <<\_ACEOF
37492#define HAVE_INET_ADDR 1
37493_ACEOF
37494
37495 INET_LINK=" -l$INET_LINK"
37496fi
37497
37498fi
37499
37500
37501
37502EXTRALIBS_ESD=
37503echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
37504echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
37505if test "${ac_cv_lib_esd_esd_close+set}" = set; then
37506 echo $ECHO_N "(cached) $ECHO_C" >&6
37507else
37508 ac_check_lib_save_LIBS=$LIBS
37509LIBS="-lesd $LIBS"
37510cat >conftest.$ac_ext <<_ACEOF
37511/* confdefs.h. */
37512_ACEOF
37513cat confdefs.h >>conftest.$ac_ext
37514cat >>conftest.$ac_ext <<_ACEOF
37515/* end confdefs.h. */
37516
37517/* Override any gcc2 internal prototype to avoid an error. */
37518#ifdef __cplusplus
37519extern "C"
37520#endif
37521/* We use char because int might match the return type of a gcc2
37522 builtin and then its argument prototype would still apply. */
37523char esd_close ();
37524int
37525main ()
37526{
37527esd_close ();
37528 ;
37529 return 0;
37530}
37531_ACEOF
37532rm -f conftest.$ac_objext conftest$ac_exeext
37533if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37534 (eval $ac_link) 2>conftest.er1
a848cd7e 37535 ac_status=$?
ac1cb8d3
VS
37536 grep -v '^ *+' conftest.er1 >conftest.err
37537 rm -f conftest.er1
37538 cat conftest.err >&5
a848cd7e
SC
37539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37540 (exit $ac_status); } &&
c9a66001 37541 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37543 (eval $ac_try) 2>&5
37544 ac_status=$?
37545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37546 (exit $ac_status); }; } &&
37547 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37549 (eval $ac_try) 2>&5
37550 ac_status=$?
37551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37552 (exit $ac_status); }; }; then
37553 ac_cv_lib_esd_esd_close=yes
37554else
37555 echo "$as_me: failed program was:" >&5
37556sed 's/^/| /' conftest.$ac_ext >&5
37557
37558ac_cv_lib_esd_esd_close=no
37559fi
ac1cb8d3
VS
37560rm -f conftest.err conftest.$ac_objext \
37561 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37562LIBS=$ac_check_lib_save_LIBS
37563fi
37564echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
37565echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
37566if test $ac_cv_lib_esd_esd_close = yes; then
37567
37568
37569for ac_header in esd.h
37570do
37571as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37572if eval "test \"\${$as_ac_Header+set}\" = set"; then
37573 echo "$as_me:$LINENO: checking for $ac_header" >&5
37574echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37575if eval "test \"\${$as_ac_Header+set}\" = set"; then
37576 echo $ECHO_N "(cached) $ECHO_C" >&6
37577fi
37578echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37579echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37580else
37581 # Is the header compilable?
37582echo "$as_me:$LINENO: checking $ac_header usability" >&5
37583echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37584cat >conftest.$ac_ext <<_ACEOF
37585/* confdefs.h. */
37586_ACEOF
37587cat confdefs.h >>conftest.$ac_ext
37588cat >>conftest.$ac_ext <<_ACEOF
37589/* end confdefs.h. */
37590$ac_includes_default
37591#include <$ac_header>
37592_ACEOF
37593rm -f conftest.$ac_objext
37594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37595 (eval $ac_compile) 2>conftest.er1
a848cd7e 37596 ac_status=$?
ac1cb8d3
VS
37597 grep -v '^ *+' conftest.er1 >conftest.err
37598 rm -f conftest.er1
37599 cat conftest.err >&5
a848cd7e
SC
37600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37601 (exit $ac_status); } &&
c9a66001 37602 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
37608 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37610 (eval $ac_try) 2>&5
37611 ac_status=$?
37612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37613 (exit $ac_status); }; }; then
37614 ac_header_compiler=yes
37615else
37616 echo "$as_me: failed program was:" >&5
37617sed 's/^/| /' conftest.$ac_ext >&5
37618
37619ac_header_compiler=no
37620fi
ac1cb8d3 37621rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37622echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37623echo "${ECHO_T}$ac_header_compiler" >&6
37624
37625# Is the header present?
37626echo "$as_me:$LINENO: checking $ac_header presence" >&5
37627echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37628cat >conftest.$ac_ext <<_ACEOF
37629/* confdefs.h. */
37630_ACEOF
37631cat confdefs.h >>conftest.$ac_ext
37632cat >>conftest.$ac_ext <<_ACEOF
37633/* end confdefs.h. */
37634#include <$ac_header>
37635_ACEOF
37636if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37637 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37638 ac_status=$?
37639 grep -v '^ *+' conftest.er1 >conftest.err
37640 rm -f conftest.er1
37641 cat conftest.err >&5
37642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37643 (exit $ac_status); } >/dev/null; then
37644 if test -s conftest.err; then
5d7b7554
VZ
37645 ac_cpp_err=$ac_cxx_preproc_warn_flag
37646 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
37647 else
37648 ac_cpp_err=
37649 fi
37650else
37651 ac_cpp_err=yes
37652fi
37653if test -z "$ac_cpp_err"; then
37654 ac_header_preproc=yes
37655else
37656 echo "$as_me: failed program was:" >&5
37657sed 's/^/| /' conftest.$ac_ext >&5
37658
37659 ac_header_preproc=no
37660fi
37661rm -f conftest.err conftest.$ac_ext
37662echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37663echo "${ECHO_T}$ac_header_preproc" >&6
37664
37665# So? What about this header?
5d7b7554 37666case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 37667 yes:no: )
a848cd7e
SC
37668 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37669echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
37670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37671echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37672 ac_header_preproc=yes
a848cd7e 37673 ;;
ac1cb8d3 37674 no:yes:* )
a848cd7e
SC
37675 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37676echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
37677 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37678echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37679 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37680echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37681 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37682echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
37683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37684echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
37685 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37686echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
37687 (
37688 cat <<\_ASBOX
ac1cb8d3
VS
37689## ----------------------------------------- ##
37690## Report this to wx-dev@lists.wxwidgets.org ##
37691## ----------------------------------------- ##
a848cd7e
SC
37692_ASBOX
37693 ) |
37694 sed "s/^/$as_me: WARNING: /" >&2
37695 ;;
37696esac
37697echo "$as_me:$LINENO: checking for $ac_header" >&5
37698echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37699if eval "test \"\${$as_ac_Header+set}\" = set"; then
37700 echo $ECHO_N "(cached) $ECHO_C" >&6
37701else
ac1cb8d3 37702 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
37703fi
37704echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37705echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37706
37707fi
37708if test `eval echo '${'$as_ac_Header'}'` = yes; then
37709 cat >>confdefs.h <<_ACEOF
37710#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37711_ACEOF
37712
37713 EXTRALIBS_ESD="-lesd"
37714
37715fi
37716
37717done
37718
37719
37720fi
37721
37722
37723
37724echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
37725echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
37726cat >conftest.$ac_ext <<_ACEOF
37727/* confdefs.h. */
37728_ACEOF
37729cat confdefs.h >>conftest.$ac_ext
37730cat >>conftest.$ac_ext <<_ACEOF
37731/* end confdefs.h. */
37732#ifdef __linux__
37733 #include <linux/cdrom.h>
37734 #else
37735 /* For Solaris */
37736 #include <sys/cdio.h>
37737 #endif
37738
37739int
37740main ()
37741{
37742struct cdrom_tocentry entry, old_entry;
37743 ;
37744 return 0;
37745}
37746_ACEOF
37747rm -f conftest.$ac_objext
37748if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37749 (eval $ac_compile) 2>conftest.er1
a848cd7e 37750 ac_status=$?
ac1cb8d3
VS
37751 grep -v '^ *+' conftest.er1 >conftest.err
37752 rm -f conftest.er1
37753 cat conftest.err >&5
a848cd7e
SC
37754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37755 (exit $ac_status); } &&
c9a66001 37756 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37758 (eval $ac_try) 2>&5
37759 ac_status=$?
37760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37761 (exit $ac_status); }; } &&
37762 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37764 (eval $ac_try) 2>&5
37765 ac_status=$?
37766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37767 (exit $ac_status); }; }; then
37768 echo "$as_me:$LINENO: result: yes" >&5
37769echo "${ECHO_T}yes" >&6
37770 cat >>confdefs.h <<\_ACEOF
37771#define HAVE_KNOWN_CDROM_INTERFACE 1
37772_ACEOF
37773
37774else
37775 echo "$as_me: failed program was:" >&5
37776sed 's/^/| /' conftest.$ac_ext >&5
37777
37778echo "$as_me:$LINENO: result: no" >&5
37779echo "${ECHO_T}no" >&6
37780fi
ac1cb8d3 37781rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37782
37783
37784cat >confcache <<\_ACEOF
37785# This file is a shell script that caches the results of configure
37786# tests run on this system so they can be shared between configure
37787# scripts and configure runs, see configure's option --config-cache.
37788# It is not useful on other systems. If it contains results you don't
37789# want to keep, you may remove or edit it.
37790#
37791# config.status only pays attention to the cache file if you give it
37792# the --recheck option to rerun configure.
37793#
37794# `ac_cv_env_foo' variables (set or unset) will be overridden when
37795# loading this file, other *unset* `ac_cv_foo' will be assigned the
37796# following values.
37797
37798_ACEOF
37799
37800# The following way of writing the cache mishandles newlines in values,
37801# but we know of no workaround that is simple, portable, and efficient.
37802# So, don't put newlines in cache variables' values.
37803# Ultrix sh set writes to stderr and can't be redirected directly,
37804# and sets the high bit in the cache file unless we assign to the vars.
37805{
37806 (set) 2>&1 |
37807 case `(ac_space=' '; set | grep ac_space) 2>&1` in
37808 *ac_space=\ *)
37809 # `set' does not quote correctly, so add quotes (double-quote
37810 # substitution turns \\\\ into \\, and sed turns \\ into \).
37811 sed -n \
ac1cb8d3
VS
37812 "s/'/'\\\\''/g;
37813 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
37814 ;;
37815 *)
37816 # `set' quotes correctly as required by POSIX, so do not add quotes.
37817 sed -n \
ac1cb8d3 37818 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
37819 ;;
37820 esac;
37821} |
37822 sed '
37823 t clear
37824 : clear
37825 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
37826 t end
37827 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
37828 : end' >>confcache
37829if diff $cache_file confcache >/dev/null 2>&1; then :; else
37830 if test -w $cache_file; then
37831 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
37832 cat confcache >$cache_file
37833 else
37834 echo "not updating unwritable cache $cache_file"
37835 fi
37836fi
37837rm -f confcache
37838
37839
a848cd7e
SC
37840if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
37841
37842
37843 THREADS_LINK=
e56f4f9e 37844 THREADS_CXXFLAGS=
a848cd7e
SC
37845
37846 if test "$wxUSE_THREADS" = "yes" ; then
37847 if test "$USE_BEOS" = 1; then
37848 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
37849echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
37850 wxUSE_THREADS="no"
37851 fi
37852 fi
37853
37854 if test "$wxUSE_THREADS" = "yes" ; then
37855
37856
37857 THREAD_OPTS="-pthread"
37858 case "${host}" in
37859 *-*-solaris2* | *-*-sunos4* )
37860 if test "x$GCC" = "xyes"; then
37861 THREAD_OPTS="-pthreads $THREAD_OPTS"
37862 else
37863 THREAD_OPTS="-mt $THREAD_OPTS"
37864 fi
37865 ;;
37866 *-*-freebsd*)
37867 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
37868 ;;
37869 *-*-darwin* | *-*-cygwin* )
37870 THREAD_OPTS=""
37871 ;;
37872 *-*-aix*)
37873 THREAD_OPTS="pthreads"
37874 ;;
37875 *-hp-hpux* )
00421666
MW
37876 if test "x$GCC" = "xyes"; then
37877 $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
37878 THREAD_OPTS=""
37879 else
0093c2fc 37880 THREAD_OPTS="-mt"
a848cd7e
SC
37881 fi
37882 ;;
37883
37884 *-*-irix* )
37885 if test "x$GCC" = "xyes"; then
37886 THREAD_OPTS=""
37887 fi
37888 ;;
37889
37890 *-*-*UnixWare*)
37891 if test "x$GCC" != "xyes"; then
37892 THREAD_OPTS="-Ethread"
37893 fi
37894 ;;
37895 esac
37896
37897 THREAD_OPTS="$THREAD_OPTS pthread none"
37898
37899 THREADS_OK=no
37900 for flag in $THREAD_OPTS; do
37901 case $flag in
37902 none)
37903 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
37904echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
37905 ;;
37906
37907 -*)
37908 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
37909echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
e56f4f9e 37910 THREADS_CXXFLAGS="$flag"
a848cd7e
SC
37911 ;;
37912
37913 *)
37914 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
37915echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
37916 THREADS_LINK="-l$flag"
37917 ;;
37918 esac
37919
37920 save_LIBS="$LIBS"
e56f4f9e 37921 save_CXXFLAGS="$CXXFLAGS"
a848cd7e 37922 LIBS="$THREADS_LINK $LIBS"
e56f4f9e 37923 CXXFLAGS="$THREADS_CXXFLAGS $CXXFLAGS"
a848cd7e
SC
37924
37925 cat >conftest.$ac_ext <<_ACEOF
37926/* confdefs.h. */
37927_ACEOF
37928cat confdefs.h >>conftest.$ac_ext
37929cat >>conftest.$ac_ext <<_ACEOF
37930/* end confdefs.h. */
37931#include <pthread.h>
37932int
37933main ()
37934{
37935pthread_create(0,0,0,0);
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); } &&
c9a66001 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 THREADS_OK=yes
37962else
37963 echo "$as_me: failed program was:" >&5
37964sed 's/^/| /' conftest.$ac_ext >&5
37965
37966fi
ac1cb8d3
VS
37967rm -f conftest.err conftest.$ac_objext \
37968 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37969
37970 LIBS="$save_LIBS"
e56f4f9e 37971 CXXFLAGS="$save_CXXFLAGS"
a848cd7e
SC
37972
37973 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
37974echo "${ECHO_T}$THREADS_OK" >&6
37975 if test "x$THREADS_OK" = "xyes"; then
37976 break;
37977 fi
37978
37979 THREADS_LINK=""
e56f4f9e 37980 THREADS_CXXFLAGS=""
a848cd7e
SC
37981 done
37982
37983 if test "x$THREADS_OK" != "xyes"; then
37984 wxUSE_THREADS=no
37985 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
37986echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
37987 else
e56f4f9e 37988 LDFLAGS="$THREADS_CXXFLAGS $LDFLAGS"
a848cd7e
SC
37989 LIBS="$THREADS_LINK $LIBS"
37990
37991 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
37992echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
37993 flag=no
37994 case "${host}" in
37995 *-aix*)
37996 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
37997 flag="-D_THREAD_SAFE"
37998 ;;
37999 *-freebsd*)
38000 flag="-D_THREAD_SAFE"
38001 ;;
38002 *-hp-hpux* )
38003 flag="-D_REENTRANT"
38004 if test "x$GCC" != "xyes"; then
38005 flag="$flag -D_RWSTD_MULTI_THREAD"
38006 fi
38007 ;;
38008 *solaris* | alpha*-osf*)
38009 flag="-D_REENTRANT"
38010 ;;
38011 esac
38012 echo "$as_me:$LINENO: result: ${flag}" >&5
38013echo "${ECHO_T}${flag}" >&6
38014 if test "x$flag" != xno; then
e56f4f9e 38015 THREADS_CXXFLAGS="$THREADS_CXXFLAGS $flag"
a848cd7e
SC
38016 fi
38017
e56f4f9e 38018 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS $THREADS_CXXFLAGS"
a848cd7e
SC
38019 fi
38020 fi
38021
38022 if test "$wxUSE_THREADS" = "yes" ; then
38023
38024for ac_func in thr_setconcurrency
38025do
38026as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38027echo "$as_me:$LINENO: checking for $ac_func" >&5
38028echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38029if eval "test \"\${$as_ac_var+set}\" = set"; then
38030 echo $ECHO_N "(cached) $ECHO_C" >&6
38031else
38032 cat >conftest.$ac_ext <<_ACEOF
38033/* confdefs.h. */
38034_ACEOF
38035cat confdefs.h >>conftest.$ac_ext
38036cat >>conftest.$ac_ext <<_ACEOF
38037/* end confdefs.h. */
ac1cb8d3
VS
38038/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38039 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38040#define $ac_func innocuous_$ac_func
38041
a848cd7e
SC
38042/* System header to define __stub macros and hopefully few prototypes,
38043 which can conflict with char $ac_func (); below.
38044 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38045 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38046
a848cd7e
SC
38047#ifdef __STDC__
38048# include <limits.h>
38049#else
38050# include <assert.h>
38051#endif
ac1cb8d3
VS
38052
38053#undef $ac_func
38054
a848cd7e
SC
38055/* Override any gcc2 internal prototype to avoid an error. */
38056#ifdef __cplusplus
38057extern "C"
38058{
38059#endif
38060/* We use char because int might match the return type of a gcc2
38061 builtin and then its argument prototype would still apply. */
38062char $ac_func ();
38063/* The GNU C library defines this for functions which it implements
38064 to always fail with ENOSYS. Some functions are actually named
38065 something starting with __ and the normal name is an alias. */
38066#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38067choke me
38068#else
38069char (*f) () = $ac_func;
38070#endif
38071#ifdef __cplusplus
38072}
38073#endif
38074
38075int
38076main ()
38077{
38078return f != $ac_func;
38079 ;
38080 return 0;
38081}
38082_ACEOF
38083rm -f conftest.$ac_objext conftest$ac_exeext
38084if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38085 (eval $ac_link) 2>conftest.er1
a848cd7e 38086 ac_status=$?
ac1cb8d3
VS
38087 grep -v '^ *+' conftest.er1 >conftest.err
38088 rm -f conftest.er1
38089 cat conftest.err >&5
a848cd7e
SC
38090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38091 (exit $ac_status); } &&
c9a66001 38092 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38094 (eval $ac_try) 2>&5
38095 ac_status=$?
38096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38097 (exit $ac_status); }; } &&
38098 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38100 (eval $ac_try) 2>&5
38101 ac_status=$?
38102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38103 (exit $ac_status); }; }; then
38104 eval "$as_ac_var=yes"
38105else
38106 echo "$as_me: failed program was:" >&5
38107sed 's/^/| /' conftest.$ac_ext >&5
38108
38109eval "$as_ac_var=no"
38110fi
ac1cb8d3
VS
38111rm -f conftest.err conftest.$ac_objext \
38112 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38113fi
38114echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38115echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38116if test `eval echo '${'$as_ac_var'}'` = yes; then
38117 cat >>confdefs.h <<_ACEOF
38118#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38119_ACEOF
38120
38121fi
38122done
38123
38124
6ebeb4c7
VZ
38125 echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
38126echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
38127if test "${wx_cv_func_pthread_cleanup+set}" = set; then
38128 echo $ECHO_N "(cached) $ECHO_C" >&6
38129else
38130
38131 cat >conftest.$ac_ext <<_ACEOF
38132/* confdefs.h. */
38133_ACEOF
38134cat confdefs.h >>conftest.$ac_ext
38135cat >>conftest.$ac_ext <<_ACEOF
38136/* end confdefs.h. */
38137#include <pthread.h>
38138 void ThreadCleanupFunc(void *p);
38139
38140int
38141main ()
38142{
38143
38144 void *p;
38145 pthread_cleanup_push(ThreadCleanupFunc, p);
38146 pthread_cleanup_pop(0);
38147
38148 ;
38149 return 0;
38150}
38151_ACEOF
38152rm -f conftest.$ac_objext
38153if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38154 (eval $ac_compile) 2>conftest.er1
38155 ac_status=$?
38156 grep -v '^ *+' conftest.er1 >conftest.err
38157 rm -f conftest.er1
38158 cat conftest.err >&5
38159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38160 (exit $ac_status); } &&
c9a66001 38161 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
38162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38163 (eval $ac_try) 2>&5
38164 ac_status=$?
38165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38166 (exit $ac_status); }; } &&
38167 { ac_try='test -s conftest.$ac_objext'
38168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38169 (eval $ac_try) 2>&5
38170 ac_status=$?
38171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38172 (exit $ac_status); }; }; then
38173
38174 wx_cv_func_pthread_cleanup=yes
38175
38176else
38177 echo "$as_me: failed program was:" >&5
38178sed 's/^/| /' conftest.$ac_ext >&5
38179
38180
38181 wx_cv_func_pthread_cleanup=no
38182
38183
38184fi
38185rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38186
38187fi
38188echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
38189echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6
38190 if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
38191 cat >>confdefs.h <<\_ACEOF
38192#define wxHAVE_PTHREAD_CLEANUP 1
38193_ACEOF
38194
38195 fi
38196
a848cd7e
SC
38197
38198for ac_header in sched.h
38199do
38200as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38201if eval "test \"\${$as_ac_Header+set}\" = set"; then
38202 echo "$as_me:$LINENO: checking for $ac_header" >&5
38203echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38204if eval "test \"\${$as_ac_Header+set}\" = set"; then
38205 echo $ECHO_N "(cached) $ECHO_C" >&6
38206fi
38207echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38208echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38209else
38210 # Is the header compilable?
38211echo "$as_me:$LINENO: checking $ac_header usability" >&5
38212echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38213cat >conftest.$ac_ext <<_ACEOF
38214/* confdefs.h. */
38215_ACEOF
38216cat confdefs.h >>conftest.$ac_ext
38217cat >>conftest.$ac_ext <<_ACEOF
38218/* end confdefs.h. */
38219$ac_includes_default
38220#include <$ac_header>
38221_ACEOF
38222rm -f conftest.$ac_objext
38223if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38224 (eval $ac_compile) 2>conftest.er1
a848cd7e 38225 ac_status=$?
ac1cb8d3
VS
38226 grep -v '^ *+' conftest.er1 >conftest.err
38227 rm -f conftest.er1
38228 cat conftest.err >&5
a848cd7e
SC
38229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38230 (exit $ac_status); } &&
c9a66001 38231 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38233 (eval $ac_try) 2>&5
38234 ac_status=$?
38235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38236 (exit $ac_status); }; } &&
38237 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38239 (eval $ac_try) 2>&5
38240 ac_status=$?
38241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38242 (exit $ac_status); }; }; then
38243 ac_header_compiler=yes
38244else
38245 echo "$as_me: failed program was:" >&5
38246sed 's/^/| /' conftest.$ac_ext >&5
38247
38248ac_header_compiler=no
38249fi
ac1cb8d3 38250rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38251echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38252echo "${ECHO_T}$ac_header_compiler" >&6
38253
38254# Is the header present?
38255echo "$as_me:$LINENO: checking $ac_header presence" >&5
38256echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38257cat >conftest.$ac_ext <<_ACEOF
38258/* confdefs.h. */
38259_ACEOF
38260cat confdefs.h >>conftest.$ac_ext
38261cat >>conftest.$ac_ext <<_ACEOF
38262/* end confdefs.h. */
38263#include <$ac_header>
38264_ACEOF
38265if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38266 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38267 ac_status=$?
38268 grep -v '^ *+' conftest.er1 >conftest.err
38269 rm -f conftest.er1
38270 cat conftest.err >&5
38271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38272 (exit $ac_status); } >/dev/null; then
38273 if test -s conftest.err; then
5d7b7554
VZ
38274 ac_cpp_err=$ac_cxx_preproc_warn_flag
38275 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
38276 else
38277 ac_cpp_err=
38278 fi
38279else
38280 ac_cpp_err=yes
38281fi
38282if test -z "$ac_cpp_err"; then
38283 ac_header_preproc=yes
38284else
38285 echo "$as_me: failed program was:" >&5
38286sed 's/^/| /' conftest.$ac_ext >&5
38287
38288 ac_header_preproc=no
38289fi
38290rm -f conftest.err conftest.$ac_ext
38291echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38292echo "${ECHO_T}$ac_header_preproc" >&6
38293
38294# So? What about this header?
5d7b7554 38295case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 38296 yes:no: )
a848cd7e
SC
38297 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38298echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
38299 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38300echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38301 ac_header_preproc=yes
a848cd7e 38302 ;;
ac1cb8d3 38303 no:yes:* )
a848cd7e
SC
38304 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38305echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
38306 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38307echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38308 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38309echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38310 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38311echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
38312 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38313echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
38314 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38315echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
38316 (
38317 cat <<\_ASBOX
ac1cb8d3
VS
38318## ----------------------------------------- ##
38319## Report this to wx-dev@lists.wxwidgets.org ##
38320## ----------------------------------------- ##
a848cd7e
SC
38321_ASBOX
38322 ) |
38323 sed "s/^/$as_me: WARNING: /" >&2
38324 ;;
38325esac
38326echo "$as_me:$LINENO: checking for $ac_header" >&5
38327echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38328if eval "test \"\${$as_ac_Header+set}\" = set"; then
38329 echo $ECHO_N "(cached) $ECHO_C" >&6
38330else
ac1cb8d3 38331 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
38332fi
38333echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38334echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38335
38336fi
38337if test `eval echo '${'$as_ac_Header'}'` = yes; then
38338 cat >>confdefs.h <<_ACEOF
38339#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38340_ACEOF
38341
38342fi
38343
38344done
38345
38346 if test "$ac_cv_header_sched_h" = "yes"; then
38347 echo "$as_me:$LINENO: checking for sched_yield" >&5
38348echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
38349if test "${ac_cv_func_sched_yield+set}" = set; then
38350 echo $ECHO_N "(cached) $ECHO_C" >&6
38351else
38352 cat >conftest.$ac_ext <<_ACEOF
38353/* confdefs.h. */
38354_ACEOF
38355cat confdefs.h >>conftest.$ac_ext
38356cat >>conftest.$ac_ext <<_ACEOF
38357/* end confdefs.h. */
ac1cb8d3
VS
38358/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
38359 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38360#define sched_yield innocuous_sched_yield
38361
a848cd7e
SC
38362/* System header to define __stub macros and hopefully few prototypes,
38363 which can conflict with char sched_yield (); below.
38364 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38365 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38366
a848cd7e
SC
38367#ifdef __STDC__
38368# include <limits.h>
38369#else
38370# include <assert.h>
38371#endif
ac1cb8d3
VS
38372
38373#undef sched_yield
38374
a848cd7e
SC
38375/* Override any gcc2 internal prototype to avoid an error. */
38376#ifdef __cplusplus
38377extern "C"
38378{
38379#endif
38380/* We use char because int might match the return type of a gcc2
38381 builtin and then its argument prototype would still apply. */
38382char sched_yield ();
38383/* The GNU C library defines this for functions which it implements
38384 to always fail with ENOSYS. Some functions are actually named
38385 something starting with __ and the normal name is an alias. */
38386#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
38387choke me
38388#else
38389char (*f) () = sched_yield;
38390#endif
38391#ifdef __cplusplus
38392}
38393#endif
38394
38395int
38396main ()
38397{
38398return f != sched_yield;
38399 ;
38400 return 0;
38401}
38402_ACEOF
38403rm -f conftest.$ac_objext conftest$ac_exeext
38404if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38405 (eval $ac_link) 2>conftest.er1
a848cd7e 38406 ac_status=$?
ac1cb8d3
VS
38407 grep -v '^ *+' conftest.er1 >conftest.err
38408 rm -f conftest.er1
38409 cat conftest.err >&5
a848cd7e
SC
38410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38411 (exit $ac_status); } &&
c9a66001 38412 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38414 (eval $ac_try) 2>&5
38415 ac_status=$?
38416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38417 (exit $ac_status); }; } &&
38418 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38420 (eval $ac_try) 2>&5
38421 ac_status=$?
38422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38423 (exit $ac_status); }; }; then
38424 ac_cv_func_sched_yield=yes
38425else
38426 echo "$as_me: failed program was:" >&5
38427sed 's/^/| /' conftest.$ac_ext >&5
38428
38429ac_cv_func_sched_yield=no
38430fi
ac1cb8d3
VS
38431rm -f conftest.err conftest.$ac_objext \
38432 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38433fi
38434echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
38435echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
38436if test $ac_cv_func_sched_yield = yes; then
38437 cat >>confdefs.h <<\_ACEOF
38438#define HAVE_SCHED_YIELD 1
38439_ACEOF
38440
38441else
38442
38443 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
38444echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
38445if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
38446 echo $ECHO_N "(cached) $ECHO_C" >&6
38447else
38448 ac_check_lib_save_LIBS=$LIBS
38449LIBS="-lposix4 $LIBS"
38450cat >conftest.$ac_ext <<_ACEOF
38451/* confdefs.h. */
38452_ACEOF
38453cat confdefs.h >>conftest.$ac_ext
38454cat >>conftest.$ac_ext <<_ACEOF
38455/* end confdefs.h. */
38456
38457/* Override any gcc2 internal prototype to avoid an error. */
38458#ifdef __cplusplus
38459extern "C"
38460#endif
38461/* We use char because int might match the return type of a gcc2
38462 builtin and then its argument prototype would still apply. */
38463char sched_yield ();
38464int
38465main ()
38466{
38467sched_yield ();
38468 ;
38469 return 0;
38470}
38471_ACEOF
38472rm -f conftest.$ac_objext conftest$ac_exeext
38473if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38474 (eval $ac_link) 2>conftest.er1
a848cd7e 38475 ac_status=$?
ac1cb8d3
VS
38476 grep -v '^ *+' conftest.er1 >conftest.err
38477 rm -f conftest.er1
38478 cat conftest.err >&5
a848cd7e
SC
38479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38480 (exit $ac_status); } &&
c9a66001 38481 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38483 (eval $ac_try) 2>&5
38484 ac_status=$?
38485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38486 (exit $ac_status); }; } &&
38487 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38489 (eval $ac_try) 2>&5
38490 ac_status=$?
38491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38492 (exit $ac_status); }; }; then
38493 ac_cv_lib_posix4_sched_yield=yes
38494else
38495 echo "$as_me: failed program was:" >&5
38496sed 's/^/| /' conftest.$ac_ext >&5
38497
38498ac_cv_lib_posix4_sched_yield=no
38499fi
ac1cb8d3
VS
38500rm -f conftest.err conftest.$ac_objext \
38501 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38502LIBS=$ac_check_lib_save_LIBS
38503fi
38504echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
38505echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
38506if test $ac_cv_lib_posix4_sched_yield = yes; then
38507 cat >>confdefs.h <<\_ACEOF
38508#define HAVE_SCHED_YIELD 1
38509_ACEOF
38510 POSIX4_LINK=" -lposix4"
38511else
38512 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
38513echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
38514
38515fi
38516
38517
38518
38519fi
38520
38521 fi
38522
38523 HAVE_PRIOR_FUNCS=0
38524 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
38525echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
38526if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
38527 echo $ECHO_N "(cached) $ECHO_C" >&6
38528else
38529 cat >conftest.$ac_ext <<_ACEOF
38530/* confdefs.h. */
38531_ACEOF
38532cat confdefs.h >>conftest.$ac_ext
38533cat >>conftest.$ac_ext <<_ACEOF
38534/* end confdefs.h. */
ac1cb8d3
VS
38535/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
38536 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38537#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
38538
a848cd7e
SC
38539/* System header to define __stub macros and hopefully few prototypes,
38540 which can conflict with char pthread_attr_getschedpolicy (); below.
38541 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38542 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38543
a848cd7e
SC
38544#ifdef __STDC__
38545# include <limits.h>
38546#else
38547# include <assert.h>
38548#endif
ac1cb8d3
VS
38549
38550#undef pthread_attr_getschedpolicy
38551
a848cd7e
SC
38552/* Override any gcc2 internal prototype to avoid an error. */
38553#ifdef __cplusplus
38554extern "C"
38555{
38556#endif
38557/* We use char because int might match the return type of a gcc2
38558 builtin and then its argument prototype would still apply. */
38559char pthread_attr_getschedpolicy ();
38560/* The GNU C library defines this for functions which it implements
38561 to always fail with ENOSYS. Some functions are actually named
38562 something starting with __ and the normal name is an alias. */
38563#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
38564choke me
38565#else
38566char (*f) () = pthread_attr_getschedpolicy;
38567#endif
38568#ifdef __cplusplus
38569}
38570#endif
38571
38572int
38573main ()
38574{
38575return f != pthread_attr_getschedpolicy;
38576 ;
38577 return 0;
38578}
38579_ACEOF
38580rm -f conftest.$ac_objext conftest$ac_exeext
38581if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38582 (eval $ac_link) 2>conftest.er1
a848cd7e 38583 ac_status=$?
ac1cb8d3
VS
38584 grep -v '^ *+' conftest.er1 >conftest.err
38585 rm -f conftest.er1
38586 cat conftest.err >&5
a848cd7e
SC
38587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38588 (exit $ac_status); } &&
c9a66001 38589 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38591 (eval $ac_try) 2>&5
38592 ac_status=$?
38593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38594 (exit $ac_status); }; } &&
38595 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38597 (eval $ac_try) 2>&5
38598 ac_status=$?
38599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38600 (exit $ac_status); }; }; then
38601 ac_cv_func_pthread_attr_getschedpolicy=yes
38602else
38603 echo "$as_me: failed program was:" >&5
38604sed 's/^/| /' conftest.$ac_ext >&5
38605
38606ac_cv_func_pthread_attr_getschedpolicy=no
38607fi
ac1cb8d3
VS
38608rm -f conftest.err conftest.$ac_objext \
38609 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38610fi
38611echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
38612echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
38613if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
38614 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
38615echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
38616if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
38617 echo $ECHO_N "(cached) $ECHO_C" >&6
38618else
38619 cat >conftest.$ac_ext <<_ACEOF
38620/* confdefs.h. */
38621_ACEOF
38622cat confdefs.h >>conftest.$ac_ext
38623cat >>conftest.$ac_ext <<_ACEOF
38624/* end confdefs.h. */
ac1cb8d3
VS
38625/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
38626 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38627#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
38628
a848cd7e
SC
38629/* System header to define __stub macros and hopefully few prototypes,
38630 which can conflict with char pthread_attr_setschedparam (); below.
38631 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38632 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38633
a848cd7e
SC
38634#ifdef __STDC__
38635# include <limits.h>
38636#else
38637# include <assert.h>
38638#endif
ac1cb8d3
VS
38639
38640#undef pthread_attr_setschedparam
38641
a848cd7e
SC
38642/* Override any gcc2 internal prototype to avoid an error. */
38643#ifdef __cplusplus
38644extern "C"
38645{
38646#endif
38647/* We use char because int might match the return type of a gcc2
38648 builtin and then its argument prototype would still apply. */
38649char pthread_attr_setschedparam ();
38650/* The GNU C library defines this for functions which it implements
38651 to always fail with ENOSYS. Some functions are actually named
38652 something starting with __ and the normal name is an alias. */
38653#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
38654choke me
38655#else
38656char (*f) () = pthread_attr_setschedparam;
38657#endif
38658#ifdef __cplusplus
38659}
38660#endif
38661
38662int
38663main ()
38664{
38665return f != pthread_attr_setschedparam;
38666 ;
38667 return 0;
38668}
38669_ACEOF
38670rm -f conftest.$ac_objext conftest$ac_exeext
38671if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38672 (eval $ac_link) 2>conftest.er1
a848cd7e 38673 ac_status=$?
ac1cb8d3
VS
38674 grep -v '^ *+' conftest.er1 >conftest.err
38675 rm -f conftest.er1
38676 cat conftest.err >&5
a848cd7e
SC
38677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38678 (exit $ac_status); } &&
c9a66001 38679 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38681 (eval $ac_try) 2>&5
38682 ac_status=$?
38683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38684 (exit $ac_status); }; } &&
38685 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38687 (eval $ac_try) 2>&5
38688 ac_status=$?
38689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38690 (exit $ac_status); }; }; then
38691 ac_cv_func_pthread_attr_setschedparam=yes
38692else
38693 echo "$as_me: failed program was:" >&5
38694sed 's/^/| /' conftest.$ac_ext >&5
38695
38696ac_cv_func_pthread_attr_setschedparam=no
38697fi
ac1cb8d3
VS
38698rm -f conftest.err conftest.$ac_objext \
38699 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38700fi
38701echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
38702echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
38703if test $ac_cv_func_pthread_attr_setschedparam = yes; then
38704 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
38705echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
38706if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
38707 echo $ECHO_N "(cached) $ECHO_C" >&6
38708else
38709 cat >conftest.$ac_ext <<_ACEOF
38710/* confdefs.h. */
38711_ACEOF
38712cat confdefs.h >>conftest.$ac_ext
38713cat >>conftest.$ac_ext <<_ACEOF
38714/* end confdefs.h. */
ac1cb8d3
VS
38715/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
38716 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38717#define sched_get_priority_max innocuous_sched_get_priority_max
38718
a848cd7e
SC
38719/* System header to define __stub macros and hopefully few prototypes,
38720 which can conflict with char sched_get_priority_max (); below.
38721 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38722 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38723
a848cd7e
SC
38724#ifdef __STDC__
38725# include <limits.h>
38726#else
38727# include <assert.h>
38728#endif
ac1cb8d3
VS
38729
38730#undef sched_get_priority_max
38731
a848cd7e
SC
38732/* Override any gcc2 internal prototype to avoid an error. */
38733#ifdef __cplusplus
38734extern "C"
38735{
38736#endif
38737/* We use char because int might match the return type of a gcc2
38738 builtin and then its argument prototype would still apply. */
38739char sched_get_priority_max ();
38740/* The GNU C library defines this for functions which it implements
38741 to always fail with ENOSYS. Some functions are actually named
38742 something starting with __ and the normal name is an alias. */
38743#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
38744choke me
38745#else
38746char (*f) () = sched_get_priority_max;
38747#endif
38748#ifdef __cplusplus
38749}
38750#endif
38751
38752int
38753main ()
38754{
38755return f != sched_get_priority_max;
38756 ;
38757 return 0;
38758}
38759_ACEOF
38760rm -f conftest.$ac_objext conftest$ac_exeext
38761if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38762 (eval $ac_link) 2>conftest.er1
a848cd7e 38763 ac_status=$?
ac1cb8d3
VS
38764 grep -v '^ *+' conftest.er1 >conftest.err
38765 rm -f conftest.er1
38766 cat conftest.err >&5
a848cd7e
SC
38767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38768 (exit $ac_status); } &&
c9a66001 38769 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38771 (eval $ac_try) 2>&5
38772 ac_status=$?
38773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38774 (exit $ac_status); }; } &&
38775 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38777 (eval $ac_try) 2>&5
38778 ac_status=$?
38779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38780 (exit $ac_status); }; }; then
38781 ac_cv_func_sched_get_priority_max=yes
38782else
38783 echo "$as_me: failed program was:" >&5
38784sed 's/^/| /' conftest.$ac_ext >&5
38785
38786ac_cv_func_sched_get_priority_max=no
38787fi
ac1cb8d3
VS
38788rm -f conftest.err conftest.$ac_objext \
38789 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38790fi
38791echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
38792echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
38793if test $ac_cv_func_sched_get_priority_max = yes; then
38794 HAVE_PRIOR_FUNCS=1
38795else
38796 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
38797echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
38798if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
38799 echo $ECHO_N "(cached) $ECHO_C" >&6
38800else
38801 ac_check_lib_save_LIBS=$LIBS
38802LIBS="-lposix4 $LIBS"
38803cat >conftest.$ac_ext <<_ACEOF
38804/* confdefs.h. */
38805_ACEOF
38806cat confdefs.h >>conftest.$ac_ext
38807cat >>conftest.$ac_ext <<_ACEOF
38808/* end confdefs.h. */
38809
38810/* Override any gcc2 internal prototype to avoid an error. */
38811#ifdef __cplusplus
38812extern "C"
38813#endif
38814/* We use char because int might match the return type of a gcc2
38815 builtin and then its argument prototype would still apply. */
38816char sched_get_priority_max ();
38817int
38818main ()
38819{
38820sched_get_priority_max ();
38821 ;
38822 return 0;
38823}
38824_ACEOF
38825rm -f conftest.$ac_objext conftest$ac_exeext
38826if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38827 (eval $ac_link) 2>conftest.er1
a848cd7e 38828 ac_status=$?
ac1cb8d3
VS
38829 grep -v '^ *+' conftest.er1 >conftest.err
38830 rm -f conftest.er1
38831 cat conftest.err >&5
a848cd7e
SC
38832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38833 (exit $ac_status); } &&
c9a66001 38834 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38836 (eval $ac_try) 2>&5
38837 ac_status=$?
38838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38839 (exit $ac_status); }; } &&
38840 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38842 (eval $ac_try) 2>&5
38843 ac_status=$?
38844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38845 (exit $ac_status); }; }; then
38846 ac_cv_lib_posix4_sched_get_priority_max=yes
38847else
38848 echo "$as_me: failed program was:" >&5
38849sed 's/^/| /' conftest.$ac_ext >&5
38850
38851ac_cv_lib_posix4_sched_get_priority_max=no
38852fi
ac1cb8d3
VS
38853rm -f conftest.err conftest.$ac_objext \
38854 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38855LIBS=$ac_check_lib_save_LIBS
38856fi
38857echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
38858echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
38859if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
38860
38861 HAVE_PRIOR_FUNCS=1
38862 POSIX4_LINK=" -lposix4"
38863
38864fi
38865
38866
38867fi
38868
38869
38870fi
38871
38872
38873fi
38874
38875
38876 if test "$HAVE_PRIOR_FUNCS" = 1; then
38877 cat >>confdefs.h <<\_ACEOF
38878#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
38879_ACEOF
38880
38881 else
38882 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
38883echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
38884 fi
38885
38886 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
38887echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
38888if test "${ac_cv_func_pthread_cancel+set}" = set; then
38889 echo $ECHO_N "(cached) $ECHO_C" >&6
38890else
38891 cat >conftest.$ac_ext <<_ACEOF
38892/* confdefs.h. */
38893_ACEOF
38894cat confdefs.h >>conftest.$ac_ext
38895cat >>conftest.$ac_ext <<_ACEOF
38896/* end confdefs.h. */
ac1cb8d3
VS
38897/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
38898 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38899#define pthread_cancel innocuous_pthread_cancel
38900
a848cd7e
SC
38901/* System header to define __stub macros and hopefully few prototypes,
38902 which can conflict with char pthread_cancel (); below.
38903 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38904 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38905
a848cd7e
SC
38906#ifdef __STDC__
38907# include <limits.h>
38908#else
38909# include <assert.h>
38910#endif
ac1cb8d3
VS
38911
38912#undef pthread_cancel
38913
a848cd7e
SC
38914/* Override any gcc2 internal prototype to avoid an error. */
38915#ifdef __cplusplus
38916extern "C"
38917{
38918#endif
38919/* We use char because int might match the return type of a gcc2
38920 builtin and then its argument prototype would still apply. */
38921char pthread_cancel ();
38922/* The GNU C library defines this for functions which it implements
38923 to always fail with ENOSYS. Some functions are actually named
38924 something starting with __ and the normal name is an alias. */
38925#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
38926choke me
38927#else
38928char (*f) () = pthread_cancel;
38929#endif
38930#ifdef __cplusplus
38931}
38932#endif
38933
38934int
38935main ()
38936{
38937return f != pthread_cancel;
38938 ;
38939 return 0;
38940}
38941_ACEOF
38942rm -f conftest.$ac_objext conftest$ac_exeext
38943if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38944 (eval $ac_link) 2>conftest.er1
a848cd7e 38945 ac_status=$?
ac1cb8d3
VS
38946 grep -v '^ *+' conftest.er1 >conftest.err
38947 rm -f conftest.er1
38948 cat conftest.err >&5
a848cd7e
SC
38949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38950 (exit $ac_status); } &&
c9a66001 38951 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38953 (eval $ac_try) 2>&5
38954 ac_status=$?
38955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38956 (exit $ac_status); }; } &&
38957 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38959 (eval $ac_try) 2>&5
38960 ac_status=$?
38961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38962 (exit $ac_status); }; }; then
38963 ac_cv_func_pthread_cancel=yes
38964else
38965 echo "$as_me: failed program was:" >&5
38966sed 's/^/| /' conftest.$ac_ext >&5
38967
38968ac_cv_func_pthread_cancel=no
38969fi
ac1cb8d3
VS
38970rm -f conftest.err conftest.$ac_objext \
38971 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38972fi
38973echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
38974echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
38975if test $ac_cv_func_pthread_cancel = yes; then
38976 cat >>confdefs.h <<\_ACEOF
38977#define HAVE_PTHREAD_CANCEL 1
38978_ACEOF
38979
38980else
38981 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
38982echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
38983fi
38984
38985
abc736fd
MW
38986 echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
38987echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6
38988if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
38989 echo $ECHO_N "(cached) $ECHO_C" >&6
38990else
38991 cat >conftest.$ac_ext <<_ACEOF
38992/* confdefs.h. */
38993_ACEOF
38994cat confdefs.h >>conftest.$ac_ext
38995cat >>conftest.$ac_ext <<_ACEOF
38996/* end confdefs.h. */
38997/* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
38998 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38999#define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
39000
39001/* System header to define __stub macros and hopefully few prototypes,
39002 which can conflict with char pthread_attr_setstacksize (); below.
39003 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39004 <limits.h> exists even on freestanding compilers. */
39005
39006#ifdef __STDC__
39007# include <limits.h>
39008#else
39009# include <assert.h>
39010#endif
39011
39012#undef pthread_attr_setstacksize
39013
39014/* Override any gcc2 internal prototype to avoid an error. */
39015#ifdef __cplusplus
39016extern "C"
39017{
39018#endif
39019/* We use char because int might match the return type of a gcc2
39020 builtin and then its argument prototype would still apply. */
39021char pthread_attr_setstacksize ();
39022/* The GNU C library defines this for functions which it implements
39023 to always fail with ENOSYS. Some functions are actually named
39024 something starting with __ and the normal name is an alias. */
39025#if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize)
39026choke me
39027#else
39028char (*f) () = pthread_attr_setstacksize;
39029#endif
39030#ifdef __cplusplus
39031}
39032#endif
39033
39034int
39035main ()
39036{
39037return f != pthread_attr_setstacksize;
39038 ;
39039 return 0;
39040}
39041_ACEOF
39042rm -f conftest.$ac_objext conftest$ac_exeext
39043if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39044 (eval $ac_link) 2>conftest.er1
39045 ac_status=$?
39046 grep -v '^ *+' conftest.er1 >conftest.err
39047 rm -f conftest.er1
39048 cat conftest.err >&5
39049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39050 (exit $ac_status); } &&
c9a66001 39051 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
abc736fd
MW
39052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39053 (eval $ac_try) 2>&5
39054 ac_status=$?
39055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39056 (exit $ac_status); }; } &&
39057 { ac_try='test -s conftest$ac_exeext'
39058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39059 (eval $ac_try) 2>&5
39060 ac_status=$?
39061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39062 (exit $ac_status); }; }; then
39063 ac_cv_func_pthread_attr_setstacksize=yes
39064else
39065 echo "$as_me: failed program was:" >&5
39066sed 's/^/| /' conftest.$ac_ext >&5
39067
39068ac_cv_func_pthread_attr_setstacksize=no
39069fi
39070rm -f conftest.err conftest.$ac_objext \
39071 conftest$ac_exeext conftest.$ac_ext
39072fi
39073echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
39074echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6
39075if test $ac_cv_func_pthread_attr_setstacksize = yes; then
39076 cat >>confdefs.h <<\_ACEOF
39077#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
39078_ACEOF
39079
39080fi
39081
a848cd7e
SC
39082
39083
39084 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
39085echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
39086if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
39087 echo $ECHO_N "(cached) $ECHO_C" >&6
39088else
39089
39090 cat >conftest.$ac_ext <<_ACEOF
39091/* confdefs.h. */
39092_ACEOF
39093cat confdefs.h >>conftest.$ac_ext
39094cat >>conftest.$ac_ext <<_ACEOF
39095/* end confdefs.h. */
39096#include <pthread.h>
39097int
39098main ()
39099{
39100
39101 pthread_mutexattr_t attr;
39102 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
39103
39104 ;
39105 return 0;
39106}
39107_ACEOF
39108rm -f conftest.$ac_objext
39109if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39110 (eval $ac_compile) 2>conftest.er1
a848cd7e 39111 ac_status=$?
ac1cb8d3
VS
39112 grep -v '^ *+' conftest.er1 >conftest.err
39113 rm -f conftest.er1
39114 cat conftest.err >&5
a848cd7e
SC
39115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39116 (exit $ac_status); } &&
c9a66001 39117 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39119 (eval $ac_try) 2>&5
39120 ac_status=$?
39121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39122 (exit $ac_status); }; } &&
39123 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39125 (eval $ac_try) 2>&5
39126 ac_status=$?
39127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39128 (exit $ac_status); }; }; then
123dca7d 39129 wx_cv_type_pthread_mutexattr_t=yes
a848cd7e
SC
39130else
39131 echo "$as_me: failed program was:" >&5
39132sed 's/^/| /' conftest.$ac_ext >&5
39133
123dca7d 39134wx_cv_type_pthread_mutexattr_t=no
a848cd7e
SC
39135
39136fi
ac1cb8d3 39137rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39138
39139fi
39140echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
39141echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
39142
39143 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
39144 cat >>confdefs.h <<\_ACEOF
39145#define HAVE_PTHREAD_MUTEXATTR_T 1
39146_ACEOF
39147
123dca7d
VZ
39148
39149 echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
39150echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6
39151if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
39152 echo $ECHO_N "(cached) $ECHO_C" >&6
39153else
39154
39155 cat >conftest.$ac_ext <<_ACEOF
39156/* confdefs.h. */
39157_ACEOF
39158cat confdefs.h >>conftest.$ac_ext
39159cat >>conftest.$ac_ext <<_ACEOF
39160/* end confdefs.h. */
39161#include <pthread.h>
39162int
39163main ()
39164{
39165
39166 pthread_mutexattr_t attr;
39167 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
39168
39169 ;
39170 return 0;
39171}
39172_ACEOF
39173rm -f conftest.$ac_objext
39174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39175 (eval $ac_compile) 2>conftest.er1
39176 ac_status=$?
39177 grep -v '^ *+' conftest.er1 >conftest.err
39178 rm -f conftest.er1
39179 cat conftest.err >&5
39180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39181 (exit $ac_status); } &&
c9a66001 39182 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
123dca7d
VZ
39183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39184 (eval $ac_try) 2>&5
39185 ac_status=$?
39186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39187 (exit $ac_status); }; } &&
39188 { ac_try='test -s conftest.$ac_objext'
39189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39190 (eval $ac_try) 2>&5
39191 ac_status=$?
39192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39193 (exit $ac_status); }; }; then
39194 wx_cv_func_pthread_mutexattr_settype_decl=yes
39195else
39196 echo "$as_me: failed program was:" >&5
39197sed 's/^/| /' conftest.$ac_ext >&5
39198
39199wx_cv_func_pthread_mutexattr_settype_decl=no
39200
39201fi
39202rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39203
39204fi
39205echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
39206echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6
39207 if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
39208 cat >>confdefs.h <<\_ACEOF
39209#define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
39210_ACEOF
39211
39212 fi
a848cd7e
SC
39213 else
39214 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
39215echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
39216if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
39217 echo $ECHO_N "(cached) $ECHO_C" >&6
39218else
39219
39220 cat >conftest.$ac_ext <<_ACEOF
39221/* confdefs.h. */
39222_ACEOF
39223cat confdefs.h >>conftest.$ac_ext
39224cat >>conftest.$ac_ext <<_ACEOF
39225/* end confdefs.h. */
39226#include <pthread.h>
39227int
39228main ()
39229{
39230
39231 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
39232
39233 ;
39234 return 0;
39235}
39236_ACEOF
39237rm -f conftest.$ac_objext
39238if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39239 (eval $ac_compile) 2>conftest.er1
a848cd7e 39240 ac_status=$?
ac1cb8d3
VS
39241 grep -v '^ *+' conftest.er1 >conftest.err
39242 rm -f conftest.er1
39243 cat conftest.err >&5
a848cd7e
SC
39244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39245 (exit $ac_status); } &&
c9a66001 39246 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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_objext'
a848cd7e
SC
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
39259 wx_cv_type_pthread_rec_mutex_init=yes
39260
39261else
39262 echo "$as_me: failed program was:" >&5
39263sed 's/^/| /' conftest.$ac_ext >&5
39264
39265
39266 wx_cv_type_pthread_rec_mutex_init=no
39267
39268
39269fi
ac1cb8d3 39270rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39271
39272fi
39273echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
39274echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
39275 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
39276 cat >>confdefs.h <<\_ACEOF
39277#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
39278_ACEOF
39279
39280 else
39281 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
39282echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
39283 fi
39284 fi
39285 fi
39286
39287else
39288 if test "$wxUSE_THREADS" = "yes" ; then
39289 case "${host}" in
39290 *-*-mingw32* )
39291 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
39292echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
39293if test "${wx_cv_cflags_mthread+set}" = set; then
39294 echo $ECHO_N "(cached) $ECHO_C" >&6
39295else
39296
e56f4f9e
VZ
39297 CXXFLAGS_OLD="$CXXFLAGS"
39298 CXXFLAGS="-mthreads $CXXFLAGS"
a848cd7e
SC
39299 cat >conftest.$ac_ext <<_ACEOF
39300/* confdefs.h. */
39301_ACEOF
39302cat confdefs.h >>conftest.$ac_ext
39303cat >>conftest.$ac_ext <<_ACEOF
39304/* end confdefs.h. */
39305
39306int
39307main ()
39308{
39309
39310 ;
39311 return 0;
39312}
39313_ACEOF
39314rm -f conftest.$ac_objext
39315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39316 (eval $ac_compile) 2>conftest.er1
a848cd7e 39317 ac_status=$?
ac1cb8d3
VS
39318 grep -v '^ *+' conftest.er1 >conftest.err
39319 rm -f conftest.er1
39320 cat conftest.err >&5
a848cd7e
SC
39321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39322 (exit $ac_status); } &&
c9a66001 39323 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39325 (eval $ac_try) 2>&5
39326 ac_status=$?
39327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39328 (exit $ac_status); }; } &&
39329 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39331 (eval $ac_try) 2>&5
39332 ac_status=$?
39333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39334 (exit $ac_status); }; }; then
39335 wx_cv_cflags_mthread=yes
39336else
39337 echo "$as_me: failed program was:" >&5
39338sed 's/^/| /' conftest.$ac_ext >&5
39339
39340wx_cv_cflags_mthread=no
39341
39342fi
ac1cb8d3 39343rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39344
39345
39346fi
39347echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
39348echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
39349
39350 if test "$wx_cv_cflags_mthread" = "yes"; then
e56f4f9e 39351 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -mthreads"
a848cd7e
SC
39352 LDFLAGS="$LDFLAGS -mthreads"
39353 else
e56f4f9e 39354 CXXFLAGS="$CXXFLAGS_OLD"
a848cd7e
SC
39355 fi
39356 ;;
39357 *-pc-os2*emx )
5ff751d6
VZ
39358 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
39359 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
a848cd7e
SC
39360 LDFLAGS="$LDFLAGS -Zmt"
39361 ;;
39362 esac
39363 fi
39364fi
39365
004ee6da
RL
39366echo "$as_me:$LINENO: checking for localtime_r" >&5
39367echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6
39368if test "${ac_cv_func_localtime_r+set}" = set; then
a848cd7e
SC
39369 echo $ECHO_N "(cached) $ECHO_C" >&6
39370else
39371 cat >conftest.$ac_ext <<_ACEOF
39372/* confdefs.h. */
39373_ACEOF
39374cat confdefs.h >>conftest.$ac_ext
39375cat >>conftest.$ac_ext <<_ACEOF
39376/* end confdefs.h. */
004ee6da 39377/* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
ac1cb8d3 39378 For example, HP-UX 11i <limits.h> declares gettimeofday. */
004ee6da 39379#define localtime_r innocuous_localtime_r
ac1cb8d3 39380
a848cd7e 39381/* System header to define __stub macros and hopefully few prototypes,
004ee6da 39382 which can conflict with char localtime_r (); below.
a848cd7e
SC
39383 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39384 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39385
a848cd7e
SC
39386#ifdef __STDC__
39387# include <limits.h>
39388#else
39389# include <assert.h>
39390#endif
ac1cb8d3 39391
004ee6da 39392#undef localtime_r
ac1cb8d3 39393
a848cd7e
SC
39394/* Override any gcc2 internal prototype to avoid an error. */
39395#ifdef __cplusplus
39396extern "C"
39397{
39398#endif
39399/* We use char because int might match the return type of a gcc2
39400 builtin and then its argument prototype would still apply. */
004ee6da 39401char localtime_r ();
a848cd7e
SC
39402/* The GNU C library defines this for functions which it implements
39403 to always fail with ENOSYS. Some functions are actually named
39404 something starting with __ and the normal name is an alias. */
004ee6da 39405#if defined (__stub_localtime_r) || defined (__stub___localtime_r)
a848cd7e
SC
39406choke me
39407#else
004ee6da 39408char (*f) () = localtime_r;
a848cd7e
SC
39409#endif
39410#ifdef __cplusplus
39411}
39412#endif
39413
39414int
39415main ()
39416{
004ee6da
RL
39417return f != localtime_r;
39418 ;
39419 return 0;
39420}
39421_ACEOF
39422rm -f conftest.$ac_objext conftest$ac_exeext
39423if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39424 (eval $ac_link) 2>conftest.er1
39425 ac_status=$?
39426 grep -v '^ *+' conftest.er1 >conftest.err
39427 rm -f conftest.er1
39428 cat conftest.err >&5
39429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39430 (exit $ac_status); } &&
c9a66001 39431 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39433 (eval $ac_try) 2>&5
39434 ac_status=$?
39435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39436 (exit $ac_status); }; } &&
39437 { ac_try='test -s conftest$ac_exeext'
39438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39439 (eval $ac_try) 2>&5
39440 ac_status=$?
39441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39442 (exit $ac_status); }; }; then
39443 ac_cv_func_localtime_r=yes
39444else
39445 echo "$as_me: failed program was:" >&5
39446sed 's/^/| /' conftest.$ac_ext >&5
39447
39448ac_cv_func_localtime_r=no
39449fi
39450rm -f conftest.err conftest.$ac_objext \
39451 conftest$ac_exeext conftest.$ac_ext
39452fi
39453echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
39454echo "${ECHO_T}$ac_cv_func_localtime_r" >&6
39455if test $ac_cv_func_localtime_r = yes; then
39456 cat >>confdefs.h <<\_ACEOF
39457#define HAVE_LOCALTIME_R 1
39458_ACEOF
39459
39460fi
39461
39462echo "$as_me:$LINENO: checking for gmtime_r" >&5
39463echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6
39464if test "${ac_cv_func_gmtime_r+set}" = set; then
39465 echo $ECHO_N "(cached) $ECHO_C" >&6
39466else
39467 cat >conftest.$ac_ext <<_ACEOF
39468/* confdefs.h. */
39469_ACEOF
39470cat confdefs.h >>conftest.$ac_ext
39471cat >>conftest.$ac_ext <<_ACEOF
39472/* end confdefs.h. */
39473/* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
39474 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39475#define gmtime_r innocuous_gmtime_r
39476
39477/* System header to define __stub macros and hopefully few prototypes,
39478 which can conflict with char gmtime_r (); below.
39479 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39480 <limits.h> exists even on freestanding compilers. */
39481
39482#ifdef __STDC__
39483# include <limits.h>
39484#else
39485# include <assert.h>
39486#endif
39487
39488#undef gmtime_r
39489
39490/* Override any gcc2 internal prototype to avoid an error. */
39491#ifdef __cplusplus
39492extern "C"
39493{
39494#endif
39495/* We use char because int might match the return type of a gcc2
39496 builtin and then its argument prototype would still apply. */
39497char gmtime_r ();
39498/* The GNU C library defines this for functions which it implements
39499 to always fail with ENOSYS. Some functions are actually named
39500 something starting with __ and the normal name is an alias. */
39501#if defined (__stub_gmtime_r) || defined (__stub___gmtime_r)
39502choke me
39503#else
39504char (*f) () = gmtime_r;
39505#endif
39506#ifdef __cplusplus
39507}
39508#endif
39509
39510int
39511main ()
39512{
39513return f != gmtime_r;
39514 ;
39515 return 0;
39516}
39517_ACEOF
39518rm -f conftest.$ac_objext conftest$ac_exeext
39519if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39520 (eval $ac_link) 2>conftest.er1
39521 ac_status=$?
39522 grep -v '^ *+' conftest.er1 >conftest.err
39523 rm -f conftest.er1
39524 cat conftest.err >&5
39525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39526 (exit $ac_status); } &&
c9a66001 39527 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39529 (eval $ac_try) 2>&5
39530 ac_status=$?
39531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39532 (exit $ac_status); }; } &&
39533 { ac_try='test -s conftest$ac_exeext'
39534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39535 (eval $ac_try) 2>&5
39536 ac_status=$?
39537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39538 (exit $ac_status); }; }; then
39539 ac_cv_func_gmtime_r=yes
39540else
39541 echo "$as_me: failed program was:" >&5
39542sed 's/^/| /' conftest.$ac_ext >&5
39543
39544ac_cv_func_gmtime_r=no
39545fi
39546rm -f conftest.err conftest.$ac_objext \
39547 conftest$ac_exeext conftest.$ac_ext
39548fi
39549echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
39550echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6
39551if test $ac_cv_func_gmtime_r = yes; then
39552 cat >>confdefs.h <<\_ACEOF
39553#define HAVE_GMTIME_R 1
39554_ACEOF
39555
39556fi
39557
39558echo "$as_me:$LINENO: checking for readdir_r" >&5
39559echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6
39560if test "${ac_cv_func_readdir_r+set}" = set; then
39561 echo $ECHO_N "(cached) $ECHO_C" >&6
39562else
39563 cat >conftest.$ac_ext <<_ACEOF
39564/* confdefs.h. */
39565_ACEOF
39566cat confdefs.h >>conftest.$ac_ext
39567cat >>conftest.$ac_ext <<_ACEOF
39568/* end confdefs.h. */
39569/* Define readdir_r to an innocuous variant, in case <limits.h> declares readdir_r.
39570 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39571#define readdir_r innocuous_readdir_r
39572
39573/* System header to define __stub macros and hopefully few prototypes,
39574 which can conflict with char readdir_r (); below.
39575 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39576 <limits.h> exists even on freestanding compilers. */
39577
39578#ifdef __STDC__
39579# include <limits.h>
39580#else
39581# include <assert.h>
39582#endif
39583
39584#undef readdir_r
39585
39586/* Override any gcc2 internal prototype to avoid an error. */
39587#ifdef __cplusplus
39588extern "C"
39589{
39590#endif
39591/* We use char because int might match the return type of a gcc2
39592 builtin and then its argument prototype would still apply. */
39593char readdir_r ();
39594/* The GNU C library defines this for functions which it implements
39595 to always fail with ENOSYS. Some functions are actually named
39596 something starting with __ and the normal name is an alias. */
39597#if defined (__stub_readdir_r) || defined (__stub___readdir_r)
39598choke me
39599#else
39600char (*f) () = readdir_r;
39601#endif
39602#ifdef __cplusplus
39603}
39604#endif
39605
39606int
39607main ()
39608{
39609return f != readdir_r;
39610 ;
39611 return 0;
39612}
39613_ACEOF
39614rm -f conftest.$ac_objext conftest$ac_exeext
39615if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39616 (eval $ac_link) 2>conftest.er1
39617 ac_status=$?
39618 grep -v '^ *+' conftest.er1 >conftest.err
39619 rm -f conftest.er1
39620 cat conftest.err >&5
39621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39622 (exit $ac_status); } &&
c9a66001 39623 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39625 (eval $ac_try) 2>&5
39626 ac_status=$?
39627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39628 (exit $ac_status); }; } &&
39629 { ac_try='test -s conftest$ac_exeext'
39630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39631 (eval $ac_try) 2>&5
39632 ac_status=$?
39633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39634 (exit $ac_status); }; }; then
39635 ac_cv_func_readdir_r=yes
39636else
39637 echo "$as_me: failed program was:" >&5
39638sed 's/^/| /' conftest.$ac_ext >&5
39639
39640ac_cv_func_readdir_r=no
39641fi
39642rm -f conftest.err conftest.$ac_objext \
39643 conftest$ac_exeext conftest.$ac_ext
39644fi
39645echo "$as_me:$LINENO: result: $ac_cv_func_readdir_r" >&5
39646echo "${ECHO_T}$ac_cv_func_readdir_r" >&6
39647if test $ac_cv_func_readdir_r = yes; then
39648 cat >>confdefs.h <<\_ACEOF
39649#define HAVE_READDIR_R 1
39650_ACEOF
39651
39652fi
39653
004ee6da 39654
004ee6da
RL
39655
39656
39657 ac_ext=c
39658ac_cpp='$CPP $CPPFLAGS'
39659ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39660ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39661ac_compiler_gnu=$ac_cv_c_compiler_gnu
39662
39663 echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
39664echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6
39665
39666 if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
39667 echo $ECHO_N "(cached) $ECHO_C" >&6
39668else
39669
39670
2f6c5bb5 39671################################################################
004ee6da
RL
39672
39673ac_cv_func_which_gethostbyname_r=unknown
39674
39675#
39676# ONE ARGUMENT (sanity check)
39677#
39678
39679# This should fail, as there is no variant of gethostbyname_r() that takes
39680# a single argument. If it actually compiles, then we can assume that
39681# netdb.h is not declaring the function, and the compiler is thereby
39682# assuming an implicit prototype. In which case, we're out of luck.
39683#
39684cat >conftest.$ac_ext <<_ACEOF
39685/* confdefs.h. */
39686_ACEOF
39687cat confdefs.h >>conftest.$ac_ext
39688cat >>conftest.$ac_ext <<_ACEOF
39689/* end confdefs.h. */
39690#include <netdb.h>
39691int
39692main ()
39693{
39694
39695 char *name = "www.gnu.org";
39696 (void)gethostbyname_r(name) /* ; */
39697
39698 ;
39699 return 0;
39700}
39701_ACEOF
39702rm -f conftest.$ac_objext
39703if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39704 (eval $ac_compile) 2>conftest.er1
39705 ac_status=$?
39706 grep -v '^ *+' conftest.er1 >conftest.err
39707 rm -f conftest.er1
39708 cat conftest.err >&5
39709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39710 (exit $ac_status); } &&
c9a66001 39711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39713 (eval $ac_try) 2>&5
39714 ac_status=$?
39715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39716 (exit $ac_status); }; } &&
39717 { ac_try='test -s conftest.$ac_objext'
39718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39719 (eval $ac_try) 2>&5
39720 ac_status=$?
39721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39722 (exit $ac_status); }; }; then
39723 ac_cv_func_which_gethostbyname_r=no
39724else
39725 echo "$as_me: failed program was:" >&5
39726sed 's/^/| /' conftest.$ac_ext >&5
39727
39728fi
39729rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39730
39731#
39732# SIX ARGUMENTS
39733# (e.g. Linux)
39734#
39735
39736if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
39737
39738cat >conftest.$ac_ext <<_ACEOF
39739/* confdefs.h. */
39740_ACEOF
39741cat confdefs.h >>conftest.$ac_ext
39742cat >>conftest.$ac_ext <<_ACEOF
39743/* end confdefs.h. */
39744#include <netdb.h>
39745int
39746main ()
39747{
39748
39749 char *name = "www.gnu.org";
39750 struct hostent ret, *retp;
39751 char buf[1024];
39752 int buflen = 1024;
39753 int my_h_errno;
39754 (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
39755
39756 ;
39757 return 0;
39758}
39759_ACEOF
39760rm -f conftest.$ac_objext
39761if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39762 (eval $ac_compile) 2>conftest.er1
39763 ac_status=$?
39764 grep -v '^ *+' conftest.er1 >conftest.err
39765 rm -f conftest.er1
39766 cat conftest.err >&5
39767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39768 (exit $ac_status); } &&
c9a66001 39769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39771 (eval $ac_try) 2>&5
39772 ac_status=$?
39773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39774 (exit $ac_status); }; } &&
39775 { ac_try='test -s conftest.$ac_objext'
39776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39777 (eval $ac_try) 2>&5
39778 ac_status=$?
39779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39780 (exit $ac_status); }; }; then
39781 ac_cv_func_which_gethostbyname_r=six
39782else
39783 echo "$as_me: failed program was:" >&5
39784sed 's/^/| /' conftest.$ac_ext >&5
39785
39786fi
39787rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39788
39789fi
39790
39791#
39792# FIVE ARGUMENTS
39793# (e.g. Solaris)
39794#
39795
39796if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
39797
39798cat >conftest.$ac_ext <<_ACEOF
39799/* confdefs.h. */
39800_ACEOF
39801cat confdefs.h >>conftest.$ac_ext
39802cat >>conftest.$ac_ext <<_ACEOF
39803/* end confdefs.h. */
39804#include <netdb.h>
39805int
39806main ()
39807{
39808
39809 char *name = "www.gnu.org";
39810 struct hostent ret;
39811 char buf[1024];
39812 int buflen = 1024;
39813 int my_h_errno;
39814 (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
39815
39816 ;
39817 return 0;
39818}
39819_ACEOF
39820rm -f conftest.$ac_objext
39821if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39822 (eval $ac_compile) 2>conftest.er1
39823 ac_status=$?
39824 grep -v '^ *+' conftest.er1 >conftest.err
39825 rm -f conftest.er1
39826 cat conftest.err >&5
39827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39828 (exit $ac_status); } &&
c9a66001 39829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39831 (eval $ac_try) 2>&5
39832 ac_status=$?
39833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39834 (exit $ac_status); }; } &&
39835 { ac_try='test -s conftest.$ac_objext'
39836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39837 (eval $ac_try) 2>&5
39838 ac_status=$?
39839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39840 (exit $ac_status); }; }; then
39841 ac_cv_func_which_gethostbyname_r=five
39842else
39843 echo "$as_me: failed program was:" >&5
39844sed 's/^/| /' conftest.$ac_ext >&5
39845
39846fi
39847rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39848
39849fi
39850
39851#
39852# THREE ARGUMENTS
39853# (e.g. AIX, HP-UX, Tru64)
39854#
39855
39856if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
39857
39858cat >conftest.$ac_ext <<_ACEOF
39859/* confdefs.h. */
39860_ACEOF
39861cat confdefs.h >>conftest.$ac_ext
39862cat >>conftest.$ac_ext <<_ACEOF
39863/* end confdefs.h. */
39864#include <netdb.h>
39865int
39866main ()
39867{
39868
39869 char *name = "www.gnu.org";
39870 struct hostent ret;
39871 struct hostent_data data;
39872 (void)gethostbyname_r(name, &ret, &data) /* ; */
39873
39874 ;
39875 return 0;
39876}
39877_ACEOF
39878rm -f conftest.$ac_objext
39879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39880 (eval $ac_compile) 2>conftest.er1
39881 ac_status=$?
39882 grep -v '^ *+' conftest.er1 >conftest.err
39883 rm -f conftest.er1
39884 cat conftest.err >&5
39885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39886 (exit $ac_status); } &&
c9a66001 39887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39889 (eval $ac_try) 2>&5
39890 ac_status=$?
39891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39892 (exit $ac_status); }; } &&
39893 { ac_try='test -s conftest.$ac_objext'
39894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39895 (eval $ac_try) 2>&5
39896 ac_status=$?
39897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39898 (exit $ac_status); }; }; then
39899 ac_cv_func_which_gethostbyname_r=three
39900else
39901 echo "$as_me: failed program was:" >&5
39902sed 's/^/| /' conftest.$ac_ext >&5
39903
39904fi
39905rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39906
39907fi
39908
2f6c5bb5 39909################################################################
004ee6da
RL
39910
39911
39912fi
39913
39914case "$ac_cv_func_which_gethostbyname_r" in
39915 three)
39916 echo "$as_me:$LINENO: result: three" >&5
39917echo "${ECHO_T}three" >&6
39918 cat >>confdefs.h <<\_ACEOF
39919#define HAVE_FUNC_GETHOSTBYNAME_R_3 1
39920_ACEOF
39921
39922 ;;
39923
39924 five)
39925 echo "$as_me:$LINENO: result: five" >&5
39926echo "${ECHO_T}five" >&6
39927 cat >>confdefs.h <<\_ACEOF
39928#define HAVE_FUNC_GETHOSTBYNAME_R_5 1
39929_ACEOF
39930
39931 ;;
39932
39933 six)
39934 echo "$as_me:$LINENO: result: six" >&5
39935echo "${ECHO_T}six" >&6
39936 cat >>confdefs.h <<\_ACEOF
39937#define HAVE_FUNC_GETHOSTBYNAME_R_6 1
39938_ACEOF
39939
39940 ;;
39941
39942 no)
39943 echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
39944echo "${ECHO_T}cannot find function declaration in netdb.h" >&6
39945 ;;
39946
39947 unknown)
39948 echo "$as_me:$LINENO: result: can't tell" >&5
39949echo "${ECHO_T}can't tell" >&6
39950 ;;
39951
39952 *)
39953 { { echo "$as_me:$LINENO: error: internal error" >&5
39954echo "$as_me: error: internal error" >&2;}
39955 { (exit 1); exit 1; }; }
39956 ;;
39957esac
39958
5ec3bc43
JS
39959ac_ext=cc
39960ac_cpp='$CXXCPP $CPPFLAGS'
39961ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39962ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39963ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
004ee6da
RL
39964
39965
39966
39967 if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
39968 "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
39969 echo "$as_me:$LINENO: checking for gethostbyname" >&5
39970echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
39971if test "${ac_cv_func_gethostbyname+set}" = set; then
39972 echo $ECHO_N "(cached) $ECHO_C" >&6
39973else
39974 cat >conftest.$ac_ext <<_ACEOF
39975/* confdefs.h. */
39976_ACEOF
39977cat confdefs.h >>conftest.$ac_ext
39978cat >>conftest.$ac_ext <<_ACEOF
39979/* end confdefs.h. */
39980/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
39981 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39982#define gethostbyname innocuous_gethostbyname
39983
39984/* System header to define __stub macros and hopefully few prototypes,
39985 which can conflict with char gethostbyname (); below.
39986 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39987 <limits.h> exists even on freestanding compilers. */
39988
39989#ifdef __STDC__
39990# include <limits.h>
39991#else
39992# include <assert.h>
39993#endif
39994
39995#undef gethostbyname
39996
39997/* Override any gcc2 internal prototype to avoid an error. */
39998#ifdef __cplusplus
39999extern "C"
40000{
40001#endif
40002/* We use char because int might match the return type of a gcc2
40003 builtin and then its argument prototype would still apply. */
40004char gethostbyname ();
40005/* The GNU C library defines this for functions which it implements
40006 to always fail with ENOSYS. Some functions are actually named
40007 something starting with __ and the normal name is an alias. */
40008#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
40009choke me
40010#else
40011char (*f) () = gethostbyname;
40012#endif
40013#ifdef __cplusplus
40014}
40015#endif
40016
40017int
40018main ()
40019{
40020return f != gethostbyname;
40021 ;
40022 return 0;
40023}
40024_ACEOF
40025rm -f conftest.$ac_objext conftest$ac_exeext
40026if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40027 (eval $ac_link) 2>conftest.er1
40028 ac_status=$?
40029 grep -v '^ *+' conftest.er1 >conftest.err
40030 rm -f conftest.er1
40031 cat conftest.err >&5
40032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40033 (exit $ac_status); } &&
c9a66001 40034 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40036 (eval $ac_try) 2>&5
40037 ac_status=$?
40038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40039 (exit $ac_status); }; } &&
40040 { ac_try='test -s conftest$ac_exeext'
40041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40042 (eval $ac_try) 2>&5
40043 ac_status=$?
40044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40045 (exit $ac_status); }; }; then
40046 ac_cv_func_gethostbyname=yes
40047else
40048 echo "$as_me: failed program was:" >&5
40049sed 's/^/| /' conftest.$ac_ext >&5
40050
40051ac_cv_func_gethostbyname=no
40052fi
40053rm -f conftest.err conftest.$ac_objext \
40054 conftest$ac_exeext conftest.$ac_ext
40055fi
40056echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
40057echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
40058if test $ac_cv_func_gethostbyname = yes; then
40059 cat >>confdefs.h <<\_ACEOF
40060#define HAVE_GETHOSTBYNAME 1
40061_ACEOF
40062
40063fi
40064
40065 fi
40066 echo "$as_me:$LINENO: checking for getservbyname_r" >&5
40067echo $ECHO_N "checking for getservbyname_r... $ECHO_C" >&6
3ecd9f92
MW
40068if test "${ac_cv_func_which_getservbyname_r+set}" = set; then
40069 echo $ECHO_N "(cached) $ECHO_C" >&6
40070else
40071
40072echo "$as_me:$LINENO: checking for getservbyname_r" >&5
40073echo $ECHO_N "checking for getservbyname_r... $ECHO_C" >&6
004ee6da
RL
40074if test "${ac_cv_func_getservbyname_r+set}" = set; then
40075 echo $ECHO_N "(cached) $ECHO_C" >&6
40076else
40077 cat >conftest.$ac_ext <<_ACEOF
40078/* confdefs.h. */
40079_ACEOF
40080cat confdefs.h >>conftest.$ac_ext
40081cat >>conftest.$ac_ext <<_ACEOF
40082/* end confdefs.h. */
40083/* Define getservbyname_r to an innocuous variant, in case <limits.h> declares getservbyname_r.
40084 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40085#define getservbyname_r innocuous_getservbyname_r
40086
40087/* System header to define __stub macros and hopefully few prototypes,
40088 which can conflict with char getservbyname_r (); below.
40089 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40090 <limits.h> exists even on freestanding compilers. */
40091
40092#ifdef __STDC__
40093# include <limits.h>
40094#else
40095# include <assert.h>
40096#endif
40097
40098#undef getservbyname_r
40099
40100/* Override any gcc2 internal prototype to avoid an error. */
40101#ifdef __cplusplus
40102extern "C"
40103{
40104#endif
40105/* We use char because int might match the return type of a gcc2
40106 builtin and then its argument prototype would still apply. */
40107char getservbyname_r ();
40108/* The GNU C library defines this for functions which it implements
40109 to always fail with ENOSYS. Some functions are actually named
40110 something starting with __ and the normal name is an alias. */
40111#if defined (__stub_getservbyname_r) || defined (__stub___getservbyname_r)
40112choke me
40113#else
40114char (*f) () = getservbyname_r;
40115#endif
40116#ifdef __cplusplus
40117}
40118#endif
40119
40120int
40121main ()
40122{
40123return f != getservbyname_r;
40124 ;
40125 return 0;
40126}
40127_ACEOF
40128rm -f conftest.$ac_objext conftest$ac_exeext
40129if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40130 (eval $ac_link) 2>conftest.er1
40131 ac_status=$?
40132 grep -v '^ *+' conftest.er1 >conftest.err
40133 rm -f conftest.er1
40134 cat conftest.err >&5
40135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40136 (exit $ac_status); } &&
c9a66001 40137 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40139 (eval $ac_try) 2>&5
40140 ac_status=$?
40141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40142 (exit $ac_status); }; } &&
40143 { ac_try='test -s conftest$ac_exeext'
40144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40145 (eval $ac_try) 2>&5
40146 ac_status=$?
40147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40148 (exit $ac_status); }; }; then
40149 ac_cv_func_getservbyname_r=yes
40150else
40151 echo "$as_me: failed program was:" >&5
40152sed 's/^/| /' conftest.$ac_ext >&5
40153
40154ac_cv_func_getservbyname_r=no
40155fi
40156rm -f conftest.err conftest.$ac_objext \
40157 conftest$ac_exeext conftest.$ac_ext
40158fi
40159echo "$as_me:$LINENO: result: $ac_cv_func_getservbyname_r" >&5
40160echo "${ECHO_T}$ac_cv_func_getservbyname_r" >&6
40161if test $ac_cv_func_getservbyname_r = yes; then
3ecd9f92
MW
40162
40163 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
40164/* confdefs.h. */
40165_ACEOF
40166cat confdefs.h >>conftest.$ac_ext
40167cat >>conftest.$ac_ext <<_ACEOF
40168/* end confdefs.h. */
3ecd9f92
MW
40169
40170# include <netdb.h>
40171
004ee6da
RL
40172int
40173main ()
40174{
40175
3ecd9f92
MW
40176
40177 char *name;
40178 char *proto;
40179 struct servent *se;
40180 struct servent_data data;
40181 (void) getservbyname_r(name, proto, se, &data);
40182
004ee6da
RL
40183
40184 ;
40185 return 0;
40186}
40187_ACEOF
40188rm -f conftest.$ac_objext
40189if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40190 (eval $ac_compile) 2>conftest.er1
40191 ac_status=$?
40192 grep -v '^ *+' conftest.er1 >conftest.err
40193 rm -f conftest.er1
40194 cat conftest.err >&5
40195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40196 (exit $ac_status); } &&
c9a66001 40197 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40199 (eval $ac_try) 2>&5
40200 ac_status=$?
40201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40202 (exit $ac_status); }; } &&
40203 { ac_try='test -s conftest.$ac_objext'
40204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40205 (eval $ac_try) 2>&5
40206 ac_status=$?
40207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40208 (exit $ac_status); }; }; then
40209 ac_cv_func_which_getservbyname_r=four
40210else
40211 echo "$as_me: failed program was:" >&5
40212sed 's/^/| /' conftest.$ac_ext >&5
40213
3ecd9f92
MW
40214
40215 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
40216/* confdefs.h. */
40217_ACEOF
40218cat confdefs.h >>conftest.$ac_ext
40219cat >>conftest.$ac_ext <<_ACEOF
40220/* end confdefs.h. */
3ecd9f92
MW
40221
40222# include <netdb.h>
40223
004ee6da
RL
40224int
40225main ()
40226{
40227
3ecd9f92
MW
40228 char *name;
40229 char *proto;
40230 struct servent *se, *res;
40231 char buffer[2048];
40232 int buflen = 2048;
40233 (void) getservbyname_r(name, proto, se, buffer, buflen, &res)
004ee6da
RL
40234
40235 ;
40236 return 0;
40237}
40238_ACEOF
40239rm -f conftest.$ac_objext
40240if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40241 (eval $ac_compile) 2>conftest.er1
40242 ac_status=$?
40243 grep -v '^ *+' conftest.er1 >conftest.err
40244 rm -f conftest.er1
40245 cat conftest.err >&5
40246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40247 (exit $ac_status); } &&
c9a66001 40248 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40250 (eval $ac_try) 2>&5
40251 ac_status=$?
40252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40253 (exit $ac_status); }; } &&
40254 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
40260 ac_cv_func_which_getservbyname_r=six
40261else
40262 echo "$as_me: failed program was:" >&5
40263sed 's/^/| /' conftest.$ac_ext >&5
40264
3ecd9f92
MW
40265
40266 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
40267/* confdefs.h. */
40268_ACEOF
40269cat confdefs.h >>conftest.$ac_ext
40270cat >>conftest.$ac_ext <<_ACEOF
40271/* end confdefs.h. */
3ecd9f92
MW
40272
40273# include <netdb.h>
40274
004ee6da
RL
40275int
40276main ()
40277{
40278
3ecd9f92
MW
40279 char *name;
40280 char *proto;
40281 struct servent *se;
40282 char buffer[2048];
40283 int buflen = 2048;
40284 (void) getservbyname_r(name, proto, se, buffer, buflen)
004ee6da
RL
40285
40286 ;
40287 return 0;
40288}
40289_ACEOF
40290rm -f conftest.$ac_objext
40291if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40292 (eval $ac_compile) 2>conftest.er1
40293 ac_status=$?
40294 grep -v '^ *+' conftest.er1 >conftest.err
40295 rm -f conftest.er1
40296 cat conftest.err >&5
40297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40298 (exit $ac_status); } &&
c9a66001 40299 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40301 (eval $ac_try) 2>&5
40302 ac_status=$?
40303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40304 (exit $ac_status); }; } &&
40305 { ac_try='test -s conftest.$ac_objext'
40306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40307 (eval $ac_try) 2>&5
40308 ac_status=$?
40309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40310 (exit $ac_status); }; }; then
40311 ac_cv_func_which_getservbyname_r=five
40312else
40313 echo "$as_me: failed program was:" >&5
40314sed 's/^/| /' conftest.$ac_ext >&5
40315
40316ac_cv_func_which_getservbyname_r=no
40317fi
40318rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40319
3ecd9f92
MW
40320
40321
40322
004ee6da
RL
40323fi
40324rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40325
3ecd9f92 40326
004ee6da
RL
40327fi
40328rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3ecd9f92 40329
004ee6da
RL
40330else
40331 ac_cv_func_which_getservbyname_r=no
40332fi
40333
3ecd9f92
MW
40334fi
40335echo "$as_me:$LINENO: result: $ac_cv_func_which_getservbyname_r" >&5
40336echo "${ECHO_T}$ac_cv_func_which_getservbyname_r" >&6
004ee6da
RL
40337
40338if test $ac_cv_func_which_getservbyname_r = six; then
40339 cat >>confdefs.h <<\_ACEOF
40340#define HAVE_FUNC_GETSERVBYNAME_R_6 1
40341_ACEOF
40342
40343elif test $ac_cv_func_which_getservbyname_r = five; then
40344 cat >>confdefs.h <<\_ACEOF
40345#define HAVE_FUNC_GETSERVBYNAME_R_5 1
40346_ACEOF
40347
40348elif test $ac_cv_func_which_getservbyname_r = four; then
40349 cat >>confdefs.h <<\_ACEOF
40350#define HAVE_FUNC_GETSERVBYNAME_R_4 1
40351_ACEOF
40352
3ecd9f92 40353
004ee6da
RL
40354fi
40355
40356
40357 if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
40358 "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
40359
40360for ac_func in getservbyname
40361do
40362as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40363echo "$as_me:$LINENO: checking for $ac_func" >&5
40364echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40365if eval "test \"\${$as_ac_var+set}\" = set"; then
40366 echo $ECHO_N "(cached) $ECHO_C" >&6
40367else
40368 cat >conftest.$ac_ext <<_ACEOF
40369/* confdefs.h. */
40370_ACEOF
40371cat confdefs.h >>conftest.$ac_ext
40372cat >>conftest.$ac_ext <<_ACEOF
40373/* end confdefs.h. */
40374/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40375 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40376#define $ac_func innocuous_$ac_func
40377
40378/* System header to define __stub macros and hopefully few prototypes,
40379 which can conflict with char $ac_func (); below.
40380 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40381 <limits.h> exists even on freestanding compilers. */
40382
40383#ifdef __STDC__
40384# include <limits.h>
40385#else
40386# include <assert.h>
40387#endif
40388
40389#undef $ac_func
40390
40391/* Override any gcc2 internal prototype to avoid an error. */
40392#ifdef __cplusplus
40393extern "C"
40394{
40395#endif
40396/* We use char because int might match the return type of a gcc2
40397 builtin and then its argument prototype would still apply. */
40398char $ac_func ();
40399/* The GNU C library defines this for functions which it implements
40400 to always fail with ENOSYS. Some functions are actually named
40401 something starting with __ and the normal name is an alias. */
40402#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40403choke me
40404#else
40405char (*f) () = $ac_func;
40406#endif
40407#ifdef __cplusplus
40408}
40409#endif
40410
40411int
40412main ()
40413{
40414return f != $ac_func;
40415 ;
40416 return 0;
40417}
40418_ACEOF
40419rm -f conftest.$ac_objext conftest$ac_exeext
40420if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40421 (eval $ac_link) 2>conftest.er1
40422 ac_status=$?
40423 grep -v '^ *+' conftest.er1 >conftest.err
40424 rm -f conftest.er1
40425 cat conftest.err >&5
40426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40427 (exit $ac_status); } &&
c9a66001 40428 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40430 (eval $ac_try) 2>&5
40431 ac_status=$?
40432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40433 (exit $ac_status); }; } &&
40434 { ac_try='test -s conftest$ac_exeext'
40435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40436 (eval $ac_try) 2>&5
40437 ac_status=$?
40438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40439 (exit $ac_status); }; }; then
40440 eval "$as_ac_var=yes"
40441else
40442 echo "$as_me: failed program was:" >&5
40443sed 's/^/| /' conftest.$ac_ext >&5
40444
40445eval "$as_ac_var=no"
40446fi
40447rm -f conftest.err conftest.$ac_objext \
40448 conftest$ac_exeext conftest.$ac_ext
40449fi
40450echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40451echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40452if test `eval echo '${'$as_ac_var'}'` = yes; then
40453 cat >>confdefs.h <<_ACEOF
40454#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40455_ACEOF
40456 cat >>confdefs.h <<\_ACEOF
40457#define HAVE_GETSERVBYNAME 1
40458_ACEOF
40459
40460fi
40461done
40462
40463 fi
40464
004ee6da
RL
40465if test "$wxUSE_THREADS" = "yes"; then
40466 cat >>confdefs.h <<\_ACEOF
40467#define wxUSE_THREADS 1
40468_ACEOF
40469
40470
40471 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
40472else
82a2636b 40473 if test "$ac_cv_have_decl_strtok_r" = "yes"; then
004ee6da
RL
40474 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
40475echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
40476 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
40477 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
40478 echo "$as_me:$LINENO: result: yes" >&5
40479echo "${ECHO_T}yes" >&6
40480 else
40481 echo "$as_me:$LINENO: result: no" >&5
40482echo "${ECHO_T}no" >&6
40483 fi
40484 fi
40485fi
40486
40487if test "$WXGTK20" = 1 ; then
40488 cat >>confdefs.h <<_ACEOF
40489#define __WXGTK20__ $WXGTK20
40490_ACEOF
40491
40492 WXGTK12=1
40493fi
40494
40495if test "$WXGTK12" = 1 ; then
40496 cat >>confdefs.h <<_ACEOF
40497#define __WXGTK12__ $WXGTK12
40498_ACEOF
40499
40500fi
40501
40502if test "$WXGTK127" = 1 ; then
40503 cat >>confdefs.h <<_ACEOF
40504#define __WXGTK127__ $WXGTK127
40505_ACEOF
40506
40507fi
40508
40509if test "$WXGPE" = 1 ; then
40510 cat >>confdefs.h <<_ACEOF
40511#define __WXGPE__ $WXGPE
40512_ACEOF
40513
40514fi
40515
40516DEBUG_CFLAGS=
40517if test "$wxUSE_DEBUG_INFO" = "yes" ; then
40518 DEBUG_CFLAGS="-g"
40519 wxUSE_OPTIMISE=no
40520fi
40521
40522if test "$wxUSE_DEBUG_GDB" = "yes" ; then
40523 wxUSE_DEBUG_INFO=yes
40524 if test "$GCC" = yes; then
40525 DEBUG_CFLAGS="-ggdb"
40526 fi
40527fi
40528
40529if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
40530 cat >>confdefs.h <<\_ACEOF
40531#define WXDEBUG 1
40532_ACEOF
40533
40534 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
40535else
40536 if test "$wxUSE_GTK" = 1 ; then
99879bbf
MR
40537 if test "x$wxGTK_VERSION" = "x1" ; then
40538 CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
40539 fi
004ee6da
RL
40540 fi
40541fi
40542
40543if test "$wxUSE_MEM_TRACING" = "yes" ; then
40544 cat >>confdefs.h <<\_ACEOF
40545#define wxUSE_MEMORY_TRACING 1
40546_ACEOF
40547
40548 cat >>confdefs.h <<\_ACEOF
40549#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
40550_ACEOF
40551
40552 cat >>confdefs.h <<\_ACEOF
40553#define wxUSE_DEBUG_NEW_ALWAYS 1
40554_ACEOF
40555
40556 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
40557fi
40558
40559if test "$wxUSE_DMALLOC" = "yes" ; then
40560 DMALLOC_LIBS="-ldmallocthcxx"
40561fi
40562
40563PROFILE_FLAGS=
40564if test "$wxUSE_PROFILE" = "yes" ; then
40565 PROFILE_FLAGS=" -pg"
40566fi
40567
40568if test "$GCC" = "yes" ; then
40569 if test "$wxUSE_NO_RTTI" = "yes" ; then
40570 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
40571 fi
40572 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
40573 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
40574 fi
40575 if test "$wxUSE_PERMISSIVE" = "yes" ; then
40576 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
40577 fi
40578
40579 case "${host}" in
40580 powerpc*-*-aix* )
40581 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
40582 ;;
40583 *-hppa* )
40584 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
40585 ;;
40586 esac
40587fi
40588
40589OPTIMISE_CFLAGS=
40590if test "$wxUSE_OPTIMISE" = "no" ; then
40591 if test "$GCC" = yes ; then
40592 OPTIMISE_CFLAGS="-O0"
40593 fi
40594else
40595 if test "$GCC" = yes ; then
e5efa97e
VZ
40596 case "${host}" in
40597 *-pc-os2_emx | *-pc-os2-emx )
40598 OPTIMISE_CFLAGS="-O2"
40599 ;;
40600 *)
40601 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
40602 ;;
40603 esac
004ee6da
RL
40604 else
40605 OPTIMISE_CFLAGS="-O"
40606 fi
40607fi
40608
40609
40610if test "x$WXWIN_COMPATIBILITY_2_4" = "xyes"; then
40611 cat >>confdefs.h <<\_ACEOF
40612#define WXWIN_COMPATIBILITY_2_4 1
40613_ACEOF
40614
40615
40616 WXWIN_COMPATIBILITY_2_6="yes"
40617fi
40618
40619if test "x$WXWIN_COMPATIBILITY_2_6" != "xno"; then
40620 cat >>confdefs.h <<\_ACEOF
40621#define WXWIN_COMPATIBILITY_2_6 1
40622_ACEOF
40623
40624fi
40625
40626
40627if test "$wxUSE_GUI" = "yes"; then
40628 cat >>confdefs.h <<\_ACEOF
40629#define wxUSE_GUI 1
40630_ACEOF
40631
40632
40633 fi
40634
40635
40636if test "$wxUSE_UNIX" = "yes"; then
40637 cat >>confdefs.h <<\_ACEOF
40638#define wxUSE_UNIX 1
40639_ACEOF
40640
40641fi
40642
40643
40644if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
40645
40646 HAVE_DL_FUNCS=0
40647 HAVE_SHL_FUNCS=0
40648 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
40649 if test "$USE_DARWIN" = 1; then
40650 HAVE_DL_FUNCS=1
40651 elif test "$USE_DOS" = 1; then
40652 HAVE_DL_FUNCS=0
40653 else
40654
40655for ac_func in dlopen
40656do
40657as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40658echo "$as_me:$LINENO: checking for $ac_func" >&5
40659echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40660if eval "test \"\${$as_ac_var+set}\" = set"; then
40661 echo $ECHO_N "(cached) $ECHO_C" >&6
40662else
40663 cat >conftest.$ac_ext <<_ACEOF
40664/* confdefs.h. */
40665_ACEOF
40666cat confdefs.h >>conftest.$ac_ext
40667cat >>conftest.$ac_ext <<_ACEOF
40668/* end confdefs.h. */
40669/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40670 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40671#define $ac_func innocuous_$ac_func
40672
40673/* System header to define __stub macros and hopefully few prototypes,
40674 which can conflict with char $ac_func (); below.
40675 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40676 <limits.h> exists even on freestanding compilers. */
40677
40678#ifdef __STDC__
40679# include <limits.h>
40680#else
40681# include <assert.h>
40682#endif
40683
40684#undef $ac_func
40685
40686/* Override any gcc2 internal prototype to avoid an error. */
40687#ifdef __cplusplus
40688extern "C"
40689{
40690#endif
40691/* We use char because int might match the return type of a gcc2
40692 builtin and then its argument prototype would still apply. */
40693char $ac_func ();
40694/* The GNU C library defines this for functions which it implements
40695 to always fail with ENOSYS. Some functions are actually named
40696 something starting with __ and the normal name is an alias. */
40697#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40698choke me
40699#else
40700char (*f) () = $ac_func;
40701#endif
40702#ifdef __cplusplus
40703}
40704#endif
40705
40706int
40707main ()
40708{
40709return f != $ac_func;
a848cd7e
SC
40710 ;
40711 return 0;
40712}
40713_ACEOF
40714rm -f conftest.$ac_objext conftest$ac_exeext
40715if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40716 (eval $ac_link) 2>conftest.er1
a848cd7e 40717 ac_status=$?
ac1cb8d3
VS
40718 grep -v '^ *+' conftest.er1 >conftest.err
40719 rm -f conftest.er1
40720 cat conftest.err >&5
a848cd7e
SC
40721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40722 (exit $ac_status); } &&
c9a66001 40723 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40725 (eval $ac_try) 2>&5
40726 ac_status=$?
40727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40728 (exit $ac_status); }; } &&
40729 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40731 (eval $ac_try) 2>&5
40732 ac_status=$?
40733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40734 (exit $ac_status); }; }; then
40735 eval "$as_ac_var=yes"
40736else
40737 echo "$as_me: failed program was:" >&5
40738sed 's/^/| /' conftest.$ac_ext >&5
40739
40740eval "$as_ac_var=no"
40741fi
ac1cb8d3
VS
40742rm -f conftest.err conftest.$ac_objext \
40743 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40744fi
40745echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40746echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40747if test `eval echo '${'$as_ac_var'}'` = yes; then
40748 cat >>confdefs.h <<_ACEOF
40749#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40750_ACEOF
40751
40752 cat >>confdefs.h <<\_ACEOF
40753#define HAVE_DLOPEN 1
40754_ACEOF
40755
40756 HAVE_DL_FUNCS=1
40757
40758else
40759
40760 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
40761echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
40762if test "${ac_cv_lib_dl_dlopen+set}" = set; then
40763 echo $ECHO_N "(cached) $ECHO_C" >&6
40764else
40765 ac_check_lib_save_LIBS=$LIBS
40766LIBS="-ldl $LIBS"
40767cat >conftest.$ac_ext <<_ACEOF
40768/* confdefs.h. */
40769_ACEOF
40770cat confdefs.h >>conftest.$ac_ext
40771cat >>conftest.$ac_ext <<_ACEOF
40772/* end confdefs.h. */
40773
40774/* Override any gcc2 internal prototype to avoid an error. */
40775#ifdef __cplusplus
40776extern "C"
40777#endif
40778/* We use char because int might match the return type of a gcc2
40779 builtin and then its argument prototype would still apply. */
40780char dlopen ();
40781int
40782main ()
40783{
40784dlopen ();
40785 ;
40786 return 0;
40787}
40788_ACEOF
40789rm -f conftest.$ac_objext conftest$ac_exeext
40790if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40791 (eval $ac_link) 2>conftest.er1
a848cd7e 40792 ac_status=$?
ac1cb8d3
VS
40793 grep -v '^ *+' conftest.er1 >conftest.err
40794 rm -f conftest.er1
40795 cat conftest.err >&5
a848cd7e
SC
40796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40797 (exit $ac_status); } &&
c9a66001 40798 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40800 (eval $ac_try) 2>&5
40801 ac_status=$?
40802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40803 (exit $ac_status); }; } &&
40804 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40806 (eval $ac_try) 2>&5
40807 ac_status=$?
40808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40809 (exit $ac_status); }; }; then
40810 ac_cv_lib_dl_dlopen=yes
40811else
40812 echo "$as_me: failed program was:" >&5
40813sed 's/^/| /' conftest.$ac_ext >&5
40814
40815ac_cv_lib_dl_dlopen=no
40816fi
ac1cb8d3
VS
40817rm -f conftest.err conftest.$ac_objext \
40818 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40819LIBS=$ac_check_lib_save_LIBS
40820fi
40821echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
40822echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
40823if test $ac_cv_lib_dl_dlopen = yes; then
40824
40825 cat >>confdefs.h <<\_ACEOF
40826#define HAVE_DLOPEN 1
40827_ACEOF
40828
40829 HAVE_DL_FUNCS=1
40830 DL_LINK=" -ldl$DL_LINK"
40831
40832else
40833
40834
40835for ac_func in shl_load
40836do
40837as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40838echo "$as_me:$LINENO: checking for $ac_func" >&5
40839echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40840if eval "test \"\${$as_ac_var+set}\" = set"; then
40841 echo $ECHO_N "(cached) $ECHO_C" >&6
40842else
40843 cat >conftest.$ac_ext <<_ACEOF
40844/* confdefs.h. */
40845_ACEOF
40846cat confdefs.h >>conftest.$ac_ext
40847cat >>conftest.$ac_ext <<_ACEOF
40848/* end confdefs.h. */
ac1cb8d3
VS
40849/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40850 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40851#define $ac_func innocuous_$ac_func
40852
a848cd7e
SC
40853/* System header to define __stub macros and hopefully few prototypes,
40854 which can conflict with char $ac_func (); below.
40855 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40856 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40857
a848cd7e
SC
40858#ifdef __STDC__
40859# include <limits.h>
40860#else
40861# include <assert.h>
40862#endif
ac1cb8d3
VS
40863
40864#undef $ac_func
40865
a848cd7e
SC
40866/* Override any gcc2 internal prototype to avoid an error. */
40867#ifdef __cplusplus
40868extern "C"
40869{
40870#endif
40871/* We use char because int might match the return type of a gcc2
40872 builtin and then its argument prototype would still apply. */
40873char $ac_func ();
40874/* The GNU C library defines this for functions which it implements
40875 to always fail with ENOSYS. Some functions are actually named
40876 something starting with __ and the normal name is an alias. */
40877#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40878choke me
40879#else
40880char (*f) () = $ac_func;
40881#endif
40882#ifdef __cplusplus
40883}
40884#endif
40885
40886int
40887main ()
40888{
40889return f != $ac_func;
40890 ;
40891 return 0;
40892}
40893_ACEOF
40894rm -f conftest.$ac_objext conftest$ac_exeext
40895if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40896 (eval $ac_link) 2>conftest.er1
a848cd7e 40897 ac_status=$?
ac1cb8d3
VS
40898 grep -v '^ *+' conftest.er1 >conftest.err
40899 rm -f conftest.er1
40900 cat conftest.err >&5
a848cd7e
SC
40901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40902 (exit $ac_status); } &&
c9a66001 40903 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40905 (eval $ac_try) 2>&5
40906 ac_status=$?
40907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40908 (exit $ac_status); }; } &&
40909 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40911 (eval $ac_try) 2>&5
40912 ac_status=$?
40913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40914 (exit $ac_status); }; }; then
40915 eval "$as_ac_var=yes"
40916else
40917 echo "$as_me: failed program was:" >&5
40918sed 's/^/| /' conftest.$ac_ext >&5
40919
40920eval "$as_ac_var=no"
40921fi
ac1cb8d3
VS
40922rm -f conftest.err conftest.$ac_objext \
40923 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40924fi
40925echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40926echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40927if test `eval echo '${'$as_ac_var'}'` = yes; then
40928 cat >>confdefs.h <<_ACEOF
40929#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40930_ACEOF
40931
40932 cat >>confdefs.h <<\_ACEOF
40933#define HAVE_SHL_LOAD 1
40934_ACEOF
40935
40936 HAVE_SHL_FUNCS=1
40937
40938else
40939
40940 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
40941echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
40942if test "${ac_cv_lib_shl_load_dld+set}" = set; then
40943 echo $ECHO_N "(cached) $ECHO_C" >&6
40944else
40945 ac_check_lib_save_LIBS=$LIBS
40946LIBS="-lshl_load $LIBS"
40947cat >conftest.$ac_ext <<_ACEOF
40948/* confdefs.h. */
40949_ACEOF
40950cat confdefs.h >>conftest.$ac_ext
40951cat >>conftest.$ac_ext <<_ACEOF
40952/* end confdefs.h. */
40953
40954/* Override any gcc2 internal prototype to avoid an error. */
40955#ifdef __cplusplus
40956extern "C"
40957#endif
40958/* We use char because int might match the return type of a gcc2
40959 builtin and then its argument prototype would still apply. */
40960char dld ();
40961int
40962main ()
40963{
40964dld ();
40965 ;
40966 return 0;
40967}
40968_ACEOF
40969rm -f conftest.$ac_objext conftest$ac_exeext
40970if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40971 (eval $ac_link) 2>conftest.er1
a848cd7e 40972 ac_status=$?
ac1cb8d3
VS
40973 grep -v '^ *+' conftest.er1 >conftest.err
40974 rm -f conftest.er1
40975 cat conftest.err >&5
a848cd7e
SC
40976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40977 (exit $ac_status); } &&
c9a66001 40978 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40980 (eval $ac_try) 2>&5
40981 ac_status=$?
40982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40983 (exit $ac_status); }; } &&
40984 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40986 (eval $ac_try) 2>&5
40987 ac_status=$?
40988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40989 (exit $ac_status); }; }; then
40990 ac_cv_lib_shl_load_dld=yes
40991else
40992 echo "$as_me: failed program was:" >&5
40993sed 's/^/| /' conftest.$ac_ext >&5
40994
40995ac_cv_lib_shl_load_dld=no
40996fi
ac1cb8d3
VS
40997rm -f conftest.err conftest.$ac_objext \
40998 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40999LIBS=$ac_check_lib_save_LIBS
41000fi
41001echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
41002echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
41003if test $ac_cv_lib_shl_load_dld = yes; then
41004
41005 HAVE_SHL_FUNCS=1
41006 DL_LINK=" -ldld$DL_LINK"
41007
41008fi
41009
41010
41011fi
41012done
41013
41014
41015fi
41016
41017
41018fi
41019done
41020
41021
41022 if test "$HAVE_DL_FUNCS" = 1; then
41023
41024for ac_func in dlerror
41025do
41026as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41027echo "$as_me:$LINENO: checking for $ac_func" >&5
41028echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41029if eval "test \"\${$as_ac_var+set}\" = set"; then
41030 echo $ECHO_N "(cached) $ECHO_C" >&6
41031else
41032 cat >conftest.$ac_ext <<_ACEOF
41033/* confdefs.h. */
41034_ACEOF
41035cat confdefs.h >>conftest.$ac_ext
41036cat >>conftest.$ac_ext <<_ACEOF
41037/* end confdefs.h. */
ac1cb8d3
VS
41038/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41039 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41040#define $ac_func innocuous_$ac_func
41041
a848cd7e
SC
41042/* System header to define __stub macros and hopefully few prototypes,
41043 which can conflict with char $ac_func (); below.
41044 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41045 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41046
a848cd7e
SC
41047#ifdef __STDC__
41048# include <limits.h>
41049#else
41050# include <assert.h>
41051#endif
ac1cb8d3
VS
41052
41053#undef $ac_func
41054
a848cd7e
SC
41055/* Override any gcc2 internal prototype to avoid an error. */
41056#ifdef __cplusplus
41057extern "C"
41058{
41059#endif
41060/* We use char because int might match the return type of a gcc2
41061 builtin and then its argument prototype would still apply. */
41062char $ac_func ();
41063/* The GNU C library defines this for functions which it implements
41064 to always fail with ENOSYS. Some functions are actually named
41065 something starting with __ and the normal name is an alias. */
41066#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41067choke me
41068#else
41069char (*f) () = $ac_func;
41070#endif
41071#ifdef __cplusplus
41072}
41073#endif
41074
41075int
41076main ()
41077{
41078return f != $ac_func;
41079 ;
41080 return 0;
41081}
41082_ACEOF
41083rm -f conftest.$ac_objext conftest$ac_exeext
41084if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41085 (eval $ac_link) 2>conftest.er1
a848cd7e 41086 ac_status=$?
ac1cb8d3
VS
41087 grep -v '^ *+' conftest.er1 >conftest.err
41088 rm -f conftest.er1
41089 cat conftest.err >&5
a848cd7e
SC
41090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41091 (exit $ac_status); } &&
c9a66001 41092 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41094 (eval $ac_try) 2>&5
41095 ac_status=$?
41096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41097 (exit $ac_status); }; } &&
41098 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41100 (eval $ac_try) 2>&5
41101 ac_status=$?
41102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41103 (exit $ac_status); }; }; then
41104 eval "$as_ac_var=yes"
41105else
41106 echo "$as_me: failed program was:" >&5
41107sed 's/^/| /' conftest.$ac_ext >&5
41108
41109eval "$as_ac_var=no"
41110fi
ac1cb8d3
VS
41111rm -f conftest.err conftest.$ac_objext \
41112 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41113fi
41114echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41115echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41116if test `eval echo '${'$as_ac_var'}'` = yes; then
41117 cat >>confdefs.h <<_ACEOF
41118#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41119_ACEOF
41120 cat >>confdefs.h <<\_ACEOF
41121#define HAVE_DLERROR 1
41122_ACEOF
41123
41124else
41125
41126 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
41127echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
41128if test "${ac_cv_lib_dl_dlerror+set}" = set; then
41129 echo $ECHO_N "(cached) $ECHO_C" >&6
41130else
41131 ac_check_lib_save_LIBS=$LIBS
41132LIBS="-ldl $LIBS"
41133cat >conftest.$ac_ext <<_ACEOF
41134/* confdefs.h. */
41135_ACEOF
41136cat confdefs.h >>conftest.$ac_ext
41137cat >>conftest.$ac_ext <<_ACEOF
41138/* end confdefs.h. */
41139
41140/* Override any gcc2 internal prototype to avoid an error. */
41141#ifdef __cplusplus
41142extern "C"
41143#endif
41144/* We use char because int might match the return type of a gcc2
41145 builtin and then its argument prototype would still apply. */
41146char dlerror ();
41147int
41148main ()
41149{
41150dlerror ();
41151 ;
41152 return 0;
41153}
41154_ACEOF
41155rm -f conftest.$ac_objext conftest$ac_exeext
41156if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41157 (eval $ac_link) 2>conftest.er1
a848cd7e 41158 ac_status=$?
ac1cb8d3
VS
41159 grep -v '^ *+' conftest.er1 >conftest.err
41160 rm -f conftest.er1
41161 cat conftest.err >&5
a848cd7e
SC
41162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41163 (exit $ac_status); } &&
c9a66001 41164 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41166 (eval $ac_try) 2>&5
41167 ac_status=$?
41168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41169 (exit $ac_status); }; } &&
41170 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41172 (eval $ac_try) 2>&5
41173 ac_status=$?
41174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41175 (exit $ac_status); }; }; then
41176 ac_cv_lib_dl_dlerror=yes
41177else
41178 echo "$as_me: failed program was:" >&5
41179sed 's/^/| /' conftest.$ac_ext >&5
41180
41181ac_cv_lib_dl_dlerror=no
41182fi
ac1cb8d3
VS
41183rm -f conftest.err conftest.$ac_objext \
41184 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41185LIBS=$ac_check_lib_save_LIBS
41186fi
41187echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
41188echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
41189if test $ac_cv_lib_dl_dlerror = yes; then
41190 cat >>confdefs.h <<\_ACEOF
41191#define HAVE_DLERROR 1
41192_ACEOF
41193
41194fi
41195
41196
41197
41198fi
41199done
41200
41201 fi
41202 fi
41203
41204 if test "$HAVE_DL_FUNCS" = 0; then
41205 if test "$HAVE_SHL_FUNCS" = 0; then
47a7e797 41206 if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
a848cd7e
SC
41207 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
41208echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
41209 wxUSE_DYNAMIC_LOADER=no
41210 wxUSE_DYNLIB_CLASS=no
41211 else
41212 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
41213echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
41214 fi
41215 fi
41216 fi
41217 fi
41218fi
41219
41220if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
41221 cat >>confdefs.h <<\_ACEOF
41222#define wxUSE_DYNAMIC_LOADER 1
41223_ACEOF
41224
41225fi
41226if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
41227 cat >>confdefs.h <<\_ACEOF
41228#define wxUSE_DYNLIB_CLASS 1
41229_ACEOF
41230
41231fi
41232
41233
41234
41235if test "$wxUSE_PLUGINS" = "yes" ; then
41236 if test "$wxUSE_SHARED" = "no" ; then
41237 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
41238echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
41239 wxUSE_PLUGINS=no
41240 fi
41241 if test "$wxUSE_MONOLITHIC" = "yes" ; then
41242 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
41243echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
41244 wxUSE_PLUGINS=no
41245 fi
41246 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
41247 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
41248echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
41249 wxUSE_PLUGINS=no
41250 fi
41251 if test "$wxUSE_PLUGINS" = "yes" ; then
41252 cat >>confdefs.h <<\_ACEOF
41253#define wxUSE_PLUGINS 1
41254_ACEOF
41255
41256 fi
41257fi
41258
41259
41260if test "$wxUSE_STL" = "yes"; then
41261 cat >>confdefs.h <<\_ACEOF
41262#define wxUSE_STL 1
41263_ACEOF
41264
41265fi
41266
41267if test "$wxUSE_APPLE_IEEE" = "yes"; then
41268 cat >>confdefs.h <<\_ACEOF
41269#define wxUSE_APPLE_IEEE 1
41270_ACEOF
41271
41272fi
41273
41274if test "$wxUSE_TIMER" = "yes"; then
41275 cat >>confdefs.h <<\_ACEOF
41276#define wxUSE_TIMER 1
41277_ACEOF
41278
41279fi
41280
9c112555 41281if test "$USE_UNIX" = "1" ; then
31714590
VZ
41282 echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5
41283echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6
d12aef51 41284if test "${ac_cv_header_sys_soundcard+set}" = set; then
a848cd7e 41285 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 41286else
d12aef51
VZ
41287
41288 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
41289/* confdefs.h. */
41290_ACEOF
41291cat confdefs.h >>conftest.$ac_ext
41292cat >>conftest.$ac_ext <<_ACEOF
41293/* end confdefs.h. */
d12aef51 41294
31714590 41295 #include <sys/ioctl.h>
d12aef51
VZ
41296 #include <sys/soundcard.h>
41297
41298int
41299main ()
41300{
41301
31714590 41302 ioctl(0, SNDCTL_DSP_SPEED, 0);
d12aef51
VZ
41303
41304 ;
41305 return 0;
41306}
a848cd7e 41307_ACEOF
d12aef51
VZ
41308rm -f conftest.$ac_objext conftest$ac_exeext
41309if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41310 (eval $ac_link) 2>conftest.er1
a848cd7e 41311 ac_status=$?
ac1cb8d3
VS
41312 grep -v '^ *+' conftest.er1 >conftest.err
41313 rm -f conftest.er1
41314 cat conftest.err >&5
a848cd7e
SC
41315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41316 (exit $ac_status); } &&
c9a66001 41317 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41319 (eval $ac_try) 2>&5
41320 ac_status=$?
41321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41322 (exit $ac_status); }; } &&
d12aef51 41323 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41325 (eval $ac_try) 2>&5
41326 ac_status=$?
41327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41328 (exit $ac_status); }; }; then
d12aef51 41329 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
41330else
41331 echo "$as_me: failed program was:" >&5
41332sed 's/^/| /' conftest.$ac_ext >&5
41333
a848cd7e 41334
d12aef51
VZ
41335 saveLibs="$LIBS"
41336 LIBS="$saveLibs -lossaudio"
41337 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
41338/* confdefs.h. */
41339_ACEOF
41340cat confdefs.h >>conftest.$ac_ext
41341cat >>conftest.$ac_ext <<_ACEOF
41342/* end confdefs.h. */
d12aef51 41343
31714590 41344 #include <sys/ioctl.h>
d12aef51
VZ
41345 #include <sys/soundcard.h>
41346
41347int
41348main ()
41349{
41350
31714590 41351 ioctl(0, SNDCTL_DSP_SPEED, 0);
d12aef51
VZ
41352
41353 ;
41354 return 0;
41355}
a848cd7e 41356_ACEOF
d12aef51
VZ
41357rm -f conftest.$ac_objext conftest$ac_exeext
41358if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41359 (eval $ac_link) 2>conftest.er1
a848cd7e
SC
41360 ac_status=$?
41361 grep -v '^ *+' conftest.er1 >conftest.err
41362 rm -f conftest.er1
41363 cat conftest.err >&5
41364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12aef51 41365 (exit $ac_status); } &&
c9a66001 41366 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
41367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41368 (eval $ac_try) 2>&5
41369 ac_status=$?
41370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41371 (exit $ac_status); }; } &&
41372 { ac_try='test -s conftest$ac_exeext'
41373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41374 (eval $ac_try) 2>&5
41375 ac_status=$?
41376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41377 (exit $ac_status); }; }; then
41378 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
41379else
41380 echo "$as_me: failed program was:" >&5
41381sed 's/^/| /' conftest.$ac_ext >&5
41382
a848cd7e 41383
d12aef51
VZ
41384 LIBS="$saveLibs"
41385 ac_cv_header_sys_soundcard=no
41386
41387
a848cd7e 41388fi
d12aef51
VZ
41389rm -f conftest.err conftest.$ac_objext \
41390 conftest$ac_exeext conftest.$ac_ext
41391
a848cd7e
SC
41392
41393fi
d12aef51
VZ
41394rm -f conftest.err conftest.$ac_objext \
41395 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41396
41397fi
d12aef51
VZ
41398echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
41399echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6
a848cd7e 41400
d12aef51
VZ
41401 if test "$ac_cv_header_sys_soundcard" = "yes"; then
41402 cat >>confdefs.h <<\_ACEOF
41403#define HAVE_SYS_SOUNDCARD_H 1
41404_ACEOF
a848cd7e 41405
d12aef51
VZ
41406 else
41407 DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia"
41408 fi
9c112555
MW
41409fi
41410WITH_PLUGIN_SDL=0
41411if test "$wxUSE_SOUND" = "yes"; then
41412 if test "$USE_UNIX" = "1" ; then
a848cd7e
SC
41413 if test "$wxUSE_LIBSDL" != "no"; then
41414
41415# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
41416if test "${with_sdl_prefix+set}" = set; then
41417 withval="$with_sdl_prefix"
41418 sdl_prefix="$withval"
41419else
41420 sdl_prefix=""
41421fi;
41422
41423# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
41424if test "${with_sdl_exec_prefix+set}" = set; then
41425 withval="$with_sdl_exec_prefix"
41426 sdl_exec_prefix="$withval"
41427else
41428 sdl_exec_prefix=""
41429fi;
41430# Check whether --enable-sdltest or --disable-sdltest was given.
41431if test "${enable_sdltest+set}" = set; then
41432 enableval="$enable_sdltest"
41433
41434else
41435 enable_sdltest=yes
41436fi;
41437
41438 if test x$sdl_exec_prefix != x ; then
3ecd9f92
MW
41439 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
41440 if test x${SDL_CONFIG+set} != xset ; then
41441 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
41442 fi
a848cd7e
SC
41443 fi
41444 if test x$sdl_prefix != x ; then
3ecd9f92
MW
41445 sdl_args="$sdl_args --prefix=$sdl_prefix"
41446 if test x${SDL_CONFIG+set} != xset ; then
41447 SDL_CONFIG=$sdl_prefix/bin/sdl-config
41448 fi
a848cd7e
SC
41449 fi
41450
3ecd9f92
MW
41451 if test "x$prefix" != xNONE; then
41452 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
41453 fi
a848cd7e
SC
41454 # Extract the first word of "sdl-config", so it can be a program name with args.
41455set dummy sdl-config; ac_word=$2
41456echo "$as_me:$LINENO: checking for $ac_word" >&5
41457echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41458if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
41459 echo $ECHO_N "(cached) $ECHO_C" >&6
41460else
41461 case $SDL_CONFIG in
41462 [\\/]* | ?:[\\/]*)
41463 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
41464 ;;
41465 *)
41466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41467for as_dir in $PATH
41468do
41469 IFS=$as_save_IFS
41470 test -z "$as_dir" && as_dir=.
41471 for ac_exec_ext in '' $ac_executable_extensions; do
41472 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41473 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41475 break 2
41476 fi
41477done
41478done
41479
41480 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
41481 ;;
41482esac
41483fi
41484SDL_CONFIG=$ac_cv_path_SDL_CONFIG
41485
41486if test -n "$SDL_CONFIG"; then
41487 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
41488echo "${ECHO_T}$SDL_CONFIG" >&6
41489else
41490 echo "$as_me:$LINENO: result: no" >&5
41491echo "${ECHO_T}no" >&6
41492fi
41493
41494 min_sdl_version=1.2.0
41495 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
41496echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
41497 no_sdl=""
41498 if test "$SDL_CONFIG" = "no" ; then
41499 no_sdl=yes
41500 else
41501 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
41502 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
41503
41504 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
41505 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
41506 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
41507 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
41508 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
41509 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
41510 if test "x$enable_sdltest" = "xyes" ; then
41511 ac_save_CFLAGS="$CFLAGS"
94acd38e 41512 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
41513 ac_save_LIBS="$LIBS"
41514 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 41515 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
41516 LIBS="$LIBS $SDL_LIBS"
41517 rm -f conf.sdltest
41518 if test "$cross_compiling" = yes; then
41519 echo $ac_n "cross compiling; assumed OK... $ac_c"
41520else
41521 cat >conftest.$ac_ext <<_ACEOF
41522/* confdefs.h. */
41523_ACEOF
41524cat confdefs.h >>conftest.$ac_ext
41525cat >>conftest.$ac_ext <<_ACEOF
41526/* end confdefs.h. */
41527
41528#include <stdio.h>
41529#include <stdlib.h>
41530#include <string.h>
41531#include "SDL.h"
41532
41533char*
41534my_strdup (char *str)
41535{
41536 char *new_str;
41537
41538 if (str)
41539 {
41540 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
41541 strcpy (new_str, str);
41542 }
41543 else
41544 new_str = NULL;
41545
41546 return new_str;
41547}
41548
41549int main (int argc, char *argv[])
41550{
41551 int major, minor, micro;
41552 char *tmp_version;
41553
41554 /* This hangs on some systems (?)
41555 system ("touch conf.sdltest");
41556 */
41557 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
41558
41559 /* HP/UX 9 (%@#!) writes to sscanf strings */
41560 tmp_version = my_strdup("$min_sdl_version");
41561 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
41562 printf("%s, bad version string\n", "$min_sdl_version");
41563 exit(1);
41564 }
41565
41566 if (($sdl_major_version > major) ||
41567 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
41568 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
41569 {
41570 return 0;
41571 }
41572 else
41573 {
41574 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
41575 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
41576 printf("*** best to upgrade to the required version.\n");
41577 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
41578 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
41579 printf("*** config.cache before re-running configure\n");
41580 return 1;
41581 }
41582}
41583
41584
41585_ACEOF
41586rm -f conftest$ac_exeext
41587if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41588 (eval $ac_link) 2>&5
41589 ac_status=$?
41590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41591 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41593 (eval $ac_try) 2>&5
41594 ac_status=$?
41595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41596 (exit $ac_status); }; }; then
41597 :
41598else
41599 echo "$as_me: program exited with status $ac_status" >&5
41600echo "$as_me: failed program was:" >&5
41601sed 's/^/| /' conftest.$ac_ext >&5
41602
41603( exit $ac_status )
41604no_sdl=yes
41605fi
ac1cb8d3 41606rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41607fi
41608 CFLAGS="$ac_save_CFLAGS"
94acd38e 41609 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
41610 LIBS="$ac_save_LIBS"
41611 fi
41612 fi
41613 if test "x$no_sdl" = x ; then
41614 echo "$as_me:$LINENO: result: yes" >&5
41615echo "${ECHO_T}yes" >&6
41616
41617 EXTRALIBS_SDL="$SDL_LIBS"
c92ad099 41618 CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
a848cd7e
SC
41619 cat >>confdefs.h <<\_ACEOF
41620#define wxUSE_LIBSDL 1
41621_ACEOF
41622
41623
41624 else
41625 echo "$as_me:$LINENO: result: no" >&5
41626echo "${ECHO_T}no" >&6
41627 if test "$SDL_CONFIG" = "no" ; then
41628 echo "*** The sdl-config script installed by SDL could not be found"
41629 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
41630 echo "*** your path, or set the SDL_CONFIG environment variable to the"
41631 echo "*** full path to sdl-config."
41632 else
41633 if test -f conf.sdltest ; then
41634 :
41635 else
41636 echo "*** Could not run SDL test program, checking why..."
41637 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 41638 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
41639 LIBS="$LIBS $SDL_LIBS"
41640 cat >conftest.$ac_ext <<_ACEOF
41641/* confdefs.h. */
41642_ACEOF
41643cat confdefs.h >>conftest.$ac_ext
41644cat >>conftest.$ac_ext <<_ACEOF
41645/* end confdefs.h. */
41646
41647#include <stdio.h>
41648#include "SDL.h"
41649
41650int main(int argc, char *argv[])
41651{ return 0; }
41652#undef main
41653#define main K_and_R_C_main
41654
41655int
41656main ()
41657{
41658 return 0;
41659 ;
41660 return 0;
41661}
41662_ACEOF
41663rm -f conftest.$ac_objext conftest$ac_exeext
41664if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41665 (eval $ac_link) 2>conftest.er1
a848cd7e 41666 ac_status=$?
ac1cb8d3
VS
41667 grep -v '^ *+' conftest.er1 >conftest.err
41668 rm -f conftest.er1
41669 cat conftest.err >&5
a848cd7e
SC
41670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41671 (exit $ac_status); } &&
c9a66001 41672 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41674 (eval $ac_try) 2>&5
41675 ac_status=$?
41676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41677 (exit $ac_status); }; } &&
41678 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41680 (eval $ac_try) 2>&5
41681 ac_status=$?
41682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41683 (exit $ac_status); }; }; then
41684 echo "*** The test program compiled, but did not run. This usually means"
41685 echo "*** that the run-time linker is not finding SDL or finding the wrong"
41686 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
41687 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
41688 echo "*** to the installed location Also, make sure you have run ldconfig if that"
41689 echo "*** is required on your system"
41690 echo "***"
41691 echo "*** If you have an old version installed, it is best to remove it, although"
41692 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
41693else
41694 echo "$as_me: failed program was:" >&5
41695sed 's/^/| /' conftest.$ac_ext >&5
41696
41697 echo "*** The test program failed to compile or link. See the file config.log for the"
41698 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
41699 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
41700 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
41701fi
ac1cb8d3
VS
41702rm -f conftest.err conftest.$ac_objext \
41703 conftest$ac_exeext conftest.$ac_ext
a848cd7e 41704 CFLAGS="$ac_save_CFLAGS"
94acd38e 41705 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
41706 LIBS="$ac_save_LIBS"
41707 fi
41708 fi
41709 SDL_CFLAGS=""
41710 SDL_LIBS=""
41711 wxUSE_LIBSDL="no"
41712 fi
41713
41714
41715 rm -f conf.sdltest
41716
41717 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
41718 WITH_PLUGIN_SDL=1
41719 fi
41720 fi
41721 fi
41722
41723 cat >>confdefs.h <<\_ACEOF
41724#define wxUSE_SOUND 1
41725_ACEOF
41726
41727 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
41728fi
41729
d1c38808
VZ
41730if test "$WXGTK20" = 1; then
41731 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
41732 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
41733
41734
3ecd9f92
MW
41735pkg_failed=no
41736echo "$as_me:$LINENO: checking for LIBGNOMEPRINTUI" >&5
41737echo $ECHO_N "checking for LIBGNOMEPRINTUI... $ECHO_C" >&6
d1c38808 41738
3ecd9f92
MW
41739if test -n "$PKG_CONFIG"; then
41740 if test -n "$LIBGNOMEPRINTUI_CFLAGS"; then
41741 pkg_cv_LIBGNOMEPRINTUI_CFLAGS="$LIBGNOMEPRINTUI_CFLAGS"
41742 else
41743 if test -n "$PKG_CONFIG" && \
41744 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
41745 ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
41746 ac_status=$?
41747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41748 (exit $ac_status); }; then
41749 pkg_cv_LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
d1c38808 41750else
3ecd9f92
MW
41751 pkg_failed=yes
41752fi
41753 fi
41754else
41755 pkg_failed=untried
d1c38808 41756fi
d1c38808 41757if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
41758 if test -n "$LIBGNOMEPRINTUI_LIBS"; then
41759 pkg_cv_LIBGNOMEPRINTUI_LIBS="$LIBGNOMEPRINTUI_LIBS"
41760 else
41761 if test -n "$PKG_CONFIG" && \
41762 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
41763 ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
41764 ac_status=$?
41765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41766 (exit $ac_status); }; then
41767 pkg_cv_LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
d1c38808 41768else
3ecd9f92
MW
41769 pkg_failed=yes
41770fi
41771 fi
41772else
41773 pkg_failed=untried
d1c38808
VZ
41774fi
41775
d1c38808 41776
d1c38808 41777
3ecd9f92 41778if test $pkg_failed = yes; then
d1c38808 41779
3ecd9f92
MW
41780if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
41781 _pkg_short_errors_supported=yes
41782else
41783 _pkg_short_errors_supported=no
41784fi
41785 if test $_pkg_short_errors_supported = yes; then
41786 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
41787 else
41788 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808 41789 fi
3ecd9f92
MW
41790 # Put the nasty error message in config.log where it belongs
41791 echo "$LIBGNOMEPRINTUI_PKG_ERRORS" >&5
d1c38808
VZ
41792
41793
3ecd9f92
MW
41794 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
41795echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
41796 wxUSE_LIBGNOMEPRINT="no"
d1c38808
VZ
41797
41798
3ecd9f92 41799elif test $pkg_failed = untried; then
d1c38808
VZ
41800
41801 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
41802echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
41803 wxUSE_LIBGNOMEPRINT="no"
41804
41805
3ecd9f92
MW
41806else
41807 LIBGNOMEPRINTUI_CFLAGS=$pkg_cv_LIBGNOMEPRINTUI_CFLAGS
41808 LIBGNOMEPRINTUI_LIBS=$pkg_cv_LIBGNOMEPRINTUI_LIBS
41809 echo "$as_me:$LINENO: result: yes" >&5
41810echo "${ECHO_T}yes" >&6
d1c38808 41811
3ecd9f92
MW
41812 CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
41813 cat >>confdefs.h <<\_ACEOF
41814#define wxUSE_LIBGNOMEPRINT 1
41815_ACEOF
41816
41817
41818fi
d1c38808
VZ
41819 fi
41820 fi
41821fi
41822
2b850ae1
RR
41823if test "$WXGTK20" = 1; then
41824 if test "$wxUSE_MIMETYPE" = "yes" ; then
41825 if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
41826
41827
3ecd9f92
MW
41828pkg_failed=no
41829echo "$as_me:$LINENO: checking for GNOMEVFS" >&5
41830echo $ECHO_N "checking for GNOMEVFS... $ECHO_C" >&6
2b850ae1 41831
3ecd9f92
MW
41832if test -n "$PKG_CONFIG"; then
41833 if test -n "$GNOMEVFS_CFLAGS"; then
41834 pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS"
41835 else
41836 if test -n "$PKG_CONFIG" && \
41837 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
41838 ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
41839 ac_status=$?
41840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41841 (exit $ac_status); }; then
41842 pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
2b850ae1 41843else
3ecd9f92
MW
41844 pkg_failed=yes
41845fi
41846 fi
41847else
41848 pkg_failed=untried
2b850ae1 41849fi
2b850ae1 41850if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
41851 if test -n "$GNOMEVFS_LIBS"; then
41852 pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS"
41853 else
41854 if test -n "$PKG_CONFIG" && \
41855 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
41856 ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
41857 ac_status=$?
41858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41859 (exit $ac_status); }; then
41860 pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
2b850ae1 41861else
3ecd9f92
MW
41862 pkg_failed=yes
41863fi
41864 fi
41865else
41866 pkg_failed=untried
2b850ae1
RR
41867fi
41868
2b850ae1 41869
2b850ae1 41870
3ecd9f92 41871if test $pkg_failed = yes; then
2b850ae1 41872
3ecd9f92
MW
41873if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
41874 _pkg_short_errors_supported=yes
41875else
41876 _pkg_short_errors_supported=no
41877fi
41878 if test $_pkg_short_errors_supported = yes; then
41879 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
41880 else
41881 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
2b850ae1 41882 fi
3ecd9f92
MW
41883 # Put the nasty error message in config.log where it belongs
41884 echo "$GNOMEVFS_PKG_ERRORS" >&5
2b850ae1
RR
41885
41886
3ecd9f92
MW
41887 { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
41888echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
41889 wxUSE_LIBGNOMEVFS="no"
2b850ae1
RR
41890
41891
3ecd9f92 41892elif test $pkg_failed = untried; then
2b850ae1
RR
41893
41894 { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
41895echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
41896 wxUSE_LIBGNOMEVFS="no"
41897
41898
3ecd9f92
MW
41899else
41900 GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS
41901 GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS
41902 echo "$as_me:$LINENO: result: yes" >&5
41903echo "${ECHO_T}yes" >&6
2b850ae1 41904
3ecd9f92
MW
41905 CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
41906 cat >>confdefs.h <<\_ACEOF
41907#define wxUSE_LIBGNOMEVFS 1
41908_ACEOF
41909
41910
41911fi
2b850ae1
RR
41912 fi
41913 fi
41914fi
41915
3565d135
RR
41916if test "$WXGTK20" = 1; then
41917 if test "$wxUSE_LIBHILDON" = "yes" ; then
41918
3ecd9f92
MW
41919pkg_failed=no
41920echo "$as_me:$LINENO: checking for HILDON" >&5
41921echo $ECHO_N "checking for HILDON... $ECHO_C" >&6
3565d135 41922
3ecd9f92
MW
41923if test -n "$PKG_CONFIG"; then
41924 if test -n "$HILDON_CFLAGS"; then
41925 pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
41926 else
41927 if test -n "$PKG_CONFIG" && \
41928 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
41929 ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
41930 ac_status=$?
41931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41932 (exit $ac_status); }; then
41933 pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9" 2>/dev/null`
3565d135 41934else
3ecd9f92
MW
41935 pkg_failed=yes
41936fi
41937 fi
41938else
41939 pkg_failed=untried
3565d135 41940fi
3565d135 41941if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
41942 if test -n "$HILDON_LIBS"; then
41943 pkg_cv_HILDON_LIBS="$HILDON_LIBS"
41944 else
41945 if test -n "$PKG_CONFIG" && \
41946 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
41947 ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
41948 ac_status=$?
41949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41950 (exit $ac_status); }; then
41951 pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9" 2>/dev/null`
3565d135 41952else
3ecd9f92
MW
41953 pkg_failed=yes
41954fi
41955 fi
41956else
41957 pkg_failed=untried
3565d135
RR
41958fi
41959
3565d135 41960
3565d135 41961
3ecd9f92 41962if test $pkg_failed = yes; then
3565d135 41963
3ecd9f92
MW
41964if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
41965 _pkg_short_errors_supported=yes
41966else
41967 _pkg_short_errors_supported=no
41968fi
41969 if test $_pkg_short_errors_supported = yes; then
41970 HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
41971 else
41972 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
3565d135 41973 fi
3ecd9f92
MW
41974 # Put the nasty error message in config.log where it belongs
41975 echo "$HILDON_PKG_ERRORS" >&5
3565d135
RR
41976
41977
3ecd9f92
MW
41978 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
41979echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
41980 wxUSE_LIBHILDON="no"
3565d135 41981
3565d135 41982
3ecd9f92
MW
41983elif test $pkg_failed = untried; then
41984
41985 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
41986echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
41987 wxUSE_LIBHILDON="no"
41988
41989
41990else
41991 HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
41992 HILDON_LIBS=$pkg_cv_HILDON_LIBS
41993 echo "$as_me:$LINENO: result: yes" >&5
41994echo "${ECHO_T}yes" >&6
3565d135
RR
41995
41996 EXTRALIBS_HILDON="$HILDON_LIBS"
41997 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
41998 cat >>confdefs.h <<\_ACEOF
41999#define wxUSE_LIBHILDON 1
42000_ACEOF
42001
42002
3ecd9f92 42003fi
3565d135
RR
42004 fi
42005fi
d1c38808 42006
a848cd7e
SC
42007if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
42008 cat >>confdefs.h <<\_ACEOF
42009#define wxUSE_CMDLINE_PARSER 1
42010_ACEOF
42011
42012fi
42013
42014if test "$wxUSE_STOPWATCH" = "yes"; then
42015 cat >>confdefs.h <<\_ACEOF
42016#define wxUSE_STOPWATCH 1
42017_ACEOF
42018
42019fi
42020
42021if test "$wxUSE_DATETIME" = "yes"; then
42022 cat >>confdefs.h <<\_ACEOF
42023#define wxUSE_DATETIME 1
42024_ACEOF
42025
42026fi
42027
42028if test "$wxUSE_FILE" = "yes"; then
42029 cat >>confdefs.h <<\_ACEOF
42030#define wxUSE_FILE 1
42031_ACEOF
42032
42033fi
42034
42035if test "$wxUSE_FFILE" = "yes"; then
42036 cat >>confdefs.h <<\_ACEOF
42037#define wxUSE_FFILE 1
42038_ACEOF
42039
42040fi
42041
42042if test "$wxUSE_FILESYSTEM" = "yes"; then
42043 cat >>confdefs.h <<\_ACEOF
42044#define wxUSE_FILESYSTEM 1
42045_ACEOF
42046
42047fi
42048
42049if test "$wxUSE_FS_ZIP" = "yes"; then
42050 cat >>confdefs.h <<\_ACEOF
42051#define wxUSE_FS_ZIP 1
42052_ACEOF
42053
42054fi
42055
9e8e867f 42056if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
a848cd7e 42057 cat >>confdefs.h <<\_ACEOF
9e8e867f 42058#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
42059_ACEOF
42060
42061fi
42062
42063if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 42064 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
42065 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
42066echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
42067 elif test "$wxUSE_ZLIB" = "no"; then
42068 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
42069echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
42070 else
42071 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
42072#define wxUSE_ZIPSTREAM 1
42073_ACEOF
42074
81f90336 42075 fi
a848cd7e
SC
42076fi
42077
a848cd7e 42078if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18228ab4
MW
42079 if test "$USE_UNIX" != 1; then
42080 { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
42081echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
42082 wxUSE_ON_FATAL_EXCEPTION=no
42083 else
42084 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
42085#define wxUSE_ON_FATAL_EXCEPTION 1
42086_ACEOF
42087
18228ab4 42088 fi
a848cd7e
SC
42089fi
42090
eaff0f0d
VZ
42091if test "$wxUSE_STACKWALKER" = "yes"; then
42092 cat >>confdefs.h <<\_ACEOF
42093#define wxUSE_STACKWALKER 1
42094_ACEOF
42095
42096fi
42097
36b6448c 42098if test "$wxUSE_DEBUGREPORT" = "yes"; then
18228ab4
MW
42099 if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
42100 { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
42101echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
dfe0c803
JS
42102 wxUSE_DEBUGREPORT=no
42103 else
42104 cat >>confdefs.h <<\_ACEOF
36b6448c
VZ
42105#define wxUSE_DEBUGREPORT 1
42106_ACEOF
42107
21dfc162
MW
42108 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
42109 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
42110 fi
dfe0c803 42111 fi
36b6448c
VZ
42112fi
42113
a848cd7e
SC
42114if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
42115 cat >>confdefs.h <<\_ACEOF
42116#define wxUSE_SNGLINST_CHECKER 1
42117_ACEOF
42118
42119fi
42120
42121if test "$wxUSE_BUSYINFO" = "yes"; then
42122 cat >>confdefs.h <<\_ACEOF
42123#define wxUSE_BUSYINFO 1
42124_ACEOF
42125
42126fi
42127
42128if test "$wxUSE_STD_IOSTREAM" = "yes"; then
42129 cat >>confdefs.h <<\_ACEOF
42130#define wxUSE_STD_IOSTREAM 1
42131_ACEOF
42132
42133fi
42134
59746b65
MW
42135if test "$wxUSE_STD_STRING" = "yes"; then
42136 cat >>confdefs.h <<\_ACEOF
42137#define wxUSE_STD_STRING 1
42138_ACEOF
42139
42140fi
42141
07158944
VZ
42142if test "$wxUSE_STDPATHS" = "yes"; then
42143 cat >>confdefs.h <<\_ACEOF
42144#define wxUSE_STDPATHS 1
42145_ACEOF
42146
42147fi
42148
a848cd7e
SC
42149if test "$wxUSE_TEXTBUFFER" = "yes"; then
42150 cat >>confdefs.h <<\_ACEOF
42151#define wxUSE_TEXTBUFFER 1
42152_ACEOF
42153
42154fi
42155
42156if test "$wxUSE_TEXTFILE" = "yes"; then
42157 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
42158 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
42159echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
42160 else
42161 cat >>confdefs.h <<\_ACEOF
42162#define wxUSE_TEXTFILE 1
42163_ACEOF
42164
42165 fi
42166fi
42167
42168if test "$wxUSE_CONFIG" = "yes" ; then
42169 if test "$wxUSE_TEXTFILE" != "yes"; then
42170 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
42171echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
42172 else
42173 cat >>confdefs.h <<\_ACEOF
42174#define wxUSE_CONFIG 1
89be85c2
VS
42175_ACEOF
42176
42177 cat >>confdefs.h <<\_ACEOF
42178#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
42179_ACEOF
42180
42181 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
42182 fi
42183fi
42184
42185if test "$wxUSE_INTL" = "yes" ; then
42186 if test "$wxUSE_FILE" != "yes"; then
42187 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
42188echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
42189 else
42190 cat >>confdefs.h <<\_ACEOF
42191#define wxUSE_INTL 1
42192_ACEOF
42193
42194 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
42195 GUIDIST="$GUIDIST INTL_DIST"
42196 fi
42197fi
42198
42199if test "$wxUSE_LOG" = "yes"; then
42200 cat >>confdefs.h <<\_ACEOF
42201#define wxUSE_LOG 1
42202_ACEOF
42203
42204
42205 if test "$wxUSE_LOGGUI" = "yes"; then
42206 cat >>confdefs.h <<\_ACEOF
42207#define wxUSE_LOGGUI 1
42208_ACEOF
42209
42210 fi
42211
42212 if test "$wxUSE_LOGWINDOW" = "yes"; then
42213 cat >>confdefs.h <<\_ACEOF
42214#define wxUSE_LOGWINDOW 1
42215_ACEOF
42216
42217 fi
42218
42219 if test "$wxUSE_LOGDIALOG" = "yes"; then
42220 cat >>confdefs.h <<\_ACEOF
42221#define wxUSE_LOG_DIALOG 1
42222_ACEOF
42223
42224 fi
0b78747f
MW
42225
42226 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
a848cd7e
SC
42227fi
42228
42229if test "$wxUSE_LONGLONG" = "yes"; then
42230 cat >>confdefs.h <<\_ACEOF
42231#define wxUSE_LONGLONG 1
42232_ACEOF
42233
42234fi
42235
42236if test "$wxUSE_GEOMETRY" = "yes"; then
42237 cat >>confdefs.h <<\_ACEOF
42238#define wxUSE_GEOMETRY 1
42239_ACEOF
42240
42241fi
42242
a848cd7e
SC
42243if test "$wxUSE_STREAMS" = "yes" ; then
42244 cat >>confdefs.h <<\_ACEOF
42245#define wxUSE_STREAMS 1
42246_ACEOF
42247
42248fi
42249
8b6682b9
JS
42250if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
42251 cat >>confdefs.h <<\_ACEOF
42252#define wxUSE_PRINTF_POS_PARAMS 1
42253_ACEOF
42254
42255fi
42256
42257
a848cd7e
SC
42258
42259if test "$wxUSE_DATETIME" = "yes"; then
42260
42261for ac_func in strptime
42262do
42263as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42264echo "$as_me:$LINENO: checking for $ac_func" >&5
42265echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42266if eval "test \"\${$as_ac_var+set}\" = set"; then
42267 echo $ECHO_N "(cached) $ECHO_C" >&6
42268else
42269 cat >conftest.$ac_ext <<_ACEOF
42270/* confdefs.h. */
42271_ACEOF
42272cat confdefs.h >>conftest.$ac_ext
42273cat >>conftest.$ac_ext <<_ACEOF
42274/* end confdefs.h. */
ac1cb8d3
VS
42275/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42276 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42277#define $ac_func innocuous_$ac_func
42278
a848cd7e
SC
42279/* System header to define __stub macros and hopefully few prototypes,
42280 which can conflict with char $ac_func (); below.
42281 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42282 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42283
a848cd7e
SC
42284#ifdef __STDC__
42285# include <limits.h>
42286#else
42287# include <assert.h>
42288#endif
ac1cb8d3
VS
42289
42290#undef $ac_func
42291
a848cd7e
SC
42292/* Override any gcc2 internal prototype to avoid an error. */
42293#ifdef __cplusplus
42294extern "C"
42295{
42296#endif
42297/* We use char because int might match the return type of a gcc2
42298 builtin and then its argument prototype would still apply. */
42299char $ac_func ();
42300/* The GNU C library defines this for functions which it implements
42301 to always fail with ENOSYS. Some functions are actually named
42302 something starting with __ and the normal name is an alias. */
42303#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42304choke me
42305#else
42306char (*f) () = $ac_func;
42307#endif
42308#ifdef __cplusplus
42309}
42310#endif
42311
42312int
42313main ()
42314{
42315return f != $ac_func;
42316 ;
42317 return 0;
42318}
42319_ACEOF
42320rm -f conftest.$ac_objext conftest$ac_exeext
42321if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42322 (eval $ac_link) 2>conftest.er1
a848cd7e 42323 ac_status=$?
ac1cb8d3
VS
42324 grep -v '^ *+' conftest.er1 >conftest.err
42325 rm -f conftest.er1
42326 cat conftest.err >&5
a848cd7e
SC
42327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42328 (exit $ac_status); } &&
c9a66001 42329 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42331 (eval $ac_try) 2>&5
42332 ac_status=$?
42333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42334 (exit $ac_status); }; } &&
42335 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42337 (eval $ac_try) 2>&5
42338 ac_status=$?
42339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42340 (exit $ac_status); }; }; then
42341 eval "$as_ac_var=yes"
42342else
42343 echo "$as_me: failed program was:" >&5
42344sed 's/^/| /' conftest.$ac_ext >&5
42345
42346eval "$as_ac_var=no"
42347fi
ac1cb8d3
VS
42348rm -f conftest.err conftest.$ac_objext \
42349 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42350fi
42351echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42352echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42353if test `eval echo '${'$as_ac_var'}'` = yes; then
42354 cat >>confdefs.h <<_ACEOF
42355#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42356_ACEOF
42357
42358fi
42359done
42360
f536f005
VZ
42361 if test "$ac_cv_func_strptime" = "yes"; then
42362 echo "$as_me:$LINENO: checking for strptime declaration" >&5
42363echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6
42364if test "${wx_cv_func_strptime_decl+set}" = set; then
42365 echo $ECHO_N "(cached) $ECHO_C" >&6
42366else
42367
f536f005
VZ
42368 cat >conftest.$ac_ext <<_ACEOF
42369/* confdefs.h. */
42370_ACEOF
42371cat confdefs.h >>conftest.$ac_ext
42372cat >>conftest.$ac_ext <<_ACEOF
42373/* end confdefs.h. */
42374
42375 #include <time.h>
42376
42377int
42378main ()
42379{
42380
42381 struct tm t;
42382 strptime("foo", "bar", &t);
42383
42384 ;
42385 return 0;
42386}
42387_ACEOF
42388rm -f conftest.$ac_objext
42389if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42390 (eval $ac_compile) 2>conftest.er1
42391 ac_status=$?
42392 grep -v '^ *+' conftest.er1 >conftest.err
42393 rm -f conftest.er1
42394 cat conftest.err >&5
42395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42396 (exit $ac_status); } &&
c9a66001 42397 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f536f005
VZ
42398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42399 (eval $ac_try) 2>&5
42400 ac_status=$?
42401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42402 (exit $ac_status); }; } &&
42403 { ac_try='test -s conftest.$ac_objext'
42404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42405 (eval $ac_try) 2>&5
42406 ac_status=$?
42407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42408 (exit $ac_status); }; }; then
42409 wx_cv_func_strptime_decl=yes
42410else
42411 echo "$as_me: failed program was:" >&5
42412sed 's/^/| /' conftest.$ac_ext >&5
42413
42414wx_cv_func_strptime_decl=no
42415
42416fi
42417rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f536f005
VZ
42418
42419
42420fi
42421echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
42422echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6
42423 fi
42424 if test "$wx_cv_func_strptime_decl" = "yes"; then
42425 cat >>confdefs.h <<\_ACEOF
42426#define HAVE_STRPTIME_DECL 1
42427_ACEOF
42428
42429 fi
a848cd7e
SC
42430
42431 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
42432echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
42433if test "${wx_cv_var_timezone+set}" = set; then
42434 echo $ECHO_N "(cached) $ECHO_C" >&6
42435else
42436
42437 cat >conftest.$ac_ext <<_ACEOF
42438/* confdefs.h. */
42439_ACEOF
42440cat confdefs.h >>conftest.$ac_ext
42441cat >>conftest.$ac_ext <<_ACEOF
42442/* end confdefs.h. */
42443
42444 #include <time.h>
42445
42446int
42447main ()
42448{
42449
42450 int tz;
42451 tz = timezone;
42452
42453 ;
42454 return 0;
42455}
42456_ACEOF
42457rm -f conftest.$ac_objext
42458if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42459 (eval $ac_compile) 2>conftest.er1
a848cd7e 42460 ac_status=$?
ac1cb8d3
VS
42461 grep -v '^ *+' conftest.er1 >conftest.err
42462 rm -f conftest.er1
42463 cat conftest.err >&5
a848cd7e
SC
42464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42465 (exit $ac_status); } &&
c9a66001 42466 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42468 (eval $ac_try) 2>&5
42469 ac_status=$?
42470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42471 (exit $ac_status); }; } &&
42472 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42474 (eval $ac_try) 2>&5
42475 ac_status=$?
42476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42477 (exit $ac_status); }; }; then
42478
42479 wx_cv_var_timezone=timezone
42480
42481else
42482 echo "$as_me: failed program was:" >&5
42483sed 's/^/| /' conftest.$ac_ext >&5
42484
42485
42486 cat >conftest.$ac_ext <<_ACEOF
42487/* confdefs.h. */
42488_ACEOF
42489cat confdefs.h >>conftest.$ac_ext
42490cat >>conftest.$ac_ext <<_ACEOF
42491/* end confdefs.h. */
42492
42493 #include <time.h>
42494
42495int
42496main ()
42497{
42498
42499 int tz;
42500 tz = _timezone;
42501
42502 ;
42503 return 0;
42504}
42505_ACEOF
42506rm -f conftest.$ac_objext
42507if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42508 (eval $ac_compile) 2>conftest.er1
a848cd7e 42509 ac_status=$?
ac1cb8d3
VS
42510 grep -v '^ *+' conftest.er1 >conftest.err
42511 rm -f conftest.er1
42512 cat conftest.err >&5
a848cd7e
SC
42513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42514 (exit $ac_status); } &&
c9a66001 42515 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42517 (eval $ac_try) 2>&5
42518 ac_status=$?
42519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42520 (exit $ac_status); }; } &&
42521 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42523 (eval $ac_try) 2>&5
42524 ac_status=$?
42525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42526 (exit $ac_status); }; }; then
42527
42528 wx_cv_var_timezone=_timezone
42529
42530else
42531 echo "$as_me: failed program was:" >&5
42532sed 's/^/| /' conftest.$ac_ext >&5
42533
42534
42535 cat >conftest.$ac_ext <<_ACEOF
42536/* confdefs.h. */
42537_ACEOF
42538cat confdefs.h >>conftest.$ac_ext
42539cat >>conftest.$ac_ext <<_ACEOF
42540/* end confdefs.h. */
42541
42542 #include <time.h>
42543
42544int
42545main ()
42546{
42547
42548 int tz;
42549 tz = __timezone;
42550
42551 ;
42552 return 0;
42553}
42554_ACEOF
42555rm -f conftest.$ac_objext
42556if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42557 (eval $ac_compile) 2>conftest.er1
a848cd7e 42558 ac_status=$?
ac1cb8d3
VS
42559 grep -v '^ *+' conftest.er1 >conftest.err
42560 rm -f conftest.er1
42561 cat conftest.err >&5
a848cd7e
SC
42562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42563 (exit $ac_status); } &&
c9a66001 42564 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42566 (eval $ac_try) 2>&5
42567 ac_status=$?
42568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42569 (exit $ac_status); }; } &&
42570 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42572 (eval $ac_try) 2>&5
42573 ac_status=$?
42574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42575 (exit $ac_status); }; }; then
42576
42577 wx_cv_var_timezone=__timezone
42578
42579else
42580 echo "$as_me: failed program was:" >&5
42581sed 's/^/| /' conftest.$ac_ext >&5
42582
42583
42584 if test "$USE_DOS" = 0 ; then
42585 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
42586echo "$as_me: WARNING: no timezone variable" >&2;}
42587 fi
42588
42589
42590fi
ac1cb8d3 42591rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42592
42593
42594fi
ac1cb8d3 42595rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42596
42597
42598fi
ac1cb8d3 42599rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42600
42601
42602fi
42603echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
42604echo "${ECHO_T}$wx_cv_var_timezone" >&6
42605
42606 if test "x$wx_cv_var_timezone" != x ; then
42607 cat >>confdefs.h <<_ACEOF
42608#define WX_TIMEZONE $wx_cv_var_timezone
42609_ACEOF
42610
42611 fi
42612
42613
42614for ac_func in localtime
42615do
42616as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42617echo "$as_me:$LINENO: checking for $ac_func" >&5
42618echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42619if eval "test \"\${$as_ac_var+set}\" = set"; then
42620 echo $ECHO_N "(cached) $ECHO_C" >&6
42621else
42622 cat >conftest.$ac_ext <<_ACEOF
42623/* confdefs.h. */
42624_ACEOF
42625cat confdefs.h >>conftest.$ac_ext
42626cat >>conftest.$ac_ext <<_ACEOF
42627/* end confdefs.h. */
ac1cb8d3
VS
42628/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42629 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42630#define $ac_func innocuous_$ac_func
42631
a848cd7e
SC
42632/* System header to define __stub macros and hopefully few prototypes,
42633 which can conflict with char $ac_func (); below.
42634 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42635 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42636
a848cd7e
SC
42637#ifdef __STDC__
42638# include <limits.h>
42639#else
42640# include <assert.h>
42641#endif
ac1cb8d3
VS
42642
42643#undef $ac_func
42644
a848cd7e
SC
42645/* Override any gcc2 internal prototype to avoid an error. */
42646#ifdef __cplusplus
42647extern "C"
42648{
42649#endif
42650/* We use char because int might match the return type of a gcc2
42651 builtin and then its argument prototype would still apply. */
42652char $ac_func ();
42653/* The GNU C library defines this for functions which it implements
42654 to always fail with ENOSYS. Some functions are actually named
42655 something starting with __ and the normal name is an alias. */
42656#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42657choke me
42658#else
42659char (*f) () = $ac_func;
42660#endif
42661#ifdef __cplusplus
42662}
42663#endif
42664
42665int
42666main ()
42667{
42668return f != $ac_func;
42669 ;
42670 return 0;
42671}
42672_ACEOF
42673rm -f conftest.$ac_objext conftest$ac_exeext
42674if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42675 (eval $ac_link) 2>conftest.er1
a848cd7e 42676 ac_status=$?
ac1cb8d3
VS
42677 grep -v '^ *+' conftest.er1 >conftest.err
42678 rm -f conftest.er1
42679 cat conftest.err >&5
a848cd7e
SC
42680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42681 (exit $ac_status); } &&
c9a66001 42682 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42684 (eval $ac_try) 2>&5
42685 ac_status=$?
42686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42687 (exit $ac_status); }; } &&
42688 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42690 (eval $ac_try) 2>&5
42691 ac_status=$?
42692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42693 (exit $ac_status); }; }; then
42694 eval "$as_ac_var=yes"
42695else
42696 echo "$as_me: failed program was:" >&5
42697sed 's/^/| /' conftest.$ac_ext >&5
42698
42699eval "$as_ac_var=no"
42700fi
ac1cb8d3
VS
42701rm -f conftest.err conftest.$ac_objext \
42702 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42703fi
42704echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42705echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42706if test `eval echo '${'$as_ac_var'}'` = yes; then
42707 cat >>confdefs.h <<_ACEOF
42708#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42709_ACEOF
42710
42711fi
42712done
42713
42714
42715 if test "$ac_cv_func_localtime" = "yes"; then
42716 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
42717echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
42718if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
42719 echo $ECHO_N "(cached) $ECHO_C" >&6
42720else
42721
42722 cat >conftest.$ac_ext <<_ACEOF
42723/* confdefs.h. */
42724_ACEOF
42725cat confdefs.h >>conftest.$ac_ext
42726cat >>conftest.$ac_ext <<_ACEOF
42727/* end confdefs.h. */
42728
42729 #include <time.h>
42730
42731int
42732main ()
42733{
42734
42735 struct tm tm;
42736 tm.tm_gmtoff++;
42737
42738 ;
42739 return 0;
42740}
42741_ACEOF
42742rm -f conftest.$ac_objext
42743if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42744 (eval $ac_compile) 2>conftest.er1
a848cd7e 42745 ac_status=$?
ac1cb8d3
VS
42746 grep -v '^ *+' conftest.er1 >conftest.err
42747 rm -f conftest.er1
42748 cat conftest.err >&5
a848cd7e
SC
42749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42750 (exit $ac_status); } &&
c9a66001 42751 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42753 (eval $ac_try) 2>&5
42754 ac_status=$?
42755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42756 (exit $ac_status); }; } &&
42757 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42759 (eval $ac_try) 2>&5
42760 ac_status=$?
42761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42762 (exit $ac_status); }; }; then
42763
42764 wx_cv_struct_tm_has_gmtoff=yes
42765
42766else
42767 echo "$as_me: failed program was:" >&5
42768sed 's/^/| /' conftest.$ac_ext >&5
42769
42770wx_cv_struct_tm_has_gmtoff=no
42771
42772fi
ac1cb8d3 42773rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42774
42775fi
42776echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
42777echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
42778 fi
42779
42780 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
42781 cat >>confdefs.h <<\_ACEOF
42782#define WX_GMTOFF_IN_TM 1
42783_ACEOF
42784
42785 fi
42786
42787
42788
42789for ac_func in gettimeofday ftime
42790do
42791as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42792echo "$as_me:$LINENO: checking for $ac_func" >&5
42793echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42794if eval "test \"\${$as_ac_var+set}\" = set"; then
42795 echo $ECHO_N "(cached) $ECHO_C" >&6
42796else
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. */
ac1cb8d3
VS
42803/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42804 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42805#define $ac_func innocuous_$ac_func
42806
a848cd7e
SC
42807/* System header to define __stub macros and hopefully few prototypes,
42808 which can conflict with char $ac_func (); below.
42809 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42810 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42811
a848cd7e
SC
42812#ifdef __STDC__
42813# include <limits.h>
42814#else
42815# include <assert.h>
42816#endif
ac1cb8d3
VS
42817
42818#undef $ac_func
42819
a848cd7e
SC
42820/* Override any gcc2 internal prototype to avoid an error. */
42821#ifdef __cplusplus
42822extern "C"
42823{
42824#endif
42825/* We use char because int might match the return type of a gcc2
42826 builtin and then its argument prototype would still apply. */
42827char $ac_func ();
42828/* The GNU C library defines this for functions which it implements
42829 to always fail with ENOSYS. Some functions are actually named
42830 something starting with __ and the normal name is an alias. */
42831#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42832choke me
42833#else
42834char (*f) () = $ac_func;
42835#endif
42836#ifdef __cplusplus
42837}
42838#endif
42839
42840int
42841main ()
42842{
42843return f != $ac_func;
42844 ;
42845 return 0;
42846}
42847_ACEOF
42848rm -f conftest.$ac_objext conftest$ac_exeext
42849if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42850 (eval $ac_link) 2>conftest.er1
a848cd7e 42851 ac_status=$?
ac1cb8d3
VS
42852 grep -v '^ *+' conftest.er1 >conftest.err
42853 rm -f conftest.er1
42854 cat conftest.err >&5
a848cd7e
SC
42855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42856 (exit $ac_status); } &&
c9a66001 42857 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42859 (eval $ac_try) 2>&5
42860 ac_status=$?
42861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42862 (exit $ac_status); }; } &&
42863 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42865 (eval $ac_try) 2>&5
42866 ac_status=$?
42867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42868 (exit $ac_status); }; }; then
42869 eval "$as_ac_var=yes"
42870else
42871 echo "$as_me: failed program was:" >&5
42872sed 's/^/| /' conftest.$ac_ext >&5
42873
42874eval "$as_ac_var=no"
42875fi
ac1cb8d3
VS
42876rm -f conftest.err conftest.$ac_objext \
42877 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42878fi
42879echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42880echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42881if test `eval echo '${'$as_ac_var'}'` = yes; then
42882 cat >>confdefs.h <<_ACEOF
42883#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42884_ACEOF
42885 break
42886fi
42887done
42888
42889
42890 if test "$ac_cv_func_gettimeofday" = "yes"; then
42891 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
42892echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
42893if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
42894 echo $ECHO_N "(cached) $ECHO_C" >&6
42895else
42896
5d7b7554 42897 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
42898/* confdefs.h. */
42899_ACEOF
42900cat confdefs.h >>conftest.$ac_ext
42901cat >>conftest.$ac_ext <<_ACEOF
42902/* end confdefs.h. */
42903
42904 #include <sys/time.h>
42905 #include <unistd.h>
42906
42907int
42908main ()
42909{
42910
42911 struct timeval tv;
42912 gettimeofday(&tv, NULL);
42913
42914 ;
42915 return 0;
42916}
42917_ACEOF
42918rm -f conftest.$ac_objext
42919if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42920 (eval $ac_compile) 2>conftest.er1
a848cd7e 42921 ac_status=$?
ac1cb8d3
VS
42922 grep -v '^ *+' conftest.er1 >conftest.err
42923 rm -f conftest.er1
42924 cat conftest.err >&5
a848cd7e
SC
42925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42926 (exit $ac_status); } &&
c9a66001 42927 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42929 (eval $ac_try) 2>&5
42930 ac_status=$?
42931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42932 (exit $ac_status); }; } &&
42933 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42935 (eval $ac_try) 2>&5
42936 ac_status=$?
42937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42938 (exit $ac_status); }; }; then
42939 wx_cv_func_gettimeofday_has_2_args=yes
42940else
42941 echo "$as_me: failed program was:" >&5
42942sed 's/^/| /' conftest.$ac_ext >&5
42943
42944cat >conftest.$ac_ext <<_ACEOF
42945/* confdefs.h. */
42946_ACEOF
42947cat confdefs.h >>conftest.$ac_ext
42948cat >>conftest.$ac_ext <<_ACEOF
42949/* end confdefs.h. */
42950
42951 #include <sys/time.h>
42952 #include <unistd.h>
42953
42954int
42955main ()
42956{
42957
42958 struct timeval tv;
42959 gettimeofday(&tv);
42960
42961 ;
42962 return 0;
42963}
42964_ACEOF
42965rm -f conftest.$ac_objext
42966if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42967 (eval $ac_compile) 2>conftest.er1
a848cd7e 42968 ac_status=$?
ac1cb8d3
VS
42969 grep -v '^ *+' conftest.er1 >conftest.err
42970 rm -f conftest.er1
42971 cat conftest.err >&5
a848cd7e
SC
42972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42973 (exit $ac_status); } &&
c9a66001 42974 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42976 (eval $ac_try) 2>&5
42977 ac_status=$?
42978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42979 (exit $ac_status); }; } &&
42980 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42982 (eval $ac_try) 2>&5
42983 ac_status=$?
42984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42985 (exit $ac_status); }; }; then
42986 wx_cv_func_gettimeofday_has_2_args=no
42987else
42988 echo "$as_me: failed program was:" >&5
42989sed 's/^/| /' conftest.$ac_ext >&5
42990
42991
42992 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
42993echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
42994 wx_cv_func_gettimeofday_has_2_args=unknown
42995
42996
42997fi
ac1cb8d3 42998rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42999
43000fi
ac1cb8d3 43001rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43002
43003fi
43004echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
43005echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
43006
43007 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
43008 cat >>confdefs.h <<\_ACEOF
43009#define WX_GETTIMEOFDAY_NO_TZ 1
43010_ACEOF
43011
43012 fi
43013 fi
43014
43015 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
43016fi
43017
43018
43019if test "$wxUSE_SOCKETS" = "yes"; then
43020 if test "$wxUSE_MGL" = "1"; then
43021 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
43022echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
43023 wxUSE_SOCKETS="no"
43024 fi
43025fi
43026
43027if test "$wxUSE_SOCKETS" = "yes"; then
43028 if test "$TOOLKIT" != "MSW"; then
43029 echo "$as_me:$LINENO: checking for socket" >&5
43030echo $ECHO_N "checking for socket... $ECHO_C" >&6
43031if test "${ac_cv_func_socket+set}" = set; then
43032 echo $ECHO_N "(cached) $ECHO_C" >&6
43033else
43034 cat >conftest.$ac_ext <<_ACEOF
43035/* confdefs.h. */
43036_ACEOF
43037cat confdefs.h >>conftest.$ac_ext
43038cat >>conftest.$ac_ext <<_ACEOF
43039/* end confdefs.h. */
ac1cb8d3
VS
43040/* Define socket to an innocuous variant, in case <limits.h> declares socket.
43041 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43042#define socket innocuous_socket
43043
a848cd7e
SC
43044/* System header to define __stub macros and hopefully few prototypes,
43045 which can conflict with char socket (); below.
43046 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43047 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 43048
a848cd7e
SC
43049#ifdef __STDC__
43050# include <limits.h>
43051#else
43052# include <assert.h>
43053#endif
ac1cb8d3
VS
43054
43055#undef socket
43056
a848cd7e
SC
43057/* Override any gcc2 internal prototype to avoid an error. */
43058#ifdef __cplusplus
43059extern "C"
43060{
43061#endif
43062/* We use char because int might match the return type of a gcc2
43063 builtin and then its argument prototype would still apply. */
43064char socket ();
43065/* The GNU C library defines this for functions which it implements
43066 to always fail with ENOSYS. Some functions are actually named
43067 something starting with __ and the normal name is an alias. */
43068#if defined (__stub_socket) || defined (__stub___socket)
43069choke me
43070#else
43071char (*f) () = socket;
43072#endif
43073#ifdef __cplusplus
43074}
43075#endif
43076
43077int
43078main ()
43079{
43080return f != socket;
43081 ;
43082 return 0;
43083}
43084_ACEOF
43085rm -f conftest.$ac_objext conftest$ac_exeext
43086if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43087 (eval $ac_link) 2>conftest.er1
a848cd7e 43088 ac_status=$?
ac1cb8d3
VS
43089 grep -v '^ *+' conftest.er1 >conftest.err
43090 rm -f conftest.er1
43091 cat conftest.err >&5
a848cd7e
SC
43092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43093 (exit $ac_status); } &&
c9a66001 43094 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43096 (eval $ac_try) 2>&5
43097 ac_status=$?
43098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43099 (exit $ac_status); }; } &&
43100 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43102 (eval $ac_try) 2>&5
43103 ac_status=$?
43104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43105 (exit $ac_status); }; }; then
43106 ac_cv_func_socket=yes
43107else
43108 echo "$as_me: failed program was:" >&5
43109sed 's/^/| /' conftest.$ac_ext >&5
43110
43111ac_cv_func_socket=no
43112fi
ac1cb8d3
VS
43113rm -f conftest.err conftest.$ac_objext \
43114 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43115fi
43116echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
43117echo "${ECHO_T}$ac_cv_func_socket" >&6
43118if test $ac_cv_func_socket = yes; then
43119 :
43120else
43121
43122 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
43123echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
43124if test "${ac_cv_lib_socket_socket+set}" = set; then
43125 echo $ECHO_N "(cached) $ECHO_C" >&6
43126else
43127 ac_check_lib_save_LIBS=$LIBS
43128LIBS="-lsocket $LIBS"
43129cat >conftest.$ac_ext <<_ACEOF
43130/* confdefs.h. */
43131_ACEOF
43132cat confdefs.h >>conftest.$ac_ext
43133cat >>conftest.$ac_ext <<_ACEOF
43134/* end confdefs.h. */
43135
43136/* Override any gcc2 internal prototype to avoid an error. */
43137#ifdef __cplusplus
43138extern "C"
43139#endif
43140/* We use char because int might match the return type of a gcc2
43141 builtin and then its argument prototype would still apply. */
43142char socket ();
43143int
43144main ()
43145{
43146socket ();
43147 ;
43148 return 0;
43149}
43150_ACEOF
43151rm -f conftest.$ac_objext conftest$ac_exeext
43152if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43153 (eval $ac_link) 2>conftest.er1
a848cd7e 43154 ac_status=$?
ac1cb8d3
VS
43155 grep -v '^ *+' conftest.er1 >conftest.err
43156 rm -f conftest.er1
43157 cat conftest.err >&5
a848cd7e
SC
43158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43159 (exit $ac_status); } &&
c9a66001 43160 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43162 (eval $ac_try) 2>&5
43163 ac_status=$?
43164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43165 (exit $ac_status); }; } &&
43166 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43168 (eval $ac_try) 2>&5
43169 ac_status=$?
43170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43171 (exit $ac_status); }; }; then
43172 ac_cv_lib_socket_socket=yes
43173else
43174 echo "$as_me: failed program was:" >&5
43175sed 's/^/| /' conftest.$ac_ext >&5
43176
43177ac_cv_lib_socket_socket=no
43178fi
ac1cb8d3
VS
43179rm -f conftest.err conftest.$ac_objext \
43180 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43181LIBS=$ac_check_lib_save_LIBS
43182fi
43183echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
43184echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
43185if test $ac_cv_lib_socket_socket = yes; then
43186 if test "$INET_LINK" != " -lsocket"; then
43187 INET_LINK="$INET_LINK -lsocket"
43188 fi
43189else
43190
43191 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
43192echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
43193 wxUSE_SOCKETS=no
43194
43195
43196fi
43197
43198
43199
43200fi
43201
43202 fi
43203fi
43204
43205if test "$wxUSE_SOCKETS" = "yes" ; then
43206 if test "$TOOLKIT" != "MSW"; then
5d7b7554 43207 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
43208echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
43209if test "${wx_cv_type_getsockname3+set}" = set; then
43210 echo $ECHO_N "(cached) $ECHO_C" >&6
43211else
43212
43213 cat >conftest.$ac_ext <<_ACEOF
43214/* confdefs.h. */
43215_ACEOF
43216cat confdefs.h >>conftest.$ac_ext
43217cat >>conftest.$ac_ext <<_ACEOF
43218/* end confdefs.h. */
43219
43220 #include <sys/types.h>
43221 #include <sys/socket.h>
43222
43223int
43224main ()
43225{
43226
43227 socklen_t len;
43228 getsockname(0, 0, &len);
43229
43230 ;
43231 return 0;
43232}
43233_ACEOF
43234rm -f conftest.$ac_objext
43235if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43236 (eval $ac_compile) 2>conftest.er1
a848cd7e 43237 ac_status=$?
ac1cb8d3
VS
43238 grep -v '^ *+' conftest.er1 >conftest.err
43239 rm -f conftest.er1
43240 cat conftest.err >&5
a848cd7e
SC
43241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43242 (exit $ac_status); } &&
c9a66001 43243 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43245 (eval $ac_try) 2>&5
43246 ac_status=$?
43247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43248 (exit $ac_status); }; } &&
43249 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43251 (eval $ac_try) 2>&5
43252 ac_status=$?
43253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43254 (exit $ac_status); }; }; then
43255 wx_cv_type_getsockname3=socklen_t
43256else
43257 echo "$as_me: failed program was:" >&5
43258sed 's/^/| /' conftest.$ac_ext >&5
43259
43260
6459a506 43261 CXXFLAGS_OLD="$CXXFLAGS"
a848cd7e 43262 if test "$GCC" = yes ; then
c92ad099 43263 CXXFLAGS="-Werror $CXXFLAGS"
a848cd7e
SC
43264 fi
43265
43266 cat >conftest.$ac_ext <<_ACEOF
43267/* confdefs.h. */
43268_ACEOF
43269cat confdefs.h >>conftest.$ac_ext
43270cat >>conftest.$ac_ext <<_ACEOF
43271/* end confdefs.h. */
43272
43273 #include <sys/types.h>
43274 #include <sys/socket.h>
43275
43276int
43277main ()
43278{
43279
43280 size_t len;
43281 getsockname(0, 0, &len);
43282
43283 ;
43284 return 0;
43285}
43286_ACEOF
43287rm -f conftest.$ac_objext
43288if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43289 (eval $ac_compile) 2>conftest.er1
a848cd7e 43290 ac_status=$?
ac1cb8d3
VS
43291 grep -v '^ *+' conftest.er1 >conftest.err
43292 rm -f conftest.er1
43293 cat conftest.err >&5
a848cd7e
SC
43294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43295 (exit $ac_status); } &&
c9a66001 43296 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43298 (eval $ac_try) 2>&5
43299 ac_status=$?
43300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43301 (exit $ac_status); }; } &&
43302 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43304 (eval $ac_try) 2>&5
43305 ac_status=$?
43306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43307 (exit $ac_status); }; }; then
43308 wx_cv_type_getsockname3=size_t
43309else
43310 echo "$as_me: failed program was:" >&5
43311sed 's/^/| /' conftest.$ac_ext >&5
43312
43313cat >conftest.$ac_ext <<_ACEOF
43314/* confdefs.h. */
43315_ACEOF
43316cat confdefs.h >>conftest.$ac_ext
43317cat >>conftest.$ac_ext <<_ACEOF
43318/* end confdefs.h. */
43319
43320 #include <sys/types.h>
43321 #include <sys/socket.h>
43322
43323int
43324main ()
43325{
43326
43327 int len;
43328 getsockname(0, 0, &len);
43329
43330 ;
43331 return 0;
43332}
43333_ACEOF
43334rm -f conftest.$ac_objext
43335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43336 (eval $ac_compile) 2>conftest.er1
a848cd7e 43337 ac_status=$?
ac1cb8d3
VS
43338 grep -v '^ *+' conftest.er1 >conftest.err
43339 rm -f conftest.er1
43340 cat conftest.err >&5
a848cd7e
SC
43341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43342 (exit $ac_status); } &&
c9a66001 43343 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43345 (eval $ac_try) 2>&5
43346 ac_status=$?
43347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43348 (exit $ac_status); }; } &&
43349 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43351 (eval $ac_try) 2>&5
43352 ac_status=$?
43353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43354 (exit $ac_status); }; }; then
43355 wx_cv_type_getsockname3=int
43356else
43357 echo "$as_me: failed program was:" >&5
43358sed 's/^/| /' conftest.$ac_ext >&5
43359
43360wx_cv_type_getsockname3=unknown
43361
43362fi
ac1cb8d3 43363rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43364
43365fi
ac1cb8d3 43366rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 43367
6459a506 43368 CXXFLAGS="$CXXFLAGS_OLD"
a848cd7e
SC
43369
43370
43371fi
ac1cb8d3 43372rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43373
43374fi
43375echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
43376echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
43377
43378 if test "$wx_cv_type_getsockname3" = "unknown"; then
43379 wxUSE_SOCKETS=no
43380 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
43381echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
43382 else
43383 cat >>confdefs.h <<_ACEOF
9e03e02d 43384#define WX_SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
43385_ACEOF
43386
43387 fi
43388 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
43389echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
43390if test "${wx_cv_type_getsockopt5+set}" = set; then
43391 echo $ECHO_N "(cached) $ECHO_C" >&6
43392else
43393
43394 cat >conftest.$ac_ext <<_ACEOF
43395/* confdefs.h. */
43396_ACEOF
43397cat confdefs.h >>conftest.$ac_ext
43398cat >>conftest.$ac_ext <<_ACEOF
43399/* end confdefs.h. */
43400
43401 #include <sys/types.h>
43402 #include <sys/socket.h>
43403
43404int
43405main ()
43406{
43407
43408 socklen_t len;
43409 getsockopt(0, 0, 0, 0, &len);
43410
43411 ;
43412 return 0;
43413}
43414_ACEOF
43415rm -f conftest.$ac_objext
43416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43417 (eval $ac_compile) 2>conftest.er1
43418 ac_status=$?
43419 grep -v '^ *+' conftest.er1 >conftest.err
43420 rm -f conftest.er1
43421 cat conftest.err >&5
43422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43423 (exit $ac_status); } &&
c9a66001 43424 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
43425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43426 (eval $ac_try) 2>&5
43427 ac_status=$?
43428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43429 (exit $ac_status); }; } &&
43430 { ac_try='test -s conftest.$ac_objext'
43431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43432 (eval $ac_try) 2>&5
43433 ac_status=$?
43434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43435 (exit $ac_status); }; }; then
43436 wx_cv_type_getsockopt5=socklen_t
43437else
43438 echo "$as_me: failed program was:" >&5
43439sed 's/^/| /' conftest.$ac_ext >&5
43440
43441
6459a506 43442 CXXFLAGS_OLD="$CXXFLAGS"
5b674b9d 43443 if test "$GCC" = yes ; then
c92ad099 43444 CXXFLAGS="-Werror $CXXFLAGS"
5b674b9d
DE
43445 fi
43446
43447 cat >conftest.$ac_ext <<_ACEOF
43448/* confdefs.h. */
43449_ACEOF
43450cat confdefs.h >>conftest.$ac_ext
43451cat >>conftest.$ac_ext <<_ACEOF
43452/* end confdefs.h. */
43453
43454 #include <sys/types.h>
43455 #include <sys/socket.h>
43456
43457int
43458main ()
43459{
43460
43461 size_t len;
43462 getsockopt(0, 0, 0, 0, &len);
43463
43464 ;
43465 return 0;
43466}
43467_ACEOF
43468rm -f conftest.$ac_objext
43469if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43470 (eval $ac_compile) 2>conftest.er1
43471 ac_status=$?
43472 grep -v '^ *+' conftest.er1 >conftest.err
43473 rm -f conftest.er1
43474 cat conftest.err >&5
43475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43476 (exit $ac_status); } &&
c9a66001 43477 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
43478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43479 (eval $ac_try) 2>&5
43480 ac_status=$?
43481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43482 (exit $ac_status); }; } &&
43483 { ac_try='test -s conftest.$ac_objext'
43484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43485 (eval $ac_try) 2>&5
43486 ac_status=$?
43487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43488 (exit $ac_status); }; }; then
43489 wx_cv_type_getsockopt5=size_t
43490else
43491 echo "$as_me: failed program was:" >&5
43492sed 's/^/| /' conftest.$ac_ext >&5
43493
43494cat >conftest.$ac_ext <<_ACEOF
43495/* confdefs.h. */
43496_ACEOF
43497cat confdefs.h >>conftest.$ac_ext
43498cat >>conftest.$ac_ext <<_ACEOF
43499/* end confdefs.h. */
43500
43501 #include <sys/types.h>
43502 #include <sys/socket.h>
43503
43504int
43505main ()
43506{
43507
43508 int len;
43509 getsockopt(0, 0, 0, 0, &len);
43510
43511 ;
43512 return 0;
43513}
43514_ACEOF
43515rm -f conftest.$ac_objext
43516if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43517 (eval $ac_compile) 2>conftest.er1
43518 ac_status=$?
43519 grep -v '^ *+' conftest.er1 >conftest.err
43520 rm -f conftest.er1
43521 cat conftest.err >&5
43522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43523 (exit $ac_status); } &&
c9a66001 43524 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
43525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43526 (eval $ac_try) 2>&5
43527 ac_status=$?
43528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43529 (exit $ac_status); }; } &&
43530 { ac_try='test -s conftest.$ac_objext'
43531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43532 (eval $ac_try) 2>&5
43533 ac_status=$?
43534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43535 (exit $ac_status); }; }; then
43536 wx_cv_type_getsockopt5=int
43537else
43538 echo "$as_me: failed program was:" >&5
43539sed 's/^/| /' conftest.$ac_ext >&5
43540
43541wx_cv_type_getsockopt5=unknown
43542
43543fi
43544rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43545
43546fi
43547rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43548
6459a506 43549 CXXFLAGS="$CXXFLAGS_OLD"
5b674b9d
DE
43550
43551
43552fi
43553rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43554
43555fi
43556echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
43557echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
43558
43559 if test "$wx_cv_type_getsockopt5" = "unknown"; then
43560 wxUSE_SOCKETS=no
43561 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
43562echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
43563 else
43564 cat >>confdefs.h <<_ACEOF
43565#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
43566_ACEOF
43567
43568 fi
43569 fi
43570fi
43571
43572if test "$wxUSE_SOCKETS" = "yes" ; then
43573 cat >>confdefs.h <<\_ACEOF
43574#define wxUSE_SOCKETS 1
43575_ACEOF
43576
43577 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
43578fi
43579
43580if test "$wxUSE_PROTOCOL" = "yes"; then
43581 if test "$wxUSE_SOCKETS" != "yes"; then
43582 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
43583echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
43584 wxUSE_PROTOCOL=no
43585 fi
43586fi
43587
43588if test "$wxUSE_PROTOCOL" = "yes"; then
43589 cat >>confdefs.h <<\_ACEOF
43590#define wxUSE_PROTOCOL 1
43591_ACEOF
43592
43593
43594 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
43595 cat >>confdefs.h <<\_ACEOF
43596#define wxUSE_PROTOCOL_HTTP 1
43597_ACEOF
43598
43599 fi
43600 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
43601 cat >>confdefs.h <<\_ACEOF
43602#define wxUSE_PROTOCOL_FTP 1
43603_ACEOF
43604
43605 fi
43606 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
43607 cat >>confdefs.h <<\_ACEOF
43608#define wxUSE_PROTOCOL_FILE 1
43609_ACEOF
43610
43611 fi
43612else
43613 if test "$wxUSE_FS_INET" = "yes"; then
43614 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
43615echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
43616 wxUSE_FS_INET="no"
43617 fi
43618fi
43619
43620if test "$wxUSE_URL" = "yes"; then
43621 if test "$wxUSE_PROTOCOL" != "yes"; then
43622 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
43623echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
43624 wxUSE_URL=no
43625 fi
43626 if test "$wxUSE_URL" = "yes"; then
43627 cat >>confdefs.h <<\_ACEOF
43628#define wxUSE_URL 1
43629_ACEOF
43630
43631 fi
43632fi
43633
43634if test "$wxUSE_FS_INET" = "yes"; then
43635 cat >>confdefs.h <<\_ACEOF
43636#define wxUSE_FS_INET 1
43637_ACEOF
43638
43639fi
43640
43641
ee45c548
MW
43642if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
43643 wxUSE_JOYSTICK=no
43644
43645 if test "$TOOLKIT" = "MSW"; then
43646 wxUSE_JOYSTICK=yes
43647
43648 elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
43649 if test "$USE_DARWIN" = 1; then
43650 echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
43651echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6
ee45c548
MW
43652 cat >conftest.$ac_ext <<_ACEOF
43653/* confdefs.h. */
43654_ACEOF
43655cat confdefs.h >>conftest.$ac_ext
43656cat >>conftest.$ac_ext <<_ACEOF
43657/* end confdefs.h. */
43658 #include <IOKit/hid/IOHIDLib.h>
43659int
43660main ()
43661{
43662 IOHIDQueueInterface *qi = NULL;
43663 IOHIDCallbackFunction cb = NULL;
43664 qi->setEventCallout(NULL, cb, NULL, NULL);
43665 ;
43666 return 0;
43667}
43668_ACEOF
43669rm -f conftest.$ac_objext
43670if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43671 (eval $ac_compile) 2>conftest.er1
43672 ac_status=$?
43673 grep -v '^ *+' conftest.er1 >conftest.err
43674 rm -f conftest.er1
43675 cat conftest.err >&5
43676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43677 (exit $ac_status); } &&
c9a66001 43678 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ee45c548
MW
43679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43680 (eval $ac_try) 2>&5
43681 ac_status=$?
43682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43683 (exit $ac_status); }; } &&
43684 { ac_try='test -s conftest.$ac_objext'
43685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43686 (eval $ac_try) 2>&5
43687 ac_status=$?
43688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43689 (exit $ac_status); }; }; then
43690 wxUSE_JOYSTICK=yes
a848cd7e 43691
ee45c548
MW
43692else
43693 echo "$as_me: failed program was:" >&5
43694sed 's/^/| /' conftest.$ac_ext >&5
43695
43696fi
43697rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ee45c548
MW
43698 echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
43699echo "${ECHO_T}$wxUSE_JOYSTICK" >&6
43700 fi
43701
43702 else
a848cd7e
SC
43703
43704for ac_header in linux/joystick.h
43705do
43706as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43707if eval "test \"\${$as_ac_Header+set}\" = set"; then
43708 echo "$as_me:$LINENO: checking for $ac_header" >&5
43709echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43710if eval "test \"\${$as_ac_Header+set}\" = set"; then
43711 echo $ECHO_N "(cached) $ECHO_C" >&6
43712fi
43713echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43714echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43715else
43716 # Is the header compilable?
43717echo "$as_me:$LINENO: checking $ac_header usability" >&5
43718echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43719cat >conftest.$ac_ext <<_ACEOF
43720/* confdefs.h. */
43721_ACEOF
43722cat confdefs.h >>conftest.$ac_ext
43723cat >>conftest.$ac_ext <<_ACEOF
43724/* end confdefs.h. */
43725$ac_includes_default
43726#include <$ac_header>
43727_ACEOF
43728rm -f conftest.$ac_objext
43729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43730 (eval $ac_compile) 2>conftest.er1
a848cd7e 43731 ac_status=$?
ac1cb8d3
VS
43732 grep -v '^ *+' conftest.er1 >conftest.err
43733 rm -f conftest.er1
43734 cat conftest.err >&5
a848cd7e
SC
43735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43736 (exit $ac_status); } &&
c9a66001 43737 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43739 (eval $ac_try) 2>&5
43740 ac_status=$?
43741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43742 (exit $ac_status); }; } &&
43743 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43745 (eval $ac_try) 2>&5
43746 ac_status=$?
43747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43748 (exit $ac_status); }; }; then
43749 ac_header_compiler=yes
43750else
43751 echo "$as_me: failed program was:" >&5
43752sed 's/^/| /' conftest.$ac_ext >&5
43753
43754ac_header_compiler=no
43755fi
ac1cb8d3 43756rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43757echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43758echo "${ECHO_T}$ac_header_compiler" >&6
43759
43760# Is the header present?
43761echo "$as_me:$LINENO: checking $ac_header presence" >&5
43762echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43763cat >conftest.$ac_ext <<_ACEOF
43764/* confdefs.h. */
43765_ACEOF
43766cat confdefs.h >>conftest.$ac_ext
43767cat >>conftest.$ac_ext <<_ACEOF
43768/* end confdefs.h. */
43769#include <$ac_header>
43770_ACEOF
43771if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43772 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43773 ac_status=$?
43774 grep -v '^ *+' conftest.er1 >conftest.err
43775 rm -f conftest.er1
43776 cat conftest.err >&5
43777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43778 (exit $ac_status); } >/dev/null; then
43779 if test -s conftest.err; then
5d7b7554
VZ
43780 ac_cpp_err=$ac_cxx_preproc_warn_flag
43781 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
43782 else
43783 ac_cpp_err=
43784 fi
43785else
43786 ac_cpp_err=yes
43787fi
43788if test -z "$ac_cpp_err"; then
43789 ac_header_preproc=yes
43790else
43791 echo "$as_me: failed program was:" >&5
43792sed 's/^/| /' conftest.$ac_ext >&5
43793
43794 ac_header_preproc=no
43795fi
43796rm -f conftest.err conftest.$ac_ext
43797echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43798echo "${ECHO_T}$ac_header_preproc" >&6
43799
43800# So? What about this header?
5d7b7554 43801case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 43802 yes:no: )
a848cd7e
SC
43803 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43804echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
43805 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43806echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43807 ac_header_preproc=yes
a848cd7e 43808 ;;
ac1cb8d3 43809 no:yes:* )
a848cd7e
SC
43810 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43811echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
43812 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
43813echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
43814 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43815echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43816 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
43817echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
43818 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43819echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
43820 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43821echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
43822 (
43823 cat <<\_ASBOX
ac1cb8d3
VS
43824## ----------------------------------------- ##
43825## Report this to wx-dev@lists.wxwidgets.org ##
43826## ----------------------------------------- ##
a848cd7e
SC
43827_ASBOX
43828 ) |
43829 sed "s/^/$as_me: WARNING: /" >&2
43830 ;;
43831esac
43832echo "$as_me:$LINENO: checking for $ac_header" >&5
43833echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43834if eval "test \"\${$as_ac_Header+set}\" = set"; then
43835 echo $ECHO_N "(cached) $ECHO_C" >&6
43836else
ac1cb8d3 43837 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
43838fi
43839echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43840echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43841
43842fi
43843if test `eval echo '${'$as_ac_Header'}'` = yes; then
43844 cat >>confdefs.h <<_ACEOF
43845#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43846_ACEOF
ee45c548 43847 wxUSE_JOYSTICK=yes
a848cd7e
SC
43848fi
43849
43850done
43851
ee45c548 43852 fi
4cb1d3da 43853
ee45c548
MW
43854 if test "$wxUSE_JOYSTICK" = "yes"; then
43855 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
43856#define wxUSE_JOYSTICK 1
43857_ACEOF
43858
ee45c548
MW
43859 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
43860 else
43861 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
43862echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
a848cd7e
SC
43863 fi
43864fi
43865
43866
43867
43868if test "$wxUSE_FONTMAP" = "yes" ; then
43869 cat >>confdefs.h <<\_ACEOF
43870#define wxUSE_FONTMAP 1
43871_ACEOF
43872
43873fi
43874
43875if test "$wxUSE_UNICODE" = "yes" ; then
43876 cat >>confdefs.h <<\_ACEOF
43877#define wxUSE_UNICODE 1
43878_ACEOF
43879
43880
43881 if test "$USE_WIN32" != 1; then
43882 wxUSE_UNICODE_MSLU=no
43883 fi
43884
43885 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
43886 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
43887echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
43888if test "${ac_cv_lib_unicows_main+set}" = set; then
43889 echo $ECHO_N "(cached) $ECHO_C" >&6
43890else
43891 ac_check_lib_save_LIBS=$LIBS
43892LIBS="-lunicows $LIBS"
43893cat >conftest.$ac_ext <<_ACEOF
43894/* confdefs.h. */
43895_ACEOF
43896cat confdefs.h >>conftest.$ac_ext
43897cat >>conftest.$ac_ext <<_ACEOF
43898/* end confdefs.h. */
43899
43900
43901int
43902main ()
43903{
43904main ();
43905 ;
43906 return 0;
43907}
43908_ACEOF
43909rm -f conftest.$ac_objext conftest$ac_exeext
43910if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43911 (eval $ac_link) 2>conftest.er1
a848cd7e 43912 ac_status=$?
ac1cb8d3
VS
43913 grep -v '^ *+' conftest.er1 >conftest.err
43914 rm -f conftest.er1
43915 cat conftest.err >&5
a848cd7e
SC
43916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43917 (exit $ac_status); } &&
c9a66001 43918 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43920 (eval $ac_try) 2>&5
43921 ac_status=$?
43922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43923 (exit $ac_status); }; } &&
43924 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43926 (eval $ac_try) 2>&5
43927 ac_status=$?
43928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43929 (exit $ac_status); }; }; then
43930 ac_cv_lib_unicows_main=yes
43931else
43932 echo "$as_me: failed program was:" >&5
43933sed 's/^/| /' conftest.$ac_ext >&5
43934
43935ac_cv_lib_unicows_main=no
43936fi
ac1cb8d3
VS
43937rm -f conftest.err conftest.$ac_objext \
43938 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43939LIBS=$ac_check_lib_save_LIBS
43940fi
43941echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
43942echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
43943if test $ac_cv_lib_unicows_main = yes; then
43944
43945 cat >>confdefs.h <<\_ACEOF
43946#define wxUSE_UNICODE_MSLU 1
43947_ACEOF
43948
43949
43950else
43951
43952 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
43953 Applications will only run on Windows NT/2000/XP!" >&5
43954echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
43955 Applications will only run on Windows NT/2000/XP!" >&2;}
43956 wxUSE_UNICODE_MSLU=no
43957
43958fi
43959
43960 fi
43961fi
43962
43963if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
43964 cat >>confdefs.h <<\_ACEOF
43965#define wxUSE_EXPERIMENTAL_PRINTF 1
43966_ACEOF
43967
43968fi
43969
43970
43971if test "$wxUSE_POSTSCRIPT" = "yes" ; then
43972 cat >>confdefs.h <<\_ACEOF
43973#define wxUSE_POSTSCRIPT 1
43974_ACEOF
43975
43976fi
43977
43978cat >>confdefs.h <<\_ACEOF
43979#define wxUSE_AFM_FOR_POSTSCRIPT 1
43980_ACEOF
43981
43982
43983cat >>confdefs.h <<\_ACEOF
43984#define wxUSE_NORMALIZED_PS_FONTS 1
43985_ACEOF
43986
43987
43988
43989if test "$wxUSE_CONSTRAINTS" = "yes"; then
43990 cat >>confdefs.h <<\_ACEOF
43991#define wxUSE_CONSTRAINTS 1
43992_ACEOF
43993
43994 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
43995fi
43996
8a7b1113
VZ
43997if test "$wxUSE_MDI" = "yes"; then
43998 cat >>confdefs.h <<\_ACEOF
43999#define wxUSE_MDI 1
44000_ACEOF
44001
44002
44003 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
44004 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
44005#define wxUSE_MDI_ARCHITECTURE 1
44006_ACEOF
44007
8a7b1113
VZ
44008 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
44009 fi
a848cd7e
SC
44010fi
44011
44012if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
44013 cat >>confdefs.h <<\_ACEOF
44014#define wxUSE_DOC_VIEW_ARCHITECTURE 1
44015_ACEOF
44016
44017 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
44018 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
44019 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
44020 fi
44021fi
44022
44023if test "$wxUSE_HELP" = "yes"; then
44024 cat >>confdefs.h <<\_ACEOF
44025#define wxUSE_HELP 1
44026_ACEOF
44027
44028 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
44029
44030 if test "$wxUSE_MSW" = 1; then
44031 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
44032 cat >>confdefs.h <<\_ACEOF
44033#define wxUSE_MS_HTML_HELP 1
44034_ACEOF
44035
44036 fi
44037 fi
44038
44039 if test "$wxUSE_WXHTML_HELP" = "yes"; then
44040 if test "$wxUSE_HTML" = "yes"; then
44041 cat >>confdefs.h <<\_ACEOF
44042#define wxUSE_WXHTML_HELP 1
44043_ACEOF
44044
44045 else
44046 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
44047echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
44048 wxUSE_WXHTML_HELP=no
44049 fi
44050 fi
44051fi
44052
44053if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
44054 if test "$wxUSE_CONSTRAINTS" != "yes"; then
44055 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
44056echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
44057 else
44058 cat >>confdefs.h <<\_ACEOF
44059#define wxUSE_PRINTING_ARCHITECTURE 1
44060_ACEOF
44061
44062 fi
44063 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
44064fi
44065
44066if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
44067 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
44068echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
44069 { (exit 1); exit 1; }; }
44070fi
44071
44072
efdf6afe
VZ
44073if test "$wxUSE_METAFILE" = "yes"; then
44074 if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
44075 { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
44076echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
44077 wxUSE_METAFILE=no
44078 fi
44079fi
44080
44081
a848cd7e
SC
44082if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
44083 -o "$wxUSE_CLIPBOARD" = "yes" \
44084 -o "$wxUSE_OLE" = "yes" \
44085 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
44086
44087for ac_header in ole2.h
44088do
44089as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44090if eval "test \"\${$as_ac_Header+set}\" = set"; then
44091 echo "$as_me:$LINENO: checking for $ac_header" >&5
44092echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44093if eval "test \"\${$as_ac_Header+set}\" = set"; then
44094 echo $ECHO_N "(cached) $ECHO_C" >&6
44095fi
44096echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44097echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44098else
44099 # Is the header compilable?
44100echo "$as_me:$LINENO: checking $ac_header usability" >&5
44101echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44102cat >conftest.$ac_ext <<_ACEOF
44103/* confdefs.h. */
44104_ACEOF
44105cat confdefs.h >>conftest.$ac_ext
44106cat >>conftest.$ac_ext <<_ACEOF
44107/* end confdefs.h. */
44108$ac_includes_default
44109#include <$ac_header>
44110_ACEOF
44111rm -f conftest.$ac_objext
44112if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44113 (eval $ac_compile) 2>conftest.er1
a848cd7e 44114 ac_status=$?
ac1cb8d3
VS
44115 grep -v '^ *+' conftest.er1 >conftest.err
44116 rm -f conftest.er1
44117 cat conftest.err >&5
a848cd7e
SC
44118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44119 (exit $ac_status); } &&
c9a66001 44120 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44122 (eval $ac_try) 2>&5
44123 ac_status=$?
44124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44125 (exit $ac_status); }; } &&
44126 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44128 (eval $ac_try) 2>&5
44129 ac_status=$?
44130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44131 (exit $ac_status); }; }; then
44132 ac_header_compiler=yes
44133else
44134 echo "$as_me: failed program was:" >&5
44135sed 's/^/| /' conftest.$ac_ext >&5
44136
44137ac_header_compiler=no
44138fi
ac1cb8d3 44139rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44140echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44141echo "${ECHO_T}$ac_header_compiler" >&6
44142
44143# Is the header present?
44144echo "$as_me:$LINENO: checking $ac_header presence" >&5
44145echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44146cat >conftest.$ac_ext <<_ACEOF
44147/* confdefs.h. */
44148_ACEOF
44149cat confdefs.h >>conftest.$ac_ext
44150cat >>conftest.$ac_ext <<_ACEOF
44151/* end confdefs.h. */
44152#include <$ac_header>
44153_ACEOF
44154if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44155 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44156 ac_status=$?
44157 grep -v '^ *+' conftest.er1 >conftest.err
44158 rm -f conftest.er1
44159 cat conftest.err >&5
44160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44161 (exit $ac_status); } >/dev/null; then
44162 if test -s conftest.err; then
5d7b7554
VZ
44163 ac_cpp_err=$ac_cxx_preproc_warn_flag
44164 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
44165 else
44166 ac_cpp_err=
44167 fi
44168else
44169 ac_cpp_err=yes
44170fi
44171if test -z "$ac_cpp_err"; then
44172 ac_header_preproc=yes
44173else
44174 echo "$as_me: failed program was:" >&5
44175sed 's/^/| /' conftest.$ac_ext >&5
44176
44177 ac_header_preproc=no
44178fi
44179rm -f conftest.err conftest.$ac_ext
44180echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44181echo "${ECHO_T}$ac_header_preproc" >&6
44182
44183# So? What about this header?
5d7b7554 44184case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 44185 yes:no: )
a848cd7e
SC
44186 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44187echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
44188 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44189echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44190 ac_header_preproc=yes
a848cd7e 44191 ;;
ac1cb8d3 44192 no:yes:* )
a848cd7e
SC
44193 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44194echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
44195 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44196echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44197 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44198echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44199 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44200echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
44201 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44202echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
44203 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44204echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
44205 (
44206 cat <<\_ASBOX
ac1cb8d3
VS
44207## ----------------------------------------- ##
44208## Report this to wx-dev@lists.wxwidgets.org ##
44209## ----------------------------------------- ##
a848cd7e
SC
44210_ASBOX
44211 ) |
44212 sed "s/^/$as_me: WARNING: /" >&2
44213 ;;
44214esac
44215echo "$as_me:$LINENO: checking for $ac_header" >&5
44216echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44217if eval "test \"\${$as_ac_Header+set}\" = set"; then
44218 echo $ECHO_N "(cached) $ECHO_C" >&6
44219else
ac1cb8d3 44220 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
44221fi
44222echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44223echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44224
44225fi
44226if test `eval echo '${'$as_ac_Header'}'` = yes; then
44227 cat >>confdefs.h <<_ACEOF
44228#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44229_ACEOF
44230
44231fi
44232
44233done
44234
44235
44236 if test "$ac_cv_header_ole2_h" = "yes" ; then
44237 if test "$GCC" = yes ; then
a848cd7e
SC
44238 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
44239echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
44240 cat >conftest.$ac_ext <<_ACEOF
44241/* confdefs.h. */
44242_ACEOF
44243cat confdefs.h >>conftest.$ac_ext
44244cat >>conftest.$ac_ext <<_ACEOF
44245/* end confdefs.h. */
44246#include <windows.h>
44247 #include <ole2.h>
44248int
44249main ()
44250{
44251
44252 ;
44253 return 0;
44254}
44255_ACEOF
44256rm -f conftest.$ac_objext
44257if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44258 (eval $ac_compile) 2>conftest.er1
a848cd7e 44259 ac_status=$?
ac1cb8d3
VS
44260 grep -v '^ *+' conftest.er1 >conftest.err
44261 rm -f conftest.er1
44262 cat conftest.err >&5
a848cd7e
SC
44263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44264 (exit $ac_status); } &&
c9a66001 44265 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44267 (eval $ac_try) 2>&5
44268 ac_status=$?
44269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44270 (exit $ac_status); }; } &&
44271 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44273 (eval $ac_try) 2>&5
44274 ac_status=$?
44275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44276 (exit $ac_status); }; }; then
44277 echo "$as_me:$LINENO: result: no" >&5
44278echo "${ECHO_T}no" >&6
44279else
44280 echo "$as_me: failed program was:" >&5
44281sed 's/^/| /' conftest.$ac_ext >&5
44282
44283echo "$as_me:$LINENO: result: yes" >&5
44284echo "${ECHO_T}yes" >&6
5ff751d6 44285 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
a848cd7e 44286fi
ac1cb8d3 44287rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44288 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
44289 if test "$wxUSE_OLE" = "yes" ; then
44290 cat >>confdefs.h <<\_ACEOF
44291#define wxUSE_OLE 1
44292_ACEOF
44293
0b78747f 44294 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
a848cd7e
SC
44295 fi
44296 fi
44297
44298 if test "$wxUSE_DATAOBJ" = "yes" ; then
44299 cat >>confdefs.h <<\_ACEOF
44300#define wxUSE_DATAOBJ 1
44301_ACEOF
44302
44303 fi
44304 else
44305 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
44306echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
44307
44308 wxUSE_CLIPBOARD=no
44309 wxUSE_DRAG_AND_DROP=no
44310 wxUSE_DATAOBJ=no
44311 wxUSE_OLE=no
44312 fi
44313
44314 if test "$wxUSE_METAFILE" = "yes"; then
44315 cat >>confdefs.h <<\_ACEOF
44316#define wxUSE_METAFILE 1
44317_ACEOF
44318
44319
44320 cat >>confdefs.h <<\_ACEOF
44321#define wxUSE_ENH_METAFILE 1
44322_ACEOF
44323
44324 fi
44325fi
44326
44327if test "$wxUSE_IPC" = "yes"; then
0b78747f 44328 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
77ffb593
JS
44329 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
44330echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
0b78747f 44331 wxUSE_IPC=no
a848cd7e
SC
44332 fi
44333
0b78747f
MW
44334 if test "$wxUSE_IPC" = "yes"; then
44335 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
44336#define wxUSE_IPC 1
44337_ACEOF
44338
0b78747f
MW
44339 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
44340 fi
a848cd7e
SC
44341fi
44342
eb730a0c 44343if test "$wxUSE_DATAOBJ" = "yes"; then
2113bc77
MW
44344 if test "$wxUSE_MGL" = 1; then
44345 { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5
44346echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;}
44347 wxUSE_DATAOBJ=no
44348 else
44349 cat >>confdefs.h <<\_ACEOF
eb730a0c
JS
44350#define wxUSE_DATAOBJ 1
44351_ACEOF
44352
2113bc77 44353 fi
eb730a0c
JS
44354else
44355 { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
44356echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
44357 wxUSE_CLIPBOARD=no
44358 wxUSE_DRAG_AND_DROP=no
44359fi
44360
a848cd7e
SC
44361if test "$wxUSE_CLIPBOARD" = "yes"; then
44362 if test "$wxUSE_MGL" = 1; then
44363 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
44364echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
44365 wxUSE_CLIPBOARD=no
44366 fi
44367
44368 if test "$wxUSE_CLIPBOARD" = "yes"; then
44369 cat >>confdefs.h <<\_ACEOF
44370#define wxUSE_CLIPBOARD 1
44371_ACEOF
44372
a848cd7e
SC
44373 fi
44374fi
44375
44376if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
44377 if test "$wxUSE_GTK" = 1; then
44378 if test "$WXGTK12" != 1; then
44379 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
44380echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
44381 wxUSE_DRAG_AND_DROP=no
44382 fi
44383 fi
44384
44385 if test "$wxUSE_MOTIF" = 1; then
44386 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
44387echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
44388 wxUSE_DRAG_AND_DROP=no
44389 fi
44390
44391 if test "$wxUSE_X11" = 1; then
44392 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
44393echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
44394 wxUSE_DRAG_AND_DROP=no
44395 fi
44396
44397 if test "$wxUSE_MGL" = 1; then
44398 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
44399echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
44400 wxUSE_DRAG_AND_DROP=no
44401 fi
44402
44403 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
44404 cat >>confdefs.h <<\_ACEOF
44405#define wxUSE_DRAG_AND_DROP 1
44406_ACEOF
44407
44408 fi
44409
44410fi
44411
44412if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
44413 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
44414fi
44415
44416if test "$wxUSE_SPLINES" = "yes" ; then
44417 cat >>confdefs.h <<\_ACEOF
44418#define wxUSE_SPLINES 1
44419_ACEOF
44420
44421fi
44422
fbe2ca43
SN
44423if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
44424 cat >>confdefs.h <<\_ACEOF
44425#define wxUSE_MOUSEWHEEL 1
44426_ACEOF
44427
44428fi
44429
a848cd7e
SC
44430
44431USES_CONTROLS=0
44432if test "$wxUSE_CONTROLS" = "yes"; then
44433 USES_CONTROLS=1
44434fi
44435
44436if test "$wxUSE_ACCEL" = "yes"; then
44437 cat >>confdefs.h <<\_ACEOF
44438#define wxUSE_ACCEL 1
44439_ACEOF
44440
44441 USES_CONTROLS=1
44442fi
44443
44444if test "$wxUSE_BUTTON" = "yes"; then
44445 cat >>confdefs.h <<\_ACEOF
44446#define wxUSE_BUTTON 1
44447_ACEOF
44448
44449 USES_CONTROLS=1
44450fi
44451
44452if test "$wxUSE_BMPBUTTON" = "yes"; then
44453 cat >>confdefs.h <<\_ACEOF
44454#define wxUSE_BMPBUTTON 1
44455_ACEOF
44456
44457 USES_CONTROLS=1
44458fi
44459
44460if test "$wxUSE_CALCTRL" = "yes"; then
44461 cat >>confdefs.h <<\_ACEOF
44462#define wxUSE_CALENDARCTRL 1
44463_ACEOF
44464
44465 USES_CONTROLS=1
44466 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
44467fi
44468
44469if test "$wxUSE_CARET" = "yes"; then
44470 cat >>confdefs.h <<\_ACEOF
44471#define wxUSE_CARET 1
44472_ACEOF
44473
44474 USES_CONTROLS=1
44475 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
44476fi
44477
44478if test "$wxUSE_COMBOBOX" = "yes"; then
44479 cat >>confdefs.h <<\_ACEOF
44480#define wxUSE_COMBOBOX 1
44481_ACEOF
44482
44483 USES_CONTROLS=1
44484fi
44485
a57d600f 44486if test "$wxUSE_COMBOCTRL" = "yes"; then
642bcba9 44487 cat >>confdefs.h <<\_ACEOF
a57d600f 44488#define wxUSE_COMBOCTRL 1
642bcba9
VZ
44489_ACEOF
44490
44491 USES_CONTROLS=1
44492fi
44493
a848cd7e
SC
44494if test "$wxUSE_CHOICE" = "yes"; then
44495 cat >>confdefs.h <<\_ACEOF
44496#define wxUSE_CHOICE 1
44497_ACEOF
44498
44499 USES_CONTROLS=1
44500fi
44501
92bbdbcd
WS
44502if test "$wxUSE_CHOICEBOOK" = "yes"; then
44503 cat >>confdefs.h <<\_ACEOF
44504#define wxUSE_CHOICEBOOK 1
44505_ACEOF
44506
44507 USES_CONTROLS=1
44508fi
44509
a848cd7e
SC
44510if test "$wxUSE_CHECKBOX" = "yes"; then
44511 cat >>confdefs.h <<\_ACEOF
44512#define wxUSE_CHECKBOX 1
44513_ACEOF
44514
44515 USES_CONTROLS=1
44516fi
44517
44518if test "$wxUSE_CHECKLST" = "yes"; then
44519 cat >>confdefs.h <<\_ACEOF
44520#define wxUSE_CHECKLISTBOX 1
44521_ACEOF
44522
44523 USES_CONTROLS=1
44524 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
44525fi
44526
e9263684
VZ
44527if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
44528 cat >>confdefs.h <<\_ACEOF
44529#define wxUSE_COLOURPICKERCTRL 1
44530_ACEOF
44531
44532 USES_CONTROLS=1
44533fi
44534
da98e9be
VZ
44535if test "$wxUSE_DATEPICKCTRL" = "yes"; then
44536 cat >>confdefs.h <<\_ACEOF
44537#define wxUSE_DATEPICKCTRL 1
44538_ACEOF
44539
44540 USES_CONTROLS=1
44541fi
44542
e9263684
VZ
44543if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
44544 cat >>confdefs.h <<\_ACEOF
44545#define wxUSE_DIRPICKERCTRL 1
44546_ACEOF
44547
44548 USES_CONTROLS=1
44549fi
44550
44551if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
44552 cat >>confdefs.h <<\_ACEOF
44553#define wxUSE_FILEPICKERCTRL 1
44554_ACEOF
44555
44556 USES_CONTROLS=1
44557fi
44558
44559if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
44560 cat >>confdefs.h <<\_ACEOF
44561#define wxUSE_FONTPICKERCTRL 1
44562_ACEOF
44563
44564 USES_CONTROLS=1
44565fi
44566
a848cd7e
SC
44567if test "$wxUSE_DISPLAY" = "yes"; then
44568 cat >>confdefs.h <<\_ACEOF
44569#define wxUSE_DISPLAY 1
44570_ACEOF
44571
0b78747f 44572 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
a848cd7e
SC
44573fi
44574
44575if test "$wxUSE_GAUGE" = "yes"; then
44576 cat >>confdefs.h <<\_ACEOF
44577#define wxUSE_GAUGE 1
44578_ACEOF
44579
44580 USES_CONTROLS=1
44581fi
44582
44583if test "$wxUSE_GRID" = "yes"; then
44584 cat >>confdefs.h <<\_ACEOF
44585#define wxUSE_GRID 1
44586_ACEOF
44587
44588 USES_CONTROLS=1
44589 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
44590fi
44591
6954625c
VZ
44592if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
44593 cat >>confdefs.h <<\_ACEOF
44594#define wxUSE_HYPERLINKCTRL 1
44595_ACEOF
44596
44597 USES_CONTROLS=1
44598fi
44599
20e34ecc
RR
44600if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
44601 cat >>confdefs.h <<\_ACEOF
44602#define wxUSE_DATAVIEWCTRL 1
44603_ACEOF
44604
44605 USES_CONTROLS=1
44606 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
44607fi
44608
a848cd7e
SC
44609if test "$wxUSE_IMAGLIST" = "yes"; then
44610 cat >>confdefs.h <<\_ACEOF
44611#define wxUSE_IMAGLIST 1
44612_ACEOF
44613
44614fi
44615
44616if test "$wxUSE_LISTBOOK" = "yes"; then
44617 cat >>confdefs.h <<\_ACEOF
44618#define wxUSE_LISTBOOK 1
44619_ACEOF
44620
44621 USES_CONTROLS=1
44622fi
44623
44624if test "$wxUSE_LISTBOX" = "yes"; then
44625 cat >>confdefs.h <<\_ACEOF
44626#define wxUSE_LISTBOX 1
44627_ACEOF
44628
44629 USES_CONTROLS=1
0b78747f 44630 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
a848cd7e
SC
44631fi
44632
44633if test "$wxUSE_LISTCTRL" = "yes"; then
44634 if test "$wxUSE_IMAGLIST" = "yes"; then
44635 cat >>confdefs.h <<\_ACEOF
44636#define wxUSE_LISTCTRL 1
44637_ACEOF
44638
44639 USES_CONTROLS=1
44640 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
44641 else
44642 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
44643echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
44644 fi
44645fi
44646
44647if test "$wxUSE_NOTEBOOK" = "yes"; then
44648 cat >>confdefs.h <<\_ACEOF
44649#define wxUSE_NOTEBOOK 1
44650_ACEOF
44651
44652 USES_CONTROLS=1
44653 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
44654fi
44655
a57d600f 44656if test "$wxUSE_ODCOMBOBOX" = "yes"; then
642bcba9 44657 cat >>confdefs.h <<\_ACEOF
a57d600f 44658#define wxUSE_ODCOMBOBOX 1
642bcba9
VZ
44659_ACEOF
44660
44661 USES_CONTROLS=1
44662 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
44663fi
44664
a848cd7e
SC
44665
44666if test "$wxUSE_RADIOBOX" = "yes"; then
44667 cat >>confdefs.h <<\_ACEOF
44668#define wxUSE_RADIOBOX 1
44669_ACEOF
44670
44671 USES_CONTROLS=1
44672fi
44673
44674if test "$wxUSE_RADIOBTN" = "yes"; then
44675 cat >>confdefs.h <<\_ACEOF
44676#define wxUSE_RADIOBTN 1
44677_ACEOF
44678
44679 USES_CONTROLS=1
44680fi
44681
44682if test "$wxUSE_SASH" = "yes"; then
44683 cat >>confdefs.h <<\_ACEOF
44684#define wxUSE_SASH 1
44685_ACEOF
44686
44687 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
44688fi
44689
44690if test "$wxUSE_SCROLLBAR" = "yes"; then
44691 cat >>confdefs.h <<\_ACEOF
44692#define wxUSE_SCROLLBAR 1
44693_ACEOF
44694
44695 USES_CONTROLS=1
44696 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
44697fi
44698
44699if test "$wxUSE_SLIDER" = "yes"; then
44700 cat >>confdefs.h <<\_ACEOF
44701#define wxUSE_SLIDER 1
44702_ACEOF
44703
44704 USES_CONTROLS=1
44705fi
44706
44707if test "$wxUSE_SPINBTN" = "yes"; then
44708 cat >>confdefs.h <<\_ACEOF
44709#define wxUSE_SPINBTN 1
44710_ACEOF
44711
44712 USES_CONTROLS=1
44713fi
44714
44715if test "$wxUSE_SPINCTRL" = "yes"; then
44716 cat >>confdefs.h <<\_ACEOF
44717#define wxUSE_SPINCTRL 1
44718_ACEOF
44719
44720 USES_CONTROLS=1
44721fi
44722
44723if test "$wxUSE_SPLITTER" = "yes"; then
44724 cat >>confdefs.h <<\_ACEOF
44725#define wxUSE_SPLITTER 1
44726_ACEOF
44727
44728 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
44729fi
44730
44731if test "$wxUSE_STATBMP" = "yes"; then
44732 cat >>confdefs.h <<\_ACEOF
44733#define wxUSE_STATBMP 1
44734_ACEOF
44735
44736 USES_CONTROLS=1
44737fi
44738
44739if test "$wxUSE_STATBOX" = "yes"; then
44740 cat >>confdefs.h <<\_ACEOF
44741#define wxUSE_STATBOX 1
44742_ACEOF
44743
44744 USES_CONTROLS=1
44745fi
44746
44747if test "$wxUSE_STATTEXT" = "yes"; then
44748 cat >>confdefs.h <<\_ACEOF
44749#define wxUSE_STATTEXT 1
44750_ACEOF
44751
44752 USES_CONTROLS=1
44753fi
44754
44755if test "$wxUSE_STATLINE" = "yes"; then
44756 cat >>confdefs.h <<\_ACEOF
44757#define wxUSE_STATLINE 1
44758_ACEOF
44759
44760 USES_CONTROLS=1
44761fi
44762
44763if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
44764 cat >>confdefs.h <<\_ACEOF
44765#define wxUSE_NATIVE_STATUSBAR 1
44766_ACEOF
44767
a848cd7e
SC
44768 cat >>confdefs.h <<\_ACEOF
44769#define wxUSE_STATUSBAR 1
44770_ACEOF
44771
44772 USES_CONTROLS=1
44773
44774 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
44775fi
44776
f10e38c4 44777if test "$wxUSE_TAB_DIALOG" = "yes"; then
a848cd7e
SC
44778 cat >>confdefs.h <<\_ACEOF
44779#define wxUSE_TAB_DIALOG 1
44780_ACEOF
44781
a848cd7e
SC
44782fi
44783
44784if test "$wxUSE_TEXTCTRL" = "yes"; then
44785 cat >>confdefs.h <<\_ACEOF
44786#define wxUSE_TEXTCTRL 1
44787_ACEOF
44788
44789 USES_CONTROLS=1
44790 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
44791fi
44792
44793if test "$wxUSE_TOGGLEBTN" = "yes"; then
44794 if test "$wxUSE_COCOA" = 1 ; then
44795 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
44796echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
44797 wxUSE_TOGGLEBTN=no
44798 fi
a848cd7e
SC
44799
44800 if test "$wxUSE_TOGGLEBTN" = "yes"; then
44801 cat >>confdefs.h <<\_ACEOF
44802#define wxUSE_TOGGLEBTN 1
44803_ACEOF
44804
44805 USES_CONTROLS=1
44806 fi
44807fi
44808
a848cd7e
SC
44809if test "$wxUSE_TOOLBAR" = "yes"; then
44810 cat >>confdefs.h <<\_ACEOF
44811#define wxUSE_TOOLBAR 1
44812_ACEOF
44813
44814 USES_CONTROLS=1
44815
452b6243
VS
44816 if test "$wxUSE_UNIVERSAL" = "yes"; then
44817 wxUSE_TOOLBAR_NATIVE="no"
44818 else
44819 wxUSE_TOOLBAR_NATIVE="yes"
a848cd7e
SC
44820 cat >>confdefs.h <<\_ACEOF
44821#define wxUSE_TOOLBAR_NATIVE 1
44822_ACEOF
44823
a848cd7e
SC
44824 fi
44825
44826 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
44827fi
44828
44829if test "$wxUSE_TOOLTIPS" = "yes"; then
44830 if test "$wxUSE_MOTIF" = 1; then
44831 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
44832echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
44833 else
44834 if test "$wxUSE_UNIVERSAL" = "yes"; then
44835 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
44836echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
44837 else
44838 cat >>confdefs.h <<\_ACEOF
44839#define wxUSE_TOOLTIPS 1
44840_ACEOF
44841
44842 fi
44843 fi
44844fi
44845
0093c2fc
VZ
44846if test "$wxUSE_TREEBOOK" = "yes"; then
44847 cat >>confdefs.h <<\_ACEOF
44848#define wxUSE_TREEBOOK 1
44849_ACEOF
44850
44851 USES_CONTROLS=1
44852fi
44853
5ec3bc43
JS
44854if test "$wxUSE_TOOLBOOK" = "yes"; then
44855 cat >>confdefs.h <<\_ACEOF
44856#define wxUSE_TOOLBOOK 1
44857_ACEOF
44858
44859 USES_CONTROLS=1
44860fi
44861
a848cd7e
SC
44862if test "$wxUSE_TREECTRL" = "yes"; then
44863 if test "$wxUSE_IMAGLIST" = "yes"; then
44864 cat >>confdefs.h <<\_ACEOF
44865#define wxUSE_TREECTRL 1
44866_ACEOF
44867
44868 USES_CONTROLS=1
44869 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
44870 else
44871 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
44872echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
44873 fi
44874fi
44875
44876if test "$wxUSE_POPUPWIN" = "yes"; then
44877 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
44878 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
44879echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
44880 else
44881 if test "$wxUSE_PM" = 1; then
44882 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
44883echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
44884 else
44885 cat >>confdefs.h <<\_ACEOF
44886#define wxUSE_POPUPWIN 1
44887_ACEOF
44888
0b78747f 44889 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
a848cd7e
SC
44890
44891 USES_CONTROLS=1
44892 fi
44893 fi
44894fi
44895
0dcd06dd 44896if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
44897 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
44898 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
44899echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
44900 else
44901 cat >>confdefs.h <<\_ACEOF
44902#define wxUSE_DIALUP_MANAGER 1
44903_ACEOF
44904
44905 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
44906 fi
44907fi
44908
a848cd7e
SC
44909if test "$wxUSE_TIPWINDOW" = "yes"; then
44910 if test "$wxUSE_PM" = 1; then
44911 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
44912echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
44913 else
44914 cat >>confdefs.h <<\_ACEOF
44915#define wxUSE_TIPWINDOW 1
44916_ACEOF
44917
44918 fi
44919fi
44920
44921if test "$USES_CONTROLS" = 1; then
44922 cat >>confdefs.h <<\_ACEOF
44923#define wxUSE_CONTROLS 1
44924_ACEOF
44925
44926fi
44927
44928
44929if test "$wxUSE_ACCESSIBILITY" = "yes"; then
44930 cat >>confdefs.h <<\_ACEOF
44931#define wxUSE_ACCESSIBILITY 1
44932_ACEOF
44933
44934 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
44935fi
44936
38b4a946
VZ
44937if test "$wxUSE_DC_CACHEING" = "yes"; then
44938 cat >>confdefs.h <<\_ACEOF
44939#define wxUSE_DC_CACHEING 1
44940_ACEOF
44941
44942fi
44943
a848cd7e
SC
44944if test "$wxUSE_DRAGIMAGE" = "yes"; then
44945 cat >>confdefs.h <<\_ACEOF
44946#define wxUSE_DRAGIMAGE 1
44947_ACEOF
44948
44949 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
44950fi
44951
44952if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
44953 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
44954 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
44955echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
44956 else
44957 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
44958#define wxUSE_EXCEPTIONS 1
44959_ACEOF
44960
07bea8f0
VS
44961 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
44962 fi
a848cd7e
SC
44963fi
44964
44965USE_HTML=0
44966if test "$wxUSE_HTML" = "yes"; then
44967 cat >>confdefs.h <<\_ACEOF
44968#define wxUSE_HTML 1
44969_ACEOF
44970
44971 USE_HTML=1
44972 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
44973 if test "$wxUSE_MAC" = 1; then
44974 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
44975 fi
a848cd7e 44976fi
646b6ec1 44977if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 44978 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0 44979 old_CPPFLAGS="$CPPFLAGS"
c92ad099 44980 CPPFLAGS="-x objective-c++ $CPPFLAGS"
07bea8f0
VS
44981 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
44982echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
44983if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
44984 echo $ECHO_N "(cached) $ECHO_C" >&6
44985else
44986 cat >conftest.$ac_ext <<_ACEOF
44987/* confdefs.h. */
44988_ACEOF
44989cat confdefs.h >>conftest.$ac_ext
44990cat >>conftest.$ac_ext <<_ACEOF
44991/* end confdefs.h. */
44992#include <Carbon/Carbon.h>
44993
44994#include <WebKit/HIWebView.h>
44995_ACEOF
44996rm -f conftest.$ac_objext
44997if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44998 (eval $ac_compile) 2>conftest.er1
44999 ac_status=$?
45000 grep -v '^ *+' conftest.er1 >conftest.err
45001 rm -f conftest.er1
45002 cat conftest.err >&5
45003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45004 (exit $ac_status); } &&
c9a66001 45005 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
07bea8f0
VS
45006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45007 (eval $ac_try) 2>&5
45008 ac_status=$?
45009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45010 (exit $ac_status); }; } &&
45011 { ac_try='test -s conftest.$ac_objext'
45012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45013 (eval $ac_try) 2>&5
45014 ac_status=$?
45015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45016 (exit $ac_status); }; }; then
45017 ac_cv_header_WebKit_HIWebView_h=yes
45018else
45019 echo "$as_me: failed program was:" >&5
45020sed 's/^/| /' conftest.$ac_ext >&5
45021
45022ac_cv_header_WebKit_HIWebView_h=no
45023fi
45024rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45025fi
45026echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
45027echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
45028if test $ac_cv_header_WebKit_HIWebView_h = yes; then
45029
45030 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
45031#define wxUSE_WEBKIT 1
45032_ACEOF
45033
07bea8f0
VS
45034 WEBKIT_LINK="-framework WebKit"
45035
45036else
45037
45038 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
45039echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
45040 wxUSE_WEBKIT=no
45041
646b6ec1
VS
45042fi
45043
07bea8f0
VS
45044
45045 CPPFLAGS="$old_CPPFLAGS"
45046 elif test "$wxUSE_COCOA" = 1; then
45047 cat >>confdefs.h <<\_ACEOF
45048#define wxUSE_WEBKIT 1
45049_ACEOF
45050
45051 else
45052 wxUSE_WEBKIT=no
45053 fi
45054fi
45055
9a8f0513
VS
45056USE_XRC=0
45057if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
45058 if test "$wxUSE_XML" != "yes"; then
45059 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
45060echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
45061 wxUSE_XRC=no
45062 else
45063 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
45064#define wxUSE_XRC 1
45065_ACEOF
45066
d2ebf0b7
VS
45067 USE_XRC=1
45068 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
45069 fi
9a8f0513 45070fi
07bea8f0 45071
3f60522a
JS
45072USE_AUI=0
45073if test "$wxUSE_AUI" = "yes"; then
45074 cat >>confdefs.h <<\_ACEOF
45075#define wxUSE_AUI 1
45076_ACEOF
45077
45078 USE_AUI=1
45079 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui"
45080fi
45081
a848cd7e
SC
45082if test "$wxUSE_MENUS" = "yes"; then
45083 cat >>confdefs.h <<\_ACEOF
45084#define wxUSE_MENUS 1
45085_ACEOF
45086
45087 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
45088fi
45089
45090if test "$wxUSE_METAFILE" = "yes"; then
45091 cat >>confdefs.h <<\_ACEOF
45092#define wxUSE_METAFILE 1
45093_ACEOF
45094
45095fi
45096
45097if test "$wxUSE_MIMETYPE" = "yes"; then
45098 cat >>confdefs.h <<\_ACEOF
45099#define wxUSE_MIMETYPE 1
45100_ACEOF
45101
45102fi
45103
45104if test "$wxUSE_MINIFRAME" = "yes"; then
45105 cat >>confdefs.h <<\_ACEOF
45106#define wxUSE_MINIFRAME 1
45107_ACEOF
45108
45109 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
45110fi
45111
45112if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
45113 cat >>confdefs.h <<\_ACEOF
45114#define wxUSE_SYSTEM_OPTIONS 1
45115_ACEOF
45116
45117 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 45118 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
45119 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
45120 fi
45121fi
45122
45123
45124if test "$wxUSE_VALIDATORS" = "yes"; then
45125 cat >>confdefs.h <<\_ACEOF
45126#define wxUSE_VALIDATORS 1
45127_ACEOF
45128
45129 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
45130fi
45131
45132if test "$wxUSE_PALETTE" = "yes" ; then
45133 cat >>confdefs.h <<\_ACEOF
45134#define wxUSE_PALETTE 1
45135_ACEOF
45136
45137fi
45138
45139if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
45140 LIBS=" -lunicows $LIBS"
45141fi
45142
91dea314
MW
45143USE_RICHTEXT=0
45144if test "$wxUSE_RICHTEXT" = "yes"; then
45145 cat >>confdefs.h <<\_ACEOF
45146#define wxUSE_RICHTEXT 1
45147_ACEOF
45148
45149 USE_RICHTEXT=1
45150 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
45151fi
45152
a848cd7e
SC
45153
45154if test "$wxUSE_IMAGE" = "yes" ; then
45155 cat >>confdefs.h <<\_ACEOF
45156#define wxUSE_IMAGE 1
45157_ACEOF
45158
45159
45160 if test "$wxUSE_GIF" = "yes" ; then
45161 cat >>confdefs.h <<\_ACEOF
45162#define wxUSE_GIF 1
45163_ACEOF
45164
45165 fi
45166
45167 if test "$wxUSE_PCX" = "yes" ; then
45168 cat >>confdefs.h <<\_ACEOF
45169#define wxUSE_PCX 1
45170_ACEOF
45171
45172 fi
45173
45174 if test "$wxUSE_IFF" = "yes" ; then
45175 cat >>confdefs.h <<\_ACEOF
45176#define wxUSE_IFF 1
45177_ACEOF
45178
45179 fi
45180
45181 if test "$wxUSE_PNM" = "yes" ; then
45182 cat >>confdefs.h <<\_ACEOF
45183#define wxUSE_PNM 1
45184_ACEOF
45185
45186 fi
45187
45188 if test "$wxUSE_XPM" = "yes" ; then
45189 cat >>confdefs.h <<\_ACEOF
45190#define wxUSE_XPM 1
45191_ACEOF
45192
45193 fi
45194
45195 if test "$wxUSE_ICO_CUR" = "yes" ; then
45196 cat >>confdefs.h <<\_ACEOF
45197#define wxUSE_ICO_CUR 1
45198_ACEOF
45199
45200 fi
45201fi
45202
45203
45204if test "$wxUSE_CHOICEDLG" = "yes"; then
45205 cat >>confdefs.h <<\_ACEOF
45206#define wxUSE_CHOICEDLG 1
45207_ACEOF
45208
45209fi
45210
45211if test "$wxUSE_COLOURDLG" = "yes"; then
45212 cat >>confdefs.h <<\_ACEOF
45213#define wxUSE_COLOURDLG 1
45214_ACEOF
45215
45216fi
45217
45218if test "$wxUSE_FILEDLG" = "yes"; then
45219 cat >>confdefs.h <<\_ACEOF
45220#define wxUSE_FILEDLG 1
45221_ACEOF
45222
45223fi
45224
45225if test "$wxUSE_FINDREPLDLG" = "yes"; then
45226 cat >>confdefs.h <<\_ACEOF
45227#define wxUSE_FINDREPLDLG 1
45228_ACEOF
45229
45230fi
45231
45232if test "$wxUSE_FONTDLG" = "yes"; then
45233 cat >>confdefs.h <<\_ACEOF
45234#define wxUSE_FONTDLG 1
45235_ACEOF
45236
45237fi
45238
45239if test "$wxUSE_DIRDLG" = "yes"; then
45240 if test "$wxUSE_TREECTRL" != "yes"; then
45241 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
45242echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
45243 else
45244 cat >>confdefs.h <<\_ACEOF
45245#define wxUSE_DIRDLG 1
45246_ACEOF
45247
45248 fi
45249fi
45250
45251if test "$wxUSE_MSGDLG" = "yes"; then
45252 cat >>confdefs.h <<\_ACEOF
45253#define wxUSE_MSGDLG 1
45254_ACEOF
45255
45256fi
45257
45258if test "$wxUSE_NUMBERDLG" = "yes"; then
45259 cat >>confdefs.h <<\_ACEOF
45260#define wxUSE_NUMBERDLG 1
45261_ACEOF
45262
45263fi
45264
45265if test "$wxUSE_PROGRESSDLG" = "yes"; then
45266 if test "$wxUSE_CONSTRAINTS" != "yes"; then
45267 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
45268echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
45269 else
45270 cat >>confdefs.h <<\_ACEOF
45271#define wxUSE_PROGRESSDLG 1
45272_ACEOF
45273
45274 fi
45275fi
45276
45277if test "$wxUSE_SPLASH" = "yes"; then
45278 cat >>confdefs.h <<\_ACEOF
45279#define wxUSE_SPLASH 1
45280_ACEOF
45281
2057db16 45282 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
45283fi
45284
45285if test "$wxUSE_STARTUP_TIPS" = "yes"; then
45286 if test "$wxUSE_CONSTRAINTS" != "yes"; then
45287 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
45288echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
45289 else
45290 cat >>confdefs.h <<\_ACEOF
45291#define wxUSE_STARTUP_TIPS 1
45292_ACEOF
45293
45294 fi
45295fi
45296
45297if test "$wxUSE_TEXTDLG" = "yes"; then
45298 cat >>confdefs.h <<\_ACEOF
45299#define wxUSE_TEXTDLG 1
45300_ACEOF
45301
45302fi
45303
45304if test "$wxUSE_WIZARDDLG" = "yes"; then
45305 cat >>confdefs.h <<\_ACEOF
45306#define wxUSE_WIZARDDLG 1
45307_ACEOF
45308
45309 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
45310fi
45311
45312
f10e38c4
VZ
45313USE_MEDIA=0
45314
ce756cb0 45315if test "$wxUSE_MEDIACTRL" = "yes"; then
2f6c5bb5
VZ
45316 USE_MEDIA=1
45317
ce756cb0 45318 if test "$wxUSE_GTK" = 1; then
c9a66001 45319 wxUSE_GSTREAMER="no"
ce756cb0 45320
f10e38c4
VZ
45321 GST_VERSION_MAJOR=0
45322 GST_VERSION_MINOR=10
2f6c5bb5 45323 GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
f10e38c4
VZ
45324
45325 if test "$wxUSE_GSTREAMER8" = "no"; then
ce756cb0 45326
3ecd9f92
MW
45327pkg_failed=no
45328echo "$as_me:$LINENO: checking for GST" >&5
45329echo $ECHO_N "checking for GST... $ECHO_C" >&6
ce756cb0 45330
3ecd9f92
MW
45331if test -n "$PKG_CONFIG"; then
45332 if test -n "$GST_CFLAGS"; then
45333 pkg_cv_GST_CFLAGS="$GST_CFLAGS"
45334 else
45335 if test -n "$PKG_CONFIG" && \
45336 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
45337 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
45338 ac_status=$?
45339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45340 (exit $ac_status); }; then
45341 pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
dae87f93 45342else
3ecd9f92
MW
45343 pkg_failed=yes
45344fi
45345 fi
45346else
45347 pkg_failed=untried
dae87f93 45348fi
dae87f93 45349if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
45350 if test -n "$GST_LIBS"; then
45351 pkg_cv_GST_LIBS="$GST_LIBS"
45352 else
45353 if test -n "$PKG_CONFIG" && \
45354 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
45355 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
45356 ac_status=$?
45357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45358 (exit $ac_status); }; then
45359 pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
dae87f93 45360else
3ecd9f92
MW
45361 pkg_failed=yes
45362fi
45363 fi
45364else
45365 pkg_failed=untried
dae87f93
RN
45366fi
45367
dae87f93 45368
2f6c5bb5 45369
3ecd9f92 45370if test $pkg_failed = yes; then
ce756cb0 45371
3ecd9f92
MW
45372if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45373 _pkg_short_errors_supported=yes
45374else
45375 _pkg_short_errors_supported=no
45376fi
45377 if test $_pkg_short_errors_supported = yes; then
45378 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
45379 else
45380 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
dae87f93 45381 fi
3ecd9f92
MW
45382 # Put the nasty error message in config.log where it belongs
45383 echo "$GST_PKG_ERRORS" >&5
dae87f93
RN
45384
45385
3ecd9f92
MW
45386 { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
45387echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
45388 GST_VERSION_MINOR=8
dae87f93 45389
ce756cb0 45390
3ecd9f92 45391elif test $pkg_failed = untried; then
dae87f93 45392
2f6c5bb5
VZ
45393 { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
45394echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
f10e38c4 45395 GST_VERSION_MINOR=8
dae87f93 45396
2f6c5bb5 45397
3ecd9f92
MW
45398else
45399 GST_CFLAGS=$pkg_cv_GST_CFLAGS
45400 GST_LIBS=$pkg_cv_GST_LIBS
45401 echo "$as_me:$LINENO: result: yes" >&5
45402echo "${ECHO_T}yes" >&6
45403
45404 wxUSE_GSTREAMER="yes"
45405 GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION"
dae87f93 45406
3ecd9f92 45407fi
2f6c5bb5
VZ
45408 else
45409 GST_VERSION_MINOR=8
f10e38c4 45410 fi
dae87f93 45411
2f6c5bb5
VZ
45412 if test $GST_VERSION_MINOR = "8"; then
45413 GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
dae87f93 45414
3ecd9f92
MW
45415pkg_failed=no
45416echo "$as_me:$LINENO: checking for GST" >&5
45417echo $ECHO_N "checking for GST... $ECHO_C" >&6
dae87f93 45418
3ecd9f92
MW
45419if test -n "$PKG_CONFIG"; then
45420 if test -n "$GST_CFLAGS"; then
45421 pkg_cv_GST_CFLAGS="$GST_CFLAGS"
45422 else
45423 if test -n "$PKG_CONFIG" && \
45424 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
45425 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
45426 ac_status=$?
45427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45428 (exit $ac_status); }; then
45429 pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
dae87f93 45430else
3ecd9f92
MW
45431 pkg_failed=yes
45432fi
45433 fi
45434else
45435 pkg_failed=untried
dae87f93 45436fi
f10e38c4 45437if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
45438 if test -n "$GST_LIBS"; then
45439 pkg_cv_GST_LIBS="$GST_LIBS"
45440 else
45441 if test -n "$PKG_CONFIG" && \
45442 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
45443 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
45444 ac_status=$?
45445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45446 (exit $ac_status); }; then
45447 pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
dae87f93 45448else
3ecd9f92
MW
45449 pkg_failed=yes
45450fi
45451 fi
45452else
45453 pkg_failed=untried
dae87f93
RN
45454fi
45455
ce756cb0 45456
2f6c5bb5 45457
3ecd9f92 45458if test $pkg_failed = yes; then
dae87f93 45459
3ecd9f92
MW
45460if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45461 _pkg_short_errors_supported=yes
45462else
45463 _pkg_short_errors_supported=no
45464fi
45465 if test $_pkg_short_errors_supported = yes; then
45466 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
45467 else
45468 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
dae87f93 45469 fi
3ecd9f92
MW
45470 # Put the nasty error message in config.log where it belongs
45471 echo "$GST_PKG_ERRORS" >&5
dae87f93
RN
45472
45473
3ecd9f92
MW
45474 { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
45475echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
ce756cb0 45476
3ecd9f92 45477elif test $pkg_failed = untried; then
ce756cb0 45478
2f6c5bb5
VZ
45479 { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
45480echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
ce756cb0 45481
3ecd9f92
MW
45482else
45483 GST_CFLAGS=$pkg_cv_GST_CFLAGS
45484 GST_LIBS=$pkg_cv_GST_LIBS
45485 echo "$as_me:$LINENO: result: yes" >&5
45486echo "${ECHO_T}yes" >&6
45487 wxUSE_GSTREAMER="yes"
45488fi
dae87f93 45489 fi
ce756cb0 45490
f10e38c4 45491
dae87f93 45492 if test "$wxUSE_GSTREAMER" = "yes"; then
c9a66001
VZ
45493 case "${host}" in
45494 *-*-solaris2* )
45495 if "$GCC" = yes; then
45496 GST_CFLAGS=`echo $GST_CFLAGS | sed 's/-mt//'`
45497 GST_LIBS=`echo $GST_LIBS | sed 's/-mt//'`
45498 fi
45499 esac
45500
45501 CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
45502 LIBS="$GST_LIBS $LIBS"
45503
dae87f93 45504 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
45505#define wxUSE_GSTREAMER 1
45506_ACEOF
45507
2f6c5bb5
VZ
45508 else
45509 USE_MEDIA=0
ce756cb0
RN
45510 fi
45511 fi
2f6c5bb5
VZ
45512
45513 if test $USE_MEDIA = 1; then
45514 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
45515 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
45516#define wxUSE_MEDIACTRL 1
45517_ACEOF
45518
2f6c5bb5 45519 fi
ce756cb0
RN
45520fi
45521
45522
a848cd7e
SC
45523if test "$cross_compiling" = "yes"; then
45524 OSINFO="\"$host\""
45525else
45526 OSINFO=`uname -s -r -m`
45527 OSINFO="\"$OSINFO\""
45528fi
45529
45530cat >>confdefs.h <<_ACEOF
45531#define WXWIN_OS_DESCRIPTION $OSINFO
45532_ACEOF
45533
45534
45535
45536if test "x$prefix" != "xNONE"; then
45537 wxPREFIX=$prefix
45538else
45539 wxPREFIX=$ac_default_prefix
45540fi
45541
45542cat >>confdefs.h <<_ACEOF
45543#define wxINSTALL_PREFIX "$wxPREFIX"
45544_ACEOF
45545
45546
a848cd7e
SC
45547
45548
45549CORE_BASE_LIBS="net base"
45550CORE_GUI_LIBS="adv core"
45551
45552if test "$wxUSE_XML" = "yes" ; then
45553 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
45554fi
45555if test "$wxUSE_ODBC" != "no" ; then
45556 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
45557 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
45558fi
45559if test "$wxUSE_HTML" = "yes" ; then
45560 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
45561fi
61639efb
VZ
45562if test "$wxUSE_DEBUGREPORT" = "yes" ; then
45563 CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
45564fi
9a8f0513
VS
45565if test "$wxUSE_XRC" = "yes" ; then
45566 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
45567fi
3f60522a
JS
45568if test "$wxUSE_AUI" = "yes" ; then
45569 CORE_GUI_LIBS="aui $CORE_GUI_LIBS"
45570fi
a848cd7e
SC
45571
45572if test "$wxUSE_GUI" != "yes"; then
45573 CORE_GUI_LIBS=""
45574fi
45575
45576
45577
45578
45579
5d7b7554
VZ
45580ac_ext=c
45581ac_cpp='$CPP $CPPFLAGS'
45582ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45583ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45584ac_compiler_gnu=$ac_cv_c_compiler_gnu
45585
a848cd7e
SC
45586
45587
a848cd7e 45588if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 45589 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
45590 if test "$USE_DARWIN" = 1; then
45591 LDFLAGS="$LDFLAGS -framework QuickTime"
45592 else
45593 LDFLAGS="$LDFLAGS -lQuickTimeLib"
45594 fi
07bea8f0 45595 fi
5dcf30a0 45596 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
45597 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
45598 else
45599 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 45600 fi
a848cd7e
SC
45601fi
45602if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 45603 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
45604 if test "$wxUSE_MEDIACTRL" = "yes"; then
45605 LDFLAGS="$LDFLAGS -framework QuickTime"
45606 fi
a848cd7e 45607fi
19b27e78
MW
45608if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
45609 LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
45610fi
a848cd7e 45611
a848cd7e
SC
45612LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
45613
a848cd7e
SC
45614if test "$wxUSE_GUI" = "yes"; then
45615
45616
8bce5cda
MW
45617 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
45618 dynamic erase event exec font image minimal mobile \
45619 mobile/wxedit mobile/styles propsize render \
9e39d889 45620 rotate shaped vscroll widgets"
a848cd7e
SC
45621
45622 if test "$wxUSE_MONOLITHIC" != "yes"; then
45623 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
45624 fi
0b78747f 45625 if test "$TOOLKIT" = "MSW"; then
8bce5cda
MW
45626 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
45627 if test "$wxUSE_UNIVERSAL" != "yes"; then
45628 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
45629 fi
45630 fi
45631 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
45632 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
0b78747f 45633 fi
a848cd7e
SC
45634else
45635 SAMPLES_SUBDIRS="console"
45636fi
45637
45638
48f625bc 45639if test "x$INTELCC" = "xyes" ; then
17a1ebd1
VZ
45640 CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
45641elif test "$GCC" = yes ; then
45642 CWARNINGS="-Wall -Wundef"
45643fi
45644
48f625bc 45645if test "x$INTELCXX" = "xyes" ; then
7f47faf4 45646 CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
17a1ebd1
VZ
45647elif test "$GXX" = yes ; then
45648 CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy"
6ebeb4c7 45649fi
a848cd7e 45650
a848cd7e 45651
5ff751d6
VZ
45652WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
45653WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
45654
45655
c92ad099 45656CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
bc6ee4ae 45657 -I\\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
c92ad099
VZ
45658 -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
45659 $CPPFLAGS `
5ff751d6 45660
8aeeb05c 45661C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
c92ad099 45662CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
9cbac6d1 45663CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $CXXWARNINGS $C_AND_CXX_FLAGS $CXXFLAGS `
5ff751d6
VZ
45664
45665WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
45666
a848cd7e 45667
95986553
DE
45668if test "x$MWCC" = "xyes"; then
45669
45670 CC="$CC -cwd source -I-"
45671 CXX="$CXX -cwd source -I-"
45672fi
45673
a848cd7e 45674
0c3c69fc 45675LIBS=`echo $LIBS`
a848cd7e
SC
45676EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
45677EXTRALIBS_XML="$EXPAT_LINK"
45678EXTRALIBS_HTML="$MSPACK_LINK"
45679EXTRALIBS_ODBC="$ODBC_LINK"
45680if test "$wxUSE_GUI" = "yes"; then
2b850ae1 45681 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
45682fi
45683if test "$wxUSE_OPENGL" = "yes"; then
45684 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
45685fi
45686
8aeeb05c 45687LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
a848cd7e 45688
5ff751d6 45689WXCONFIG_LIBS="$LIBS"
a848cd7e
SC
45690
45691if test "$wxUSE_REGEX" = "builtin" ; then
74802184 45692 wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
a848cd7e
SC
45693fi
45694if test "$wxUSE_EXPAT" = "builtin" ; then
74802184 45695 wxconfig_3rdparty="expat $wxconfig_3rdparty"
a848cd7e
SC
45696fi
45697if test "$wxUSE_ODBC" = "builtin" ; then
74802184 45698 wxconfig_3rdparty="odbc $wxconfig_3rdparty"
a848cd7e
SC
45699fi
45700if test "$wxUSE_LIBTIFF" = "builtin" ; then
74802184 45701 wxconfig_3rdparty="tiff $wxconfig_3rdparty"
a848cd7e
SC
45702fi
45703if test "$wxUSE_LIBJPEG" = "builtin" ; then
74802184 45704 wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
a848cd7e
SC
45705fi
45706if test "$wxUSE_LIBPNG" = "builtin" ; then
74802184 45707 wxconfig_3rdparty="png $wxconfig_3rdparty"
a848cd7e
SC
45708fi
45709if test "$wxUSE_ZLIB" = "builtin" ; then
74802184 45710 wxconfig_3rdparty="zlib $wxconfig_3rdparty"
a848cd7e
SC
45711fi
45712
45713for i in $wxconfig_3rdparty ; do
5ff751d6 45714 WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
a848cd7e
SC
45715done
45716
45717
45718if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
45719 WXUNIV=1
45720else
45721 WXUNIV=0
45722fi
45723
45724
45725
45726
45727
45728
45729
45730
45731
45732if test $wxUSE_MONOLITHIC = "yes" ; then
45733 MONOLITHIC=1
45734else
45735 MONOLITHIC=0
45736fi
45737
45738if test $wxUSE_PLUGINS = "yes" ; then
45739 USE_PLUGINS=1
45740else
45741 USE_PLUGINS=0
45742fi
45743
45744if test $wxUSE_ODBC != "no" ; then
45745 USE_ODBC=1
45746else
45747 USE_ODBC=0
45748fi
45749
16358932
VZ
45750if test "$wxUSE_DEBUGREPORT" = "yes" ; then
45751 USE_QA=1
45752else
45753 USE_QA=0
45754fi
45755
a848cd7e
SC
45756if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
45757 OFFICIAL_BUILD=1
45758else
45759 OFFICIAL_BUILD=0
45760fi
45761
45762
45763
45764
45765
45766
45767
45768
45769
45770
45771
45772
45773
45774
45775
45776
45777
45778
45779
ceec2216 45780
d1c38808 45781
3565d135 45782
2b850ae1 45783
a848cd7e
SC
45784
45785
45786TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
45787
45788
45789
45790
45791
45792
45793
45794
4d4ff94c
VZ
45795case "$TOOLKIT" in
45796 GTK)
c2e9ada4 45797 TOOLKIT_DESC="GTK+"
4d4ff94c 45798 if test "$WXGTK20" = 1; then
c2e9ada4
VZ
45799 TOOLKIT_DESC="$TOOLKIT_DESC 2"
45800 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
45801 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomeprint";
45802 fi
45803 if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
45804 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomevfs"
45805 fi
45806 if test "$wxUSE_LIBHILDON" = "yes"; then
45807 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
45808 fi
45809
45810 if test "$TOOLKIT_EXTRA" != ""; then
45811 TOOLKIT_DESC="$TOOLKIT_DESC with support for `echo $TOOLKIT_EXTRA | tr -s ' '`"
45812 fi
4d4ff94c 45813 fi
9a8f0513 45814 ;;
4d4ff94c 45815
c2e9ada4
VZ
45816 ?*)
45817 TOOLKIT_DESC=$TOOLKIT_LOWERCASE
45818 ;;
45819
4d4ff94c 45820 *)
c2e9ada4 45821 TOOLKIT_DESC="base only"
9a8f0513 45822 ;;
4d4ff94c 45823esac
a848cd7e 45824
fb00f58d
JS
45825if test "$wxUSE_WINE" = "yes"; then
45826 BAKEFILE_FORCE_PLATFORM=win32
45827fi
45828
7afc46ab 45829if test "$wxUSE_MAC" = 1 ; then
95768535
MW
45830 if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then
45831 if test "x$wxUSE_UNIVERSAL_BINARY" == xyes; then
45832 OSX_UNIV_OPTS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk"
45833 else
45834 OSX_UNIV_OPTS=${wxUSE_UNIVERSAL_BINARY:+"-isysroot '$wxUSE_UNIVERSAL_BINARY'"}
45835 fi
45836 OSX_UNIV_OPTS="$OSX_UNIV_OPTS -arch ppc -arch i386"
45837 CXXFLAGS="$OSX_UNIV_OPTS $CXXFLAGS"
45838 CFLAGS="$OSX_UNIV_OPTS $CFLAGS"
45839 LDFLAGS="$OSX_UNIV_OPTS $LDFLAGS"
7afc46ab
KO
45840 bk_use_pch=no
45841 fi
45842 # TODO: where do we add "-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk" for libtool (static builds only)?
45843 # The makefile currently uses AR and RANLIB, which libtool apparently supercedes.
7afc46ab
KO
45844fi
45845
9a8f0513 45846
1e9e8aba
DE
45847
45848
a848cd7e 45849 if test "x$BAKEFILE_HOST" = "x"; then
f10e38c4
VZ
45850 if test "x${host}" = "x" ; then
45851 { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
45852echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
45853 { (exit 1); exit 1; }; }
45854 fi
45855
a848cd7e
SC
45856 BAKEFILE_HOST="${host}"
45857 fi
45858
45859 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
45860
45861 if test -n "$ac_tool_prefix"; then
45862 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
45863set dummy ${ac_tool_prefix}ranlib; ac_word=$2
45864echo "$as_me:$LINENO: checking for $ac_word" >&5
45865echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45866if test "${ac_cv_prog_RANLIB+set}" = set; then
45867 echo $ECHO_N "(cached) $ECHO_C" >&6
45868else
45869 if test -n "$RANLIB"; then
45870 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
45871else
45872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45873for as_dir in $PATH
45874do
45875 IFS=$as_save_IFS
45876 test -z "$as_dir" && as_dir=.
45877 for ac_exec_ext in '' $ac_executable_extensions; do
45878 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45879 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
45880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45881 break 2
45882 fi
45883done
45884done
45885
45886fi
45887fi
45888RANLIB=$ac_cv_prog_RANLIB
45889if test -n "$RANLIB"; then
45890 echo "$as_me:$LINENO: result: $RANLIB" >&5
45891echo "${ECHO_T}$RANLIB" >&6
45892else
45893 echo "$as_me:$LINENO: result: no" >&5
45894echo "${ECHO_T}no" >&6
45895fi
45896
45897fi
45898if test -z "$ac_cv_prog_RANLIB"; then
45899 ac_ct_RANLIB=$RANLIB
45900 # Extract the first word of "ranlib", so it can be a program name with args.
45901set dummy ranlib; ac_word=$2
45902echo "$as_me:$LINENO: checking for $ac_word" >&5
45903echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45904if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
45905 echo $ECHO_N "(cached) $ECHO_C" >&6
45906else
45907 if test -n "$ac_ct_RANLIB"; then
45908 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
45909else
45910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45911for as_dir in $PATH
45912do
45913 IFS=$as_save_IFS
45914 test -z "$as_dir" && as_dir=.
45915 for ac_exec_ext in '' $ac_executable_extensions; do
45916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45917 ac_cv_prog_ac_ct_RANLIB="ranlib"
45918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45919 break 2
45920 fi
45921done
45922done
45923
45924 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
45925fi
45926fi
45927ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
45928if test -n "$ac_ct_RANLIB"; then
45929 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
45930echo "${ECHO_T}$ac_ct_RANLIB" >&6
45931else
45932 echo "$as_me:$LINENO: result: no" >&5
45933echo "${ECHO_T}no" >&6
45934fi
45935
45936 RANLIB=$ac_ct_RANLIB
45937else
45938 RANLIB="$ac_cv_prog_RANLIB"
45939fi
45940
45941 # Find a good install program. We prefer a C program (faster),
45942# so one script is as good as another. But avoid the broken or
45943# incompatible versions:
45944# SysV /etc/install, /usr/sbin/install
45945# SunOS /usr/etc/install
45946# IRIX /sbin/install
45947# AIX /bin/install
45948# AmigaOS /C/install, which installs bootblocks on floppy discs
45949# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
45950# AFS /usr/afsws/bin/install, which mishandles nonexistent args
45951# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 45952# OS/2's system install, which has a completely different semantic
a848cd7e
SC
45953# ./install, which can be erroneously created by make from ./install.sh.
45954echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
45955echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
45956if test -z "$INSTALL"; then
45957if test "${ac_cv_path_install+set}" = set; then
45958 echo $ECHO_N "(cached) $ECHO_C" >&6
45959else
45960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45961for as_dir in $PATH
45962do
45963 IFS=$as_save_IFS
45964 test -z "$as_dir" && as_dir=.
45965 # Account for people who put trailing slashes in PATH elements.
45966case $as_dir/ in
45967 ./ | .// | /cC/* | \
45968 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 45969 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
45970 /usr/ucb/* ) ;;
45971 *)
45972 # OSF1 and SCO ODT 3.0 have their own names for install.
45973 # Don't use installbsd from OSF since it installs stuff as root
45974 # by default.
45975 for ac_prog in ginstall scoinst install; do
45976 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
45977 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
45978 if test $ac_prog = install &&
45979 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
45980 # AIX install. It has an incompatible calling convention.
45981 :
45982 elif test $ac_prog = install &&
45983 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
45984 # program-specific install script used by HP pwplus--don't use.
45985 :
45986 else
45987 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
45988 break 3
45989 fi
45990 fi
a848cd7e
SC
45991 done
45992 done
45993 ;;
45994esac
45995done
45996
45997
45998fi
45999 if test "${ac_cv_path_install+set}" = set; then
46000 INSTALL=$ac_cv_path_install
46001 else
46002 # As a last resort, use the slow shell script. We don't cache a
46003 # path for INSTALL within a source directory, because that will
46004 # break other packages using the cache if that directory is
46005 # removed, or if the path is relative.
46006 INSTALL=$ac_install_sh
46007 fi
46008fi
46009echo "$as_me:$LINENO: result: $INSTALL" >&5
46010echo "${ECHO_T}$INSTALL" >&6
46011
46012# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
46013# It thinks the first close brace ends the variable substitution.
46014test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
46015
46016test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
46017
46018test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
46019
46020 echo "$as_me:$LINENO: checking whether ln -s works" >&5
46021echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
46022LN_S=$as_ln_s
46023if test "$LN_S" = "ln -s"; then
46024 echo "$as_me:$LINENO: result: yes" >&5
46025echo "${ECHO_T}yes" >&6
46026else
46027 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
46028echo "${ECHO_T}no, using $LN_S" >&6
46029fi
46030
46031
46032 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
46033echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 46034set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
46035if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
46036 echo $ECHO_N "(cached) $ECHO_C" >&6
46037else
46038 cat >conftest.make <<\_ACEOF
46039all:
46040 @echo 'ac_maketemp="$(MAKE)"'
46041_ACEOF
46042# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
46043eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
46044if test -n "$ac_maketemp"; then
46045 eval ac_cv_prog_make_${ac_make}_set=yes
46046else
46047 eval ac_cv_prog_make_${ac_make}_set=no
46048fi
46049rm -f conftest.make
46050fi
46051if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
46052 echo "$as_me:$LINENO: result: yes" >&5
46053echo "${ECHO_T}yes" >&6
46054 SET_MAKE=
46055else
46056 echo "$as_me:$LINENO: result: no" >&5
46057echo "${ECHO_T}no" >&6
46058 SET_MAKE="MAKE=${MAKE-make}"
46059fi
46060
46061
46062
46063 if test -n "$ac_tool_prefix"; then
46064 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
46065set dummy ${ac_tool_prefix}ar; ac_word=$2
46066echo "$as_me:$LINENO: checking for $ac_word" >&5
46067echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46068if test "${ac_cv_prog_AR+set}" = set; then
46069 echo $ECHO_N "(cached) $ECHO_C" >&6
46070else
46071 if test -n "$AR"; then
46072 ac_cv_prog_AR="$AR" # Let the user override the test.
46073else
46074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46075for as_dir in $PATH
46076do
46077 IFS=$as_save_IFS
46078 test -z "$as_dir" && as_dir=.
46079 for ac_exec_ext in '' $ac_executable_extensions; do
46080 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46081 ac_cv_prog_AR="${ac_tool_prefix}ar"
46082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46083 break 2
46084 fi
46085done
46086done
46087
46088fi
46089fi
46090AR=$ac_cv_prog_AR
46091if test -n "$AR"; then
46092 echo "$as_me:$LINENO: result: $AR" >&5
46093echo "${ECHO_T}$AR" >&6
46094else
46095 echo "$as_me:$LINENO: result: no" >&5
46096echo "${ECHO_T}no" >&6
46097fi
46098
46099fi
46100if test -z "$ac_cv_prog_AR"; then
46101 ac_ct_AR=$AR
46102 # Extract the first word of "ar", so it can be a program name with args.
46103set dummy ar; ac_word=$2
46104echo "$as_me:$LINENO: checking for $ac_word" >&5
46105echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46106if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
46107 echo $ECHO_N "(cached) $ECHO_C" >&6
46108else
46109 if test -n "$ac_ct_AR"; then
46110 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
46111else
46112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46113for as_dir in $PATH
46114do
46115 IFS=$as_save_IFS
46116 test -z "$as_dir" && as_dir=.
46117 for ac_exec_ext in '' $ac_executable_extensions; do
46118 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46119 ac_cv_prog_ac_ct_AR="ar"
46120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46121 break 2
46122 fi
46123done
46124done
46125
46126 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
46127fi
46128fi
46129ac_ct_AR=$ac_cv_prog_ac_ct_AR
46130if test -n "$ac_ct_AR"; then
46131 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
46132echo "${ECHO_T}$ac_ct_AR" >&6
46133else
46134 echo "$as_me:$LINENO: result: no" >&5
46135echo "${ECHO_T}no" >&6
46136fi
46137
46138 AR=$ac_ct_AR
46139else
46140 AR="$ac_cv_prog_AR"
46141fi
46142
46143 if test -n "$ac_tool_prefix"; then
46144 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
46145set dummy ${ac_tool_prefix}strip; ac_word=$2
46146echo "$as_me:$LINENO: checking for $ac_word" >&5
46147echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46148if test "${ac_cv_prog_STRIP+set}" = set; then
46149 echo $ECHO_N "(cached) $ECHO_C" >&6
46150else
46151 if test -n "$STRIP"; then
46152 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
46153else
46154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46155for as_dir in $PATH
46156do
46157 IFS=$as_save_IFS
46158 test -z "$as_dir" && as_dir=.
46159 for ac_exec_ext in '' $ac_executable_extensions; do
46160 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46161 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
46162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46163 break 2
46164 fi
46165done
46166done
46167
46168fi
46169fi
46170STRIP=$ac_cv_prog_STRIP
46171if test -n "$STRIP"; then
46172 echo "$as_me:$LINENO: result: $STRIP" >&5
46173echo "${ECHO_T}$STRIP" >&6
46174else
46175 echo "$as_me:$LINENO: result: no" >&5
46176echo "${ECHO_T}no" >&6
46177fi
46178
46179fi
46180if test -z "$ac_cv_prog_STRIP"; then
46181 ac_ct_STRIP=$STRIP
46182 # Extract the first word of "strip", so it can be a program name with args.
46183set dummy strip; ac_word=$2
46184echo "$as_me:$LINENO: checking for $ac_word" >&5
46185echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46186if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
46187 echo $ECHO_N "(cached) $ECHO_C" >&6
46188else
46189 if test -n "$ac_ct_STRIP"; then
46190 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
46191else
46192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46193for as_dir in $PATH
46194do
46195 IFS=$as_save_IFS
46196 test -z "$as_dir" && as_dir=.
46197 for ac_exec_ext in '' $ac_executable_extensions; do
46198 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46199 ac_cv_prog_ac_ct_STRIP="strip"
46200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46201 break 2
46202 fi
46203done
46204done
46205
46206 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
46207fi
46208fi
46209ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
46210if test -n "$ac_ct_STRIP"; then
46211 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
46212echo "${ECHO_T}$ac_ct_STRIP" >&6
46213else
46214 echo "$as_me:$LINENO: result: no" >&5
46215echo "${ECHO_T}no" >&6
46216fi
46217
46218 STRIP=$ac_ct_STRIP
46219else
46220 STRIP="$ac_cv_prog_STRIP"
46221fi
46222
46223 if test -n "$ac_tool_prefix"; then
46224 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
46225set dummy ${ac_tool_prefix}nm; ac_word=$2
46226echo "$as_me:$LINENO: checking for $ac_word" >&5
46227echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46228if test "${ac_cv_prog_NM+set}" = set; then
46229 echo $ECHO_N "(cached) $ECHO_C" >&6
46230else
46231 if test -n "$NM"; then
46232 ac_cv_prog_NM="$NM" # Let the user override the test.
46233else
46234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46235for as_dir in $PATH
46236do
46237 IFS=$as_save_IFS
46238 test -z "$as_dir" && as_dir=.
46239 for ac_exec_ext in '' $ac_executable_extensions; do
46240 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46241 ac_cv_prog_NM="${ac_tool_prefix}nm"
46242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46243 break 2
46244 fi
46245done
46246done
46247
46248fi
46249fi
46250NM=$ac_cv_prog_NM
46251if test -n "$NM"; then
46252 echo "$as_me:$LINENO: result: $NM" >&5
46253echo "${ECHO_T}$NM" >&6
46254else
46255 echo "$as_me:$LINENO: result: no" >&5
46256echo "${ECHO_T}no" >&6
46257fi
46258
46259fi
46260if test -z "$ac_cv_prog_NM"; then
46261 ac_ct_NM=$NM
46262 # Extract the first word of "nm", so it can be a program name with args.
46263set dummy nm; ac_word=$2
46264echo "$as_me:$LINENO: checking for $ac_word" >&5
46265echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46266if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
46267 echo $ECHO_N "(cached) $ECHO_C" >&6
46268else
46269 if test -n "$ac_ct_NM"; then
46270 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
46271else
46272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46273for as_dir in $PATH
46274do
46275 IFS=$as_save_IFS
46276 test -z "$as_dir" && as_dir=.
46277 for ac_exec_ext in '' $ac_executable_extensions; do
46278 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46279 ac_cv_prog_ac_ct_NM="nm"
46280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46281 break 2
46282 fi
46283done
46284done
46285
46286 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
46287fi
46288fi
46289ac_ct_NM=$ac_cv_prog_ac_ct_NM
46290if test -n "$ac_ct_NM"; then
46291 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
46292echo "${ECHO_T}$ac_ct_NM" >&6
46293else
46294 echo "$as_me:$LINENO: result: no" >&5
46295echo "${ECHO_T}no" >&6
46296fi
46297
46298 NM=$ac_ct_NM
46299else
46300 NM="$ac_cv_prog_NM"
46301fi
46302
46303
46304 case ${BAKEFILE_HOST} in
46305 *-hp-hpux* )
1e9e8aba 46306 INSTALL_DIR="mkdir -p"
a848cd7e
SC
46307 ;;
46308 *) INSTALL_DIR="$INSTALL -d"
46309 ;;
46310 esac
46311
46312
46313 LDFLAGS_GUI=
46314 case ${BAKEFILE_HOST} in
46315 *-*-cygwin* | *-*-mingw32* )
46316 LDFLAGS_GUI="-mwindows"
46317 esac
46318
46319
46320 fi
46321
46322 echo "$as_me:$LINENO: checking if make is GNU make" >&5
46323echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
46324if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
46325 echo $ECHO_N "(cached) $ECHO_C" >&6
46326else
46327
46328 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
46329 egrep -s GNU > /dev/null); then
46330 bakefile_cv_prog_makeisgnu="yes"
46331 else
46332 bakefile_cv_prog_makeisgnu="no"
46333 fi
46334
46335fi
46336echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
46337echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
46338
46339 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
46340 IF_GNU_MAKE=""
46341 else
46342 IF_GNU_MAKE="#"
46343 fi
46344
46345
46346
46347 PLATFORM_UNIX=0
46348 PLATFORM_WIN32=0
46349 PLATFORM_MSDOS=0
46350 PLATFORM_MAC=0
1e9e8aba 46351 PLATFORM_MACOS=0
a848cd7e
SC
46352 PLATFORM_MACOSX=0
46353 PLATFORM_OS2=0
1e9e8aba 46354 PLATFORM_BEOS=0
a848cd7e
SC
46355
46356 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
46357 case "${BAKEFILE_HOST}" in
810b94f0 46358 *-*-mingw32* )
a848cd7e
SC
46359 PLATFORM_WIN32=1
46360 ;;
46361 *-pc-msdosdjgpp )
46362 PLATFORM_MSDOS=1
46363 ;;
46364 *-pc-os2_emx | *-pc-os2-emx )
46365 PLATFORM_OS2=1
46366 ;;
47bd5406 46367 *-*-darwin* )
a848cd7e
SC
46368 PLATFORM_MAC=1
46369 PLATFORM_MACOSX=1
46370 ;;
1e9e8aba
DE
46371 *-*-beos* )
46372 PLATFORM_BEOS=1
46373 ;;
46374 powerpc-apple-macos* )
46375 PLATFORM_MAC=1
46376 PLATFORM_MACOS=1
46377 ;;
a848cd7e
SC
46378 * )
46379 PLATFORM_UNIX=1
46380 ;;
46381 esac
46382 else
46383 case "$BAKEFILE_FORCE_PLATFORM" in
46384 win32 )
46385 PLATFORM_WIN32=1
46386 ;;
46387 msdos )
46388 PLATFORM_MSDOS=1
46389 ;;
46390 os2 )
46391 PLATFORM_OS2=1
46392 ;;
46393 darwin )
46394 PLATFORM_MAC=1
46395 PLATFORM_MACOSX=1
46396 ;;
46397 unix )
46398 PLATFORM_UNIX=1
46399 ;;
1e9e8aba
DE
46400 beos )
46401 PLATFORM_BEOS=1
46402 ;;
a848cd7e
SC
46403 * )
46404 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
46405echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
46406 { (exit 1); exit 1; }; }
46407 ;;
46408 esac
46409 fi
46410
46411
46412
46413
46414
46415
46416
46417
46418
1e9e8aba
DE
46419
46420
a848cd7e
SC
46421 # Check whether --enable-omf or --disable-omf was given.
46422if test "${enable_omf+set}" = set; then
46423 enableval="$enable_omf"
46424 bk_os2_use_omf="$enableval"
46425fi;
46426
46427 case "${BAKEFILE_HOST}" in
46428 *-*-darwin* )
47bd5406
VZ
46429 if test "x$GCC" = "xyes"; then
46430 CFLAGS="$CFLAGS -fno-common"
46431 CXXFLAGS="$CXXFLAGS -fno-common"
46432 fi
46433 if test "x$XLCC" = "xyes"; then
46434 CFLAGS="$CFLAGS -qnocommon"
46435 CXXFLAGS="$CXXFLAGS -qnocommon"
46436 fi
a848cd7e
SC
46437 ;;
46438
46439 *-pc-os2_emx | *-pc-os2-emx )
46440 if test "x$bk_os2_use_omf" = "xyes" ; then
46441 AR=emxomfar
46442 RANLIB=:
46443 LDFLAGS="-Zomf $LDFLAGS"
46444 CFLAGS="-Zomf $CFLAGS"
46445 CXXFLAGS="-Zomf $CXXFLAGS"
46446 OS2_LIBEXT="lib"
46447 else
46448 OS2_LIBEXT="a"
46449 fi
46450 ;;
1e9e8aba
DE
46451
46452 i*86-*-beos* )
46453 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
46454 ;;
a848cd7e
SC
46455 esac
46456
46457
46458 SO_SUFFIX="so"
46459 SO_SUFFIX_MODULE="so"
46460 EXEEXT=""
46461 LIBPREFIX="lib"
46462 LIBEXT=".a"
46463 DLLPREFIX="lib"
46464 DLLPREFIX_MODULE=""
46465 DLLIMP_SUFFIX=""
810b94f0 46466 dlldir="$libdir"
a848cd7e
SC
46467
46468 case "${BAKEFILE_HOST}" in
46469 *-hp-hpux* )
46470 SO_SUFFIX="sl"
46471 SO_SUFFIX_MODULE="sl"
46472 ;;
46473 *-*-aix* )
46474 SO_SUFFIX="a"
46475 SO_SUFFIX_MODULE="a"
46476 ;;
810b94f0
MW
46477 *-*-cygwin* )
46478 SO_SUFFIX="dll"
46479 SO_SUFFIX_MODULE="dll"
46480 DLLIMP_SUFFIX="dll.a"
46481 EXEEXT=".exe"
46482 DLLPREFIX="cyg"
46483 dlldir="$bindir"
46484 ;;
46485 *-*-mingw32* )
a848cd7e
SC
46486 SO_SUFFIX="dll"
46487 SO_SUFFIX_MODULE="dll"
46488 DLLIMP_SUFFIX="dll.a"
46489 EXEEXT=".exe"
46490 DLLPREFIX=""
810b94f0 46491 dlldir="$bindir"
a848cd7e
SC
46492 ;;
46493 *-pc-msdosdjgpp )
46494 EXEEXT=".exe"
46495 DLLPREFIX=""
810b94f0 46496 dlldir="$bindir"
a848cd7e
SC
46497 ;;
46498 *-pc-os2_emx | *-pc-os2-emx )
46499 SO_SUFFIX="dll"
46500 SO_SUFFIX_MODULE="dll"
46501 DLLIMP_SUFFIX=$OS2_LIBEXT
46502 EXEEXT=".exe"
46503 DLLPREFIX=""
46504 LIBPREFIX=""
46505 LIBEXT=".$OS2_LIBEXT"
810b94f0 46506 dlldir="$bindir"
a848cd7e 46507 ;;
47bd5406 46508 *-*-darwin* )
a848cd7e
SC
46509 SO_SUFFIX="dylib"
46510 SO_SUFFIX_MODULE="bundle"
46511 ;;
46512 esac
46513
46514 if test "x$DLLIMP_SUFFIX" = "x" ; then
46515 DLLIMP_SUFFIX="$SO_SUFFIX"
46516 fi
46517
46518
46519
46520
46521
46522
46523
46524
46525
46526
46527
810b94f0 46528
1e9e8aba
DE
46529 PIC_FLAG=""
46530 if test "x$GCC" = "xyes"; then
a848cd7e
SC
46531 PIC_FLAG="-fPIC"
46532 fi
46533
1e9e8aba
DE
46534 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
46535 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
810b94f0 46536 WINDOWS_IMPLIB=0
1e9e8aba 46537
a848cd7e
SC
46538 case "${BAKEFILE_HOST}" in
46539 *-hp-hpux* )
1e9e8aba 46540 if test "x$GCC" != "xyes"; then
a848cd7e
SC
46541 LDFLAGS="$LDFLAGS -L/usr/lib"
46542
46543 SHARED_LD_CC="${CC} -b -o"
46544 SHARED_LD_CXX="${CXX} -b -o"
46545 PIC_FLAG="+Z"
46546 fi
46547 ;;
46548
46549 *-*-linux* )
46550 if test "x$GCC" != "xyes"; then
46551 echo "$as_me:$LINENO: checking for Intel compiler" >&5
46552echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
46553if test "${bakefile_cv_prog_icc+set}" = set; then
46554 echo $ECHO_N "(cached) $ECHO_C" >&6
46555else
46556
46557 cat >conftest.$ac_ext <<_ACEOF
46558/* confdefs.h. */
46559_ACEOF
46560cat confdefs.h >>conftest.$ac_ext
46561cat >>conftest.$ac_ext <<_ACEOF
46562/* end confdefs.h. */
46563
46564int
46565main ()
46566{
46567
46568 #ifndef __INTEL_COMPILER
e5efa97e 46569 This is not ICC
a848cd7e
SC
46570 #endif
46571
46572 ;
46573 return 0;
46574}
46575_ACEOF
46576rm -f conftest.$ac_objext
46577if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 46578 (eval $ac_compile) 2>conftest.er1
a848cd7e 46579 ac_status=$?
ac1cb8d3
VS
46580 grep -v '^ *+' conftest.er1 >conftest.err
46581 rm -f conftest.er1
46582 cat conftest.err >&5
a848cd7e
SC
46583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46584 (exit $ac_status); } &&
c9a66001 46585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
46586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46587 (eval $ac_try) 2>&5
46588 ac_status=$?
46589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46590 (exit $ac_status); }; } &&
46591 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
46592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46593 (eval $ac_try) 2>&5
46594 ac_status=$?
46595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46596 (exit $ac_status); }; }; then
46597 bakefile_cv_prog_icc=yes
46598else
46599 echo "$as_me: failed program was:" >&5
46600sed 's/^/| /' conftest.$ac_ext >&5
46601
46602bakefile_cv_prog_icc=no
46603
46604fi
ac1cb8d3 46605rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
46606
46607fi
46608echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
46609echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
46610 if test "$bakefile_cv_prog_icc" = "yes"; then
46611 PIC_FLAG="-KPIC"
46612 fi
46613 fi
46614 ;;
46615
46616 *-*-solaris2* )
46617 if test "x$GCC" != xyes ; then
46618 SHARED_LD_CC="${CC} -G -o"
46619 SHARED_LD_CXX="${CXX} -G -o"
46620 PIC_FLAG="-KPIC"
46621 fi
46622 ;;
46623
46624 *-*-darwin* )
46625
473276a9
VS
46626D='$'
46627cat <<EOF >shared-ld-sh
a848cd7e
SC
46628#!/bin/sh
46629#-----------------------------------------------------------------------------
46630#-- Name: distrib/mac/shared-ld-sh
46631#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
46632#-- Author: Gilles Depeyrot
46633#-- Copyright: (c) 2002 Gilles Depeyrot
46634#-- Licence: any use permitted
46635#-----------------------------------------------------------------------------
46636
46637verbose=0
46638args=""
46639objects=""
46640linking_flag="-dynamiclib"
810b94f0 46641ldargs="-r -keep_private_externs -nostdlib"
a848cd7e 46642
473276a9
VS
46643while test ${D}# -gt 0; do
46644 case ${D}1 in
a848cd7e
SC
46645
46646 -v)
46647 verbose=1
46648 ;;
46649
46650 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
46651 # collect these options and values
473276a9 46652 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
46653 shift
46654 ;;
46655
810b94f0
MW
46656 -s|-Wl,*)
46657 # collect these load args
46658 ldargs="${D}{ldargs} ${D}1"
2113bc77 46659 ;;
810b94f0
MW
46660
46661 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
a848cd7e 46662 # collect these options
473276a9 46663 args="${D}{args} ${D}1"
a848cd7e
SC
46664 ;;
46665
46666 -dynamiclib|-bundle)
473276a9 46667 linking_flag="${D}1"
a848cd7e
SC
46668 ;;
46669
46670 -*)
473276a9 46671 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
46672 exit 1
46673 ;;
46674
46675 *.o | *.a | *.dylib)
46676 # collect object files
473276a9 46677 objects="${D}{objects} ${D}1"
a848cd7e
SC
46678 ;;
46679
46680 *)
473276a9 46681 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
46682 exit 1
46683 ;;
46684
46685 esac
46686 shift
46687done
46688
810b94f0
MW
46689status=0
46690
a848cd7e
SC
46691#
46692# Link one module containing all the others
46693#
473276a9 46694if test ${D}{verbose} = 1; then
810b94f0 46695 echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
a848cd7e 46696fi
810b94f0 46697c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
473276a9 46698status=${D}?
a848cd7e
SC
46699
46700#
810b94f0
MW
46701# Link the shared library from the single module created, but only if the
46702# previous command didn't fail:
a848cd7e 46703#
810b94f0
MW
46704if test ${D}{status} = 0; then
46705 if test ${D}{verbose} = 1; then
46706 echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
46707 fi
46708 c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
46709 status=${D}?
a848cd7e
SC
46710fi
46711
46712#
46713# Remove intermediate module
46714#
473276a9 46715rm -f master.${D}${D}.o
a848cd7e 46716
810b94f0 46717exit ${D}status
a848cd7e 46718EOF
473276a9 46719
583d6b4b
VZ
46720 chmod +x shared-ld-sh
46721
46722 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
46723 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
46724
46725
46726 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
46727echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
46728if test "${bakefile_cv_gcc31+set}" = set; then
46729 echo $ECHO_N "(cached) $ECHO_C" >&6
46730else
46731
46732 cat >conftest.$ac_ext <<_ACEOF
46733/* confdefs.h. */
46734_ACEOF
46735cat confdefs.h >>conftest.$ac_ext
46736cat >>conftest.$ac_ext <<_ACEOF
46737/* end confdefs.h. */
46738
46739int
46740main ()
46741{
46742
46743 #if (__GNUC__ < 3) || \
46744 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
e5efa97e 46745 This is old gcc
583d6b4b 46746 #endif
a848cd7e 46747
583d6b4b
VZ
46748 ;
46749 return 0;
46750}
46751_ACEOF
46752rm -f conftest.$ac_objext
46753if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46754 (eval $ac_compile) 2>conftest.er1
46755 ac_status=$?
46756 grep -v '^ *+' conftest.er1 >conftest.err
46757 rm -f conftest.er1
46758 cat conftest.err >&5
46759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46760 (exit $ac_status); } &&
c9a66001 46761 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
583d6b4b
VZ
46762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46763 (eval $ac_try) 2>&5
46764 ac_status=$?
46765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46766 (exit $ac_status); }; } &&
46767 { ac_try='test -s conftest.$ac_objext'
46768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46769 (eval $ac_try) 2>&5
46770 ac_status=$?
46771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46772 (exit $ac_status); }; }; then
46773
46774 bakefile_cv_gcc31=yes
46775
46776else
46777 echo "$as_me: failed program was:" >&5
46778sed 's/^/| /' conftest.$ac_ext >&5
46779
46780
46781 bakefile_cv_gcc31=no
46782
46783
46784fi
46785rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46786
46787fi
46788echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
46789echo "${ECHO_T}$bakefile_cv_gcc31" >&6
46790 if test "$bakefile_cv_gcc31" = "no"; then
a848cd7e 46791 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
a848cd7e 46792 SHARED_LD_CXX="$SHARED_LD_CC"
a848cd7e
SC
46793 else
46794 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e 46795 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e
SC
46796 fi
46797
47bd5406
VZ
46798 if test "x$GCC" == "xyes"; then
46799 PIC_FLAG="-dynamic -fPIC"
46800 fi
46801 if test "x$XLCC" = "xyes"; then
46802 PIC_FLAG="-dynamic -DPIC"
46803 fi
a848cd7e
SC
46804 ;;
46805
46806 *-*-aix* )
f6b50c59 46807 if test "x$GCC" = "xyes"; then
583d6b4b 46808 PIC_FLAG=""
f6b50c59 46809
583d6b4b
VZ
46810 case "${BAKEFILE_HOST}" in
46811 *-*-aix5* )
46812 LD_EXPFULL="-Wl,-bexpfull"
46813 ;;
46814 esac
f6b50c59 46815
583d6b4b
VZ
46816 SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
46817 SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
46818 else
46819 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
a848cd7e
SC
46820set dummy makeC++SharedLib; ac_word=$2
46821echo "$as_me:$LINENO: checking for $ac_word" >&5
46822echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46823if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
46824 echo $ECHO_N "(cached) $ECHO_C" >&6
46825else
46826 if test -n "$AIX_CXX_LD"; then
46827 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
46828else
46829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46830for as_dir in $PATH
46831do
46832 IFS=$as_save_IFS
46833 test -z "$as_dir" && as_dir=.
46834 for ac_exec_ext in '' $ac_executable_extensions; do
46835 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46836 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
46837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46838 break 2
46839 fi
46840done
46841done
46842
46843 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
46844fi
46845fi
46846AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
46847if test -n "$AIX_CXX_LD"; then
46848 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
46849echo "${ECHO_T}$AIX_CXX_LD" >&6
46850else
46851 echo "$as_me:$LINENO: result: no" >&5
46852echo "${ECHO_T}no" >&6
46853fi
46854
f6b50c59 46855 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
a848cd7e
SC
46856 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
46857 fi
46858 ;;
46859
46860 *-*-beos* )
1e9e8aba
DE
46861 SHARED_LD_CC="${LD} -nostart -o"
46862 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
46863 ;;
46864
46865 *-*-irix* )
46866 if test "x$GCC" != "xyes"; then
46867 PIC_FLAG="-KPIC"
46868 fi
46869 ;;
46870
46871 *-*-cygwin* | *-*-mingw32* )
46872 PIC_FLAG=""
1e9e8aba
DE
46873 SHARED_LD_CC="\$(CC) -shared -o"
46874 SHARED_LD_CXX="\$(CXX) -shared -o"
810b94f0 46875 WINDOWS_IMPLIB=1
a848cd7e
SC
46876 ;;
46877
46878 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
46879 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
46880 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 46881 PIC_FLAG=""
473276a9
VS
46882
46883D='$'
46884cat <<EOF >dllar.sh
46885#!/bin/sh
46886#
46887# dllar - a tool to build both a .dll and an .a file
46888# from a set of object (.o) files for EMX/OS2.
46889#
46890# Written by Andrew Zabolotny, bit@freya.etu.ru
46891# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
46892#
46893# This script will accept a set of files on the command line.
46894# All the public symbols from the .o files will be exported into
46895# a .DEF file, then linker will be run (through gcc) against them to
46896# build a shared library consisting of all given .o files. All libraries
46897# (.a) will be first decompressed into component .o files then act as
46898# described above. You can optionally give a description (-d "description")
46899# which will be put into .DLL. To see the list of accepted options (as well
46900# as command-line format) simply run this program without options. The .DLL
46901# is built to be imported by name (there is no guarantee that new versions
46902# of the library you build will have same ordinals for same symbols).
46903#
46904# dllar is free software; you can redistribute it and/or modify
46905# it under the terms of the GNU General Public License as published by
46906# the Free Software Foundation; either version 2, or (at your option)
46907# any later version.
46908#
46909# dllar is distributed in the hope that it will be useful,
46910# but WITHOUT ANY WARRANTY; without even the implied warranty of
46911# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
46912# GNU General Public License for more details.
46913#
46914# You should have received a copy of the GNU General Public License
46915# along with dllar; see the file COPYING. If not, write to the Free
46916# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
46917# 02111-1307, USA.
46918
46919# To successfuly run this program you will need:
46920# - Current drive should have LFN support (HPFS, ext2, network, etc)
46921# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
46922# - gcc
46923# (used to build the .dll)
46924# - emxexp
46925# (used to create .def file from .o files)
46926# - emximp
46927# (used to create .a file from .def file)
46928# - GNU text utilites (cat, sort, uniq)
46929# used to process emxexp output
46930# - GNU file utilities (mv, rm)
46931# - GNU sed
46932# - lxlite (optional, see flag below)
46933# (used for general .dll cleanup)
46934#
46935
46936flag_USE_LXLITE=1;
46937
46938#
46939# helper functions
46940# basnam, variant of basename, which does _not_ remove the path, _iff_
46941# second argument (suffix to remove) is given
46942basnam(){
46943 case ${D}# in
46944 1)
1e9e8aba 46945 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
46946 ;;
46947 2)
46948 echo ${D}1 | sed 's/'${D}2'${D}//'
46949 ;;
46950 *)
46951 echo "error in basnam ${D}*"
46952 exit 8
46953 ;;
46954 esac
46955}
46956
46957# Cleanup temporary files and output
46958CleanUp() {
46959 cd ${D}curDir
46960 for i in ${D}inputFiles ; do
46961 case ${D}i in
46962 *!)
46963 rm -rf \`basnam ${D}i !\`
46964 ;;
46965 *)
46966 ;;
46967 esac
46968 done
46969
46970 # Kill result in case of failure as there is just to many stupid make/nmake
46971 # things out there which doesn't do this.
1e9e8aba 46972 if [ ${D}# -eq 0 ]; then
473276a9
VS
46973 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
46974 fi
46975}
46976
46977# Print usage and exit script with rc=1.
46978PrintHelp() {
b1d22ded
DE
46979 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
46980 echo ' [-name-mangler-script script.sh]'
46981 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
46982 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
46983 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 46984 echo ' [*.o] [*.a]'
473276a9
VS
46985 echo '*> "output_file" should have no extension.'
46986 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
46987 echo ' The import library name is derived from this and is set to "name".a,'
46988 echo ' unless overridden by -import'
46989 echo '*> "importlib_name" should have no extension.'
46990 echo ' If it has the .o, or .a extension, it is automatically removed.'
46991 echo ' This name is used as the import library name and may be longer and'
46992 echo ' more descriptive than the DLL name which has to follow the old '
46993 echo ' 8.3 convention of FAT.'
b1d22ded
DE
46994 echo '*> "script.sh may be given to override the output_file name by a'
46995 echo ' different name. It is mainly useful if the regular make process'
46996 echo ' of some package does not take into account OS/2 restriction of'
46997 echo ' DLL name lengths. It takes the importlib name as input and is'
46998 echo ' supposed to procude a shorter name as output. The script should'
46999 echo ' expect to get importlib_name without extension and should produce'
47000 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
47001 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
47002 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
47003 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
47004 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
47005 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
47006 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
47007 echo ' If the last character of a symbol is "*", all symbols beginning'
47008 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 47009 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 47010 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 47011 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 47012 echo ' C runtime DLLs.'
b1d22ded 47013 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
47014 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
47015 echo ' unchanged to GCC at the end of command line.'
47016 echo '*> If you create a DLL from a library and you do not specify -o,'
47017 echo ' the basename for DLL and import library will be set to library name,'
47018 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
47019 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
47020 echo ' library will be renamed into gcc_s.a.'
47021 echo '--------'
47022 echo 'Example:'
47023 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
47024 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
47025 CleanUp
47026 exit 1
47027}
47028
47029# Execute a command.
47030# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
47031# @Uses Whatever CleanUp() uses.
47032doCommand() {
47033 echo "${D}*"
47034 eval ${D}*
47035 rcCmd=${D}?
47036
1e9e8aba 47037 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
47038 echo "command failed, exit code="${D}rcCmd
47039 CleanUp
47040 exit ${D}rcCmd
47041 fi
47042}
47043
47044# main routine
47045# setup globals
47046cmdLine=${D}*
47047outFile=""
47048outimpFile=""
47049inputFiles=""
b1d22ded 47050renameScript=""
473276a9
VS
47051description=""
47052CC=gcc.exe
47053CFLAGS="-s -Zcrtdll"
47054EXTRA_CFLAGS=""
47055EXPORT_BY_ORDINALS=0
47056exclude_symbols=""
47057library_flags=""
47058curDir=\`pwd\`
47059curDirS=curDir
47060case ${D}curDirS in
47061*/)
47062 ;;
47063*)
47064 curDirS=${D}{curDirS}"/"
47065 ;;
47066esac
47067# Parse commandline
47068libsToLink=0
b1d22ded 47069omfLinking=0
1e9e8aba 47070while [ ${D}1 ]; do
473276a9
VS
47071 case ${D}1 in
47072 -ord*)
47073 EXPORT_BY_ORDINALS=1;
47074 ;;
47075 -o*)
47076 shift
47077 outFile=${D}1
47078 ;;
47079 -i*)
47080 shift
47081 outimpFile=${D}1
47082 ;;
b1d22ded
DE
47083 -name-mangler-script)
47084 shift
47085 renameScript=${D}1
47086 ;;
473276a9
VS
47087 -d*)
47088 shift
47089 description=${D}1
47090 ;;
47091 -f*)
47092 shift
47093 CFLAGS=${D}1
47094 ;;
47095 -c*)
47096 shift
47097 CC=${D}1
47098 ;;
47099 -h*)
47100 PrintHelp
47101 ;;
47102 -ex*)
47103 shift
47104 exclude_symbols=${D}{exclude_symbols}${D}1" "
47105 ;;
47106 -libf*)
47107 shift
47108 library_flags=${D}{library_flags}${D}1" "
47109 ;;
47110 -nocrt*)
47111 CFLAGS="-s"
47112 ;;
47113 -nolxl*)
47114 flag_USE_LXLITE=0
47115 ;;
47116 -* | /*)
47117 case ${D}1 in
47118 -L* | -l*)
47119 libsToLink=1
47120 ;;
b1d22ded
DE
47121 -Zomf)
47122 omfLinking=1
47123 ;;
473276a9
VS
47124 *)
47125 ;;
47126 esac
47127 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
47128 ;;
b1d22ded
DE
47129 *.dll)
47130 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
47131 if [ ${D}omfLinking -eq 1 ]; then
47132 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
47133 else
47134 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
47135 fi
47136 ;;
473276a9
VS
47137 *)
47138 found=0;
1e9e8aba 47139 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
47140 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
47141 else
47142 for file in ${D}1 ; do
1e9e8aba 47143 if [ -f ${D}file ]; then
473276a9
VS
47144 inputFiles="${D}{inputFiles} ${D}file"
47145 found=1
47146 fi
47147 done
1e9e8aba 47148 if [ ${D}found -eq 0 ]; then
473276a9
VS
47149 echo "ERROR: No file(s) found: "${D}1
47150 exit 8
47151 fi
47152 fi
47153 ;;
47154 esac
47155 shift
47156done # iterate cmdline words
47157
47158#
1e9e8aba 47159if [ -z "${D}inputFiles" ]; then
473276a9
VS
47160 echo "dllar: no input files"
47161 PrintHelp
47162fi
47163
47164# Now extract all .o files from .a files
47165newInputFiles=""
47166for file in ${D}inputFiles ; do
47167 case ${D}file in
47168 *.a | *.lib)
47169 case ${D}file in
47170 *.a)
47171 suffix=".a"
47172 AR="ar"
47173 ;;
47174 *.lib)
47175 suffix=".lib"
47176 AR="emxomfar"
47177 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
47178 ;;
47179 *)
47180 ;;
47181 esac
47182 dirname=\`basnam ${D}file ${D}suffix\`"_%"
47183 mkdir ${D}dirname
1e9e8aba 47184 if [ ${D}? -ne 0 ]; then
473276a9
VS
47185 echo "Failed to create subdirectory ./${D}dirname"
47186 CleanUp
47187 exit 8;
47188 fi
47189 # Append '!' to indicate archive
47190 newInputFiles="${D}newInputFiles ${D}{dirname}!"
47191 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
47192 cd ${D}curDir
47193 found=0;
47194 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 47195 if [ -f ${D}subfile ]; then
473276a9 47196 found=1
1e9e8aba 47197 if [ -s ${D}subfile ]; then
473276a9
VS
47198 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
47199 newInputFiles="${D}newInputFiles ${D}subfile"
47200 fi
47201 fi
47202 done
1e9e8aba
DE
47203 if [ ${D}found -eq 0 ]; then
47204 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
47205 fi
47206 ;;
47207 *)
47208 newInputFiles="${D}{newInputFiles} ${D}file"
47209 ;;
47210 esac
47211done
47212inputFiles="${D}newInputFiles"
47213
47214# Output filename(s).
47215do_backup=0;
1e9e8aba 47216if [ -z ${D}outFile ]; then
473276a9
VS
47217 do_backup=1;
47218 set outFile ${D}inputFiles; outFile=${D}2
47219fi
47220
47221# If it is an archive, remove the '!' and the '_%' suffixes
47222case ${D}outFile in
47223*_%!)
47224 outFile=\`basnam ${D}outFile _%!\`
47225 ;;
47226*)
47227 ;;
47228esac
47229case ${D}outFile in
47230*.dll)
47231 outFile=\`basnam ${D}outFile .dll\`
47232 ;;
47233*.DLL)
47234 outFile=\`basnam ${D}outFile .DLL\`
47235 ;;
47236*.o)
47237 outFile=\`basnam ${D}outFile .o\`
47238 ;;
47239*.obj)
47240 outFile=\`basnam ${D}outFile .obj\`
47241 ;;
47242*.a)
47243 outFile=\`basnam ${D}outFile .a\`
47244 ;;
47245*.lib)
47246 outFile=\`basnam ${D}outFile .lib\`
47247 ;;
47248*)
47249 ;;
47250esac
47251case ${D}outimpFile in
47252*.a)
47253 outimpFile=\`basnam ${D}outimpFile .a\`
47254 ;;
47255*.lib)
47256 outimpFile=\`basnam ${D}outimpFile .lib\`
47257 ;;
47258*)
47259 ;;
47260esac
1e9e8aba 47261if [ -z ${D}outimpFile ]; then
473276a9
VS
47262 outimpFile=${D}outFile
47263fi
47264defFile="${D}{outFile}.def"
47265arcFile="${D}{outimpFile}.a"
47266arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
47267
47268#create ${D}dllFile as something matching 8.3 restrictions,
47269if [ -z ${D}renameScript ] ; then
47270 dllFile="${D}outFile"
47271else
47272 dllFile=\`${D}renameScript ${D}outimpFile\`
47273fi
473276a9 47274
1e9e8aba
DE
47275if [ ${D}do_backup -ne 0 ] ; then
47276 if [ -f ${D}arcFile ] ; then
473276a9
VS
47277 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
47278 fi
1e9e8aba 47279 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
47280 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
47281 fi
47282fi
47283
47284# Extract public symbols from all the object files.
47285tmpdefFile=${D}{defFile}_%
47286rm -f ${D}tmpdefFile
47287for file in ${D}inputFiles ; do
47288 case ${D}file in
47289 *!)
47290 ;;
47291 *)
47292 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
47293 ;;
47294 esac
47295done
47296
47297# Create the def file.
47298rm -f ${D}defFile
47299echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
47300dllFile="${D}{dllFile}.dll"
47301if [ ! -z ${D}description ]; then
1e9e8aba 47302 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
47303fi
47304echo "EXPORTS" >> ${D}defFile
47305
47306doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
47307grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
47308
47309# Checks if the export is ok or not.
47310for word in ${D}exclude_symbols; do
47311 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
47312 mv ${D}{tmpdefFile}% ${D}tmpdefFile
47313done
47314
47315
1e9e8aba
DE
47316if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
47317 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
47318 sed '
47319 N
47320 : loop
1e9e8aba 47321 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
47322 t loop
47323 ' > ${D}{tmpdefFile}%
47324 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
47325else
47326 rm -f ${D}{tmpdefFile}%
47327fi
47328cat ${D}tmpdefFile >> ${D}defFile
47329rm -f ${D}tmpdefFile
47330
47331# Do linking, create implib, and apply lxlite.
47332gccCmdl="";
47333for file in ${D}inputFiles ; do
47334 case ${D}file in
47335 *!)
47336 ;;
47337 *)
47338 gccCmdl="${D}gccCmdl ${D}file"
47339 ;;
47340 esac
47341done
47342doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
47343touch "${D}{outFile}.dll"
47344
47345doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 47346if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 47347 add_flags="";
1e9e8aba 47348 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
47349 add_flags="-ynd"
47350 fi
47351 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
47352fi
47353doCommand "emxomf -s -l ${D}arcFile"
47354
47355# Successful exit.
47356CleanUp 1
47357exit 0
47358EOF
47359
47360 chmod +x dllar.sh
a848cd7e
SC
47361 ;;
47362
1e9e8aba 47363 powerpc-apple-macos* | \
0ad5d837 47364 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
a848cd7e
SC
47365 *-*-sunos4* | \
47366 *-*-osf* | \
47367 *-*-dgux5* | \
47a7e797
MW
47368 *-*-sysv5* | \
47369 *-pc-msdosdjgpp )
a848cd7e
SC
47370 ;;
47371
47372 *)
3ecd9f92 47373 esac
a848cd7e 47374
2057db16
VS
47375 if test "x$PIC_FLAG" != "x" ; then
47376 PIC_FLAG="$PIC_FLAG -DPIC"
47377 fi
47378
a848cd7e
SC
47379 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
47380 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
47381 fi
47382 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
47383 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
47384 fi
47385
47386
47387
47388
47389
47390
47391
47392
810b94f0 47393
a848cd7e
SC
47394 USE_SOVERSION=0
47395 USE_SOVERLINUX=0
47396 USE_SOVERSOLARIS=0
810b94f0 47397 USE_SOVERCYGWIN=0
a848cd7e
SC
47398 USE_SOSYMLINKS=0
47399 USE_MACVERSION=0
47400 SONAME_FLAG=
47401
47402 case "${BAKEFILE_HOST}" in
0ad5d837 47403 *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
5f652d0d
VS
47404 SONAME_FLAG="-Wl,-soname,"
47405 USE_SOVERSION=1
47406 USE_SOVERLINUX=1
47407 USE_SOSYMLINKS=1
47408 ;;
47409
a848cd7e
SC
47410 *-*-solaris2* )
47411 SONAME_FLAG="-h "
47412 USE_SOVERSION=1
47413 USE_SOVERSOLARIS=1
47414 USE_SOSYMLINKS=1
47415 ;;
47416
47417 *-*-darwin* )
47418 USE_MACVERSION=1
47419 USE_SOVERSION=1
47420 USE_SOSYMLINKS=1
47421 ;;
810b94f0
MW
47422
47423 *-*-cygwin* )
47424 USE_SOVERSION=1
47425 USE_SOVERCYGWIN=1
47426 ;;
a848cd7e
SC
47427 esac
47428
47429
47430
47431
47432
47433
47434
47435
47436
810b94f0 47437
f10e38c4
VZ
47438 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
47439if test "${enable_dependency_tracking+set}" = set; then
47440 enableval="$enable_dependency_tracking"
47441 bk_use_trackdeps="$enableval"
47442fi;
47443
a848cd7e
SC
47444 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
47445echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
a848cd7e 47446
f10e38c4
VZ
47447 if test "x$bk_use_trackdeps" = "xno" ; then
47448 DEPS_TRACKING=0
47449 echo "$as_me:$LINENO: result: disabled" >&5
47450echo "${ECHO_T}disabled" >&6
47451 else
47452 DEPS_TRACKING=1
47453
47454 if test "x$GCC" = "xyes"; then
47455 DEPSMODE=gcc
47456 case "${BAKEFILE_HOST}" in
47457 *-*-darwin* )
47458 DEPSFLAG="-no-cpp-precomp -MMD"
47459 ;;
47460 * )
47461 DEPSFLAG="-MMD"
47462 ;;
47463 esac
47464 echo "$as_me:$LINENO: result: gcc" >&5
a848cd7e 47465echo "${ECHO_T}gcc" >&6
f10e38c4
VZ
47466 elif test "x$MWCC" = "xyes"; then
47467 DEPSMODE=mwcc
47468 DEPSFLAG="-MM"
47469 echo "$as_me:$LINENO: result: mwcc" >&5
b1d22ded 47470echo "${ECHO_T}mwcc" >&6
f10e38c4
VZ
47471 elif test "x$SUNCC" = "xyes"; then
47472 DEPSMODE=unixcc
47473 DEPSFLAG="-xM1"
47474 echo "$as_me:$LINENO: result: Sun cc" >&5
0ad5d837 47475echo "${ECHO_T}Sun cc" >&6
f10e38c4
VZ
47476 elif test "x$SGICC" = "xyes"; then
47477 DEPSMODE=unixcc
47478 DEPSFLAG="-M"
47479 echo "$as_me:$LINENO: result: SGI cc" >&5
0ad5d837 47480echo "${ECHO_T}SGI cc" >&6
f10e38c4
VZ
47481 elif test "x$HPCC" = "xyes"; then
47482 DEPSMODE=unixcc
47483 DEPSFLAG="+make"
47484 echo "$as_me:$LINENO: result: HP cc" >&5
3006edc0 47485echo "${ECHO_T}HP cc" >&6
f10e38c4
VZ
47486 elif test "x$COMPAQCC" = "xyes"; then
47487 DEPSMODE=gcc
47488 DEPSFLAG="-MD"
47489 echo "$as_me:$LINENO: result: Compaq cc" >&5
a1aa0349 47490echo "${ECHO_T}Compaq cc" >&6
f10e38c4
VZ
47491 else
47492 DEPS_TRACKING=0
47493 echo "$as_me:$LINENO: result: none" >&5
a848cd7e 47494echo "${ECHO_T}none" >&6
f10e38c4 47495 fi
a848cd7e 47496
f10e38c4 47497 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
47498
47499D='$'
47500cat <<EOF >bk-deps
a848cd7e
SC
47501#!/bin/sh
47502
47503# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
47504# script. It is used to track C/C++ files dependencies in portable way.
47505#
47506# Permission is given to use this file in any way.
47507
473276a9 47508DEPSMODE=${DEPSMODE}
a848cd7e 47509DEPSDIR=.deps
0ad5d837 47510DEPSFLAG="${DEPSFLAG}"
a848cd7e 47511
473276a9 47512mkdir -p ${D}DEPSDIR
a848cd7e 47513
473276a9 47514if test ${D}DEPSMODE = gcc ; then
0ad5d837 47515 ${D}* ${D}{DEPSFLAG}
473276a9
VS
47516 status=${D}?
47517 if test ${D}{status} != 0 ; then
47518 exit ${D}{status}
a848cd7e
SC
47519 fi
47520 # move created file to the location we want it in:
473276a9
VS
47521 while test ${D}# -gt 0; do
47522 case "${D}1" in
a848cd7e
SC
47523 -o )
47524 shift
473276a9 47525 objfile=${D}1
a848cd7e
SC
47526 ;;
47527 -* )
47528 ;;
47529 * )
473276a9 47530 srcfile=${D}1
a848cd7e
SC
47531 ;;
47532 esac
47533 shift
47534 done
1e9e8aba
DE
47535 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
47536 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
47537 if test -f ${D}depfile ; then
47538 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
47539 rm -f ${D}depfile
a848cd7e 47540 else
a1aa0349 47541 # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
1e9e8aba 47542 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
a1aa0349
VZ
47543 if test ! -f ${D}depfile ; then
47544 # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
47545 depfile="${D}objfile.d"
47546 fi
473276a9
VS
47547 if test -f ${D}depfile ; then
47548 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
47549 rm -f ${D}depfile
a848cd7e
SC
47550 fi
47551 fi
47552 exit 0
81f90336 47553elif test ${D}DEPSMODE = mwcc ; then
f6b50c59 47554 ${D}* || exit ${D}?
81f90336
MW
47555 # Run mwcc again with -MM and redirect into the dep file we want
47556 # NOTE: We can't use shift here because we need ${D}* to be valid
47557 prevarg=
47558 for arg in ${D}* ; do
47559 if test "${D}prevarg" = "-o"; then
47560 objfile=${D}arg
47561 else
47562 case "${D}arg" in
47563 -* )
47564 ;;
47565 * )
47566 srcfile=${D}arg
47567 ;;
47568 esac
47569 fi
47570 prevarg="${D}arg"
47571 done
0ad5d837 47572 ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
81f90336 47573 exit 0
0ad5d837 47574elif test ${D}DEPSMODE = unixcc; then
f6b50c59 47575 ${D}* || exit ${D}?
a9e5b1f0
MW
47576 # Run compiler again with deps flag and redirect into the dep file.
47577 # It doesn't work if the '-o FILE' option is used, but without it the
47578 # dependency file will contain the wrong name for the object. So it is
47579 # removed from the command line, and the dep file is fixed with sed.
47580 cmd=""
47581 while test ${D}# -gt 0; do
47582 case "${D}1" in
47583 -o )
47584 shift
47585 objfile=${D}1
47586 ;;
47587 * )
47588 eval arg${D}#=\\${D}1
47589 cmd="${D}cmd \\${D}arg${D}#"
47590 ;;
47591 esac
47592 shift
47593 done
0ad5d837 47594 eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
a9e5b1f0 47595 exit 0
a848cd7e 47596else
473276a9
VS
47597 ${D}*
47598 exit ${D}?
a848cd7e
SC
47599fi
47600EOF
473276a9 47601
f10e38c4
VZ
47602 chmod +x bk-deps
47603 fi
a848cd7e
SC
47604 fi
47605
47606
47607
47608
a848cd7e
SC
47609 case ${BAKEFILE_HOST} in
47610 *-*-cygwin* | *-*-mingw32* )
8ced02f6
DE
47611 if test -n "$ac_tool_prefix"; then
47612 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
47613set dummy ${ac_tool_prefix}windres; ac_word=$2
47614echo "$as_me:$LINENO: checking for $ac_word" >&5
47615echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47616if test "${ac_cv_prog_WINDRES+set}" = set; then
47617 echo $ECHO_N "(cached) $ECHO_C" >&6
47618else
47619 if test -n "$WINDRES"; then
47620 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
47621else
47622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47623for as_dir in $PATH
47624do
47625 IFS=$as_save_IFS
47626 test -z "$as_dir" && as_dir=.
47627 for ac_exec_ext in '' $ac_executable_extensions; do
47628 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47629 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
47630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47631 break 2
47632 fi
47633done
47634done
47635
47636fi
47637fi
47638WINDRES=$ac_cv_prog_WINDRES
47639if test -n "$WINDRES"; then
47640 echo "$as_me:$LINENO: result: $WINDRES" >&5
47641echo "${ECHO_T}$WINDRES" >&6
47642else
47643 echo "$as_me:$LINENO: result: no" >&5
47644echo "${ECHO_T}no" >&6
47645fi
47646
47647fi
47648if test -z "$ac_cv_prog_WINDRES"; then
47649 ac_ct_WINDRES=$WINDRES
47650 # Extract the first word of "windres", so it can be a program name with args.
a848cd7e
SC
47651set dummy windres; ac_word=$2
47652echo "$as_me:$LINENO: checking for $ac_word" >&5
47653echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 47654if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
a848cd7e
SC
47655 echo $ECHO_N "(cached) $ECHO_C" >&6
47656else
8ced02f6
DE
47657 if test -n "$ac_ct_WINDRES"; then
47658 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
a848cd7e
SC
47659else
47660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47661for as_dir in $PATH
47662do
47663 IFS=$as_save_IFS
47664 test -z "$as_dir" && as_dir=.
47665 for ac_exec_ext in '' $ac_executable_extensions; do
47666 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 47667 ac_cv_prog_ac_ct_WINDRES="windres"
a848cd7e
SC
47668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47669 break 2
47670 fi
47671done
47672done
47673
a848cd7e
SC
47674fi
47675fi
8ced02f6
DE
47676ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
47677if test -n "$ac_ct_WINDRES"; then
47678 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
47679echo "${ECHO_T}$ac_ct_WINDRES" >&6
a848cd7e
SC
47680else
47681 echo "$as_me:$LINENO: result: no" >&5
47682echo "${ECHO_T}no" >&6
47683fi
47684
8ced02f6
DE
47685 WINDRES=$ac_ct_WINDRES
47686else
47687 WINDRES="$ac_cv_prog_WINDRES"
47688fi
47689
a848cd7e
SC
47690 ;;
47691
1e9e8aba 47692 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
47693 # Extract the first word of "Rez", so it can be a program name with args.
47694set dummy Rez; ac_word=$2
47695echo "$as_me:$LINENO: checking for $ac_word" >&5
47696echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 47697if test "${ac_cv_prog_REZ+set}" = set; then
a848cd7e
SC
47698 echo $ECHO_N "(cached) $ECHO_C" >&6
47699else
8ced02f6
DE
47700 if test -n "$REZ"; then
47701 ac_cv_prog_REZ="$REZ" # Let the user override the test.
a848cd7e
SC
47702else
47703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47704for as_dir in $PATH
47705do
47706 IFS=$as_save_IFS
47707 test -z "$as_dir" && as_dir=.
47708 for ac_exec_ext in '' $ac_executable_extensions; do
47709 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 47710 ac_cv_prog_REZ="Rez"
a848cd7e
SC
47711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47712 break 2
47713 fi
47714done
47715done
47716
8ced02f6 47717 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
a848cd7e
SC
47718fi
47719fi
8ced02f6
DE
47720REZ=$ac_cv_prog_REZ
47721if test -n "$REZ"; then
47722 echo "$as_me:$LINENO: result: $REZ" >&5
47723echo "${ECHO_T}$REZ" >&6
a848cd7e
SC
47724else
47725 echo "$as_me:$LINENO: result: no" >&5
47726echo "${ECHO_T}no" >&6
47727fi
47728
47729 # Extract the first word of "SetFile", so it can be a program name with args.
47730set dummy SetFile; ac_word=$2
47731echo "$as_me:$LINENO: checking for $ac_word" >&5
47732echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47733if test "${ac_cv_prog_SETFILE+set}" = set; then
47734 echo $ECHO_N "(cached) $ECHO_C" >&6
47735else
47736 if test -n "$SETFILE"; then
47737 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
47738else
47739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47740for as_dir in $PATH
47741do
47742 IFS=$as_save_IFS
47743 test -z "$as_dir" && as_dir=.
47744 for ac_exec_ext in '' $ac_executable_extensions; do
47745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47746 ac_cv_prog_SETFILE="SetFile"
47747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47748 break 2
47749 fi
47750done
47751done
47752
47753 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
47754fi
47755fi
47756SETFILE=$ac_cv_prog_SETFILE
47757if test -n "$SETFILE"; then
47758 echo "$as_me:$LINENO: result: $SETFILE" >&5
47759echo "${ECHO_T}$SETFILE" >&6
47760else
47761 echo "$as_me:$LINENO: result: no" >&5
47762echo "${ECHO_T}no" >&6
47763fi
47764
47765 ;;
47766 esac
47767
47768
47769
47770
47771
8ced02f6 47772
f10e38c4 47773 BAKEFILE_BAKEFILE_M4_VERSION="0.2.0"
a848cd7e 47774
dcc1b6ad 47775
f10e38c4 47776BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.0"
a848cd7e 47777
646b6ec1 47778
74b84332 47779
a848cd7e
SC
47780 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
47781if test "${enable_precomp_headers+set}" = set; then
47782 enableval="$enable_precomp_headers"
47783 bk_use_pch="$enableval"
47784fi;
47785
47786 GCC_PCH=0
f10e38c4
VZ
47787 ICC_PCH=0
47788 USE_PCH=0
a848cd7e 47789
5c60e845
MW
47790 case ${BAKEFILE_HOST} in
47791 *-*-cygwin* )
47792 bk_use_pch="no"
47793 ;;
47794 esac
47795
a848cd7e
SC
47796 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
47797 if test "x$GCC" = "xyes"; then
47798 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
47799echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
47800 cat >conftest.$ac_ext <<_ACEOF
47801/* confdefs.h. */
47802_ACEOF
47803cat confdefs.h >>conftest.$ac_ext
47804cat >>conftest.$ac_ext <<_ACEOF
47805/* end confdefs.h. */
47806
47807int
47808main ()
47809{
47810
47811 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
e5efa97e 47812 There is no PCH support
a848cd7e
SC
47813 #endif
47814 #if (__GNUC__ < 3)
e5efa97e 47815 There is no PCH support
a848cd7e
SC
47816 #endif
47817 #if (__GNUC__ == 3) && \
47818 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
f10e38c4
VZ
47819 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
47820 ( defined(__INTEL_COMPILER) )
e5efa97e 47821 There is no PCH support
a848cd7e
SC
47822 #endif
47823
47824 ;
47825 return 0;
47826}
47827_ACEOF
47828rm -f conftest.$ac_objext
47829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 47830 (eval $ac_compile) 2>conftest.er1
a848cd7e 47831 ac_status=$?
ac1cb8d3
VS
47832 grep -v '^ *+' conftest.er1 >conftest.err
47833 rm -f conftest.er1
47834 cat conftest.err >&5
a848cd7e
SC
47835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47836 (exit $ac_status); } &&
c9a66001 47837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
47838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47839 (eval $ac_try) 2>&5
47840 ac_status=$?
47841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47842 (exit $ac_status); }; } &&
47843 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
47844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47845 (eval $ac_try) 2>&5
47846 ac_status=$?
47847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47848 (exit $ac_status); }; }; then
47849
47850 echo "$as_me:$LINENO: result: yes" >&5
47851echo "${ECHO_T}yes" >&6
a848cd7e
SC
47852 GCC_PCH=1
47853
47854else
47855 echo "$as_me: failed program was:" >&5
47856sed 's/^/| /' conftest.$ac_ext >&5
47857
47858
f10e38c4
VZ
47859 cat >conftest.$ac_ext <<_ACEOF
47860/* confdefs.h. */
47861_ACEOF
47862cat confdefs.h >>conftest.$ac_ext
47863cat >>conftest.$ac_ext <<_ACEOF
47864/* end confdefs.h. */
47865
47866int
47867main ()
47868{
47869
47870 #if !defined(__INTEL_COMPILER) || \
47871 (__INTEL_COMPILER < 800)
e5efa97e 47872 There is no PCH support
f10e38c4
VZ
47873 #endif
47874
47875 ;
47876 return 0;
47877}
47878_ACEOF
47879rm -f conftest.$ac_objext
47880if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47881 (eval $ac_compile) 2>conftest.er1
47882 ac_status=$?
47883 grep -v '^ *+' conftest.er1 >conftest.err
47884 rm -f conftest.er1
47885 cat conftest.err >&5
47886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47887 (exit $ac_status); } &&
c9a66001 47888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
f10e38c4
VZ
47889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47890 (eval $ac_try) 2>&5
47891 ac_status=$?
47892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47893 (exit $ac_status); }; } &&
47894 { ac_try='test -s conftest.$ac_objext'
47895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47896 (eval $ac_try) 2>&5
47897 ac_status=$?
47898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47899 (exit $ac_status); }; }; then
47900
47901 echo "$as_me:$LINENO: result: yes" >&5
47902echo "${ECHO_T}yes" >&6
47903 ICC_PCH=1
47904
47905else
47906 echo "$as_me: failed program was:" >&5
47907sed 's/^/| /' conftest.$ac_ext >&5
47908
47909
47910 echo "$as_me:$LINENO: result: no" >&5
a848cd7e
SC
47911echo "${ECHO_T}no" >&6
47912
47913fi
ac1cb8d3 47914rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f10e38c4
VZ
47915
47916fi
47917rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47918 if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
47919 USE_PCH=1
1e9e8aba
DE
47920
47921D='$'
47922cat <<EOF >bk-make-pch
a848cd7e
SC
47923#!/bin/sh
47924
47925# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
47926# script. It is used to generated precompiled headers.
47927#
47928# Permission is given to use this file in any way.
47929
1e9e8aba
DE
47930outfile="${D}{1}"
47931header="${D}{2}"
a848cd7e
SC
47932shift
47933shift
47934
f10e38c4
VZ
47935compiler=""
47936headerfile=""
47937
1e9e8aba 47938while test ${D}{#} -gt 0; do
f10e38c4 47939 add_to_cmdline=1
1e9e8aba 47940 case "${D}{1}" in
a848cd7e 47941 -I* )
1e9e8aba
DE
47942 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
47943 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
47944 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
47945 fi
47946 ;;
f10e38c4
VZ
47947 -use-pch|-use_pch )
47948 shift
47949 add_to_cmdline=0
47950 ;;
a848cd7e 47951 esac
f10e38c4
VZ
47952 if test ${D}add_to_cmdline = 1 ; then
47953 compiler="${D}{compiler} ${D}{1}"
47954 fi
a848cd7e
SC
47955 shift
47956done
47957
1e9e8aba 47958if test "x${D}{headerfile}" = "x" ; then
f10e38c4 47959 echo "error: can't find header ${D}{header} in include paths" >&2
a848cd7e 47960else
1e9e8aba
DE
47961 if test -f ${D}{outfile} ; then
47962 rm -f ${D}{outfile}
a848cd7e 47963 else
1e9e8aba 47964 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 47965 fi
1e9e8aba 47966 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e 47967 mkdir -p .deps
f10e38c4
VZ
47968 if test "x${GCC_PCH}" = "x1" ; then
47969 # can do this because gcc is >= 3.4:
47970 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
47971 elif test "x${ICC_PCH}" = "x1" ; then
47972 filename=pch_gen-${D}${D}
47973 file=${D}{filename}.c
47974 dfile=${D}{filename}.d
47975 cat > ${D}file <<EOT
47976#include "${D}header"
47977EOT
47978 # using -MF icc complains about differing command lines in creation/use
47979 ${D}compiler -c -create_pch ${D}outfile -MMD ${D}file && \\
47980 sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
47981 rm -f ${D}file ${D}dfile ${D}{filename}.o
47982 fi
1e9e8aba 47983 exit ${D}{?}
a848cd7e
SC
47984fi
47985EOF
1e9e8aba 47986
a848cd7e
SC
47987 chmod +x bk-make-pch
47988 fi
47989 fi
47990 fi
47991
47992
47993
f10e38c4 47994
a848cd7e
SC
47995 COND_BUILD_DEBUG="#"
47996 if test "x$BUILD" = "xdebug" ; then
47997 COND_BUILD_DEBUG=""
47998 fi
47999
48000 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
48001 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
48002 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
48003 fi
48004
48005 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
48006 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
48007 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
48008 fi
48009
48010 COND_BUILD_DEBUG_UNICODE_0="#"
48011 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
48012 COND_BUILD_DEBUG_UNICODE_0=""
48013 fi
48014
48015 COND_BUILD_DEBUG_UNICODE_1="#"
48016 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
48017 COND_BUILD_DEBUG_UNICODE_1=""
48018 fi
48019
48020 COND_BUILD_RELEASE="#"
48021 if test "x$BUILD" = "xrelease" ; then
48022 COND_BUILD_RELEASE=""
48023 fi
48024
48025 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
48026 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
48027 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
48028 fi
48029
48030 COND_BUILD_RELEASE_UNICODE_0="#"
48031 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
48032 COND_BUILD_RELEASE_UNICODE_0=""
48033 fi
48034
48035 COND_BUILD_RELEASE_UNICODE_1="#"
48036 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
48037 COND_BUILD_RELEASE_UNICODE_1=""
48038 fi
48039
48040 COND_DEBUG_FLAG_1="#"
48041 if test "x$DEBUG_FLAG" = "x1" ; then
48042 COND_DEBUG_FLAG_1=""
48043 fi
48044
48045 COND_DEBUG_INFO_0="#"
48046 if test "x$DEBUG_INFO" = "x0" ; then
48047 COND_DEBUG_INFO_0=""
48048 fi
48049
48050 COND_DEBUG_INFO_1="#"
48051 if test "x$DEBUG_INFO" = "x1" ; then
48052 COND_DEBUG_INFO_1=""
48053 fi
48054
48055 COND_DEPS_TRACKING_0="#"
48056 if test "x$DEPS_TRACKING" = "x0" ; then
48057 COND_DEPS_TRACKING_0=""
48058 fi
48059
48060 COND_DEPS_TRACKING_1="#"
48061 if test "x$DEPS_TRACKING" = "x1" ; then
48062 COND_DEPS_TRACKING_1=""
48063 fi
48064
48065 COND_GCC_PCH_1="#"
48066 if test "x$GCC_PCH" = "x1" ; then
48067 COND_GCC_PCH_1=""
48068 fi
48069
f10e38c4
VZ
48070 COND_ICC_PCH_1="#"
48071 if test "x$ICC_PCH" = "x1" ; then
48072 COND_ICC_PCH_1=""
48073 fi
48074
a848cd7e
SC
48075 COND_MONOLITHIC_0="#"
48076 if test "x$MONOLITHIC" = "x0" ; then
48077 COND_MONOLITHIC_0=""
48078 fi
48079
48080 COND_MONOLITHIC_0_SHARED_0="#"
48081 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
48082 COND_MONOLITHIC_0_SHARED_0=""
48083 fi
48084
3f60522a
JS
48085 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#"
48086 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then
48087 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1=""
48088 fi
48089
a848cd7e
SC
48090 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
48091 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
48092 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
48093 fi
48094
90970d69
DE
48095 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
48096 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
48097 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
48098 fi
48099
f10e38c4
VZ
48100 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
48101 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
48102 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
48103 fi
48104
a848cd7e
SC
48105 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
48106 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
48107 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
48108 fi
48109
6671c68b
VZ
48110 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
48111 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
48112 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
48113 fi
48114
a848cd7e
SC
48115 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
48116 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
48117 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
48118 fi
48119
8b6682b9
JS
48120 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#"
48121 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
48122 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1=""
48123 fi
48124
ceec2216
RL
48125 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
48126 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
48127 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
48128 fi
48129
a848cd7e
SC
48130 COND_MONOLITHIC_0_SHARED_1="#"
48131 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
48132 COND_MONOLITHIC_0_SHARED_1=""
48133 fi
48134
3f60522a
JS
48135 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#"
48136 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then
48137 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1=""
48138 fi
48139
a848cd7e
SC
48140 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
48141 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
48142 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
48143 fi
48144
90970d69
DE
48145 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
48146 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
48147 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
48148 fi
48149
f10e38c4
VZ
48150 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
48151 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
48152 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
48153 fi
48154
a848cd7e
SC
48155 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
48156 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
48157 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
48158 fi
48159
6671c68b
VZ
48160 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
48161 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
48162 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
48163 fi
48164
a848cd7e
SC
48165 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
48166 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
48167 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
48168 fi
48169
8b6682b9
JS
48170 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#"
48171 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then
48172 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1=""
48173 fi
48174
ceec2216
RL
48175 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
48176 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
48177 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
48178 fi
48179
e5efa97e
VZ
48180 COND_MONOLITHIC_0_USE_MEDIA_1="#"
48181 if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
48182 COND_MONOLITHIC_0_USE_MEDIA_1=""
48183 fi
48184
a848cd7e
SC
48185 COND_MONOLITHIC_0_USE_ODBC_1="#"
48186 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
48187 COND_MONOLITHIC_0_USE_ODBC_1=""
48188 fi
48189
48190 COND_MONOLITHIC_1="#"
48191 if test "x$MONOLITHIC" = "x1" ; then
48192 COND_MONOLITHIC_1=""
48193 fi
48194
48195 COND_MONOLITHIC_1_SHARED_0="#"
48196 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
48197 COND_MONOLITHIC_1_SHARED_0=""
48198 fi
48199
48200 COND_MONOLITHIC_1_SHARED_1="#"
48201 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
48202 COND_MONOLITHIC_1_SHARED_1=""
48203 fi
48204
48205 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
48206 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
48207 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
48208 fi
48209
48210 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
48211 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
48212 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
48213 fi
48214
eb730a0c
JS
48215 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
48216 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
48217 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
48218 fi
48219
a848cd7e
SC
48220 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
48221 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
48222 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
48223 fi
48224
48225 COND_PLATFORM_MACOSX_1="#"
48226 if test "x$PLATFORM_MACOSX" = "x1" ; then
48227 COND_PLATFORM_MACOSX_1=""
48228 fi
48229
a30f955f
VS
48230 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
48231 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
48232 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
48233 fi
48234
a848cd7e
SC
48235 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
48236 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
48237 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
48238 fi
48239
48240 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
48241 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
48242 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
48243 fi
48244
48245 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
48246 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
48247 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
48248 fi
48249
fc480dc1
DE
48250 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
48251 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
48252 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
48253 fi
48254
1e9e8aba
DE
48255 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
48256 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48257 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
48258 fi
48259
ebee3cd0
VS
48260 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
48261 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
48262 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
48263 fi
48264
48265 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
48266 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
48267 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
48268 fi
48269
a848cd7e
SC
48270 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
48271 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
48272 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
48273 fi
48274
48275 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
48276 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
48277 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
48278 fi
48279
b48a2016
DE
48280 COND_PLATFORM_MACOS_1="#"
48281 if test "x$PLATFORM_MACOS" = "x1" ; then
48282 COND_PLATFORM_MACOS_1=""
48283 fi
48284
083508af
MW
48285 COND_PLATFORM_MAC_1="#"
48286 if test "x$PLATFORM_MAC" = "x1" ; then
48287 COND_PLATFORM_MAC_1=""
48288 fi
48289
e5efa97e
VZ
48290 COND_PLATFORM_MSDOS_0="#"
48291 if test "x$PLATFORM_MSDOS" = "x0" ; then
48292 COND_PLATFORM_MSDOS_0=""
48293 fi
48294
83d8eb47
MW
48295 COND_PLATFORM_MSDOS_1="#"
48296 if test "x$PLATFORM_MSDOS" = "x1" ; then
48297 COND_PLATFORM_MSDOS_1=""
48298 fi
48299
a848cd7e
SC
48300 COND_PLATFORM_OS2_1="#"
48301 if test "x$PLATFORM_OS2" = "x1" ; then
48302 COND_PLATFORM_OS2_1=""
48303 fi
48304
48305 COND_PLATFORM_UNIX_0="#"
48306 if test "x$PLATFORM_UNIX" = "x0" ; then
48307 COND_PLATFORM_UNIX_0=""
48308 fi
48309
48310 COND_PLATFORM_UNIX_1="#"
48311 if test "x$PLATFORM_UNIX" = "x1" ; then
48312 COND_PLATFORM_UNIX_1=""
48313 fi
48314
48315 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
48316 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
48317 COND_PLATFORM_UNIX_1_USE_GUI_1=""
48318 fi
48319
48320 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
48321 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
48322 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
48323 fi
48324
48325 COND_PLATFORM_WIN32_0="#"
48326 if test "x$PLATFORM_WIN32" = "x0" ; then
48327 COND_PLATFORM_WIN32_0=""
48328 fi
48329
48330 COND_PLATFORM_WIN32_1="#"
48331 if test "x$PLATFORM_WIN32" = "x1" ; then
48332 COND_PLATFORM_WIN32_1=""
48333 fi
48334
48335 COND_SHARED_0="#"
48336 if test "x$SHARED" = "x0" ; then
48337 COND_SHARED_0=""
48338 fi
48339
083508af
MW
48340 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
48341 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
48342 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
48343 fi
48344
48345 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
48346 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
48347 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
48348 fi
48349
48350 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
48351 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
48352 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
48353 fi
48354
a848cd7e
SC
48355 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
48356 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
48357 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
48358 fi
48359
48360 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
48361 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
48362 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
48363 fi
48364
48365 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
48366 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
48367 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
48368 fi
48369
48370 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
48371 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
48372 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
48373 fi
48374
083508af
MW
48375 COND_SHARED_0_USE_XRC_1="#"
48376 if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
48377 COND_SHARED_0_USE_XRC_1=""
48378 fi
48379
a848cd7e
SC
48380 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
48381 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
48382 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
48383 fi
48384
48385 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
48386 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
48387 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
48388 fi
48389
48390 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
48391 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
48392 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
48393 fi
48394
48395 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
48396 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
48397 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
48398 fi
48399
48400 COND_SHARED_1="#"
48401 if test "x$SHARED" = "x1" ; then
48402 COND_SHARED_1=""
48403 fi
48404
48405 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
48406 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
48407 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
48408 fi
48409
083508af
MW
48410 COND_SHARED_1_USE_XRC_1="#"
48411 if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
48412 COND_SHARED_1_USE_XRC_1=""
48413 fi
48414
a30f955f
VS
48415 COND_TOOLKIT_="#"
48416 if test "x$TOOLKIT" = "x" ; then
48417 COND_TOOLKIT_=""
48418 fi
48419
a848cd7e
SC
48420 COND_TOOLKIT_COCOA="#"
48421 if test "x$TOOLKIT" = "xCOCOA" ; then
48422 COND_TOOLKIT_COCOA=""
48423 fi
48424
a49baeab
DE
48425 COND_TOOLKIT_COCOA_USE_GUI_1="#"
48426 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
48427 COND_TOOLKIT_COCOA_USE_GUI_1=""
48428 fi
48429
a848cd7e
SC
48430 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
48431 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48432 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
48433 fi
48434
48435 COND_TOOLKIT_GTK="#"
48436 if test "x$TOOLKIT" = "xGTK" ; then
48437 COND_TOOLKIT_GTK=""
48438 fi
48439
d044deea
MW
48440 COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
48441 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
48442 COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
48443 fi
48444
48445 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
48446 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
48447 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
48448 fi
48449
48450 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
48451 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
48452 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
48453 fi
48454
48455 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
48456 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48457 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
48458 fi
48459
48460 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
48461 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
48462 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
48463 fi
48464
48465 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
48466 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48467 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
48468 fi
48469
a848cd7e
SC
48470 COND_TOOLKIT_GTK_USE_GUI_1="#"
48471 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
48472 COND_TOOLKIT_GTK_USE_GUI_1=""
48473 fi
48474
a848cd7e
SC
48475 COND_TOOLKIT_MAC="#"
48476 if test "x$TOOLKIT" = "xMAC" ; then
48477 COND_TOOLKIT_MAC=""
48478 fi
48479
48480 COND_TOOLKIT_MAC_USE_GUI_1="#"
48481 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
48482 COND_TOOLKIT_MAC_USE_GUI_1=""
48483 fi
48484
48485 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
48486 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48487 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
48488 fi
48489
48490 COND_TOOLKIT_MGL="#"
48491 if test "x$TOOLKIT" = "xMGL" ; then
48492 COND_TOOLKIT_MGL=""
48493 fi
48494
48495 COND_TOOLKIT_MGL_USE_GUI_1="#"
48496 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
48497 COND_TOOLKIT_MGL_USE_GUI_1=""
48498 fi
48499
48500 COND_TOOLKIT_MOTIF="#"
48501 if test "x$TOOLKIT" = "xMOTIF" ; then
48502 COND_TOOLKIT_MOTIF=""
48503 fi
48504
48505 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
48506 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
48507 COND_TOOLKIT_MOTIF_USE_GUI_1=""
48508 fi
48509
48510 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
48511 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48512 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
48513 fi
48514
48515 COND_TOOLKIT_MSW="#"
48516 if test "x$TOOLKIT" = "xMSW" ; then
48517 COND_TOOLKIT_MSW=""
48518 fi
48519
48520 COND_TOOLKIT_MSW_USE_GUI_1="#"
48521 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
48522 COND_TOOLKIT_MSW_USE_GUI_1=""
48523 fi
48524
48525 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
48526 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48527 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
48528 fi
48529
0ee4059d
DE
48530 COND_TOOLKIT_MSW_WXUNIV_0="#"
48531 if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
48532 COND_TOOLKIT_MSW_WXUNIV_0=""
48533 fi
48534
a848cd7e
SC
48535 COND_TOOLKIT_PM="#"
48536 if test "x$TOOLKIT" = "xPM" ; then
48537 COND_TOOLKIT_PM=""
48538 fi
48539
48540 COND_TOOLKIT_PM_USE_GUI_1="#"
48541 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
48542 COND_TOOLKIT_PM_USE_GUI_1=""
48543 fi
48544
48545 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
48546 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48547 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
48548 fi
48549
3fd9c298
DE
48550 COND_TOOLKIT_WINCE="#"
48551 if test "x$TOOLKIT" = "xWINCE" ; then
48552 COND_TOOLKIT_WINCE=""
48553 fi
48554
48555 COND_TOOLKIT_WINCE_USE_GUI_1="#"
48556 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
48557 COND_TOOLKIT_WINCE_USE_GUI_1=""
48558 fi
48559
48560 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
48561 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48562 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
48563 fi
48564
0ee4059d
DE
48565 COND_TOOLKIT_WINCE_WXUNIV_0="#"
48566 if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
48567 COND_TOOLKIT_WINCE_WXUNIV_0=""
48568 fi
48569
a848cd7e
SC
48570 COND_TOOLKIT_X11="#"
48571 if test "x$TOOLKIT" = "xX11" ; then
48572 COND_TOOLKIT_X11=""
48573 fi
48574
48575 COND_TOOLKIT_X11_USE_GUI_1="#"
48576 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
48577 COND_TOOLKIT_X11_USE_GUI_1=""
48578 fi
48579
48580 COND_UNICODE_1="#"
48581 if test "x$UNICODE" = "x1" ; then
48582 COND_UNICODE_1=""
48583 fi
48584
48585 COND_USE_EXCEPTIONS_0="#"
48586 if test "x$USE_EXCEPTIONS" = "x0" ; then
48587 COND_USE_EXCEPTIONS_0=""
48588 fi
48589
48590 COND_USE_EXCEPTIONS_1="#"
48591 if test "x$USE_EXCEPTIONS" = "x1" ; then
48592 COND_USE_EXCEPTIONS_1=""
48593 fi
48594
48595 COND_USE_GUI_0="#"
48596 if test "x$USE_GUI" = "x0" ; then
48597 COND_USE_GUI_0=""
48598 fi
48599
48600 COND_USE_GUI_1="#"
48601 if test "x$USE_GUI" = "x1" ; then
48602 COND_USE_GUI_1=""
48603 fi
48604
48605 COND_USE_GUI_1_WXUNIV_0="#"
48606 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48607 COND_USE_GUI_1_WXUNIV_0=""
48608 fi
48609
48610 COND_USE_GUI_1_WXUNIV_1="#"
48611 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
48612 COND_USE_GUI_1_WXUNIV_1=""
48613 fi
48614
48615 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
48616 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
48617 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
48618 fi
48619
48620 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
48621 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
48622 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
48623 fi
48624
48625 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
48626 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
48627 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
48628 fi
48629
083508af
MW
48630 COND_USE_ODBC_1="#"
48631 if test "x$USE_ODBC" = "x1" ; then
48632 COND_USE_ODBC_1=""
48633 fi
48634
48635 COND_USE_OPENGL_1="#"
48636 if test "x$USE_OPENGL" = "x1" ; then
48637 COND_USE_OPENGL_1=""
48638 fi
48639
f10e38c4
VZ
48640 COND_USE_PCH_1="#"
48641 if test "x$USE_PCH" = "x1" ; then
48642 COND_USE_PCH_1=""
48643 fi
48644
a848cd7e
SC
48645 COND_USE_PLUGINS_0="#"
48646 if test "x$USE_PLUGINS" = "x0" ; then
48647 COND_USE_PLUGINS_0=""
48648 fi
48649
0b78747f
MW
48650 COND_USE_RTTI_0="#"
48651 if test "x$USE_RTTI" = "x0" ; then
48652 COND_USE_RTTI_0=""
48653 fi
48654
48655 COND_USE_RTTI_1="#"
48656 if test "x$USE_RTTI" = "x1" ; then
48657 COND_USE_RTTI_1=""
48658 fi
48659
a848cd7e
SC
48660 COND_USE_SOSYMLINKS_1="#"
48661 if test "x$USE_SOSYMLINKS" = "x1" ; then
48662 COND_USE_SOSYMLINKS_1=""
48663 fi
48664
eb730a0c
JS
48665 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
48666 if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
48667 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
48668 fi
48669
a848cd7e
SC
48670 COND_USE_SOVERLINUX_1="#"
48671 if test "x$USE_SOVERLINUX" = "x1" ; then
48672 COND_USE_SOVERLINUX_1=""
48673 fi
48674
48675 COND_USE_SOVERSION_0="#"
48676 if test "x$USE_SOVERSION" = "x0" ; then
48677 COND_USE_SOVERSION_0=""
48678 fi
48679
48680 COND_USE_SOVERSOLARIS_1="#"
48681 if test "x$USE_SOVERSOLARIS" = "x1" ; then
48682 COND_USE_SOVERSOLARIS_1=""
48683 fi
48684
0b78747f
MW
48685 COND_USE_THREADS_0="#"
48686 if test "x$USE_THREADS" = "x0" ; then
48687 COND_USE_THREADS_0=""
48688 fi
48689
48690 COND_USE_THREADS_1="#"
48691 if test "x$USE_THREADS" = "x1" ; then
48692 COND_USE_THREADS_1=""
48693 fi
48694
a13a7f89
RL
48695 COND_USE_XRC_1="#"
48696 if test "x$USE_XRC" = "x1" ; then
48697 COND_USE_XRC_1=""
48698 fi
48699
eb730a0c
JS
48700 COND_WINDOWS_IMPLIB_1="#"
48701 if test "x$WINDOWS_IMPLIB" = "x1" ; then
48702 COND_WINDOWS_IMPLIB_1=""
48703 fi
48704
a848cd7e
SC
48705 COND_WITH_PLUGIN_SDL_1="#"
48706 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
48707 COND_WITH_PLUGIN_SDL_1=""
48708 fi
48709
1e6eb025
VZ
48710 COND_WXUNIV_0="#"
48711 if test "x$WXUNIV" = "x0" ; then
48712 COND_WXUNIV_0=""
48713 fi
48714
a848cd7e
SC
48715 COND_WXUNIV_1="#"
48716 if test "x$WXUNIV" = "x1" ; then
48717 COND_WXUNIV_1=""
48718 fi
48719
48720 COND_WXUSE_EXPAT_BUILTIN="#"
48721 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
48722 COND_WXUSE_EXPAT_BUILTIN=""
48723 fi
48724
48725 COND_WXUSE_LIBJPEG_BUILTIN="#"
48726 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
48727 COND_WXUSE_LIBJPEG_BUILTIN=""
48728 fi
48729
48730 COND_WXUSE_LIBPNG_BUILTIN="#"
48731 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
48732 COND_WXUSE_LIBPNG_BUILTIN=""
48733 fi
48734
48735 COND_WXUSE_LIBTIFF_BUILTIN="#"
48736 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
48737 COND_WXUSE_LIBTIFF_BUILTIN=""
48738 fi
48739
48740 COND_WXUSE_ODBC_BUILTIN="#"
48741 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
48742 COND_WXUSE_ODBC_BUILTIN=""
48743 fi
48744
48745 COND_WXUSE_REGEX_BUILTIN="#"
48746 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
48747 COND_WXUSE_REGEX_BUILTIN=""
48748 fi
48749
48750 COND_WXUSE_ZLIB_BUILTIN="#"
48751 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
48752 COND_WXUSE_ZLIB_BUILTIN=""
48753 fi
48754
48755
48756
810b94f0
MW
48757 if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
48758 { { 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
48759echo "$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;}
48760 { (exit 1); exit 1; }; }
48761 fi
48762
2057db16
VS
48763 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
48764 { { 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
48765echo "$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;}
48766 { (exit 1); exit 1; }; }
48767 fi
48768
a848cd7e 48769
7afc46ab
KO
48770
48771if test "$wxUSE_MAC" = 1 ; then
95768535 48772 if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then
7afc46ab
KO
48773 sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
48774 mv temp bk-deps
48775 chmod +x bk-deps
48776 fi
48777fi
48778
ceec2216
RL
48779if test "$wxUSE_SHARED" = "yes"; then
48780
48781 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
48782 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
48783
5b674b9d
DE
48784 case "${host}" in
48785 *-pc-os2_emx | *-pc-os2-emx )
48786 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48787 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48788 cp -p ${srcdir}/src/os2/dllnames.sh .
48789 cp -p ${srcdir}/src/os2/dllar.sh .
48790 ;;
48791 esac
ceec2216
RL
48792else
48793
48794 EXE_LINKER="$CXX -o"
48795
48796fi
69120ee4
VZ
48797if test "$wxUSE_OMF" = "yes"; then
48798 case "${host}" in
48799 *-pc-os2_emx | *-pc-os2-emx )
48800 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
48801 LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
48802 WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
48803 ;;
48804 esac
48805fi
a848cd7e 48806
c08ebc62 48807if test $GCC_PCH = 1 ; then
254e8e29 48808 CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
ddd14b14 48809fi
a848cd7e 48810
5ff751d6 48811WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
a848cd7e
SC
48812
48813SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
48814
48815
48816
48817
48818
48819
48820
48821
48822
48823
48824
48825
48826
48827
48828
48829
48830
48831
48832
48833
48834
48835
48836
48837
48838
48839
48840
48841
48842
48843
48844
48845
48846
48847
48848
48849
48850
48851
48852
48853
48854
48855
a848cd7e
SC
48856
48857
48858
48859
48860
48861
48862
48863
48864
48865
48866
48867
a848cd7e
SC
48868
48869
ddd14b14 48870
370d2fd7 48871
8ced02f6 48872
a848cd7e
SC
48873
48874
48875echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
48876echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 48877set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
48878if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
48879 echo $ECHO_N "(cached) $ECHO_C" >&6
48880else
48881 cat >conftest.make <<\_ACEOF
48882all:
48883 @echo 'ac_maketemp="$(MAKE)"'
48884_ACEOF
48885# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
48886eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
48887if test -n "$ac_maketemp"; then
48888 eval ac_cv_prog_make_${ac_make}_set=yes
48889else
48890 eval ac_cv_prog_make_${ac_make}_set=no
48891fi
48892rm -f conftest.make
48893fi
48894if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
48895 echo "$as_me:$LINENO: result: yes" >&5
48896echo "${ECHO_T}yes" >&6
48897 SET_MAKE=
48898else
48899 echo "$as_me:$LINENO: result: no" >&5
48900echo "${ECHO_T}no" >&6
48901 SET_MAKE="MAKE=${MAKE-make}"
48902fi
48903
48904
a848cd7e 48905
ceec2216
RL
48906 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
48907
a848cd7e 48908
5c60e845
MW
48909if test "$USE_WIN32" = 1; then
48910 ac_config_commands="$ac_config_commands
48911 rcdefs.h
48912 "
48913
48914fi
48915
ceec2216 48916 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 48917
a848cd7e 48918
ceec2216 48919 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 48920
ceec2216
RL
48921
48922 ac_config_files="$ac_config_files version-script Makefile"
48923
48924
5c60e845 48925 ac_config_commands="$ac_config_commands wx-config"
a848cd7e
SC
48926
48927
9103d280 48928
1c14217d 48929if test "$wxWITH_SUBDIRS" != "no"; then
a848cd7e
SC
48930if test "$wxUSE_GUI" = "yes"; then
48931 SUBDIRS="samples demos utils contrib"
48932else SUBDIRS="samples utils"
48933fi
48934
48935
48936
48937# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
48938if test "${with_cppunit_prefix+set}" = set; then
48939 withval="$with_cppunit_prefix"
48940 cppunit_config_prefix="$withval"
48941else
48942 cppunit_config_prefix=""
48943fi;
48944
48945# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
48946if test "${with_cppunit_exec_prefix+set}" = set; then
48947 withval="$with_cppunit_exec_prefix"
48948 cppunit_config_exec_prefix="$withval"
48949else
48950 cppunit_config_exec_prefix=""
48951fi;
48952
48953 if test x$cppunit_config_exec_prefix != x ; then
48954 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
48955 if test x${CPPUNIT_CONFIG+set} != xset ; then
48956 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
48957 fi
48958 fi
48959 if test x$cppunit_config_prefix != x ; then
48960 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
48961 if test x${CPPUNIT_CONFIG+set} != xset ; then
48962 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
48963 fi
48964 fi
48965
48966 # Extract the first word of "cppunit-config", so it can be a program name with args.
48967set dummy cppunit-config; ac_word=$2
48968echo "$as_me:$LINENO: checking for $ac_word" >&5
48969echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48970if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
48971 echo $ECHO_N "(cached) $ECHO_C" >&6
48972else
48973 case $CPPUNIT_CONFIG in
48974 [\\/]* | ?:[\\/]*)
48975 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
48976 ;;
48977 *)
48978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48979for as_dir in $PATH
48980do
48981 IFS=$as_save_IFS
48982 test -z "$as_dir" && as_dir=.
48983 for ac_exec_ext in '' $ac_executable_extensions; do
48984 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48985 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
48986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48987 break 2
48988 fi
48989done
48990done
48991
48992 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
48993 ;;
48994esac
48995fi
48996CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
48997
48998if test -n "$CPPUNIT_CONFIG"; then
48999 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
49000echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
49001else
49002 echo "$as_me:$LINENO: result: no" >&5
49003echo "${ECHO_T}no" >&6
49004fi
49005
49006 cppunit_version_min=1.8.0
49007
49008 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
49009echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
49010 no_cppunit=""
49011 if test "$CPPUNIT_CONFIG" = "no" ; then
3ecd9f92
MW
49012 echo "$as_me:$LINENO: result: no" >&5
49013echo "${ECHO_T}no" >&6
a848cd7e
SC
49014 no_cppunit=yes
49015 else
49016 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
49017 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
49018 cppunit_version=`$CPPUNIT_CONFIG --version`
49019
49020 cppunit_major_version=`echo $cppunit_version | \
49021 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
49022 cppunit_minor_version=`echo $cppunit_version | \
49023 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
49024 cppunit_micro_version=`echo $cppunit_version | \
49025 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
49026
49027 cppunit_major_min=`echo $cppunit_version_min | \
49028 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
49029 cppunit_minor_min=`echo $cppunit_version_min | \
49030 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
49031 cppunit_micro_min=`echo $cppunit_version_min | \
49032 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
49033
49034 cppunit_version_proper=`expr \
49035 $cppunit_major_version \> $cppunit_major_min \| \
49036 $cppunit_major_version \= $cppunit_major_min \& \
49037 $cppunit_minor_version \> $cppunit_minor_min \| \
49038 $cppunit_major_version \= $cppunit_major_min \& \
49039 $cppunit_minor_version \= $cppunit_minor_min \& \
49040 $cppunit_micro_version \>= $cppunit_micro_min `
49041
49042 if test "$cppunit_version_proper" = "1" ; then
49043 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
49044echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
49045 else
49046 echo "$as_me:$LINENO: result: no" >&5
49047echo "${ECHO_T}no" >&6
49048 no_cppunit=yes
49049 fi
49050 fi
49051
49052 if test "x$no_cppunit" = x ; then
c2218763 49053 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
49054 else
49055 CPPUNIT_CFLAGS=""
49056 CPPUNIT_LIBS=""
c2218763 49057 :
a848cd7e
SC
49058 fi
49059
49060
49061
49062
49063
49064for subdir in `echo $SUBDIRS`; do
49065 if test -d ${srcdir}/${subdir} ; then
49066 if test "$wxUSE_GUI" = "yes"; then
49067 if test ${subdir} = "samples"; then
49068 makefiles="samples/Makefile.in $makefiles"
49069 for sample in `echo $SAMPLES_SUBDIRS`; do
49070 if test -d $srcdir/samples/$sample; then
49071 makefiles="samples/$sample/Makefile.in $makefiles"
49072 fi
49073 done
9c112555
MW
49074 else
49075 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
49076 eval "disabled=\$$disabled_var"
49077 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
49078 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"`
a848cd7e
SC
49079 fi
49080 else if test ${subdir} = "samples"; then
49081 makefiles="samples/Makefile.in samples/console/Makefile.in"
49082 elif test ${subdir} = "utils"; then
6537ccf8
VS
49083 makefiles=""
49084 for util in HelpGen tex2rtf ; do
49085 if test -d $srcdir/utils/$util ; then
49086 makefiles="utils/$util/Makefile.in \
49087 utils/$util/src/Makefile.in \
49088 $makefiles"
49089 fi
49090 done
a848cd7e
SC
49091 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
49092 fi
49093 fi
49094
49095 for mkin in $makefiles ; do
49096 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
49097 ac_config_files="$ac_config_files $mk"
49098
49099 done
49100 fi
49101done
1c14217d 49102fi
a848cd7e
SC
49103cat >confcache <<\_ACEOF
49104# This file is a shell script that caches the results of configure
49105# tests run on this system so they can be shared between configure
49106# scripts and configure runs, see configure's option --config-cache.
49107# It is not useful on other systems. If it contains results you don't
49108# want to keep, you may remove or edit it.
49109#
49110# config.status only pays attention to the cache file if you give it
49111# the --recheck option to rerun configure.
49112#
49113# `ac_cv_env_foo' variables (set or unset) will be overridden when
49114# loading this file, other *unset* `ac_cv_foo' will be assigned the
49115# following values.
49116
49117_ACEOF
49118
49119# The following way of writing the cache mishandles newlines in values,
49120# but we know of no workaround that is simple, portable, and efficient.
49121# So, don't put newlines in cache variables' values.
49122# Ultrix sh set writes to stderr and can't be redirected directly,
49123# and sets the high bit in the cache file unless we assign to the vars.
49124{
49125 (set) 2>&1 |
49126 case `(ac_space=' '; set | grep ac_space) 2>&1` in
49127 *ac_space=\ *)
49128 # `set' does not quote correctly, so add quotes (double-quote
49129 # substitution turns \\\\ into \\, and sed turns \\ into \).
49130 sed -n \
ac1cb8d3
VS
49131 "s/'/'\\\\''/g;
49132 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
49133 ;;
49134 *)
49135 # `set' quotes correctly as required by POSIX, so do not add quotes.
49136 sed -n \
ac1cb8d3 49137 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
49138 ;;
49139 esac;
49140} |
49141 sed '
49142 t clear
49143 : clear
49144 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
49145 t end
49146 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
49147 : end' >>confcache
49148if diff $cache_file confcache >/dev/null 2>&1; then :; else
49149 if test -w $cache_file; then
49150 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
49151 cat confcache >$cache_file
49152 else
49153 echo "not updating unwritable cache $cache_file"
49154 fi
49155fi
49156rm -f confcache
49157
49158test "x$prefix" = xNONE && prefix=$ac_default_prefix
49159# Let make expand exec_prefix.
49160test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
49161
49162# VPATH may cause trouble with some makes, so we remove $(srcdir),
49163# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
49164# trailing colons and then remove the whole line if VPATH becomes empty
49165# (actually we leave an empty line to preserve line numbers).
49166if test "x$srcdir" = x.; then
ac1cb8d3 49167 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
49168s/:*\$(srcdir):*/:/;
49169s/:*\${srcdir}:*/:/;
49170s/:*@srcdir@:*/:/;
ac1cb8d3 49171s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 49172s/:*$//;
ac1cb8d3 49173s/^[^=]*=[ ]*$//;
a848cd7e
SC
49174}'
49175fi
49176
49177DEFS=-DHAVE_CONFIG_H
49178
49179ac_libobjs=
49180ac_ltlibobjs=
49181for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
49182 # 1. Remove the extension, and $U if already installed.
49183 ac_i=`echo "$ac_i" |
ac1cb8d3 49184 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
49185 # 2. Add them.
49186 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
49187 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
49188done
49189LIBOBJS=$ac_libobjs
49190
49191LTLIBOBJS=$ac_ltlibobjs
49192
49193
49194
49195: ${CONFIG_STATUS=./config.status}
49196ac_clean_files_save=$ac_clean_files
49197ac_clean_files="$ac_clean_files $CONFIG_STATUS"
49198{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
49199echo "$as_me: creating $CONFIG_STATUS" >&6;}
49200cat >$CONFIG_STATUS <<_ACEOF
49201#! $SHELL
49202# Generated by $as_me.
49203# Run this file to recreate the current configuration.
49204# Compiler output produced by configure, useful for debugging
49205# configure, is in config.log if it exists.
49206
49207debug=false
49208ac_cs_recheck=false
49209ac_cs_silent=false
49210SHELL=\${CONFIG_SHELL-$SHELL}
49211_ACEOF
49212
49213cat >>$CONFIG_STATUS <<\_ACEOF
49214## --------------------- ##
49215## M4sh Initialization. ##
49216## --------------------- ##
49217
49218# Be Bourne compatible
49219if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
49220 emulate sh
49221 NULLCMD=:
49222 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
49223 # is contrary to our usage. Disable this feature.
49224 alias -g '${1+"$@"}'='"$@"'
49225elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
49226 set -o posix
49227fi
ac1cb8d3 49228DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
49229
49230# Support unset when possible.
ac1cb8d3 49231if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
49232 as_unset=unset
49233else
49234 as_unset=false
49235fi
49236
49237
49238# Work around bugs in pre-3.0 UWIN ksh.
49239$as_unset ENV MAIL MAILPATH
49240PS1='$ '
49241PS2='> '
49242PS4='+ '
49243
49244# NLS nuisances.
49245for as_var in \
49246 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49247 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
49248 LC_TELEPHONE LC_TIME
49249do
ac1cb8d3 49250 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
49251 eval $as_var=C; export $as_var
49252 else
49253 $as_unset $as_var
49254 fi
49255done
49256
49257# Required to use basename.
49258if expr a : '\(a\)' >/dev/null 2>&1; then
49259 as_expr=expr
49260else
49261 as_expr=false
49262fi
49263
49264if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
49265 as_basename=basename
49266else
49267 as_basename=false
49268fi
49269
49270
49271# Name of the executable.
49272as_me=`$as_basename "$0" ||
49273$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
49274 X"$0" : 'X\(//\)$' \| \
49275 X"$0" : 'X\(/\)$' \| \
49276 . : '\(.\)' 2>/dev/null ||
49277echo X/"$0" |
49278 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
49279 /^X\/\(\/\/\)$/{ s//\1/; q; }
49280 /^X\/\(\/\).*/{ s//\1/; q; }
49281 s/.*/./; q'`
49282
49283
49284# PATH needs CR, and LINENO needs CR and PATH.
49285# Avoid depending upon Character Ranges.
49286as_cr_letters='abcdefghijklmnopqrstuvwxyz'
49287as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
49288as_cr_Letters=$as_cr_letters$as_cr_LETTERS
49289as_cr_digits='0123456789'
49290as_cr_alnum=$as_cr_Letters$as_cr_digits
49291
49292# The user is always right.
49293if test "${PATH_SEPARATOR+set}" != set; then
49294 echo "#! /bin/sh" >conf$$.sh
49295 echo "exit 0" >>conf$$.sh
49296 chmod +x conf$$.sh
49297 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49298 PATH_SEPARATOR=';'
49299 else
49300 PATH_SEPARATOR=:
49301 fi
49302 rm -f conf$$.sh
49303fi
49304
49305
49306 as_lineno_1=$LINENO
49307 as_lineno_2=$LINENO
49308 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
49309 test "x$as_lineno_1" != "x$as_lineno_2" &&
49310 test "x$as_lineno_3" = "x$as_lineno_2" || {
49311 # Find who we are. Look in the path if we contain no path at all
49312 # relative or not.
49313 case $0 in
49314 *[\\/]* ) as_myself=$0 ;;
49315 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49316for as_dir in $PATH
49317do
49318 IFS=$as_save_IFS
49319 test -z "$as_dir" && as_dir=.
49320 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
49321done
49322
49323 ;;
49324 esac
49325 # We did not find ourselves, most probably we were run as `sh COMMAND'
49326 # in which case we are not to be found in the path.
49327 if test "x$as_myself" = x; then
49328 as_myself=$0
49329 fi
49330 if test ! -f "$as_myself"; then
49331 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
49332echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
49333 { (exit 1); exit 1; }; }
49334 fi
49335 case $CONFIG_SHELL in
49336 '')
49337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49338for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
49339do
49340 IFS=$as_save_IFS
49341 test -z "$as_dir" && as_dir=.
49342 for as_base in sh bash ksh sh5; do
49343 case $as_dir in
49344 /*)
49345 if ("$as_dir/$as_base" -c '
49346 as_lineno_1=$LINENO
49347 as_lineno_2=$LINENO
49348 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
49349 test "x$as_lineno_1" != "x$as_lineno_2" &&
49350 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
49351 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
49352 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
49353 CONFIG_SHELL=$as_dir/$as_base
49354 export CONFIG_SHELL
49355 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
49356 fi;;
49357 esac
49358 done
49359done
49360;;
49361 esac
49362
49363 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
49364 # uniformly replaced by the line number. The first 'sed' inserts a
49365 # line-number line before each line; the second 'sed' does the real
49366 # work. The second script uses 'N' to pair each line-number line
49367 # with the numbered line, and appends trailing '-' during
49368 # substitution so that $LINENO is not a special case at line end.
49369 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
49370 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
49371 sed '=' <$as_myself |
49372 sed '
49373 N
49374 s,$,-,
49375 : loop
49376 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
49377 t loop
49378 s,-$,,
49379 s,^['$as_cr_digits']*\n,,
49380 ' >$as_me.lineno &&
49381 chmod +x $as_me.lineno ||
49382 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
49383echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
49384 { (exit 1); exit 1; }; }
49385
49386 # Don't try to exec as it changes $[0], causing all sort of problems
49387 # (the dirname of $[0] is not the place where we might find the
49388 # original and so on. Autoconf is especially sensible to this).
49389 . ./$as_me.lineno
49390 # Exit status is that of the last command.
49391 exit
49392}
49393
49394
49395case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
49396 *c*,-n*) ECHO_N= ECHO_C='
49397' ECHO_T=' ' ;;
49398 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
49399 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
49400esac
49401
49402if expr a : '\(a\)' >/dev/null 2>&1; then
49403 as_expr=expr
49404else
49405 as_expr=false
49406fi
49407
49408rm -f conf$$ conf$$.exe conf$$.file
49409echo >conf$$.file
49410if ln -s conf$$.file conf$$ 2>/dev/null; then
49411 # We could just check for DJGPP; but this test a) works b) is more generic
49412 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
49413 if test -f conf$$.exe; then
49414 # Don't use ln at all; we don't have any links
49415 as_ln_s='cp -p'
49416 else
49417 as_ln_s='ln -s'
49418 fi
49419elif ln conf$$.file conf$$ 2>/dev/null; then
49420 as_ln_s=ln
49421else
49422 as_ln_s='cp -p'
49423fi
49424rm -f conf$$ conf$$.exe conf$$.file
49425
49426if mkdir -p . 2>/dev/null; then
49427 as_mkdir_p=:
49428else
ac1cb8d3 49429 test -d ./-p && rmdir ./-p
a848cd7e
SC
49430 as_mkdir_p=false
49431fi
49432
49433as_executable_p="test -f"
49434
49435# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 49436as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
49437
49438# Sed expression to map a string onto a valid variable name.
ac1cb8d3 49439as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
49440
49441
49442# IFS
49443# We need space, tab and new line, in precisely that order.
49444as_nl='
49445'
49446IFS=" $as_nl"
49447
49448# CDPATH.
49449$as_unset CDPATH
49450
49451exec 6>&1
49452
49453# Open the log real soon, to keep \$[0] and so on meaningful, and to
49454# report actual input values of CONFIG_FILES etc. instead of their
49455# values after options handling. Logging --version etc. is OK.
49456exec 5>>config.log
49457{
49458 echo
49459 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
49460## Running $as_me. ##
49461_ASBOX
49462} >&5
49463cat >&5 <<_CSEOF
49464
dd8df4fc 49465This file was extended by wxWidgets $as_me 2.7.0, which was
ac1cb8d3 49466generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
49467
49468 CONFIG_FILES = $CONFIG_FILES
49469 CONFIG_HEADERS = $CONFIG_HEADERS
49470 CONFIG_LINKS = $CONFIG_LINKS
49471 CONFIG_COMMANDS = $CONFIG_COMMANDS
49472 $ $0 $@
49473
49474_CSEOF
49475echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
49476echo >&5
49477_ACEOF
49478
49479# Files that config.status was made for.
49480if test -n "$ac_config_files"; then
49481 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
49482fi
49483
49484if test -n "$ac_config_headers"; then
49485 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
49486fi
49487
49488if test -n "$ac_config_links"; then
49489 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
49490fi
49491
49492if test -n "$ac_config_commands"; then
49493 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
49494fi
49495
49496cat >>$CONFIG_STATUS <<\_ACEOF
49497
49498ac_cs_usage="\
49499\`$as_me' instantiates files from templates according to the
49500current configuration.
49501
49502Usage: $0 [OPTIONS] [FILE]...
49503
49504 -h, --help print this help, then exit
49505 -V, --version print version number, then exit
49506 -q, --quiet do not print progress messages
49507 -d, --debug don't remove temporary files
49508 --recheck update $as_me by reconfiguring in the same conditions
49509 --file=FILE[:TEMPLATE]
ac1cb8d3 49510 instantiate the configuration file FILE
a848cd7e 49511 --header=FILE[:TEMPLATE]
ac1cb8d3 49512 instantiate the configuration header FILE
a848cd7e
SC
49513
49514Configuration files:
49515$config_files
49516
49517Configuration headers:
49518$config_headers
49519
49520Configuration commands:
49521$config_commands
49522
49523Report bugs to <bug-autoconf@gnu.org>."
49524_ACEOF
49525
49526cat >>$CONFIG_STATUS <<_ACEOF
49527ac_cs_version="\\
dd8df4fc 49528wxWidgets config.status 2.7.0
ac1cb8d3 49529configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
49530 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
49531
ac1cb8d3 49532Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
49533This config.status script is free software; the Free Software Foundation
49534gives unlimited permission to copy, distribute and modify it."
49535srcdir=$srcdir
49536INSTALL="$INSTALL"
49537_ACEOF
49538
49539cat >>$CONFIG_STATUS <<\_ACEOF
49540# If no file are specified by the user, then we need to provide default
49541# value. By we need to know if files were specified by the user.
49542ac_need_defaults=:
49543while test $# != 0
49544do
49545 case $1 in
49546 --*=*)
49547 ac_option=`expr "x$1" : 'x\([^=]*\)='`
49548 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
49549 ac_shift=:
49550 ;;
49551 -*)
49552 ac_option=$1
49553 ac_optarg=$2
49554 ac_shift=shift
49555 ;;
49556 *) # This is not an option, so the user has probably given explicit
49557 # arguments.
49558 ac_option=$1
49559 ac_need_defaults=false;;
49560 esac
49561
49562 case $ac_option in
49563 # Handling of the options.
49564_ACEOF
49565cat >>$CONFIG_STATUS <<\_ACEOF
49566 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
49567 ac_cs_recheck=: ;;
49568 --version | --vers* | -V )
49569 echo "$ac_cs_version"; exit 0 ;;
49570 --he | --h)
49571 # Conflict between --help and --header
49572 { { echo "$as_me:$LINENO: error: ambiguous option: $1
49573Try \`$0 --help' for more information." >&5
49574echo "$as_me: error: ambiguous option: $1
49575Try \`$0 --help' for more information." >&2;}
49576 { (exit 1); exit 1; }; };;
49577 --help | --hel | -h )
49578 echo "$ac_cs_usage"; exit 0 ;;
49579 --debug | --d* | -d )
49580 debug=: ;;
49581 --file | --fil | --fi | --f )
49582 $ac_shift
49583 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
49584 ac_need_defaults=false;;
49585 --header | --heade | --head | --hea )
49586 $ac_shift
49587 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
49588 ac_need_defaults=false;;
49589 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
49590 | -silent | --silent | --silen | --sile | --sil | --si | --s)
49591 ac_cs_silent=: ;;
49592
49593 # This is an error.
49594 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
49595Try \`$0 --help' for more information." >&5
49596echo "$as_me: error: unrecognized option: $1
49597Try \`$0 --help' for more information." >&2;}
49598 { (exit 1); exit 1; }; } ;;
49599
49600 *) ac_config_targets="$ac_config_targets $1" ;;
49601
49602 esac
49603 shift
49604done
49605
49606ac_configure_extra_args=
49607
49608if $ac_cs_silent; then
49609 exec 6>/dev/null
49610 ac_configure_extra_args="$ac_configure_extra_args --silent"
49611fi
49612
49613_ACEOF
49614cat >>$CONFIG_STATUS <<_ACEOF
49615if \$ac_cs_recheck; then
49616 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
49617 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
49618fi
49619
49620_ACEOF
49621
49622cat >>$CONFIG_STATUS <<_ACEOF
49623#
49624# INIT-COMMANDS section.
49625#
49626
5c60e845
MW
49627
49628 CPP="$CPP"
49629 infile="$srcdir/include/wx/msw/genrcdefs.h"
49630 outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
49631
49632
ceec2216
RL
49633 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
49634 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
49635 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
49636 LN_S="${LN_S}"
a848cd7e
SC
49637
49638
49639_ACEOF
49640
49641
49642
49643cat >>$CONFIG_STATUS <<\_ACEOF
49644for ac_config_target in $ac_config_targets
49645do
49646 case "$ac_config_target" in
49647 # Handling of arguments.
ceec2216
RL
49648 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
49649 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
49650 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
49651 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
49652 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
5c60e845 49653 "rcdefs.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
ceec2216
RL
49654 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
49655 "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
49656 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
49657echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
49658 { (exit 1); exit 1; }; };;
49659 esac
49660done
49661
49662# If the user did not use the arguments to specify the items to instantiate,
49663# then the envvar interface is used. Set only those that are not.
49664# We use the long form for the default assignment because of an extremely
49665# bizarre bug on SunOS 4.1.3.
49666if $ac_need_defaults; then
49667 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
49668 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
49669 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
49670fi
49671
49672# Have a temporary directory for convenience. Make it in the build tree
49673# simply because there is no reason to put it here, and in addition,
49674# creating and moving files from /tmp can sometimes cause problems.
49675# Create a temporary directory, and hook for its removal unless debugging.
49676$debug ||
49677{
49678 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
49679 trap '{ (exit 1); exit 1; }' 1 2 13 15
49680}
49681
49682# Create a (secure) tmp directory for tmp files.
49683
49684{
49685 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
49686 test -n "$tmp" && test -d "$tmp"
49687} ||
49688{
49689 tmp=./confstat$$-$RANDOM
49690 (umask 077 && mkdir $tmp)
49691} ||
49692{
49693 echo "$me: cannot create a temporary directory in ." >&2
49694 { (exit 1); exit 1; }
49695}
49696
49697_ACEOF
49698
49699cat >>$CONFIG_STATUS <<_ACEOF
49700
49701#
49702# CONFIG_FILES section.
49703#
49704
49705# No need to generate the scripts if there are no CONFIG_FILES.
49706# This happens for instance when ./config.status config.h
49707if test -n "\$CONFIG_FILES"; then
49708 # Protect against being on the right side of a sed subst in config.status.
49709 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
49710 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
49711s,@SHELL@,$SHELL,;t t
49712s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
49713s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
49714s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
49715s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
49716s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
49717s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
49718s,@exec_prefix@,$exec_prefix,;t t
49719s,@prefix@,$prefix,;t t
49720s,@program_transform_name@,$program_transform_name,;t t
49721s,@bindir@,$bindir,;t t
49722s,@sbindir@,$sbindir,;t t
49723s,@libexecdir@,$libexecdir,;t t
49724s,@datadir@,$datadir,;t t
49725s,@sysconfdir@,$sysconfdir,;t t
49726s,@sharedstatedir@,$sharedstatedir,;t t
49727s,@localstatedir@,$localstatedir,;t t
49728s,@libdir@,$libdir,;t t
49729s,@includedir@,$includedir,;t t
49730s,@oldincludedir@,$oldincludedir,;t t
49731s,@infodir@,$infodir,;t t
49732s,@mandir@,$mandir,;t t
49733s,@build_alias@,$build_alias,;t t
49734s,@host_alias@,$host_alias,;t t
49735s,@target_alias@,$target_alias,;t t
49736s,@DEFS@,$DEFS,;t t
49737s,@ECHO_C@,$ECHO_C,;t t
49738s,@ECHO_N@,$ECHO_N,;t t
49739s,@ECHO_T@,$ECHO_T,;t t
49740s,@LIBS@,$LIBS,;t t
49741s,@build@,$build,;t t
49742s,@build_cpu@,$build_cpu,;t t
49743s,@build_vendor@,$build_vendor,;t t
49744s,@build_os@,$build_os,;t t
49745s,@host@,$host,;t t
49746s,@host_cpu@,$host_cpu,;t t
49747s,@host_vendor@,$host_vendor,;t t
49748s,@host_os@,$host_os,;t t
49749s,@target@,$target,;t t
49750s,@target_cpu@,$target_cpu,;t t
49751s,@target_vendor@,$target_vendor,;t t
49752s,@target_os@,$target_os,;t t
49753s,@CC@,$CC,;t t
49754s,@CFLAGS@,$CFLAGS,;t t
49755s,@LDFLAGS@,$LDFLAGS,;t t
49756s,@CPPFLAGS@,$CPPFLAGS,;t t
49757s,@ac_ct_CC@,$ac_ct_CC,;t t
49758s,@EXEEXT@,$EXEEXT,;t t
49759s,@OBJEXT@,$OBJEXT,;t t
49760s,@CPP@,$CPP,;t t
49761s,@EGREP@,$EGREP,;t t
49762s,@CXX@,$CXX,;t t
49763s,@CXXFLAGS@,$CXXFLAGS,;t t
49764s,@ac_ct_CXX@,$ac_ct_CXX,;t t
49765s,@RANLIB@,$RANLIB,;t t
49766s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
49767s,@AR@,$AR,;t t
8c80d384 49768s,@ac_ct_AR@,$ac_ct_AR,;t t
a848cd7e
SC
49769s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
49770s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
49771s,@INSTALL_DATA@,$INSTALL_DATA,;t t
49772s,@STRIP@,$STRIP,;t t
8c80d384 49773s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8ced02f6
DE
49774s,@WINDRES@,$WINDRES,;t t
49775s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
8c80d384
DE
49776s,@DLLTOOL@,$DLLTOOL,;t t
49777s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
a848cd7e
SC
49778s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
49779s,@LN_S@,$LN_S,;t t
49780s,@CXXCPP@,$CXXCPP,;t t
49781s,@subdirs@,$subdirs,;t t
49782s,@PKG_CONFIG@,$PKG_CONFIG,;t t
49783s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
49784s,@GTK_LIBS@,$GTK_LIBS,;t t
49785s,@GTK_CONFIG@,$GTK_CONFIG,;t t
a848cd7e
SC
49786s,@X_CFLAGS@,$X_CFLAGS,;t t
49787s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
49788s,@X_LIBS@,$X_LIBS,;t t
49789s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
3ecd9f92 49790s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
a848cd7e
SC
49791s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
49792s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
49793s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
49794s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
49795s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
49796s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
8ced02f6 49797s,@REZ@,$REZ,;t t
a848cd7e
SC
49798s,@DEREZ@,$DEREZ,;t t
49799s,@SETFILE@,$SETFILE,;t t
49800s,@LIBICONV@,$LIBICONV,;t t
49801s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
49802s,@SDL_CONFIG@,$SDL_CONFIG,;t t
49803s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
49804s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
49805s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
49806s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
2b850ae1
RR
49807s,@GNOMEVFS_CFLAGS@,$GNOMEVFS_CFLAGS,;t t
49808s,@GNOMEVFS_LIBS@,$GNOMEVFS_LIBS,;t t
3565d135
RR
49809s,@HILDON_CFLAGS@,$HILDON_CFLAGS,;t t
49810s,@HILDON_LIBS@,$HILDON_LIBS,;t t
f10e38c4
VZ
49811s,@GST_CFLAGS@,$GST_CFLAGS,;t t
49812s,@GST_LIBS@,$GST_LIBS,;t t
a848cd7e
SC
49813s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
49814s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
49815s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
49816s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
49817s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
49818s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
49819s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
49820s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
49821s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
49822s,@VENDOR@,$VENDOR,;t t
49823s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
49824s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
49825s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
49826s,@WXUNIV@,$WXUNIV,;t t
49827s,@MONOLITHIC@,$MONOLITHIC,;t t
49828s,@USE_PLUGINS@,$USE_PLUGINS,;t t
49829s,@EXTRALIBS@,$EXTRALIBS,;t t
49830s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
49831s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
49832s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
49833s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
49834s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
49835s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
49836s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 49837s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
2b850ae1 49838s,@EXTRALIBS_GNOMEVFS@,$EXTRALIBS_GNOMEVFS,;t t
3565d135 49839s,@EXTRALIBS_HILDON@,$EXTRALIBS_HILDON,;t t
a848cd7e
SC
49840s,@UNICODE@,$UNICODE,;t t
49841s,@BUILD@,$BUILD,;t t
49842s,@DEBUG_INFO@,$DEBUG_INFO,;t t
49843s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
49844s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
49845s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
49846s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
49847s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
49848s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
49849s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
49850s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
49851s,@SET_MAKE@,$SET_MAKE,;t t
49852s,@MAKE_SET@,$MAKE_SET,;t t
a848cd7e
SC
49853s,@NM@,$NM,;t t
49854s,@ac_ct_NM@,$ac_ct_NM,;t t
49855s,@INSTALL_DIR@,$INSTALL_DIR,;t t
49856s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
49857s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
49858s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
49859s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
49860s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 49861s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
49862s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
49863s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 49864s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
49865s,@SO_SUFFIX@,$SO_SUFFIX,;t t
49866s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
49867s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
49868s,@LIBPREFIX@,$LIBPREFIX,;t t
49869s,@LIBEXT@,$LIBEXT,;t t
49870s,@DLLPREFIX@,$DLLPREFIX,;t t
49871s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
810b94f0 49872s,@dlldir@,$dlldir,;t t
a848cd7e
SC
49873s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
49874s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
49875s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
49876s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
49877s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
49878s,@PIC_FLAG@,$PIC_FLAG,;t t
810b94f0 49879s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t
a848cd7e
SC
49880s,@USE_SOVERSION@,$USE_SOVERSION,;t t
49881s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
49882s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
810b94f0 49883s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t
a848cd7e
SC
49884s,@USE_MACVERSION@,$USE_MACVERSION,;t t
49885s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
49886s,@SONAME_FLAG@,$SONAME_FLAG,;t t
49887s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
49888s,@GCC_PCH@,$GCC_PCH,;t t
f10e38c4 49889s,@ICC_PCH@,$ICC_PCH,;t t
a848cd7e
SC
49890s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
49891s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
49892s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
49893s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
49894s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
49895s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
49896s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
49897s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
49898s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
49899s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
49900s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
49901s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
49902s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
49903s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
49904s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
f10e38c4 49905s,@COND_ICC_PCH_1@,$COND_ICC_PCH_1,;t t
a848cd7e
SC
49906s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
49907s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
3f60522a 49908s,@COND_MONOLITHIC_0_SHARED_0_USE_AUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1,;t t
a848cd7e 49909s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 49910s,@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 49911s,@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 49912s,@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 49913s,@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 49914s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
8b6682b9 49915s,@COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1@,$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1,;t t
ceec2216 49916s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e 49917s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
3f60522a 49918s,@COND_MONOLITHIC_0_SHARED_1_USE_AUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1,;t t
a848cd7e 49919s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 49920s,@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 49921s,@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 49922s,@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 49923s,@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 49924s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
8b6682b9 49925s,@COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1@,$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1,;t t
ceec2216 49926s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
e5efa97e 49927s,@COND_MONOLITHIC_0_USE_MEDIA_1@,$COND_MONOLITHIC_0_USE_MEDIA_1,;t t
a848cd7e
SC
49928s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
49929s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
49930s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
49931s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
49932s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
49933s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
eb730a0c 49934s,@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1,;t t
a848cd7e
SC
49935s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
49936s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 49937s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
49938s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
49939s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
49940s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 49941s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 49942s,@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
49943s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
49944s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
49945s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
49946s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 49947s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
083508af 49948s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
e5efa97e 49949s,@COND_PLATFORM_MSDOS_0@,$COND_PLATFORM_MSDOS_0,;t t
83d8eb47 49950s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t
a848cd7e
SC
49951s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
49952s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
49953s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
49954s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
49955s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
49956s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
49957s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
49958s,@COND_SHARED_0@,$COND_SHARED_0,;t t
083508af
MW
49959s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
49960s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
49961s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
49962s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
49963s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
49964s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
49965s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af 49966s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
49967s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
49968s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
49969s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
49970s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
49971s,@COND_SHARED_1@,$COND_SHARED_1,;t t
49972s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
083508af 49973s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
a30f955f 49974s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 49975s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 49976s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
49977s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
49978s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
d044deea
MW
49979s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_,;t t
49980s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2,;t t
49981s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1,;t t
49982s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0,;t t
49983s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1,;t t
49984s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0,;t t
a848cd7e 49985s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
a848cd7e
SC
49986s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
49987s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
49988s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
49989s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
49990s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
49991s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
49992s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
49993s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
49994s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
49995s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
49996s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 49997s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
a848cd7e
SC
49998s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
49999s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
50000s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
50001s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
50002s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
50003s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 50004s,@COND_TOOLKIT_WINCE_WXUNIV_0@,$COND_TOOLKIT_WINCE_WXUNIV_0,;t t
a848cd7e
SC
50005s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
50006s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
50007s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
50008s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
50009s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
50010s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
50011s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
50012s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
50013s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
50014s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
50015s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
50016s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af
MW
50017s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
50018s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
f10e38c4 50019s,@COND_USE_PCH_1@,$COND_USE_PCH_1,;t t
a848cd7e 50020s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
0b78747f
MW
50021s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
50022s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
a848cd7e 50023s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
eb730a0c 50024s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t
a848cd7e
SC
50025s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
50026s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
50027s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
0b78747f
MW
50028s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
50029s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
a13a7f89 50030s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
eb730a0c 50031s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t
a848cd7e 50032s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 50033s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
50034s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
50035s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
50036s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
50037s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
50038s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
50039s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
50040s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
50041s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 50042s,@SHARED@,$SHARED,;t t
a848cd7e
SC
50043s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
50044s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
50045s,@USE_GUI@,$USE_GUI,;t t
50046s,@AFMINSTALL@,$AFMINSTALL,;t t
50047s,@WIN32INSTALL@,$WIN32INSTALL,;t t
50048s,@TOOLKIT@,$TOOLKIT,;t t
50049s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 50050s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 50051s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e 50052s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
50053s,@WIDGET_SET@,$WIDGET_SET,;t t
50054s,@WX_RELEASE@,$WX_RELEASE,;t t
50055s,@WX_VERSION@,$WX_VERSION,;t t
50056s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
50057s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
50058s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
5ff751d6
VZ
50059s,@WXCONFIG_CPPFLAGS@,$WXCONFIG_CPPFLAGS,;t t
50060s,@WXCONFIG_CFLAGS@,$WXCONFIG_CFLAGS,;t t
50061s,@WXCONFIG_CXXFLAGS@,$WXCONFIG_CXXFLAGS,;t t
50062s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
a848cd7e
SC
50063s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
50064s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
004ee6da 50065s,@WXCONFIG_RESFLAGS@,$WXCONFIG_RESFLAGS,;t t
ceec2216 50066s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 50067s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
50068s,@DISTDIR@,$DISTDIR,;t t
50069s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
50070s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
50071s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
50072s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
50073s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
004ee6da 50074s,@RESCOMP@,$RESCOMP,;t t
a848cd7e
SC
50075s,@RESFLAGS@,$RESFLAGS,;t t
50076s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
50077s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
50078s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
50079s,@LIBWXMACRES@,$LIBWXMACRES,;t t
8ced02f6 50080s,@POSTLINK_COMMAND@,$POSTLINK_COMMAND,;t t
a848cd7e 50081s,@MACSETFILE@,$MACSETFILE,;t t
a848cd7e 50082s,@GCC@,$GCC,;t t
a848cd7e
SC
50083s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
50084s,@LIBOBJS@,$LIBOBJS,;t t
50085s,@LTLIBOBJS@,$LTLIBOBJS,;t t
50086CEOF
50087
50088_ACEOF
50089
50090 cat >>$CONFIG_STATUS <<\_ACEOF
50091 # Split the substitutions into bite-sized pieces for seds with
50092 # small command number limits, like on Digital OSF/1 and HP-UX.
50093 ac_max_sed_lines=48
50094 ac_sed_frag=1 # Number of current file.
50095 ac_beg=1 # First line for current file.
50096 ac_end=$ac_max_sed_lines # Line after last line for current file.
50097 ac_more_lines=:
50098 ac_sed_cmds=
50099 while $ac_more_lines; do
50100 if test $ac_beg -gt 1; then
50101 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
50102 else
50103 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
50104 fi
50105 if test ! -s $tmp/subs.frag; then
50106 ac_more_lines=false
50107 else
50108 # The purpose of the label and of the branching condition is to
50109 # speed up the sed processing (if there are no `@' at all, there
50110 # is no need to browse any of the substitutions).
50111 # These are the two extra sed commands mentioned above.
50112 (echo ':t
50113 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
50114 if test -z "$ac_sed_cmds"; then
ac1cb8d3 50115 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 50116 else
ac1cb8d3 50117 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
50118 fi
50119 ac_sed_frag=`expr $ac_sed_frag + 1`
50120 ac_beg=$ac_end
50121 ac_end=`expr $ac_end + $ac_max_sed_lines`
50122 fi
50123 done
50124 if test -z "$ac_sed_cmds"; then
50125 ac_sed_cmds=cat
50126 fi
50127fi # test -n "$CONFIG_FILES"
50128
50129_ACEOF
50130cat >>$CONFIG_STATUS <<\_ACEOF
50131for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
50132 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
50133 case $ac_file in
50134 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
50135 cat >$tmp/stdin
50136 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
50137 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 50138 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 50139 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
50140 * ) ac_file_in=$ac_file.in ;;
50141 esac
50142
50143 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
50144 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
50145$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
50146 X"$ac_file" : 'X\(//\)[^/]' \| \
50147 X"$ac_file" : 'X\(//\)$' \| \
50148 X"$ac_file" : 'X\(/\)' \| \
50149 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
50150echo X"$ac_file" |
50151 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50152 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50153 /^X\(\/\/\)$/{ s//\1/; q; }
50154 /^X\(\/\).*/{ s//\1/; q; }
50155 s/.*/./; q'`
50156 { if $as_mkdir_p; then
50157 mkdir -p "$ac_dir"
50158 else
50159 as_dir="$ac_dir"
50160 as_dirs=
50161 while test ! -d "$as_dir"; do
50162 as_dirs="$as_dir $as_dirs"
50163 as_dir=`(dirname "$as_dir") 2>/dev/null ||
50164$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
50165 X"$as_dir" : 'X\(//\)[^/]' \| \
50166 X"$as_dir" : 'X\(//\)$' \| \
50167 X"$as_dir" : 'X\(/\)' \| \
50168 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
50169echo X"$as_dir" |
50170 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50171 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50172 /^X\(\/\/\)$/{ s//\1/; q; }
50173 /^X\(\/\).*/{ s//\1/; q; }
50174 s/.*/./; q'`
50175 done
50176 test ! -n "$as_dirs" || mkdir $as_dirs
50177 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50178echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50179 { (exit 1); exit 1; }; }; }
50180
50181 ac_builddir=.
50182
50183if test "$ac_dir" != .; then
50184 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
50185 # A "../" for each directory in $ac_dir_suffix.
50186 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
50187else
50188 ac_dir_suffix= ac_top_builddir=
50189fi
50190
50191case $srcdir in
50192 .) # No --srcdir option. We are building in place.
50193 ac_srcdir=.
50194 if test -z "$ac_top_builddir"; then
50195 ac_top_srcdir=.
50196 else
50197 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
50198 fi ;;
50199 [\\/]* | ?:[\\/]* ) # Absolute path.
50200 ac_srcdir=$srcdir$ac_dir_suffix;
50201 ac_top_srcdir=$srcdir ;;
50202 *) # Relative path.
50203 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
50204 ac_top_srcdir=$ac_top_builddir$srcdir ;;
50205esac
ac1cb8d3
VS
50206
50207# Do not use `cd foo && pwd` to compute absolute paths, because
50208# the directories may not exist.
50209case `pwd` in
50210.) ac_abs_builddir="$ac_dir";;
50211*)
50212 case "$ac_dir" in
50213 .) ac_abs_builddir=`pwd`;;
50214 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
50215 *) ac_abs_builddir=`pwd`/"$ac_dir";;
50216 esac;;
50217esac
50218case $ac_abs_builddir in
50219.) ac_abs_top_builddir=${ac_top_builddir}.;;
50220*)
50221 case ${ac_top_builddir}. in
50222 .) ac_abs_top_builddir=$ac_abs_builddir;;
50223 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
50224 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
50225 esac;;
50226esac
50227case $ac_abs_builddir in
50228.) ac_abs_srcdir=$ac_srcdir;;
50229*)
50230 case $ac_srcdir in
50231 .) ac_abs_srcdir=$ac_abs_builddir;;
50232 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
50233 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
50234 esac;;
50235esac
50236case $ac_abs_builddir in
50237.) ac_abs_top_srcdir=$ac_top_srcdir;;
50238*)
50239 case $ac_top_srcdir in
50240 .) ac_abs_top_srcdir=$ac_abs_builddir;;
50241 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
50242 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
50243 esac;;
50244esac
a848cd7e
SC
50245
50246
50247 case $INSTALL in
50248 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
50249 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
50250 esac
50251
a848cd7e
SC
50252 # Let's still pretend it is `configure' which instantiates (i.e., don't
50253 # use $as_me), people would be surprised to read:
50254 # /* config.h. Generated by config.status. */
50255 if test x"$ac_file" = x-; then
50256 configure_input=
50257 else
50258 configure_input="$ac_file. "
50259 fi
50260 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 50261 sed 's,.*/,,'` by configure."
a848cd7e
SC
50262
50263 # First look for the input files in the build tree, otherwise in the
50264 # src tree.
50265 ac_file_inputs=`IFS=:
50266 for f in $ac_file_in; do
50267 case $f in
50268 -) echo $tmp/stdin ;;
50269 [\\/$]*)
ac1cb8d3
VS
50270 # Absolute (can't be DOS-style, as IFS=:)
50271 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
50272echo "$as_me: error: cannot find input file: $f" >&2;}
50273 { (exit 1); exit 1; }; }
ac1cb8d3 50274 echo "$f";;
a848cd7e 50275 *) # Relative
ac1cb8d3
VS
50276 if test -f "$f"; then
50277 # Build tree
50278 echo "$f"
50279 elif test -f "$srcdir/$f"; then
50280 # Source tree
50281 echo "$srcdir/$f"
50282 else
50283 # /dev/null tree
50284 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
50285echo "$as_me: error: cannot find input file: $f" >&2;}
50286 { (exit 1); exit 1; }; }
ac1cb8d3 50287 fi;;
a848cd7e
SC
50288 esac
50289 done` || { (exit 1); exit 1; }
c9a66001
VZ
50290
50291 if test x"$ac_file" != x-; then
50292 { echo "$as_me:$LINENO: creating $ac_file" >&5
50293echo "$as_me: creating $ac_file" >&6;}
50294 rm -f "$ac_file"
50295 fi
a848cd7e
SC
50296_ACEOF
50297cat >>$CONFIG_STATUS <<_ACEOF
50298 sed "$ac_vpsub
50299$extrasub
50300_ACEOF
50301cat >>$CONFIG_STATUS <<\_ACEOF
50302:t
50303/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
50304s,@configure_input@,$configure_input,;t t
50305s,@srcdir@,$ac_srcdir,;t t
50306s,@abs_srcdir@,$ac_abs_srcdir,;t t
50307s,@top_srcdir@,$ac_top_srcdir,;t t
50308s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
50309s,@builddir@,$ac_builddir,;t t
50310s,@abs_builddir@,$ac_abs_builddir,;t t
50311s,@top_builddir@,$ac_top_builddir,;t t
50312s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
50313s,@INSTALL@,$ac_INSTALL,;t t
50314" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
50315 rm -f $tmp/stdin
50316 if test x"$ac_file" != x-; then
50317 mv $tmp/out $ac_file
50318 else
50319 cat $tmp/out
50320 rm -f $tmp/out
50321 fi
50322
ceec2216
RL
50323 # Run the commands associated with the file.
50324 case $ac_file in
50325 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
50326 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
50327 esac
a848cd7e
SC
50328done
50329_ACEOF
50330cat >>$CONFIG_STATUS <<\_ACEOF
50331
50332#
50333# CONFIG_HEADER section.
50334#
50335
50336# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
50337# NAME is the cpp macro being defined and VALUE is the value it is being given.
50338#
50339# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
50340ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
50341ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
50342ac_dC=' '
50343ac_dD=',;t'
50344# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 50345ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
50346ac_uB='$,\1#\2define\3'
50347ac_uC=' '
50348ac_uD=',;t'
50349
50350for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
50351 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
50352 case $ac_file in
50353 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
50354 cat >$tmp/stdin
50355 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
50356 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 50357 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 50358 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
50359 * ) ac_file_in=$ac_file.in ;;
50360 esac
50361
50362 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
50363echo "$as_me: creating $ac_file" >&6;}
50364
50365 # First look for the input files in the build tree, otherwise in the
50366 # src tree.
50367 ac_file_inputs=`IFS=:
50368 for f in $ac_file_in; do
50369 case $f in
50370 -) echo $tmp/stdin ;;
50371 [\\/$]*)
ac1cb8d3
VS
50372 # Absolute (can't be DOS-style, as IFS=:)
50373 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
50374echo "$as_me: error: cannot find input file: $f" >&2;}
50375 { (exit 1); exit 1; }; }
ac1cb8d3
VS
50376 # Do quote $f, to prevent DOS paths from being IFS'd.
50377 echo "$f";;
a848cd7e 50378 *) # Relative
ac1cb8d3
VS
50379 if test -f "$f"; then
50380 # Build tree
50381 echo "$f"
50382 elif test -f "$srcdir/$f"; then
50383 # Source tree
50384 echo "$srcdir/$f"
50385 else
50386 # /dev/null tree
50387 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
50388echo "$as_me: error: cannot find input file: $f" >&2;}
50389 { (exit 1); exit 1; }; }
ac1cb8d3 50390 fi;;
a848cd7e
SC
50391 esac
50392 done` || { (exit 1); exit 1; }
50393 # Remove the trailing spaces.
ac1cb8d3 50394 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
50395
50396_ACEOF
50397
50398# Transform confdefs.h into two sed scripts, `conftest.defines' and
50399# `conftest.undefs', that substitutes the proper values into
50400# config.h.in to produce config.h. The first handles `#define'
50401# templates, and the second `#undef' templates.
50402# And first: Protect against being on the right side of a sed subst in
50403# config.status. Protect against being in an unquoted here document
50404# in config.status.
50405rm -f conftest.defines conftest.undefs
50406# Using a here document instead of a string reduces the quoting nightmare.
50407# Putting comments in sed scripts is not portable.
50408#
50409# `end' is used to avoid that the second main sed command (meant for
50410# 0-ary CPP macros) applies to n-ary macro definitions.
50411# See the Autoconf documentation for `clear'.
50412cat >confdef2sed.sed <<\_ACEOF
50413s/[\\&,]/\\&/g
50414s,[\\$`],\\&,g
50415t clear
50416: clear
ac1cb8d3 50417s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 50418t end
ac1cb8d3 50419s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
50420: end
50421_ACEOF
50422# If some macros were called several times there might be several times
50423# the same #defines, which is useless. Nevertheless, we may not want to
50424# sort them, since we want the *last* AC-DEFINE to be honored.
50425uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
50426sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
50427rm -f confdef2sed.sed
50428
50429# This sed command replaces #undef with comments. This is necessary, for
50430# example, in the case of _POSIX_SOURCE, which is predefined and required
50431# on some systems where configure will not decide to define it.
50432cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 50433s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
50434_ACEOF
50435
50436# Break up conftest.defines because some shells have a limit on the size
50437# of here documents, and old seds have small limits too (100 cmds).
50438echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 50439echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
50440echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
50441echo ' :' >>$CONFIG_STATUS
50442rm -f conftest.tail
50443while grep . conftest.defines >/dev/null
50444do
50445 # Write a limited-size here document to $tmp/defines.sed.
50446 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
50447 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 50448 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
50449 # Work around the forget-to-reset-the-flag bug.
50450 echo 't clr' >>$CONFIG_STATUS
50451 echo ': clr' >>$CONFIG_STATUS
50452 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
50453 echo 'CEOF
50454 sed -f $tmp/defines.sed $tmp/in >$tmp/out
50455 rm -f $tmp/in
50456 mv $tmp/out $tmp/in
50457' >>$CONFIG_STATUS
50458 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
50459 rm -f conftest.defines
50460 mv conftest.tail conftest.defines
50461done
50462rm -f conftest.defines
50463echo ' fi # grep' >>$CONFIG_STATUS
50464echo >>$CONFIG_STATUS
50465
50466# Break up conftest.undefs because some shells have a limit on the size
50467# of here documents, and old seds have small limits too (100 cmds).
50468echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
50469rm -f conftest.tail
50470while grep . conftest.undefs >/dev/null
50471do
50472 # Write a limited-size here document to $tmp/undefs.sed.
50473 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
50474 # Speed up: don't consider the non `#undef'
ac1cb8d3 50475 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
50476 # Work around the forget-to-reset-the-flag bug.
50477 echo 't clr' >>$CONFIG_STATUS
50478 echo ': clr' >>$CONFIG_STATUS
50479 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
50480 echo 'CEOF
50481 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
50482 rm -f $tmp/in
50483 mv $tmp/out $tmp/in
50484' >>$CONFIG_STATUS
50485 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
50486 rm -f conftest.undefs
50487 mv conftest.tail conftest.undefs
50488done
50489rm -f conftest.undefs
50490
50491cat >>$CONFIG_STATUS <<\_ACEOF
50492 # Let's still pretend it is `configure' which instantiates (i.e., don't
50493 # use $as_me), people would be surprised to read:
50494 # /* config.h. Generated by config.status. */
50495 if test x"$ac_file" = x-; then
50496 echo "/* Generated by configure. */" >$tmp/config.h
50497 else
50498 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
50499 fi
50500 cat $tmp/in >>$tmp/config.h
50501 rm -f $tmp/in
50502 if test x"$ac_file" != x-; then
50503 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
50504 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
50505echo "$as_me: $ac_file is unchanged" >&6;}
50506 else
50507 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
50508$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
50509 X"$ac_file" : 'X\(//\)[^/]' \| \
50510 X"$ac_file" : 'X\(//\)$' \| \
50511 X"$ac_file" : 'X\(/\)' \| \
50512 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
50513echo X"$ac_file" |
50514 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50515 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50516 /^X\(\/\/\)$/{ s//\1/; q; }
50517 /^X\(\/\).*/{ s//\1/; q; }
50518 s/.*/./; q'`
50519 { if $as_mkdir_p; then
50520 mkdir -p "$ac_dir"
50521 else
50522 as_dir="$ac_dir"
50523 as_dirs=
50524 while test ! -d "$as_dir"; do
50525 as_dirs="$as_dir $as_dirs"
50526 as_dir=`(dirname "$as_dir") 2>/dev/null ||
50527$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
50528 X"$as_dir" : 'X\(//\)[^/]' \| \
50529 X"$as_dir" : 'X\(//\)$' \| \
50530 X"$as_dir" : 'X\(/\)' \| \
50531 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
50532echo X"$as_dir" |
50533 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50534 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50535 /^X\(\/\/\)$/{ s//\1/; q; }
50536 /^X\(\/\).*/{ s//\1/; q; }
50537 s/.*/./; q'`
50538 done
50539 test ! -n "$as_dirs" || mkdir $as_dirs
50540 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50541echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50542 { (exit 1); exit 1; }; }; }
50543
50544 rm -f $ac_file
50545 mv $tmp/config.h $ac_file
50546 fi
50547 else
50548 cat $tmp/config.h
50549 rm -f $tmp/config.h
50550 fi
50551done
50552_ACEOF
50553cat >>$CONFIG_STATUS <<\_ACEOF
50554
50555#
50556# CONFIG_COMMANDS section.
50557#
50558for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
50559 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
50560 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
50561 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
50562$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
50563 X"$ac_dest" : 'X\(//\)[^/]' \| \
50564 X"$ac_dest" : 'X\(//\)$' \| \
50565 X"$ac_dest" : 'X\(/\)' \| \
50566 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
50567echo X"$ac_dest" |
50568 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50569 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50570 /^X\(\/\/\)$/{ s//\1/; q; }
50571 /^X\(\/\).*/{ s//\1/; q; }
50572 s/.*/./; q'`
ac1cb8d3
VS
50573 { if $as_mkdir_p; then
50574 mkdir -p "$ac_dir"
50575 else
50576 as_dir="$ac_dir"
50577 as_dirs=
50578 while test ! -d "$as_dir"; do
50579 as_dirs="$as_dir $as_dirs"
50580 as_dir=`(dirname "$as_dir") 2>/dev/null ||
50581$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50582 X"$as_dir" : 'X\(//\)[^/]' \| \
50583 X"$as_dir" : 'X\(//\)$' \| \
50584 X"$as_dir" : 'X\(/\)' \| \
50585 . : '\(.\)' 2>/dev/null ||
50586echo X"$as_dir" |
50587 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50588 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50589 /^X\(\/\/\)$/{ s//\1/; q; }
50590 /^X\(\/\).*/{ s//\1/; q; }
50591 s/.*/./; q'`
50592 done
50593 test ! -n "$as_dirs" || mkdir $as_dirs
50594 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50595echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50596 { (exit 1); exit 1; }; }; }
50597
a848cd7e
SC
50598 ac_builddir=.
50599
50600if test "$ac_dir" != .; then
50601 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
50602 # A "../" for each directory in $ac_dir_suffix.
50603 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
50604else
50605 ac_dir_suffix= ac_top_builddir=
50606fi
50607
50608case $srcdir in
50609 .) # No --srcdir option. We are building in place.
50610 ac_srcdir=.
50611 if test -z "$ac_top_builddir"; then
50612 ac_top_srcdir=.
50613 else
50614 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
50615 fi ;;
50616 [\\/]* | ?:[\\/]* ) # Absolute path.
50617 ac_srcdir=$srcdir$ac_dir_suffix;
50618 ac_top_srcdir=$srcdir ;;
50619 *) # Relative path.
50620 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
50621 ac_top_srcdir=$ac_top_builddir$srcdir ;;
50622esac
ac1cb8d3
VS
50623
50624# Do not use `cd foo && pwd` to compute absolute paths, because
50625# the directories may not exist.
50626case `pwd` in
50627.) ac_abs_builddir="$ac_dir";;
50628*)
50629 case "$ac_dir" in
50630 .) ac_abs_builddir=`pwd`;;
50631 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
50632 *) ac_abs_builddir=`pwd`/"$ac_dir";;
50633 esac;;
50634esac
50635case $ac_abs_builddir in
50636.) ac_abs_top_builddir=${ac_top_builddir}.;;
50637*)
50638 case ${ac_top_builddir}. in
50639 .) ac_abs_top_builddir=$ac_abs_builddir;;
50640 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
50641 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
50642 esac;;
50643esac
50644case $ac_abs_builddir in
50645.) ac_abs_srcdir=$ac_srcdir;;
50646*)
50647 case $ac_srcdir in
50648 .) ac_abs_srcdir=$ac_abs_builddir;;
50649 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
50650 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
50651 esac;;
50652esac
50653case $ac_abs_builddir in
50654.) ac_abs_top_srcdir=$ac_top_srcdir;;
50655*)
50656 case $ac_top_srcdir in
50657 .) ac_abs_top_srcdir=$ac_abs_builddir;;
50658 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
50659 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
50660 esac;;
50661esac
a848cd7e
SC
50662
50663
50664 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
50665echo "$as_me: executing $ac_dest commands" >&6;}
50666 case $ac_dest in
5c60e845
MW
50667 rcdefs.h )
50668 mkdir -p $outdir &&
50669 $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
50670 ;;
ceec2216
RL
50671 wx-config ) rm -f wx-config
50672 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
50673 ;;
a848cd7e
SC
50674 esac
50675done
50676_ACEOF
50677
50678cat >>$CONFIG_STATUS <<\_ACEOF
50679
50680{ (exit 0); exit 0; }
50681_ACEOF
50682chmod +x $CONFIG_STATUS
50683ac_clean_files=$ac_clean_files_save
50684
50685
50686# configure is writing to config.log, and then calls config.status.
50687# config.status does its own redirection, appending to config.log.
50688# Unfortunately, on DOS this fails, as config.log is still kept open
50689# by configure, so config.status won't be able to write to it; its
50690# output is simply discarded. So we exec the FD to /dev/null,
50691# effectively closing config.log, so it can be properly (re)opened and
50692# appended to by config.status. When coming back to configure, we
50693# need to make the FD available again.
50694if test "$no_create" != yes; then
50695 ac_cs_success=:
50696 ac_config_status_args=
50697 test "$silent" = yes &&
50698 ac_config_status_args="$ac_config_status_args --quiet"
50699 exec 5>/dev/null
50700 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
50701 exec 5>>config.log
50702 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
50703 # would make configure fail if this is the last instruction.
50704 $ac_cs_success || { (exit 1); exit 1; }
50705fi
50706
50707#
50708# CONFIG_SUBDIRS section.
50709#
50710if test "$no_recursion" != yes; then
50711
50712 # Remove --cache-file and --srcdir arguments so they do not pile up.
50713 ac_sub_configure_args=
50714 ac_prev=
50715 for ac_arg in $ac_configure_args; do
50716 if test -n "$ac_prev"; then
50717 ac_prev=
50718 continue
50719 fi
50720 case $ac_arg in
50721 -cache-file | --cache-file | --cache-fil | --cache-fi \
50722 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
50723 ac_prev=cache_file ;;
50724 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
50725 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
50726 | --c=*)
50727 ;;
50728 --config-cache | -C)
50729 ;;
50730 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
50731 ac_prev=srcdir ;;
50732 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
50733 ;;
50734 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
50735 ac_prev=prefix ;;
50736 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
50737 ;;
50738 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
50739 esac
50740 done
50741
50742 # Always prepend --prefix to ensure using the same prefix
50743 # in subdir configurations.
50744 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
50745
50746 ac_popdir=`pwd`
50747 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
50748
50749 # Do not complain, so a configure script can configure whichever
50750 # parts of a large source tree are present.
50751 test -d $srcdir/$ac_dir || continue
50752
50753 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
50754echo "$as_me: configuring in $ac_dir" >&6;}
50755 { if $as_mkdir_p; then
50756 mkdir -p "$ac_dir"
50757 else
50758 as_dir="$ac_dir"
50759 as_dirs=
50760 while test ! -d "$as_dir"; do
50761 as_dirs="$as_dir $as_dirs"
50762 as_dir=`(dirname "$as_dir") 2>/dev/null ||
50763$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
50764 X"$as_dir" : 'X\(//\)[^/]' \| \
50765 X"$as_dir" : 'X\(//\)$' \| \
50766 X"$as_dir" : 'X\(/\)' \| \
50767 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
50768echo X"$as_dir" |
50769 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50770 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50771 /^X\(\/\/\)$/{ s//\1/; q; }
50772 /^X\(\/\).*/{ s//\1/; q; }
50773 s/.*/./; q'`
50774 done
50775 test ! -n "$as_dirs" || mkdir $as_dirs
50776 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50777echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50778 { (exit 1); exit 1; }; }; }
50779
50780 ac_builddir=.
50781
50782if test "$ac_dir" != .; then
50783 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
50784 # A "../" for each directory in $ac_dir_suffix.
50785 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
50786else
50787 ac_dir_suffix= ac_top_builddir=
50788fi
50789
50790case $srcdir in
50791 .) # No --srcdir option. We are building in place.
50792 ac_srcdir=.
50793 if test -z "$ac_top_builddir"; then
50794 ac_top_srcdir=.
50795 else
50796 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
50797 fi ;;
50798 [\\/]* | ?:[\\/]* ) # Absolute path.
50799 ac_srcdir=$srcdir$ac_dir_suffix;
50800 ac_top_srcdir=$srcdir ;;
50801 *) # Relative path.
50802 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
50803 ac_top_srcdir=$ac_top_builddir$srcdir ;;
50804esac
ac1cb8d3
VS
50805
50806# Do not use `cd foo && pwd` to compute absolute paths, because
50807# the directories may not exist.
50808case `pwd` in
50809.) ac_abs_builddir="$ac_dir";;
50810*)
50811 case "$ac_dir" in
50812 .) ac_abs_builddir=`pwd`;;
50813 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
50814 *) ac_abs_builddir=`pwd`/"$ac_dir";;
50815 esac;;
50816esac
50817case $ac_abs_builddir in
50818.) ac_abs_top_builddir=${ac_top_builddir}.;;
50819*)
50820 case ${ac_top_builddir}. in
50821 .) ac_abs_top_builddir=$ac_abs_builddir;;
50822 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
50823 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
50824 esac;;
50825esac
50826case $ac_abs_builddir in
50827.) ac_abs_srcdir=$ac_srcdir;;
50828*)
50829 case $ac_srcdir in
50830 .) ac_abs_srcdir=$ac_abs_builddir;;
50831 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
50832 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
50833 esac;;
50834esac
50835case $ac_abs_builddir in
50836.) ac_abs_top_srcdir=$ac_top_srcdir;;
50837*)
50838 case $ac_top_srcdir in
50839 .) ac_abs_top_srcdir=$ac_abs_builddir;;
50840 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
50841 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
50842 esac;;
50843esac
a848cd7e
SC
50844
50845
50846 cd $ac_dir
50847
50848 # Check for guested configure; otherwise get Cygnus style configure.
50849 if test -f $ac_srcdir/configure.gnu; then
50850 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
50851 elif test -f $ac_srcdir/configure; then
50852 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
50853 elif test -f $ac_srcdir/configure.in; then
50854 ac_sub_configure=$ac_configure
50855 else
50856 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
50857echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
50858 ac_sub_configure=
50859 fi
50860
50861 # The recursion is here.
50862 if test -n "$ac_sub_configure"; then
50863 # Make the cache file name correct relative to the subdirectory.
50864 case $cache_file in
50865 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
50866 *) # Relative path.
ac1cb8d3 50867 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
50868 esac
50869
50870 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
50871echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
50872 # The eval makes quoting arguments work.
50873 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
50874 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
50875 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
50876echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
50877 { (exit 1); exit 1; }; }
50878 fi
50879
c9a66001 50880 cd "$ac_popdir"
a848cd7e
SC
50881 done
50882fi
50883
50884
50885echo
77ffb593 50886echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 50887echo ""
c2e9ada4 50888echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_DESC}"
77ffb593 50889echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 50890
77ffb593
JS
50891echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
50892echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
50893echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 50894
77ffb593 50895echo " What level of wxWidgets compatibility should be enabled?"
dee1a63f
MB
50896echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-no}"
50897echo " wxWidgets 2.6 ${WXWIN_COMPATIBILITY_2_6:-yes}"
a848cd7e 50898
77ffb593 50899echo " Which libraries should wxWidgets use?"
a848cd7e
SC
50900echo " jpeg ${wxUSE_LIBJPEG-none}"
50901echo " png ${wxUSE_LIBPNG-none}"
50902echo " regex ${wxUSE_REGEX}"
50903echo " tiff ${wxUSE_LIBTIFF-none}"
50904if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
50905echo " xpm ${wxUSE_LIBXPM-none}"
50906fi
50907echo " zlib ${wxUSE_ZLIB}"
50908echo " odbc ${wxUSE_ODBC}"
50909echo " expat ${wxUSE_EXPAT}"
50910echo " libmspack ${wxUSE_LIBMSPACK}"
50911echo " sdl ${wxUSE_LIBSDL}"
50912
50913echo ""
50914