]> git.saurik.com Git - wxWidgets.git/blame - configure
prevent linker from discarding wxStockGDIMac
[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
1078 --enable-tbarsmpl use wxToolBarSimple class
0093c2fc 1079 --enable-treebook use wxTreebook class
5ec3bc43 1080 --enable-toolbook use wxToolbook class
a848cd7e
SC
1081 --enable-treectrl use wxTreeCtrl class
1082 --enable-tipwindow use wxTipWindow class
1083 --enable-popupwin use wxPopUpWindow class
1084 --enable-commondlg use all common dialogs
1085 --enable-choicedlg use wxChoiceDialog
1086 --enable-coldlg use wxColourDialog
1087 --enable-filedlg use wxFileDialog
1088 --enable-finddlg use wxFindReplaceDialog
1089 --enable-fontdlg use wxFontDialog
1090 --enable-dirdlg use wxDirDialog
1091 --enable-msgdlg use wxMessageDialog
1092 --enable-numberdlg use wxNumberEntryDialog
1093 --enable-splash use wxSplashScreen
1094 --enable-textdlg use wxTextDialog
1095 --enable-tipdlg use startup tips
1096 --enable-progressdlg use wxProgressDialog
1097 --enable-wizarddlg use wxWizard
1098 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1099 --enable-miniframe use wxMiniFrame class
1100 --enable-tooltips use wxToolTip class
1101 --enable-splines use spline drawing code
fbe2ca43 1102 --enable-mousewheel use mousewheel
a848cd7e
SC
1103 --enable-validators use wxValidator and derived classes
1104 --enable-busyinfo use wxBusyInfo
4cb1d3da 1105 --enable-joystick use wxJoystick
38b4a946 1106 --enable-metafiles use wxMetaFile (Win32 only)
a848cd7e
SC
1107 --enable-dragimage use wxDragImage
1108 --enable-accessibility enable accessibility support
38b4a946 1109 --enable-dccache cache temporary wxDC objects (Win32 only)
a848cd7e
SC
1110 --enable-palette use wxPalette class
1111 --enable-image use wxImage class
1112 --enable-gif use gif images (GIF file format)
1113 --enable-pcx use pcx images (PCX file format)
1114 --enable-iff use iff images (IFF file format)
1115 --enable-pnm use pnm images (PNM file format)
1116 --enable-xpm use xpm images (XPM file format)
1117 --enable-icocur use Windows ICO and CUR formats
77ffb593 1118 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1119 --enable-vendor=VENDOR vendor name (win32 DLL only)
1120 --disable-largefile omit support for large files
1121 --disable-gtktest do not try to compile and run a test GTK+ program
1122 --disable-gtktest Do not try to compile and run a test GTK program
1123 --disable-sdltest Do not try to compile and run a test SDL program
1124 --enable-omf use OMF object format (OS/2)
f10e38c4
VZ
1125 --disable-dependency-tracking
1126 don't use dependency tracking even if the compiler
1127 can
ebee3cd0
VS
1128 --disable-precomp-headers
1129 don't use precompiled headers even if compiler can
a848cd7e
SC
1130
1131Optional Packages:
1132 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1133 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1c14217d 1134 --without-subdirs don't generate makefiles for samples/demos/...
f34ca037 1135 --with-gtk[=VERSION] use GTK+, VERSION can be 2 (default), 1 or "any"
a848cd7e
SC
1136 --with-motif use Motif/Lesstif
1137 --with-mac use Mac OS X
1138 --with-cocoa use Cocoa
1139 --with-wine use Wine
1140 --with-msw use MS-Windows
1141 --with-pm use OS/2 Presentation Manager
1142 --with-mgl use SciTech MGL
1143 --with-microwin use MicroWindows
1144 --with-x11 use X11
1145 --with-libpng use libpng (PNG image format)
1146 --with-libjpeg use libjpeg (JPEG file format)
1147 --with-libtiff use libtiff (TIFF file format)
1148 --with-libxpm use libxpm (XPM file format)
1149 --with-libmspack use libmspack (CHM help files loading)
1150 --with-sdl use SDL for audio on Unix
2b850ae1
RR
1151 --with-gnomeprint use GNOME print for printing under GNOME
1152 --with-gnomevfs use GNOME VFS for associating MIME types
3565d135 1153 --with-hildon use Hildon framework for Nokia 770
a848cd7e
SC
1154 --with-opengl use OpenGL (or Mesa)
1155 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1156 --with-regex enable support for wxRegEx class
1157 --with-zlib use zlib for LZW compression
1158 --with-odbc use the IODBC and wxODBC classes
1159 --with-expat enable XML support using expat parser
ceec2216 1160 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1161 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1162 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1163 --with-x use the X Window System
1164 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1165 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1166 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1167 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1168 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1169
1170Some influential environment variables:
dcc1b6ad
VS
1171 CC C compiler command
1172 CFLAGS C compiler flags
1173 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1174 nonstandard directory <lib dir>
1175 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1176 headers in a nonstandard directory <include dir>
1177 CPP C preprocessor
1178 CXX C++ compiler command
1179 CXXFLAGS C++ compiler flags
1180 CXXCPP C++ preprocessor
3ecd9f92
MW
1181 PKG_CONFIG path to pkg-config utility
1182 PANGOX_CFLAGS
1183 C compiler flags for PANGOX, overriding pkg-config
1184 PANGOX_LIBS linker flags for PANGOX, overriding pkg-config
1185 PANGOFT2_CFLAGS
1186 C compiler flags for PANGOFT2, overriding pkg-config
1187 PANGOFT2_LIBS
1188 linker flags for PANGOFT2, overriding pkg-config
1189 PANGOXFT_CFLAGS
1190 C compiler flags for PANGOXFT, overriding pkg-config
1191 PANGOXFT_LIBS
1192 linker flags for PANGOXFT, overriding pkg-config
1193 LIBGNOMEPRINTUI_CFLAGS
1194 C compiler flags for LIBGNOMEPRINTUI, overriding pkg-config
1195 LIBGNOMEPRINTUI_LIBS
1196 linker flags for LIBGNOMEPRINTUI, overriding pkg-config
1197 GNOMEVFS_CFLAGS
1198 C compiler flags for GNOMEVFS, overriding pkg-config
1199 GNOMEVFS_LIBS
1200 linker flags for GNOMEVFS, overriding pkg-config
1201 HILDON_CFLAGS
1202 C compiler flags for HILDON, overriding pkg-config
1203 HILDON_LIBS linker flags for HILDON, overriding pkg-config
1204 GST_CFLAGS C compiler flags for GST, overriding pkg-config
1205 GST_LIBS linker flags for GST, overriding pkg-config
a848cd7e
SC
1206
1207Use these variables to override the choices made by `configure' or to help
1208it to find libraries and programs with nonstandard names/locations.
1209
77ffb593 1210Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1211_ACEOF
1212fi
1213
1214if test "$ac_init_help" = "recursive"; then
1215 # If there are subdirs, report their specific --help.
1216 ac_popdir=`pwd`
1217 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1218 test -d $ac_dir || continue
1219 ac_builddir=.
1220
1221if test "$ac_dir" != .; then
1222 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1223 # A "../" for each directory in $ac_dir_suffix.
1224 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1225else
1226 ac_dir_suffix= ac_top_builddir=
1227fi
1228
1229case $srcdir in
1230 .) # No --srcdir option. We are building in place.
1231 ac_srcdir=.
1232 if test -z "$ac_top_builddir"; then
1233 ac_top_srcdir=.
1234 else
1235 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1236 fi ;;
1237 [\\/]* | ?:[\\/]* ) # Absolute path.
1238 ac_srcdir=$srcdir$ac_dir_suffix;
1239 ac_top_srcdir=$srcdir ;;
1240 *) # Relative path.
1241 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1242 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1243esac
ac1cb8d3
VS
1244
1245# Do not use `cd foo && pwd` to compute absolute paths, because
1246# the directories may not exist.
1247case `pwd` in
1248.) ac_abs_builddir="$ac_dir";;
1249*)
1250 case "$ac_dir" in
1251 .) ac_abs_builddir=`pwd`;;
1252 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1253 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1254 esac;;
1255esac
1256case $ac_abs_builddir in
1257.) ac_abs_top_builddir=${ac_top_builddir}.;;
1258*)
1259 case ${ac_top_builddir}. in
1260 .) ac_abs_top_builddir=$ac_abs_builddir;;
1261 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1262 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1263 esac;;
1264esac
1265case $ac_abs_builddir in
1266.) ac_abs_srcdir=$ac_srcdir;;
1267*)
1268 case $ac_srcdir in
1269 .) ac_abs_srcdir=$ac_abs_builddir;;
1270 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1271 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1272 esac;;
1273esac
1274case $ac_abs_builddir in
1275.) ac_abs_top_srcdir=$ac_top_srcdir;;
1276*)
1277 case $ac_top_srcdir in
1278 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1279 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1280 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1281 esac;;
1282esac
a848cd7e
SC
1283
1284 cd $ac_dir
1285 # Check for guested configure; otherwise get Cygnus style configure.
1286 if test -f $ac_srcdir/configure.gnu; then
1287 echo
1288 $SHELL $ac_srcdir/configure.gnu --help=recursive
1289 elif test -f $ac_srcdir/configure; then
1290 echo
1291 $SHELL $ac_srcdir/configure --help=recursive
1292 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1293 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1294 echo
1295 $ac_configure --help
1296 else
1297 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1298 fi
c9a66001 1299 cd "$ac_popdir"
a848cd7e
SC
1300 done
1301fi
1302
1303test -n "$ac_init_help" && exit 0
1304if $ac_init_version; then
1305 cat <<\_ACEOF
dd8df4fc 1306wxWidgets configure 2.7.0
ac1cb8d3 1307generated by GNU Autoconf 2.59
a848cd7e 1308
ac1cb8d3 1309Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1310This configure script is free software; the Free Software Foundation
1311gives unlimited permission to copy, distribute and modify it.
1312_ACEOF
1313 exit 0
1314fi
1315exec 5>config.log
1316cat >&5 <<_ACEOF
1317This file contains any messages produced by compilers while
1318running configure, to aid debugging if configure makes a mistake.
1319
dd8df4fc 1320It was created by wxWidgets $as_me 2.7.0, which was
ac1cb8d3 1321generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1322
1323 $ $0 $@
1324
1325_ACEOF
1326{
1327cat <<_ASUNAME
1328## --------- ##
1329## Platform. ##
1330## --------- ##
1331
1332hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1333uname -m = `(uname -m) 2>/dev/null || echo unknown`
1334uname -r = `(uname -r) 2>/dev/null || echo unknown`
1335uname -s = `(uname -s) 2>/dev/null || echo unknown`
1336uname -v = `(uname -v) 2>/dev/null || echo unknown`
1337
1338/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1339/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1340
1341/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1342/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1343/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1344hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1345/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1346/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1347/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1348
1349_ASUNAME
1350
1351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1352for as_dir in $PATH
1353do
1354 IFS=$as_save_IFS
1355 test -z "$as_dir" && as_dir=.
1356 echo "PATH: $as_dir"
1357done
1358
1359} >&5
1360
1361cat >&5 <<_ACEOF
1362
1363
1364## ----------- ##
1365## Core tests. ##
1366## ----------- ##
1367
1368_ACEOF
1369
1370
1371# Keep a trace of the command line.
1372# Strip out --no-create and --no-recursion so they do not pile up.
1373# Strip out --silent because we don't want to record it for future runs.
1374# Also quote any args containing shell meta-characters.
1375# Make two passes to allow for proper duplicate-argument suppression.
1376ac_configure_args=
1377ac_configure_args0=
1378ac_configure_args1=
1379ac_sep=
1380ac_must_keep_next=false
1381for ac_pass in 1 2
1382do
1383 for ac_arg
1384 do
1385 case $ac_arg in
1386 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1387 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1388 | -silent | --silent | --silen | --sile | --sil)
1389 continue ;;
1390 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1391 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1392 esac
1393 case $ac_pass in
1394 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1395 2)
1396 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1397 if test $ac_must_keep_next = true; then
ac1cb8d3 1398 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1399 else
ac1cb8d3
VS
1400 case $ac_arg in
1401 *=* | --config-cache | -C | -disable-* | --disable-* \
1402 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1403 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1404 | -with-* | --with-* | -without-* | --without-* | --x)
1405 case "$ac_configure_args0 " in
1406 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1407 esac
1408 ;;
1409 -* ) ac_must_keep_next=true ;;
1410 esac
a848cd7e
SC
1411 fi
1412 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1413 # Get rid of the leading space.
1414 ac_sep=" "
1415 ;;
1416 esac
1417 done
1418done
1419$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1420$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1421
1422# When interrupted or exit'd, cleanup temporary files, and complete
1423# config.log. We remove comments because anyway the quotes in there
1424# would cause problems or look ugly.
1425# WARNING: Be sure not to use single quotes in there, as some shells,
1426# such as our DU 5.0 friend, will then `close' the trap.
1427trap 'exit_status=$?
1428 # Save into config.log some information that might help in debugging.
1429 {
1430 echo
1431
1432 cat <<\_ASBOX
1433## ---------------- ##
1434## Cache variables. ##
1435## ---------------- ##
1436_ASBOX
1437 echo
1438 # The following way of writing the cache mishandles newlines in values,
1439{
1440 (set) 2>&1 |
1441 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1442 *ac_space=\ *)
1443 sed -n \
ac1cb8d3
VS
1444 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1445 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1446 ;;
1447 *)
1448 sed -n \
ac1cb8d3 1449 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1450 ;;
1451 esac;
1452}
1453 echo
1454
1455 cat <<\_ASBOX
1456## ----------------- ##
1457## Output variables. ##
1458## ----------------- ##
1459_ASBOX
1460 echo
1461 for ac_var in $ac_subst_vars
1462 do
1463 eval ac_val=$`echo $ac_var`
1464 echo "$ac_var='"'"'$ac_val'"'"'"
1465 done | sort
1466 echo
1467
1468 if test -n "$ac_subst_files"; then
1469 cat <<\_ASBOX
1470## ------------- ##
1471## Output files. ##
1472## ------------- ##
1473_ASBOX
1474 echo
1475 for ac_var in $ac_subst_files
1476 do
1477 eval ac_val=$`echo $ac_var`
ac1cb8d3 1478 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1479 done | sort
1480 echo
1481 fi
1482
1483 if test -s confdefs.h; then
1484 cat <<\_ASBOX
1485## ----------- ##
1486## confdefs.h. ##
1487## ----------- ##
1488_ASBOX
1489 echo
1490 sed "/^$/d" confdefs.h | sort
1491 echo
1492 fi
1493 test "$ac_signal" != 0 &&
1494 echo "$as_me: caught signal $ac_signal"
1495 echo "$as_me: exit $exit_status"
1496 } >&5
ac1cb8d3 1497 rm -f core *.core &&
a848cd7e
SC
1498 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1499 exit $exit_status
1500 ' 0
1501for ac_signal in 1 2 13 15; do
1502 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1503done
1504ac_signal=0
1505
1506# confdefs.h avoids OS command line length limits that DEFS can exceed.
1507rm -rf conftest* confdefs.h
1508# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1509echo >confdefs.h
1510
1511# Predefined preprocessor variables.
1512
1513cat >>confdefs.h <<_ACEOF
1514#define PACKAGE_NAME "$PACKAGE_NAME"
1515_ACEOF
1516
1517
1518cat >>confdefs.h <<_ACEOF
1519#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1520_ACEOF
1521
1522
1523cat >>confdefs.h <<_ACEOF
1524#define PACKAGE_VERSION "$PACKAGE_VERSION"
1525_ACEOF
1526
1527
1528cat >>confdefs.h <<_ACEOF
1529#define PACKAGE_STRING "$PACKAGE_STRING"
1530_ACEOF
1531
1532
1533cat >>confdefs.h <<_ACEOF
1534#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1535_ACEOF
1536
1537
1538# Let the site file select an alternate cache file if it wants to.
1539# Prefer explicitly selected file to automatically selected ones.
1540if test -z "$CONFIG_SITE"; then
1541 if test "x$prefix" != xNONE; then
1542 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1543 else
1544 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1545 fi
1546fi
1547for ac_site_file in $CONFIG_SITE; do
1548 if test -r "$ac_site_file"; then
1549 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1550echo "$as_me: loading site script $ac_site_file" >&6;}
1551 sed 's/^/| /' "$ac_site_file" >&5
1552 . "$ac_site_file"
1553 fi
1554done
1555
1556if test -r "$cache_file"; then
1557 # Some versions of bash will fail to source /dev/null (special
1558 # files actually), so we avoid doing that.
1559 if test -f "$cache_file"; then
1560 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1561echo "$as_me: loading cache $cache_file" >&6;}
1562 case $cache_file in
1563 [\\/]* | ?:[\\/]* ) . $cache_file;;
1564 *) . ./$cache_file;;
1565 esac
1566 fi
1567else
1568 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1569echo "$as_me: creating cache $cache_file" >&6;}
1570 >$cache_file
1571fi
1572
1573# Check that the precious variables saved in the cache have kept the same
1574# value.
1575ac_cache_corrupted=false
1576for ac_var in `(set) 2>&1 |
ac1cb8d3 1577 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1578 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1579 eval ac_new_set=\$ac_env_${ac_var}_set
1580 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1581 eval ac_new_val="\$ac_env_${ac_var}_value"
1582 case $ac_old_set,$ac_new_set in
1583 set,)
1584 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1585echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1586 ac_cache_corrupted=: ;;
1587 ,set)
1588 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1589echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1590 ac_cache_corrupted=: ;;
1591 ,);;
1592 *)
1593 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1594 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1595echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1596 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1597echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1598 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1599echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1600 ac_cache_corrupted=:
a848cd7e
SC
1601 fi;;
1602 esac
1603 # Pass precious variables to config.status.
1604 if test "$ac_new_set" = set; then
1605 case $ac_new_val in
1606 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1607 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1608 *) ac_arg=$ac_var=$ac_new_val ;;
1609 esac
1610 case " $ac_configure_args " in
1611 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1612 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1613 esac
1614 fi
1615done
1616if $ac_cache_corrupted; then
1617 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1618echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1619 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1620echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1621 { (exit 1); exit 1; }; }
1622fi
1623
1624ac_ext=c
1625ac_cpp='$CPP $CPPFLAGS'
1626ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1627ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1628ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1658
1659ac_aux_dir=
1660for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1661 if test -f $ac_dir/install-sh; then
1662 ac_aux_dir=$ac_dir
1663 ac_install_sh="$ac_aux_dir/install-sh -c"
1664 break
1665 elif test -f $ac_dir/install.sh; then
1666 ac_aux_dir=$ac_dir
1667 ac_install_sh="$ac_aux_dir/install.sh -c"
1668 break
1669 elif test -f $ac_dir/shtool; then
1670 ac_aux_dir=$ac_dir
1671 ac_install_sh="$ac_aux_dir/shtool install -c"
1672 break
1673 fi
1674done
1675if test -z "$ac_aux_dir"; then
1676 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1677echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1678 { (exit 1); exit 1; }; }
1679fi
1680ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1681ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1682ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1683
1684# Make sure we can run config.sub.
1685$ac_config_sub sun4 >/dev/null 2>&1 ||
1686 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1687echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1688 { (exit 1); exit 1; }; }
1689
1690echo "$as_me:$LINENO: checking build system type" >&5
1691echo $ECHO_N "checking build system type... $ECHO_C" >&6
1692if test "${ac_cv_build+set}" = set; then
1693 echo $ECHO_N "(cached) $ECHO_C" >&6
1694else
1695 ac_cv_build_alias=$build_alias
1696test -z "$ac_cv_build_alias" &&
1697 ac_cv_build_alias=`$ac_config_guess`
1698test -z "$ac_cv_build_alias" &&
1699 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1700echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1701 { (exit 1); exit 1; }; }
1702ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1703 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1704echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1705 { (exit 1); exit 1; }; }
1706
1707fi
1708echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1709echo "${ECHO_T}$ac_cv_build" >&6
1710build=$ac_cv_build
1711build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1712build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1713build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1714
1715
1716echo "$as_me:$LINENO: checking host system type" >&5
1717echo $ECHO_N "checking host system type... $ECHO_C" >&6
1718if test "${ac_cv_host+set}" = set; then
1719 echo $ECHO_N "(cached) $ECHO_C" >&6
1720else
1721 ac_cv_host_alias=$host_alias
1722test -z "$ac_cv_host_alias" &&
1723 ac_cv_host_alias=$ac_cv_build_alias
1724ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1725 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1726echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1727 { (exit 1); exit 1; }; }
1728
1729fi
1730echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1731echo "${ECHO_T}$ac_cv_host" >&6
1732host=$ac_cv_host
1733host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1734host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1735host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1736
1737
1738echo "$as_me:$LINENO: checking target system type" >&5
1739echo $ECHO_N "checking target system type... $ECHO_C" >&6
1740if test "${ac_cv_target+set}" = set; then
1741 echo $ECHO_N "(cached) $ECHO_C" >&6
1742else
1743 ac_cv_target_alias=$target_alias
1744test "x$ac_cv_target_alias" = "x" &&
1745 ac_cv_target_alias=$ac_cv_host_alias
1746ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1747 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1748echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1749 { (exit 1); exit 1; }; }
1750
1751fi
1752echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1753echo "${ECHO_T}$ac_cv_target" >&6
1754target=$ac_cv_target
1755target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1756target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1757target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1758
1759
1760# The aliases save the names the user supplied, while $host etc.
1761# will get canonicalized.
1762test -n "$target_alias" &&
1763 test "$program_prefix$program_suffix$program_transform_name" = \
1764 NONENONEs,x,x, &&
1765 program_prefix=${target_alias}-
1766
1767
1768
ceec2216 1769wx_major_version_number=2
dd8df4fc
VZ
1770wx_minor_version_number=7
1771wx_release_number=0
1772wx_subrelease_number=0
a848cd7e 1773
ceec2216
RL
1774WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1775WX_VERSION=$WX_RELEASE.$wx_release_number
1776WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1777
ceec2216 1778WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1779
a848cd7e
SC
1780
1781
1782
1783USE_UNIX=1
1784USE_OS2=0
1785USE_WIN32=0
1786USE_DOS=0
1787USE_BEOS=0
1788USE_MAC=0
1789
1790USE_AIX=
1791USE_BSD= USE_DARWIN= USE_FREEBSD=
1792USE_GNU= USE_HPUX=
1793USE_LINUX=
1794USE_NETBSD=
1795USE_OPENBSD=
1796USE_OSF= USE_SGI=
1797USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1798USE_ULTRIX=
1799USE_UNIXWARE=
1800
1801USE_ALPHA=
1802
1803NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1804
1805ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1806
1807DEFAULT_wxUSE_COCOA=0
1808DEFAULT_wxUSE_GTK=0
1809DEFAULT_wxUSE_MAC=0
1810DEFAULT_wxUSE_MGL=0
1811DEFAULT_wxUSE_MICROWIN=0
1812DEFAULT_wxUSE_MOTIF=0
1813DEFAULT_wxUSE_MSW=0
1814DEFAULT_wxUSE_PM=0
1815DEFAULT_wxUSE_X11=0
1816
1817DEFAULT_DEFAULT_wxUSE_COCOA=0
1818DEFAULT_DEFAULT_wxUSE_GTK=0
1819DEFAULT_DEFAULT_wxUSE_MAC=0
1820DEFAULT_DEFAULT_wxUSE_MGL=0
1821DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1822DEFAULT_DEFAULT_wxUSE_MOTIF=0
1823DEFAULT_DEFAULT_wxUSE_MSW=0
1824DEFAULT_DEFAULT_wxUSE_PM=0
1825DEFAULT_DEFAULT_wxUSE_X11=0
1826
1827PROGRAM_EXT=
1828SO_SUFFIX=so
1829SAMPLES_RPATH_FLAG=
1830SAMPLES_RPATH_POSTLINK=
1831
a03b8b04
RD
1832DEFAULT_STD_FLAG=yes
1833
a848cd7e
SC
1834case "${host}" in
1835 *-hp-hpux* )
1836 USE_HPUX=1
1837 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1838 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1839 SO_SUFFIX=sl
1840 cat >>confdefs.h <<\_ACEOF
1841#define __HPUX__ 1
1842_ACEOF
1843
2eef8513 1844
c92ad099 1845 CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
a848cd7e
SC
1846 ;;
1847 *-*-linux* )
1848 USE_LINUX=1
1849 cat >>confdefs.h <<\_ACEOF
1850#define __LINUX__ 1
1851_ACEOF
1852
1853 TMP=`uname -m`
1854 if test "x$TMP" = "xalpha"; then
1855 USE_ALPHA=1
1856 cat >>confdefs.h <<\_ACEOF
1857#define __ALPHA__ 1
1858_ACEOF
1859
1860 fi
1861 DEFAULT_DEFAULT_wxUSE_GTK=1
1862 ;;
1863 *-*-gnu* | *-*-k*bsd*-gnu )
1864 USE_GNU=1
1865 TMP=`uname -m`
1866 if test "x$TMP" = "xalpha"; then
1867 USE_ALPHA=1
1868 cat >>confdefs.h <<\_ACEOF
1869#define __ALPHA__ 1
1870_ACEOF
1871
1872 fi
1873 DEFAULT_DEFAULT_wxUSE_GTK=1
1874 ;;
1875 *-*-irix5* | *-*-irix6* )
1876 USE_SGI=1
1877 USE_SVR4=1
1878 cat >>confdefs.h <<\_ACEOF
1879#define __SGI__ 1
1880_ACEOF
1881
1882 cat >>confdefs.h <<\_ACEOF
1883#define __SVR4__ 1
1884_ACEOF
1885
1886 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1887 ;;
1888 *-*-solaris2* )
1889 USE_SUN=1
1890 USE_SOLARIS=1
1891 USE_SVR4=1
1892 cat >>confdefs.h <<\_ACEOF
1893#define __SUN__ 1
1894_ACEOF
1895
1896 cat >>confdefs.h <<\_ACEOF
1897#define __SOLARIS__ 1
1898_ACEOF
1899
1900 cat >>confdefs.h <<\_ACEOF
1901#define __SVR4__ 1
1902_ACEOF
1903
1904 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1905 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1906 ;;
1907 *-*-sunos4* )
1908 USE_SUN=1
1909 USE_SUNOS=1
1910 USE_BSD=1
1911 cat >>confdefs.h <<\_ACEOF
1912#define __SUN__ 1
1913_ACEOF
1914
1915 cat >>confdefs.h <<\_ACEOF
1916#define __SUNOS__ 1
1917_ACEOF
1918
1919 cat >>confdefs.h <<\_ACEOF
1920#define __BSD__ 1
1921_ACEOF
1922
1923 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1924 ;;
1925 *-*-freebsd*)
1926 USE_BSD=1
1927 USE_FREEBSD=1
1928 cat >>confdefs.h <<\_ACEOF
1929#define __FREEBSD__ 1
1930_ACEOF
1931
1932 cat >>confdefs.h <<\_ACEOF
1933#define __BSD__ 1
1934_ACEOF
1935
1936 DEFAULT_DEFAULT_wxUSE_GTK=1
1937 ;;
c9a66001 1938 *-*-openbsd*|*-*-mirbsd*)
a848cd7e
SC
1939 USE_BSD=1
1940 USE_OPENBSD=1
1941 cat >>confdefs.h <<\_ACEOF
1942#define __OPENBSD__ 1
1943_ACEOF
1944
1945 cat >>confdefs.h <<\_ACEOF
1946#define __BSD__ 1
1947_ACEOF
1948
1949 DEFAULT_DEFAULT_wxUSE_GTK=1
1950 ;;
1951 *-*-netbsd*)
1952 USE_BSD=1
1953 USE_NETBSD=1
1954 cat >>confdefs.h <<\_ACEOF
1955#define __NETBSD__ 1
1956_ACEOF
1957
1958 cat >>confdefs.h <<\_ACEOF
1959#define __BSD__ 1
1960_ACEOF
1961
1962 DEFAULT_DEFAULT_wxUSE_GTK=1
728258f4 1963 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
def7c04a 1964
def7c04a 1965 CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
a848cd7e
SC
1966 ;;
1967 *-*-osf* )
1968 USE_ALPHA=1
1969 USE_OSF=1
1970 cat >>confdefs.h <<\_ACEOF
1971#define __ALPHA__ 1
1972_ACEOF
1973
1974 cat >>confdefs.h <<\_ACEOF
1975#define __OSF__ 1
1976_ACEOF
1977
1978 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1979 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1980 ;;
1981 *-*-dgux5* )
1982 USE_ALPHA=1
1983 USE_SVR4=1
1984 cat >>confdefs.h <<\_ACEOF
1985#define __ALPHA__ 1
1986_ACEOF
1987
1988 cat >>confdefs.h <<\_ACEOF
1989#define __SVR4__ 1
1990_ACEOF
1991
1992 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1993 ;;
1994 *-*-sysv5* )
1995 USE_SYSV=1
1996 USE_SVR4=1
1997 cat >>confdefs.h <<\_ACEOF
1998#define __SYSV__ 1
1999_ACEOF
2000
2001 cat >>confdefs.h <<\_ACEOF
2002#define __SVR4__ 1
2003_ACEOF
2004
2005 DEFAULT_DEFAULT_wxUSE_MOTIF=1
2006 ;;
2007 *-*-aix* )
2008 USE_AIX=1
2009 USE_SYSV=1
2010 USE_SVR4=1
2011 SO_SUFFIX=a
2012 cat >>confdefs.h <<\_ACEOF
2013#define __AIX__ 1
2014_ACEOF
2015
2016 cat >>confdefs.h <<\_ACEOF
2017#define __SYSV__ 1
2018_ACEOF
2019
2020 cat >>confdefs.h <<\_ACEOF
2021#define __SVR4__ 1
2022_ACEOF
2023
2024 DEFAULT_DEFAULT_wxUSE_MOTIF=1
2025 ;;
2026
2027 *-*-*UnixWare*)
2028 USE_SYSV=1
2029 USE_SVR4=1
2030 USE_UNIXWARE=1
2031 cat >>confdefs.h <<\_ACEOF
2032#define __UNIXWARE__ 1
2033_ACEOF
2034
2035 ;;
2036
2037 *-*-cygwin* | *-*-mingw32* )
2038 SO_SUFFIX=dll
2039 PROGRAM_EXT=".exe"
a848cd7e 2040 DEFAULT_DEFAULT_wxUSE_MSW=1
a03b8b04 2041 DEFAULT_STD_FLAG=no
a848cd7e
SC
2042 ;;
2043
2044 *-pc-msdosdjgpp )
2045 USE_UNIX=0
2046 USE_DOS=1
2047 cat >>confdefs.h <<\_ACEOF
2048#define __DOS__ 1
2049_ACEOF
2050
2051 PROGRAM_EXT=".exe"
2052 DEFAULT_DEFAULT_wxUSE_MGL=1
a848cd7e
SC
2053 ;;
2054
2055 *-pc-os2_emx | *-pc-os2-emx )
2056 cat >>confdefs.h <<\_ACEOF
2057#define __EMX__ 1
2058_ACEOF
2059
2060 USE_OS2=1
2061 cat >>confdefs.h <<\_ACEOF
2062#define __OS2__ 1
2063_ACEOF
2064
2065 PROGRAM_EXT=".exe"
2066 DEFAULT_DEFAULT_wxUSE_PM=1
2067 CXX=gcc
2068 LDFLAGS="$LDFLAGS -Zcrtdll"
2069 ac_executable_extensions=".exe"
2070 export ac_executable_extensions
2071 ac_save_IFS="$IFS"
2072 IFS='\\'
2073 ac_TEMP_PATH=
2074 for ac_dir in $PATH; do
2075 IFS=$ac_save_IFS
2076 if test -z "$ac_TEMP_PATH"; then
2077 ac_TEMP_PATH="$ac_dir"
2078 else
2079 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
2080 fi
2081 done
2082 export PATH="$ac_TEMP_PATH"
2083 unset ac_TEMP_PATH
a03b8b04 2084 DEFAULT_STD_FLAG=no
a848cd7e
SC
2085 ;;
2086
cfda0ea8 2087 *-*-darwin* )
a848cd7e
SC
2088 USE_BSD=1
2089 USE_DARWIN=1
2090 SO_SUFFIX=dylib
2091 cat >>confdefs.h <<\_ACEOF
2092#define __BSD__ 1
2093_ACEOF
2094
2095 cat >>confdefs.h <<\_ACEOF
2096#define __DARWIN__ 1
a848cd7e
SC
2097_ACEOF
2098
2099 cat >>confdefs.h <<\_ACEOF
2100#define TARGET_CARBON 1
2101_ACEOF
2102
2103 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2104 DEFAULT_STD_FLAG=no
a848cd7e 2105 ;;
1e9e8aba
DE
2106 powerpc-apple-macos* )
2107 USE_UNIX=0
2108 ac_cv_c_bigendian=yes
2109 SO_SUFFIX=shlib
2110 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2111 DEFAULT_STD_FLAG=no
1e9e8aba 2112 ;;
a848cd7e
SC
2113
2114 *-*-beos* )
2115 USE_BEOS=1
2116 cat >>confdefs.h <<\_ACEOF
2117#define __BEOS__ 1
2118_ACEOF
2119
2120 ;;
2121
2122 *)
c9a66001
VZ
2123 { echo "$as_me:$LINENO: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&5
2124echo "$as_me: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&2;}
2125 { echo "$as_me:$LINENO: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&5
2126echo "$as_me: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&2;}
a848cd7e
SC
2127esac
2128
2129
2130
2131
2132 wx_arg_cache_file="configarg.cache"
2133 echo "loading argument cache $wx_arg_cache_file"
2134 rm -f ${wx_arg_cache_file}.tmp
2135 touch ${wx_arg_cache_file}.tmp
2136 touch ${wx_arg_cache_file}
2137
2138
2139DEBUG_CONFIGURE=0
2140if test $DEBUG_CONFIGURE = 1; then
2141 DEFAULT_wxUSE_UNIVERSAL=no
2142 DEFAULT_wxUSE_STL=no
2143
2144 DEFAULT_wxUSE_NANOX=no
2145
2146 DEFAULT_wxUSE_THREADS=yes
2147
2148 DEFAULT_wxUSE_SHARED=yes
2149 DEFAULT_wxUSE_OPTIMISE=no
2150 DEFAULT_wxUSE_PROFILE=no
2151 DEFAULT_wxUSE_NO_DEPS=no
2152 DEFAULT_wxUSE_NO_RTTI=no
2153 DEFAULT_wxUSE_NO_EXCEPTIONS=no
7afc46ab 2154 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
ffa0583f 2155 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2156 DEFAULT_wxUSE_PERMISSIVE=no
2157 DEFAULT_wxUSE_DEBUG_FLAG=yes
2158 DEFAULT_wxUSE_DEBUG_INFO=yes
2159 DEFAULT_wxUSE_DEBUG_GDB=yes
2160 DEFAULT_wxUSE_MEM_TRACING=no
2161 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2162 DEFAULT_wxUSE_DMALLOC=no
2163 DEFAULT_wxUSE_APPLE_IEEE=no
2164
2165 DEFAULT_wxUSE_EXCEPTIONS=no
2166 DEFAULT_wxUSE_LOG=yes
2167 DEFAULT_wxUSE_LOGWINDOW=no
2168 DEFAULT_wxUSE_LOGGUI=no
2169 DEFAULT_wxUSE_LOGDIALOG=no
2170
2171 DEFAULT_wxUSE_GUI=yes
2172 DEFAULT_wxUSE_CONTROLS=no
2173
2174 DEFAULT_wxUSE_REGEX=no
2175 DEFAULT_wxUSE_XML=no
2176 DEFAULT_wxUSE_EXPAT=no
2177 DEFAULT_wxUSE_ZLIB=no
2178 DEFAULT_wxUSE_LIBPNG=no
2179 DEFAULT_wxUSE_LIBJPEG=no
2180 DEFAULT_wxUSE_LIBTIFF=no
2181 DEFAULT_wxUSE_LIBXPM=no
2182 DEFAULT_wxUSE_LIBMSPACK=no
2183 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2184 DEFAULT_wxUSE_LIBGNOMEPRINT=no
2b850ae1 2185 DEFAULT_wxUSE_LIBGNOMEVFS=no
3565d135 2186 DEFAULT_wxUSE_LIBHILDON=no
a848cd7e
SC
2187 DEFAULT_wxUSE_ODBC=no
2188 DEFAULT_wxUSE_OPENGL=no
2189
2190 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
eaff0f0d 2191 DEFAULT_wxUSE_STACKWALKER=no
36b6448c 2192 DEFAULT_wxUSE_DEBUGREPORT=no
a848cd7e
SC
2193 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2194 DEFAULT_wxUSE_STD_IOSTREAM=no
59746b65 2195 DEFAULT_wxUSE_STD_STRING=no
a848cd7e
SC
2196 DEFAULT_wxUSE_CMDLINE_PARSER=no
2197 DEFAULT_wxUSE_DATETIME=no
2198 DEFAULT_wxUSE_TIMER=no
2199 DEFAULT_wxUSE_STOPWATCH=no
2200 DEFAULT_wxUSE_FILE=no
2201 DEFAULT_wxUSE_FFILE=no
07158944 2202 DEFAULT_wxUSE_STDPATHS=no
a848cd7e
SC
2203 DEFAULT_wxUSE_TEXTBUFFER=no
2204 DEFAULT_wxUSE_TEXTFILE=no
2205 DEFAULT_wxUSE_SOUND=no
3b57de8b 2206 DEFAULT_wxUSE_MEDIACTRL=no
f10e38c4 2207 DEFAULT_wxUSE_GSTREAMER8=no
8f3773fd 2208 DEFAULT_wxUSE_PRINTF_POS_PARAMS=no
a848cd7e
SC
2209 DEFAULT_wxUSE_INTL=no
2210 DEFAULT_wxUSE_CONFIG=no
2211 DEFAULT_wxUSE_FONTMAP=no
2212 DEFAULT_wxUSE_STREAMS=no
2213 DEFAULT_wxUSE_SOCKETS=no
2214 DEFAULT_wxUSE_OLE=no
2215 DEFAULT_wxUSE_DATAOBJ=no
2216 DEFAULT_wxUSE_DIALUP_MANAGER=no
2217 DEFAULT_wxUSE_JOYSTICK=no
2218 DEFAULT_wxUSE_DYNLIB_CLASS=no
2219 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2220 DEFAULT_wxUSE_LONGLONG=no
2221 DEFAULT_wxUSE_GEOMETRY=no
2222
2223 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2224 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2225 DEFAULT_wxUSE_POSTSCRIPT=no
2226
2227 DEFAULT_wxUSE_CLIPBOARD=no
2228 DEFAULT_wxUSE_TOOLTIPS=no
2229 DEFAULT_wxUSE_DRAG_AND_DROP=no
2230 DEFAULT_wxUSE_DRAGIMAGE=no
2231 DEFAULT_wxUSE_SPLINES=no
fbe2ca43 2232 DEFAULT_wxUSE_MOUSEWHEEL=no
a848cd7e 2233
8a7b1113 2234 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2235 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2236 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2237 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2238
2239 DEFAULT_wxUSE_RESOURCES=no
2240 DEFAULT_wxUSE_CONSTRAINTS=no
2241 DEFAULT_wxUSE_IPC=no
2242 DEFAULT_wxUSE_HELP=no
2243 DEFAULT_wxUSE_MS_HTML_HELP=no
2244 DEFAULT_wxUSE_WXHTML_HELP=no
2245 DEFAULT_wxUSE_TREELAYOUT=no
2246 DEFAULT_wxUSE_METAFILE=no
2247 DEFAULT_wxUSE_MIMETYPE=no
2248 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2249 DEFAULT_wxUSE_PROTOCOL=no
2250 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2251 DEFAULT_wxUSE_PROTOCOL_FTP=no
2252 DEFAULT_wxUSE_PROTOCOL_FILE=no
2253 DEFAULT_wxUSE_URL=no
2254
2255 DEFAULT_wxUSE_COMMONDLGS=no
2256 DEFAULT_wxUSE_CHOICEDLG=no
2257 DEFAULT_wxUSE_COLOURDLG=no
2258 DEFAULT_wxUSE_DIRDLG=no
2259 DEFAULT_wxUSE_FILEDLG=no
2260 DEFAULT_wxUSE_FINDREPLDLG=no
2261 DEFAULT_wxUSE_FONTDLG=no
2262 DEFAULT_wxUSE_MSGDLG=no
2263 DEFAULT_wxUSE_NUMBERDLG=no
2264 DEFAULT_wxUSE_TEXTDLG=no
2265 DEFAULT_wxUSE_SPLASH=no
2266 DEFAULT_wxUSE_STARTUP_TIPS=no
2267 DEFAULT_wxUSE_PROGRESSDLG=no
2268 DEFAULT_wxUSE_WIZARDDLG=no
2269
2270 DEFAULT_wxUSE_MENUS=no
2271 DEFAULT_wxUSE_MINIFRAME=no
2272 DEFAULT_wxUSE_HTML=no
91dea314 2273 DEFAULT_wxUSE_RICHTEXT=no
9a8f0513 2274 DEFAULT_wxUSE_XRC=no
3f60522a 2275 DEFAULT_wxUSE_AUI=no
646b6ec1 2276 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2277 DEFAULT_wxUSE_FILESYSTEM=no
2278 DEFAULT_wxUSE_FS_INET=no
2279 DEFAULT_wxUSE_FS_ZIP=no
2280 DEFAULT_wxUSE_BUSYINFO=no
9e8e867f 2281 DEFAULT_wxUSE_ARCHIVE_STREAMS=no
a848cd7e 2282 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2283 DEFAULT_wxUSE_VALIDATORS=no
2284
2285 DEFAULT_wxUSE_ACCEL=no
2286 DEFAULT_wxUSE_BUTTON=no
2287 DEFAULT_wxUSE_BMPBUTTON=no
2288 DEFAULT_wxUSE_CALCTRL=no
2289 DEFAULT_wxUSE_CARET=no
2290 DEFAULT_wxUSE_CHECKBOX=no
2291 DEFAULT_wxUSE_CHECKLST=no
2292 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2293 DEFAULT_wxUSE_CHOICEBOOK=no
e9263684 2294 DEFAULT_wxUSE_COLOURPICKERCTRL=no
a848cd7e 2295 DEFAULT_wxUSE_COMBOBOX=no
a57d600f 2296 DEFAULT_wxUSE_COMBOCTRL=no
da98e9be 2297 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e 2298 DEFAULT_wxUSE_DISPLAY=no
e9263684
VZ
2299 DEFAULT_wxUSE_DIRPICKERCTRL=no
2300 DEFAULT_wxUSE_FILEPICKERCTRL=no
2301 DEFAULT_wxUSE_FONTPICKERCTRL=no
a848cd7e
SC
2302 DEFAULT_wxUSE_GAUGE=no
2303 DEFAULT_wxUSE_GRID=no
6954625c 2304 DEFAULT_wxUSE_HYPERLINKCTRL=no
20e34ecc 2305 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
2306 DEFAULT_wxUSE_IMAGLIST=no
2307 DEFAULT_wxUSE_LISTBOOK=no
2308 DEFAULT_wxUSE_LISTBOX=no
2309 DEFAULT_wxUSE_LISTCTRL=no
2310 DEFAULT_wxUSE_NOTEBOOK=no
a57d600f 2311 DEFAULT_wxUSE_ODCOMBOBOX=no
a848cd7e
SC
2312 DEFAULT_wxUSE_RADIOBOX=no
2313 DEFAULT_wxUSE_RADIOBTN=no
2314 DEFAULT_wxUSE_SASH=no
2315 DEFAULT_wxUSE_SCROLLBAR=no
2316 DEFAULT_wxUSE_SLIDER=no
2317 DEFAULT_wxUSE_SPINBTN=no
2318 DEFAULT_wxUSE_SPINCTRL=no
2319 DEFAULT_wxUSE_SPLITTER=no
2320 DEFAULT_wxUSE_STATBMP=no
2321 DEFAULT_wxUSE_STATBOX=no
2322 DEFAULT_wxUSE_STATLINE=no
2323 DEFAULT_wxUSE_STATTEXT=no
2324 DEFAULT_wxUSE_STATUSBAR=yes
f10e38c4 2325 DEFAULT_wxUSE_TAB_DIALOG=no
a848cd7e
SC
2326 DEFAULT_wxUSE_TEXTCTRL=no
2327 DEFAULT_wxUSE_TOGGLEBTN=no
2328 DEFAULT_wxUSE_TOOLBAR=no
2329 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2330 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
0093c2fc 2331 DEFAULT_wxUSE_TREEBOOK=no
5ec3bc43 2332 DEFAULT_wxUSE_TOOLBOOK=no
a848cd7e
SC
2333 DEFAULT_wxUSE_TREECTRL=no
2334 DEFAULT_wxUSE_POPUPWIN=no
2335 DEFAULT_wxUSE_TIPWINDOW=no
2336
2337 DEFAULT_wxUSE_UNICODE=no
2338 DEFAULT_wxUSE_UNICODE_MSLU=no
2339 DEFAULT_wxUSE_WCSRTOMBS=no
2340
2341 DEFAULT_wxUSE_PALETTE=no
2342 DEFAULT_wxUSE_IMAGE=no
2343 DEFAULT_wxUSE_GIF=no
2344 DEFAULT_wxUSE_PCX=no
2345 DEFAULT_wxUSE_PNM=no
2346 DEFAULT_wxUSE_IFF=no
2347 DEFAULT_wxUSE_XPM=no
2348 DEFAULT_wxUSE_ICO_CUR=no
2349 DEFAULT_wxUSE_ACCESSIBILITY=no
2350
2351 DEFAULT_wxUSE_MONOLITHIC=no
2352 DEFAULT_wxUSE_PLUGINS=no
2353 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2354else
2355 DEFAULT_wxUSE_UNIVERSAL=no
2356 DEFAULT_wxUSE_STL=no
2357
2358 DEFAULT_wxUSE_NANOX=no
2359
2360 DEFAULT_wxUSE_THREADS=yes
2361
2362 DEFAULT_wxUSE_SHARED=yes
2363 DEFAULT_wxUSE_OPTIMISE=yes
2364 DEFAULT_wxUSE_PROFILE=no
2365 DEFAULT_wxUSE_NO_DEPS=no
2366 DEFAULT_wxUSE_NO_RTTI=no
2367 DEFAULT_wxUSE_NO_EXCEPTIONS=no
7afc46ab 2368 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
ffa0583f 2369 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2370 DEFAULT_wxUSE_PERMISSIVE=no
2371 DEFAULT_wxUSE_DEBUG_FLAG=no
2372 DEFAULT_wxUSE_DEBUG_INFO=no
2373 DEFAULT_wxUSE_DEBUG_GDB=no
2374 DEFAULT_wxUSE_MEM_TRACING=no
2375 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2376 DEFAULT_wxUSE_DMALLOC=no
2377 DEFAULT_wxUSE_APPLE_IEEE=yes
2378
2379 DEFAULT_wxUSE_EXCEPTIONS=yes
2380 DEFAULT_wxUSE_LOG=yes
2381 DEFAULT_wxUSE_LOGWINDOW=yes
2382 DEFAULT_wxUSE_LOGGUI=yes
2383 DEFAULT_wxUSE_LOGDIALOG=yes
2384
2385 DEFAULT_wxUSE_GUI=yes
2386
2387 DEFAULT_wxUSE_REGEX=yes
2388 DEFAULT_wxUSE_XML=yes
2389 DEFAULT_wxUSE_EXPAT=yes
2390 DEFAULT_wxUSE_ZLIB=yes
2391 DEFAULT_wxUSE_LIBPNG=yes
2392 DEFAULT_wxUSE_LIBJPEG=yes
2393 DEFAULT_wxUSE_LIBTIFF=yes
2394 DEFAULT_wxUSE_LIBXPM=yes
2395 DEFAULT_wxUSE_LIBMSPACK=yes
2396 DEFAULT_wxUSE_LIBSDL=no
a03b8b04 2397 DEFAULT_wxUSE_LIBGNOMEPRINT=no
2b850ae1 2398 DEFAULT_wxUSE_LIBGNOMEVFS=no
3565d135 2399 DEFAULT_wxUSE_LIBHILDON=no
a848cd7e 2400 DEFAULT_wxUSE_ODBC=no
52cb607e 2401 DEFAULT_wxUSE_OPENGL=no
a848cd7e
SC
2402
2403 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
eaff0f0d 2404 DEFAULT_wxUSE_STACKWALKER=yes
6671c68b 2405 DEFAULT_wxUSE_DEBUGREPORT=yes
a848cd7e 2406 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
a03b8b04
RD
2407 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2408 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
a848cd7e
SC
2409 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2410 DEFAULT_wxUSE_DATETIME=yes
2411 DEFAULT_wxUSE_TIMER=yes
2412 DEFAULT_wxUSE_STOPWATCH=yes
2413 DEFAULT_wxUSE_FILE=yes
2414 DEFAULT_wxUSE_FFILE=yes
07158944 2415 DEFAULT_wxUSE_STDPATHS=yes
a848cd7e
SC
2416 DEFAULT_wxUSE_TEXTBUFFER=yes
2417 DEFAULT_wxUSE_TEXTFILE=yes
2418 DEFAULT_wxUSE_SOUND=yes
3b57de8b 2419 DEFAULT_wxUSE_MEDIACTRL=no
f10e38c4 2420 DEFAULT_wxUSE_GSTREAMER8=no
8f3773fd 2421 DEFAULT_wxUSE_PRINTF_POS_PARAMS=no
a848cd7e
SC
2422 DEFAULT_wxUSE_INTL=yes
2423 DEFAULT_wxUSE_CONFIG=yes
2424 DEFAULT_wxUSE_FONTMAP=yes
2425 DEFAULT_wxUSE_STREAMS=yes
2426 DEFAULT_wxUSE_SOCKETS=yes
2427 DEFAULT_wxUSE_OLE=yes
2428 DEFAULT_wxUSE_DATAOBJ=yes
2429 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2430 DEFAULT_wxUSE_JOYSTICK=yes
2431 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2432 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2433 DEFAULT_wxUSE_LONGLONG=yes
2434 DEFAULT_wxUSE_GEOMETRY=yes
2435
2436 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2437 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2438 DEFAULT_wxUSE_POSTSCRIPT=yes
2439
2440 DEFAULT_wxUSE_CLIPBOARD=yes
2441 DEFAULT_wxUSE_TOOLTIPS=yes
2442 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2443 DEFAULT_wxUSE_DRAGIMAGE=yes
2444 DEFAULT_wxUSE_SPLINES=yes
fbe2ca43 2445 DEFAULT_wxUSE_MOUSEWHEEL=yes
a848cd7e 2446
8a7b1113 2447 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2448 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2449 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2450 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2451
2452 DEFAULT_wxUSE_RESOURCES=no
2453 DEFAULT_wxUSE_CONSTRAINTS=yes
2454 DEFAULT_wxUSE_IPC=yes
2455 DEFAULT_wxUSE_HELP=yes
2456 DEFAULT_wxUSE_MS_HTML_HELP=yes
2457 DEFAULT_wxUSE_WXHTML_HELP=yes
2458 DEFAULT_wxUSE_TREELAYOUT=yes
2459 DEFAULT_wxUSE_METAFILE=yes
2460 DEFAULT_wxUSE_MIMETYPE=yes
2461 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2462 DEFAULT_wxUSE_PROTOCOL=yes
2463 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2464 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2465 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2466 DEFAULT_wxUSE_URL=yes
2467
2468 DEFAULT_wxUSE_COMMONDLGS=yes
2469 DEFAULT_wxUSE_CHOICEDLG=yes
2470 DEFAULT_wxUSE_COLOURDLG=yes
2471 DEFAULT_wxUSE_DIRDLG=yes
2472 DEFAULT_wxUSE_FILEDLG=yes
2473 DEFAULT_wxUSE_FINDREPLDLG=yes
2474 DEFAULT_wxUSE_FONTDLG=yes
2475 DEFAULT_wxUSE_MSGDLG=yes
2476 DEFAULT_wxUSE_NUMBERDLG=yes
2477 DEFAULT_wxUSE_TEXTDLG=yes
2478 DEFAULT_wxUSE_SPLASH=yes
2479 DEFAULT_wxUSE_STARTUP_TIPS=yes
2480 DEFAULT_wxUSE_PROGRESSDLG=yes
2481 DEFAULT_wxUSE_WIZARDDLG=yes
2482
2483 DEFAULT_wxUSE_MENUS=yes
2484 DEFAULT_wxUSE_MINIFRAME=yes
2485 DEFAULT_wxUSE_HTML=yes
91dea314 2486 DEFAULT_wxUSE_RICHTEXT=yes
9a8f0513 2487 DEFAULT_wxUSE_XRC=yes
3f60522a 2488 DEFAULT_wxUSE_AUI=yes
646b6ec1 2489 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2490 DEFAULT_wxUSE_FILESYSTEM=yes
2491 DEFAULT_wxUSE_FS_INET=yes
2492 DEFAULT_wxUSE_FS_ZIP=yes
2493 DEFAULT_wxUSE_BUSYINFO=yes
9e8e867f 2494 DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
a848cd7e 2495 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2496 DEFAULT_wxUSE_VALIDATORS=yes
2497
2498 DEFAULT_wxUSE_ACCEL=yes
2499 DEFAULT_wxUSE_BUTTON=yes
2500 DEFAULT_wxUSE_BMPBUTTON=yes
2501 DEFAULT_wxUSE_CALCTRL=yes
2502 DEFAULT_wxUSE_CARET=yes
2503 DEFAULT_wxUSE_CHECKBOX=yes
2504 DEFAULT_wxUSE_CHECKLST=yes
2505 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2506 DEFAULT_wxUSE_CHOICEBOOK=yes
e9263684 2507 DEFAULT_wxUSE_COLOURPICKERCTRL=yes
a848cd7e 2508 DEFAULT_wxUSE_COMBOBOX=yes
a57d600f 2509 DEFAULT_wxUSE_COMBOCTRL=yes
da98e9be 2510 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e 2511 DEFAULT_wxUSE_DISPLAY=yes
e9263684
VZ
2512 DEFAULT_wxUSE_DIRPICKERCTRL=yes
2513 DEFAULT_wxUSE_FILEPICKERCTRL=yes
2514 DEFAULT_wxUSE_FONTPICKERCTRL=yes
a848cd7e
SC
2515 DEFAULT_wxUSE_GAUGE=yes
2516 DEFAULT_wxUSE_GRID=yes
6954625c 2517 DEFAULT_wxUSE_HYPERLINKCTRL=yes
20e34ecc 2518 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
2519 DEFAULT_wxUSE_IMAGLIST=yes
2520 DEFAULT_wxUSE_LISTBOOK=yes
2521 DEFAULT_wxUSE_LISTBOX=yes
2522 DEFAULT_wxUSE_LISTCTRL=yes
2523 DEFAULT_wxUSE_NOTEBOOK=yes
a57d600f 2524 DEFAULT_wxUSE_ODCOMBOBOX=yes
a848cd7e
SC
2525 DEFAULT_wxUSE_RADIOBOX=yes
2526 DEFAULT_wxUSE_RADIOBTN=yes
2527 DEFAULT_wxUSE_SASH=yes
2528 DEFAULT_wxUSE_SCROLLBAR=yes
2529 DEFAULT_wxUSE_SLIDER=yes
2530 DEFAULT_wxUSE_SPINBTN=yes
2531 DEFAULT_wxUSE_SPINCTRL=yes
2532 DEFAULT_wxUSE_SPLITTER=yes
2533 DEFAULT_wxUSE_STATBMP=yes
2534 DEFAULT_wxUSE_STATBOX=yes
2535 DEFAULT_wxUSE_STATLINE=yes
2536 DEFAULT_wxUSE_STATTEXT=yes
2537 DEFAULT_wxUSE_STATUSBAR=yes
f10e38c4 2538 DEFAULT_wxUSE_TAB_DIALOG=no
a848cd7e
SC
2539 DEFAULT_wxUSE_TEXTCTRL=yes
2540 DEFAULT_wxUSE_TOGGLEBTN=yes
2541 DEFAULT_wxUSE_TOOLBAR=yes
2542 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2543 DEFAULT_wxUSE_TOOLBAR_SIMPLE=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
7728 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
7729 DEFAULT_wxUSE_TOOLTIPS=yes
0093c2fc 7730 DEFAULT_wxUSE_TREEBOOK=yes
5ec3bc43 7731 DEFAULT_wxUSE_TOOLBOOK=yes
a848cd7e
SC
7732 DEFAULT_wxUSE_TREECTRL=yes
7733 DEFAULT_wxUSE_POPUPWIN=yes
7734 DEFAULT_wxUSE_TIPWINDOW=yes
7735elif test "$wxUSE_CONTROLS" = "no"; then
7736 DEFAULT_wxUSE_ACCEL=no
7737 DEFAULT_wxUSE_BMPBUTTON=no
7738 DEFAULT_wxUSE_BUTTON=no
7739 DEFAULT_wxUSE_CALCTRL=no
7740 DEFAULT_wxUSE_CARET=no
7741 DEFAULT_wxUSE_COMBOBOX=no
7742 DEFAULT_wxUSE_CHECKBOX=no
7743 DEFAULT_wxUSE_CHECKLISTBOX=no
7744 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7745 DEFAULT_wxUSE_CHOICEBOOK=no
e9263684
VZ
7746 DEFAULT_wxUSE_COLOURPICKERCTRL=no
7747 DEFAULT_wxUSE_COMBOBOX=no
da98e9be 7748 DEFAULT_wxUSE_DATEPICKCTRL=no
e9263684
VZ
7749 DEFAULT_wxUSE_DISPLAY=no
7750 DEFAULT_wxUSE_DIRPICKERCTRL=no
7751 DEFAULT_wxUSE_FILEPICKERCTRL=no
7752 DEFAULT_wxUSE_FONTPICKERCTRL=no
a848cd7e
SC
7753 DEFAULT_wxUSE_GAUGE=no
7754 DEFAULT_wxUSE_GRID=no
6954625c 7755 DEFAULT_wxUSE_HYPERLINKCTRL=no
20e34ecc 7756 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
7757 DEFAULT_wxUSE_IMAGLIST=no
7758 DEFAULT_wxUSE_LISTBOOK=no
7759 DEFAULT_wxUSE_LISTBOX=no
7760 DEFAULT_wxUSE_LISTCTRL=no
7761 DEFAULT_wxUSE_NOTEBOOK=no
7762 DEFAULT_wxUSE_RADIOBOX=no
7763 DEFAULT_wxUSE_RADIOBTN=no
7764 DEFAULT_wxUSE_SASH=no
7765 DEFAULT_wxUSE_SCROLLBAR=no
7766 DEFAULT_wxUSE_SLIDER=no
7767 DEFAULT_wxUSE_SPINBTN=no
7768 DEFAULT_wxUSE_SPINCTRL=no
7769 DEFAULT_wxUSE_SPLITTER=no
7770 DEFAULT_wxUSE_STATBMP=no
7771 DEFAULT_wxUSE_STATBOX=no
7772 DEFAULT_wxUSE_STATLINE=no
7773 DEFAULT_wxUSE_STATUSBAR=no
7774 DEFAULT_wxUSE_TAB_DIALOG=no
7775 DEFAULT_wxUSE_TOGGLEBTN=no
7776 DEFAULT_wxUSE_TOOLBAR=no
7777 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7778 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7779 DEFAULT_wxUSE_TOOLTIPS=no
0093c2fc 7780 DEFAULT_wxUSE_TREEBOOK=no
5ec3bc43 7781 DEFAULT_wxUSE_TOOLBOOK=no
a848cd7e
SC
7782 DEFAULT_wxUSE_TREECTRL=no
7783 DEFAULT_wxUSE_POPUPWIN=no
7784 DEFAULT_wxUSE_TIPWINDOW=no
7785fi
7786
a848cd7e
SC
7787
7788 enablestring=
7789 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7790echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7791 no_cache=0
7792 # Check whether --enable-accel or --disable-accel was given.
7793if test "${enable_accel+set}" = set; then
7794 enableval="$enable_accel"
7795
7796 if test "$enableval" = yes; then
7797 ac_cv_use_accel='wxUSE_ACCEL=yes'
7798 else
7799 ac_cv_use_accel='wxUSE_ACCEL=no'
7800 fi
7801
7802else
7803
7804 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7805 if test "x$LINE" != x ; then
7806 eval "DEFAULT_$LINE"
7807 else
7808 no_cache=1
7809 fi
7810
7811 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7812
7813fi;
7814
7815 eval "$ac_cv_use_accel"
7816 if test "$no_cache" != 1; then
7817 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7818 fi
7819
7820 if test "$wxUSE_ACCEL" = yes; then
7821 echo "$as_me:$LINENO: result: yes" >&5
7822echo "${ECHO_T}yes" >&6
7823 else
7824 echo "$as_me:$LINENO: result: no" >&5
7825echo "${ECHO_T}no" >&6
7826 fi
7827
7828
7829 enablestring=
7830 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7831echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7832 no_cache=0
7833 # Check whether --enable-button or --disable-button was given.
7834if test "${enable_button+set}" = set; then
7835 enableval="$enable_button"
7836
7837 if test "$enableval" = yes; then
7838 ac_cv_use_button='wxUSE_BUTTON=yes'
7839 else
7840 ac_cv_use_button='wxUSE_BUTTON=no'
7841 fi
7842
7843else
7844
7845 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7846 if test "x$LINE" != x ; then
7847 eval "DEFAULT_$LINE"
7848 else
7849 no_cache=1
7850 fi
7851
7852 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7853
7854fi;
7855
7856 eval "$ac_cv_use_button"
7857 if test "$no_cache" != 1; then
7858 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7859 fi
7860
7861 if test "$wxUSE_BUTTON" = yes; then
7862 echo "$as_me:$LINENO: result: yes" >&5
7863echo "${ECHO_T}yes" >&6
7864 else
7865 echo "$as_me:$LINENO: result: no" >&5
7866echo "${ECHO_T}no" >&6
7867 fi
7868
7869
7870 enablestring=
7871 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7872echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7873 no_cache=0
7874 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7875if test "${enable_bmpbutton+set}" = set; then
7876 enableval="$enable_bmpbutton"
7877
7878 if test "$enableval" = yes; then
7879 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7880 else
7881 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7882 fi
7883
7884else
7885
7886 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7887 if test "x$LINE" != x ; then
7888 eval "DEFAULT_$LINE"
7889 else
7890 no_cache=1
7891 fi
7892
7893 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7894
7895fi;
7896
7897 eval "$ac_cv_use_bmpbutton"
7898 if test "$no_cache" != 1; then
7899 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7900 fi
7901
7902 if test "$wxUSE_BMPBUTTON" = yes; then
7903 echo "$as_me:$LINENO: result: yes" >&5
7904echo "${ECHO_T}yes" >&6
7905 else
7906 echo "$as_me:$LINENO: result: no" >&5
7907echo "${ECHO_T}no" >&6
7908 fi
7909
7910
7911 enablestring=
7912 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7913echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7914 no_cache=0
7915 # Check whether --enable-calendar or --disable-calendar was given.
7916if test "${enable_calendar+set}" = set; then
7917 enableval="$enable_calendar"
7918
7919 if test "$enableval" = yes; then
7920 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7921 else
7922 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7923 fi
7924
7925else
7926
7927 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7928 if test "x$LINE" != x ; then
7929 eval "DEFAULT_$LINE"
7930 else
7931 no_cache=1
7932 fi
7933
7934 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7935
7936fi;
7937
7938 eval "$ac_cv_use_calendar"
7939 if test "$no_cache" != 1; then
7940 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7941 fi
7942
7943 if test "$wxUSE_CALCTRL" = yes; then
7944 echo "$as_me:$LINENO: result: yes" >&5
7945echo "${ECHO_T}yes" >&6
7946 else
7947 echo "$as_me:$LINENO: result: no" >&5
7948echo "${ECHO_T}no" >&6
7949 fi
7950
7951
7952 enablestring=
7953 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7954echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7955 no_cache=0
7956 # Check whether --enable-caret or --disable-caret was given.
7957if test "${enable_caret+set}" = set; then
7958 enableval="$enable_caret"
7959
7960 if test "$enableval" = yes; then
7961 ac_cv_use_caret='wxUSE_CARET=yes'
7962 else
7963 ac_cv_use_caret='wxUSE_CARET=no'
7964 fi
7965
7966else
7967
7968 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7969 if test "x$LINE" != x ; then
7970 eval "DEFAULT_$LINE"
7971 else
7972 no_cache=1
7973 fi
7974
7975 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7976
7977fi;
7978
7979 eval "$ac_cv_use_caret"
7980 if test "$no_cache" != 1; then
7981 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7982 fi
7983
7984 if test "$wxUSE_CARET" = yes; then
7985 echo "$as_me:$LINENO: result: yes" >&5
7986echo "${ECHO_T}yes" >&6
7987 else
7988 echo "$as_me:$LINENO: result: no" >&5
7989echo "${ECHO_T}no" >&6
7990 fi
7991
7992
7993 enablestring=
7994 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7995echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7996 no_cache=0
7997 # Check whether --enable-checkbox or --disable-checkbox was given.
7998if test "${enable_checkbox+set}" = set; then
7999 enableval="$enable_checkbox"
8000
8001 if test "$enableval" = yes; then
8002 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
8003 else
8004 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
8005 fi
8006
8007else
8008
8009 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
8010 if test "x$LINE" != x ; then
8011 eval "DEFAULT_$LINE"
8012 else
8013 no_cache=1
8014 fi
8015
8016 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
8017
8018fi;
8019
8020 eval "$ac_cv_use_checkbox"
8021 if test "$no_cache" != 1; then
8022 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
8023 fi
8024
8025 if test "$wxUSE_CHECKBOX" = yes; then
8026 echo "$as_me:$LINENO: result: yes" >&5
8027echo "${ECHO_T}yes" >&6
8028 else
8029 echo "$as_me:$LINENO: result: no" >&5
8030echo "${ECHO_T}no" >&6
8031 fi
8032
8033
8034 enablestring=
8035 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
8036echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
8037 no_cache=0
8038 # Check whether --enable-checklst or --disable-checklst was given.
8039if test "${enable_checklst+set}" = set; then
8040 enableval="$enable_checklst"
8041
8042 if test "$enableval" = yes; then
8043 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
8044 else
8045 ac_cv_use_checklst='wxUSE_CHECKLST=no'
8046 fi
8047
8048else
8049
8050 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
8051 if test "x$LINE" != x ; then
8052 eval "DEFAULT_$LINE"
8053 else
8054 no_cache=1
8055 fi
8056
8057 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
8058
8059fi;
8060
8061 eval "$ac_cv_use_checklst"
8062 if test "$no_cache" != 1; then
8063 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
8064 fi
8065
8066 if test "$wxUSE_CHECKLST" = yes; then
8067 echo "$as_me:$LINENO: result: yes" >&5
8068echo "${ECHO_T}yes" >&6
8069 else
8070 echo "$as_me:$LINENO: result: no" >&5
8071echo "${ECHO_T}no" >&6
8072 fi
8073
8074
8075 enablestring=
8076 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
8077echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
8078 no_cache=0
8079 # Check whether --enable-choice or --disable-choice was given.
8080if test "${enable_choice+set}" = set; then
8081 enableval="$enable_choice"
8082
8083 if test "$enableval" = yes; then
8084 ac_cv_use_choice='wxUSE_CHOICE=yes'
8085 else
8086 ac_cv_use_choice='wxUSE_CHOICE=no'
8087 fi
8088
8089else
8090
8091 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
8092 if test "x$LINE" != x ; then
8093 eval "DEFAULT_$LINE"
8094 else
8095 no_cache=1
8096 fi
8097
8098 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
8099
8100fi;
8101
8102 eval "$ac_cv_use_choice"
8103 if test "$no_cache" != 1; then
8104 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
8105 fi
8106
8107 if test "$wxUSE_CHOICE" = yes; then
8108 echo "$as_me:$LINENO: result: yes" >&5
8109echo "${ECHO_T}yes" >&6
8110 else
8111 echo "$as_me:$LINENO: result: no" >&5
8112echo "${ECHO_T}no" >&6
8113 fi
8114
8115
92bbdbcd
WS
8116 enablestring=
8117 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
8118echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
8119 no_cache=0
8120 # Check whether --enable-choicebook or --disable-choicebook was given.
8121if test "${enable_choicebook+set}" = set; then
8122 enableval="$enable_choicebook"
8123
8124 if test "$enableval" = yes; then
8125 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
8126 else
8127 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
8128 fi
8129
8130else
8131
8132 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
8133 if test "x$LINE" != x ; then
8134 eval "DEFAULT_$LINE"
8135 else
8136 no_cache=1
8137 fi
8138
8139 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
8140
8141fi;
8142
8143 eval "$ac_cv_use_choicebook"
8144 if test "$no_cache" != 1; then
8145 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
8146 fi
8147
8148 if test "$wxUSE_CHOICEBOOK" = yes; then
8149 echo "$as_me:$LINENO: result: yes" >&5
8150echo "${ECHO_T}yes" >&6
8151 else
8152 echo "$as_me:$LINENO: result: no" >&5
8153echo "${ECHO_T}no" >&6
8154 fi
8155
8156
e9263684
VZ
8157 enablestring=
8158 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5
8159echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6
8160 no_cache=0
8161 # Check whether --enable-colourpicker or --disable-colourpicker was given.
8162if test "${enable_colourpicker+set}" = set; then
8163 enableval="$enable_colourpicker"
8164
8165 if test "$enableval" = yes; then
8166 ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes'
8167 else
8168 ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no'
8169 fi
8170
8171else
8172
8173 LINE=`grep "wxUSE_COLOURPICKERCTRL" ${wx_arg_cache_file}`
8174 if test "x$LINE" != x ; then
8175 eval "DEFAULT_$LINE"
8176 else
8177 no_cache=1
8178 fi
8179
8180 ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL='$DEFAULT_wxUSE_COLOURPICKERCTRL
8181
8182fi;
8183
8184 eval "$ac_cv_use_colourpicker"
8185 if test "$no_cache" != 1; then
8186 echo $ac_cv_use_colourpicker >> ${wx_arg_cache_file}.tmp
8187 fi
8188
8189 if test "$wxUSE_COLOURPICKERCTRL" = yes; then
8190 echo "$as_me:$LINENO: result: yes" >&5
8191echo "${ECHO_T}yes" >&6
8192 else
8193 echo "$as_me:$LINENO: result: no" >&5
8194echo "${ECHO_T}no" >&6
8195 fi
8196
8197
a848cd7e
SC
8198 enablestring=
8199 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
8200echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
8201 no_cache=0
8202 # Check whether --enable-combobox or --disable-combobox was given.
8203if test "${enable_combobox+set}" = set; then
8204 enableval="$enable_combobox"
8205
8206 if test "$enableval" = yes; then
8207 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
8208 else
8209 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
8210 fi
8211
8212else
8213
8214 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
8215 if test "x$LINE" != x ; then
8216 eval "DEFAULT_$LINE"
8217 else
8218 no_cache=1
8219 fi
8220
8221 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
8222
8223fi;
8224
8225 eval "$ac_cv_use_combobox"
8226 if test "$no_cache" != 1; then
8227 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
8228 fi
8229
8230 if test "$wxUSE_COMBOBOX" = yes; then
8231 echo "$as_me:$LINENO: result: yes" >&5
8232echo "${ECHO_T}yes" >&6
8233 else
8234 echo "$as_me:$LINENO: result: no" >&5
8235echo "${ECHO_T}no" >&6
8236 fi
8237
8238
642bcba9 8239 enablestring=
a57d600f
VZ
8240 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
8241echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6
642bcba9 8242 no_cache=0
a57d600f
VZ
8243 # Check whether --enable-comboctrl or --disable-comboctrl was given.
8244if test "${enable_comboctrl+set}" = set; then
8245 enableval="$enable_comboctrl"
642bcba9
VZ
8246
8247 if test "$enableval" = yes; then
a57d600f 8248 ac_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
642bcba9 8249 else
a57d600f 8250 ac_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
642bcba9
VZ
8251 fi
8252
8253else
8254
a57d600f 8255 LINE=`grep "wxUSE_COMBOCTRL" ${wx_arg_cache_file}`
642bcba9
VZ
8256 if test "x$LINE" != x ; then
8257 eval "DEFAULT_$LINE"
8258 else
8259 no_cache=1
8260 fi
8261
a57d600f 8262 ac_cv_use_comboctrl='wxUSE_COMBOCTRL='$DEFAULT_wxUSE_COMBOCTRL
642bcba9
VZ
8263
8264fi;
8265
a57d600f 8266 eval "$ac_cv_use_comboctrl"
642bcba9 8267 if test "$no_cache" != 1; then
a57d600f 8268 echo $ac_cv_use_comboctrl >> ${wx_arg_cache_file}.tmp
642bcba9
VZ
8269 fi
8270
a57d600f 8271 if test "$wxUSE_COMBOCTRL" = yes; then
642bcba9
VZ
8272 echo "$as_me:$LINENO: result: yes" >&5
8273echo "${ECHO_T}yes" >&6
8274 else
8275 echo "$as_me:$LINENO: result: no" >&5
8276echo "${ECHO_T}no" >&6
8277 fi
8278
8279
da98e9be
VZ
8280 enablestring=
8281 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
8282echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
8283 no_cache=0
8284 # Check whether --enable-datepick or --disable-datepick was given.
8285if test "${enable_datepick+set}" = set; then
8286 enableval="$enable_datepick"
8287
8288 if test "$enableval" = yes; then
8289 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
8290 else
8291 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
8292 fi
8293
8294else
8295
8296 LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
8297 if test "x$LINE" != x ; then
8298 eval "DEFAULT_$LINE"
8299 else
8300 no_cache=1
8301 fi
8302
8303 ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
8304
8305fi;
8306
8307 eval "$ac_cv_use_datepick"
8308 if test "$no_cache" != 1; then
8309 echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
8310 fi
8311
8312 if test "$wxUSE_DATEPICKCTRL" = yes; then
8313 echo "$as_me:$LINENO: result: yes" >&5
8314echo "${ECHO_T}yes" >&6
8315 else
8316 echo "$as_me:$LINENO: result: no" >&5
8317echo "${ECHO_T}no" >&6
8318 fi
8319
8320
e9263684
VZ
8321 enablestring=
8322 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5
8323echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6
8324 no_cache=0
8325 # Check whether --enable-dirpicker or --disable-dirpicker was given.
8326if test "${enable_dirpicker+set}" = set; then
8327 enableval="$enable_dirpicker"
8328
8329 if test "$enableval" = yes; then
8330 ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes'
8331 else
8332 ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no'
8333 fi
8334
8335else
8336
8337 LINE=`grep "wxUSE_DIRPICKERCTRL" ${wx_arg_cache_file}`
8338 if test "x$LINE" != x ; then
8339 eval "DEFAULT_$LINE"
8340 else
8341 no_cache=1
8342 fi
8343
8344 ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL='$DEFAULT_wxUSE_DIRPICKERCTRL
8345
8346fi;
8347
8348 eval "$ac_cv_use_dirpicker"
8349 if test "$no_cache" != 1; then
8350 echo $ac_cv_use_dirpicker >> ${wx_arg_cache_file}.tmp
8351 fi
8352
8353 if test "$wxUSE_DIRPICKERCTRL" = yes; then
8354 echo "$as_me:$LINENO: result: yes" >&5
8355echo "${ECHO_T}yes" >&6
8356 else
8357 echo "$as_me:$LINENO: result: no" >&5
8358echo "${ECHO_T}no" >&6
8359 fi
8360
8361
a848cd7e
SC
8362 enablestring=
8363 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
8364echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
8365 no_cache=0
8366 # Check whether --enable-display or --disable-display was given.
8367if test "${enable_display+set}" = set; then
8368 enableval="$enable_display"
8369
8370 if test "$enableval" = yes; then
8371 ac_cv_use_display='wxUSE_DISPLAY=yes'
8372 else
8373 ac_cv_use_display='wxUSE_DISPLAY=no'
8374 fi
8375
8376else
8377
8378 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
8379 if test "x$LINE" != x ; then
8380 eval "DEFAULT_$LINE"
8381 else
8382 no_cache=1
8383 fi
8384
8385 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
8386
8387fi;
8388
8389 eval "$ac_cv_use_display"
8390 if test "$no_cache" != 1; then
8391 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
8392 fi
8393
8394 if test "$wxUSE_DISPLAY" = yes; then
8395 echo "$as_me:$LINENO: result: yes" >&5
8396echo "${ECHO_T}yes" >&6
8397 else
8398 echo "$as_me:$LINENO: result: no" >&5
8399echo "${ECHO_T}no" >&6
8400 fi
8401
8402
e9263684
VZ
8403 enablestring=
8404 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5
8405echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6
8406 no_cache=0
8407 # Check whether --enable-filepicker or --disable-filepicker was given.
8408if test "${enable_filepicker+set}" = set; then
8409 enableval="$enable_filepicker"
8410
8411 if test "$enableval" = yes; then
8412 ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes'
8413 else
8414 ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no'
8415 fi
8416
8417else
8418
8419 LINE=`grep "wxUSE_FILEPICKERCTRL" ${wx_arg_cache_file}`
8420 if test "x$LINE" != x ; then
8421 eval "DEFAULT_$LINE"
8422 else
8423 no_cache=1
8424 fi
8425
8426 ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL='$DEFAULT_wxUSE_FILEPICKERCTRL
8427
8428fi;
8429
8430 eval "$ac_cv_use_filepicker"
8431 if test "$no_cache" != 1; then
8432 echo $ac_cv_use_filepicker >> ${wx_arg_cache_file}.tmp
8433 fi
8434
8435 if test "$wxUSE_FILEPICKERCTRL" = yes; then
8436 echo "$as_me:$LINENO: result: yes" >&5
8437echo "${ECHO_T}yes" >&6
8438 else
8439 echo "$as_me:$LINENO: result: no" >&5
8440echo "${ECHO_T}no" >&6
8441 fi
8442
8443
8444 enablestring=
8445 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5
8446echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6
8447 no_cache=0
8448 # Check whether --enable-fontpicker or --disable-fontpicker was given.
8449if test "${enable_fontpicker+set}" = set; then
8450 enableval="$enable_fontpicker"
8451
8452 if test "$enableval" = yes; then
8453 ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes'
8454 else
8455 ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no'
8456 fi
8457
8458else
8459
8460 LINE=`grep "wxUSE_FONTPICKERCTRL" ${wx_arg_cache_file}`
8461 if test "x$LINE" != x ; then
8462 eval "DEFAULT_$LINE"
8463 else
8464 no_cache=1
8465 fi
8466
8467 ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL='$DEFAULT_wxUSE_FONTPICKERCTRL
8468
8469fi;
8470
8471 eval "$ac_cv_use_fontpicker"
8472 if test "$no_cache" != 1; then
8473 echo $ac_cv_use_fontpicker >> ${wx_arg_cache_file}.tmp
8474 fi
8475
8476 if test "$wxUSE_FONTPICKERCTRL" = yes; then
8477 echo "$as_me:$LINENO: result: yes" >&5
8478echo "${ECHO_T}yes" >&6
8479 else
8480 echo "$as_me:$LINENO: result: no" >&5
8481echo "${ECHO_T}no" >&6
8482 fi
8483
8484
a848cd7e
SC
8485 enablestring=
8486 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
8487echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
8488 no_cache=0
8489 # Check whether --enable-gauge or --disable-gauge was given.
8490if test "${enable_gauge+set}" = set; then
8491 enableval="$enable_gauge"
8492
8493 if test "$enableval" = yes; then
8494 ac_cv_use_gauge='wxUSE_GAUGE=yes'
8495 else
8496 ac_cv_use_gauge='wxUSE_GAUGE=no'
8497 fi
8498
8499else
8500
8501 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
8502 if test "x$LINE" != x ; then
8503 eval "DEFAULT_$LINE"
8504 else
8505 no_cache=1
8506 fi
8507
8508 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
8509
8510fi;
8511
8512 eval "$ac_cv_use_gauge"
8513 if test "$no_cache" != 1; then
8514 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
8515 fi
8516
8517 if test "$wxUSE_GAUGE" = yes; then
8518 echo "$as_me:$LINENO: result: yes" >&5
8519echo "${ECHO_T}yes" >&6
8520 else
8521 echo "$as_me:$LINENO: result: no" >&5
8522echo "${ECHO_T}no" >&6
8523 fi
8524
8525
8526 enablestring=
8527 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
8528echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
8529 no_cache=0
8530 # Check whether --enable-grid or --disable-grid was given.
8531if test "${enable_grid+set}" = set; then
8532 enableval="$enable_grid"
8533
8534 if test "$enableval" = yes; then
8535 ac_cv_use_grid='wxUSE_GRID=yes'
8536 else
8537 ac_cv_use_grid='wxUSE_GRID=no'
8538 fi
8539
8540else
8541
8542 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
8543 if test "x$LINE" != x ; then
8544 eval "DEFAULT_$LINE"
8545 else
8546 no_cache=1
8547 fi
8548
8549 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
8550
8551fi;
8552
8553 eval "$ac_cv_use_grid"
8554 if test "$no_cache" != 1; then
8555 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
8556 fi
8557
8558 if test "$wxUSE_GRID" = yes; then
8559 echo "$as_me:$LINENO: result: yes" >&5
8560echo "${ECHO_T}yes" >&6
8561 else
8562 echo "$as_me:$LINENO: result: no" >&5
8563echo "${ECHO_T}no" >&6
8564 fi
8565
8566
20e34ecc
RR
8567 enablestring=
8568 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
8569echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6
8570 no_cache=0
8571 # Check whether --enable-dataviewctrl or --disable-dataviewctrl was given.
8572if test "${enable_dataviewctrl+set}" = set; then
8573 enableval="$enable_dataviewctrl"
8574
8575 if test "$enableval" = yes; then
8576 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
8577 else
8578 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
8579 fi
8580
8581else
8582
8583 LINE=`grep "wxUSE_DATAVIEWCTRL" ${wx_arg_cache_file}`
8584 if test "x$LINE" != x ; then
8585 eval "DEFAULT_$LINE"
8586 else
8587 no_cache=1
8588 fi
8589
8590 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL='$DEFAULT_wxUSE_DATAVIEWCTRL
8591
8592fi;
8593
8594 eval "$ac_cv_use_dataviewctrl"
8595 if test "$no_cache" != 1; then
8596 echo $ac_cv_use_dataviewctrl >> ${wx_arg_cache_file}.tmp
8597 fi
8598
8599 if test "$wxUSE_DATAVIEWCTRL" = yes; then
8600 echo "$as_me:$LINENO: result: yes" >&5
8601echo "${ECHO_T}yes" >&6
8602 else
8603 echo "$as_me:$LINENO: result: no" >&5
8604echo "${ECHO_T}no" >&6
8605 fi
8606
8607
6954625c
VZ
8608 enablestring=
8609 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
8610echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6
8611 no_cache=0
8612 # Check whether --enable-hyperlink or --disable-hyperlink was given.
8613if test "${enable_hyperlink+set}" = set; then
8614 enableval="$enable_hyperlink"
8615
8616 if test "$enableval" = yes; then
8617 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
8618 else
8619 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
8620 fi
8621
8622else
8623
8624 LINE=`grep "wxUSE_HYPERLINKCTRL" ${wx_arg_cache_file}`
8625 if test "x$LINE" != x ; then
8626 eval "DEFAULT_$LINE"
8627 else
8628 no_cache=1
8629 fi
8630
8631 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL='$DEFAULT_wxUSE_HYPERLINKCTRL
8632
8633fi;
8634
8635 eval "$ac_cv_use_hyperlink"
8636 if test "$no_cache" != 1; then
8637 echo $ac_cv_use_hyperlink >> ${wx_arg_cache_file}.tmp
8638 fi
8639
8640 if test "$wxUSE_HYPERLINKCTRL" = yes; then
8641 echo "$as_me:$LINENO: result: yes" >&5
8642echo "${ECHO_T}yes" >&6
8643 else
8644 echo "$as_me:$LINENO: result: no" >&5
8645echo "${ECHO_T}no" >&6
8646 fi
8647
8648
a848cd7e
SC
8649 enablestring=
8650 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
8651echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
8652 no_cache=0
8653 # Check whether --enable-imaglist or --disable-imaglist was given.
8654if test "${enable_imaglist+set}" = set; then
8655 enableval="$enable_imaglist"
8656
8657 if test "$enableval" = yes; then
8658 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
8659 else
8660 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
8661 fi
8662
8663else
8664
8665 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
8666 if test "x$LINE" != x ; then
8667 eval "DEFAULT_$LINE"
8668 else
8669 no_cache=1
8670 fi
8671
8672 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
8673
8674fi;
8675
8676 eval "$ac_cv_use_imaglist"
8677 if test "$no_cache" != 1; then
8678 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
8679 fi
8680
8681 if test "$wxUSE_IMAGLIST" = yes; then
8682 echo "$as_me:$LINENO: result: yes" >&5
8683echo "${ECHO_T}yes" >&6
8684 else
8685 echo "$as_me:$LINENO: result: no" >&5
8686echo "${ECHO_T}no" >&6
8687 fi
8688
8689
8690 enablestring=
8691 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
8692echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
8693 no_cache=0
8694 # Check whether --enable-listbook or --disable-listbook was given.
8695if test "${enable_listbook+set}" = set; then
8696 enableval="$enable_listbook"
8697
8698 if test "$enableval" = yes; then
8699 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
8700 else
8701 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
8702 fi
8703
8704else
8705
8706 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
8707 if test "x$LINE" != x ; then
8708 eval "DEFAULT_$LINE"
8709 else
8710 no_cache=1
8711 fi
8712
8713 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
8714
8715fi;
8716
8717 eval "$ac_cv_use_listbook"
8718 if test "$no_cache" != 1; then
8719 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
8720 fi
8721
8722 if test "$wxUSE_LISTBOOK" = yes; then
8723 echo "$as_me:$LINENO: result: yes" >&5
8724echo "${ECHO_T}yes" >&6
8725 else
8726 echo "$as_me:$LINENO: result: no" >&5
8727echo "${ECHO_T}no" >&6
8728 fi
8729
8730
8731 enablestring=
8732 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
8733echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
8734 no_cache=0
8735 # Check whether --enable-listbox or --disable-listbox was given.
8736if test "${enable_listbox+set}" = set; then
8737 enableval="$enable_listbox"
8738
8739 if test "$enableval" = yes; then
8740 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
8741 else
8742 ac_cv_use_listbox='wxUSE_LISTBOX=no'
8743 fi
8744
8745else
8746
8747 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
8748 if test "x$LINE" != x ; then
8749 eval "DEFAULT_$LINE"
8750 else
8751 no_cache=1
8752 fi
8753
8754 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
8755
8756fi;
8757
8758 eval "$ac_cv_use_listbox"
8759 if test "$no_cache" != 1; then
8760 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
8761 fi
8762
8763 if test "$wxUSE_LISTBOX" = yes; then
8764 echo "$as_me:$LINENO: result: yes" >&5
8765echo "${ECHO_T}yes" >&6
8766 else
8767 echo "$as_me:$LINENO: result: no" >&5
8768echo "${ECHO_T}no" >&6
8769 fi
8770
8771
8772 enablestring=
8773 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
8774echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
8775 no_cache=0
8776 # Check whether --enable-listctrl or --disable-listctrl was given.
8777if test "${enable_listctrl+set}" = set; then
8778 enableval="$enable_listctrl"
8779
8780 if test "$enableval" = yes; then
8781 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
8782 else
8783 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
8784 fi
8785
8786else
8787
8788 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
8789 if test "x$LINE" != x ; then
8790 eval "DEFAULT_$LINE"
8791 else
8792 no_cache=1
8793 fi
8794
8795 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
8796
8797fi;
8798
8799 eval "$ac_cv_use_listctrl"
8800 if test "$no_cache" != 1; then
8801 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
8802 fi
8803
8804 if test "$wxUSE_LISTCTRL" = yes; then
8805 echo "$as_me:$LINENO: result: yes" >&5
8806echo "${ECHO_T}yes" >&6
8807 else
8808 echo "$as_me:$LINENO: result: no" >&5
8809echo "${ECHO_T}no" >&6
8810 fi
8811
8812
8813 enablestring=
8814 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
8815echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
8816 no_cache=0
8817 # Check whether --enable-notebook or --disable-notebook was given.
8818if test "${enable_notebook+set}" = set; then
8819 enableval="$enable_notebook"
8820
8821 if test "$enableval" = yes; then
8822 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
8823 else
8824 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
8825 fi
8826
8827else
8828
8829 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
8830 if test "x$LINE" != x ; then
8831 eval "DEFAULT_$LINE"
8832 else
8833 no_cache=1
8834 fi
8835
8836 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
8837
8838fi;
8839
8840 eval "$ac_cv_use_notebook"
8841 if test "$no_cache" != 1; then
8842 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
8843 fi
8844
8845 if test "$wxUSE_NOTEBOOK" = yes; then
8846 echo "$as_me:$LINENO: result: yes" >&5
8847echo "${ECHO_T}yes" >&6
8848 else
8849 echo "$as_me:$LINENO: result: no" >&5
8850echo "${ECHO_T}no" >&6
8851 fi
8852
8853
642bcba9 8854 enablestring=
a57d600f
VZ
8855 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
8856echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6
642bcba9 8857 no_cache=0
a57d600f
VZ
8858 # Check whether --enable-odcombobox or --disable-odcombobox was given.
8859if test "${enable_odcombobox+set}" = set; then
8860 enableval="$enable_odcombobox"
642bcba9
VZ
8861
8862 if test "$enableval" = yes; then
a57d600f 8863 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
642bcba9 8864 else
a57d600f 8865 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
642bcba9
VZ
8866 fi
8867
8868else
8869
a57d600f 8870 LINE=`grep "wxUSE_ODCOMBOBOX" ${wx_arg_cache_file}`
642bcba9
VZ
8871 if test "x$LINE" != x ; then
8872 eval "DEFAULT_$LINE"
8873 else
8874 no_cache=1
8875 fi
8876
a57d600f 8877 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX='$DEFAULT_wxUSE_ODCOMBOBOX
642bcba9
VZ
8878
8879fi;
8880
a57d600f 8881 eval "$ac_cv_use_odcombobox"
642bcba9 8882 if test "$no_cache" != 1; then
a57d600f 8883 echo $ac_cv_use_odcombobox >> ${wx_arg_cache_file}.tmp
642bcba9
VZ
8884 fi
8885
a57d600f 8886 if test "$wxUSE_ODCOMBOBOX" = yes; then
642bcba9
VZ
8887 echo "$as_me:$LINENO: result: yes" >&5
8888echo "${ECHO_T}yes" >&6
8889 else
8890 echo "$as_me:$LINENO: result: no" >&5
8891echo "${ECHO_T}no" >&6
8892 fi
8893
8894
a848cd7e
SC
8895 enablestring=
8896 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
8897echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
8898 no_cache=0
8899 # Check whether --enable-radiobox or --disable-radiobox was given.
8900if test "${enable_radiobox+set}" = set; then
8901 enableval="$enable_radiobox"
8902
8903 if test "$enableval" = yes; then
8904 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
8905 else
8906 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
8907 fi
8908
8909else
8910
8911 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
8912 if test "x$LINE" != x ; then
8913 eval "DEFAULT_$LINE"
8914 else
8915 no_cache=1
8916 fi
8917
8918 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
8919
8920fi;
8921
8922 eval "$ac_cv_use_radiobox"
8923 if test "$no_cache" != 1; then
8924 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
8925 fi
8926
8927 if test "$wxUSE_RADIOBOX" = yes; then
8928 echo "$as_me:$LINENO: result: yes" >&5
8929echo "${ECHO_T}yes" >&6
8930 else
8931 echo "$as_me:$LINENO: result: no" >&5
8932echo "${ECHO_T}no" >&6
8933 fi
8934
8935
8936 enablestring=
8937 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
8938echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
8939 no_cache=0
8940 # Check whether --enable-radiobtn or --disable-radiobtn was given.
8941if test "${enable_radiobtn+set}" = set; then
8942 enableval="$enable_radiobtn"
8943
8944 if test "$enableval" = yes; then
8945 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
8946 else
8947 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
8948 fi
8949
8950else
8951
8952 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
8953 if test "x$LINE" != x ; then
8954 eval "DEFAULT_$LINE"
8955 else
8956 no_cache=1
8957 fi
8958
8959 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
8960
8961fi;
8962
8963 eval "$ac_cv_use_radiobtn"
8964 if test "$no_cache" != 1; then
8965 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
8966 fi
8967
8968 if test "$wxUSE_RADIOBTN" = yes; then
8969 echo "$as_me:$LINENO: result: yes" >&5
8970echo "${ECHO_T}yes" >&6
8971 else
8972 echo "$as_me:$LINENO: result: no" >&5
8973echo "${ECHO_T}no" >&6
8974 fi
8975
8976
8977 enablestring=
8978 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
8979echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
8980 no_cache=0
8981 # Check whether --enable-sash or --disable-sash was given.
8982if test "${enable_sash+set}" = set; then
8983 enableval="$enable_sash"
8984
8985 if test "$enableval" = yes; then
8986 ac_cv_use_sash='wxUSE_SASH=yes'
8987 else
8988 ac_cv_use_sash='wxUSE_SASH=no'
8989 fi
8990
8991else
8992
8993 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
8994 if test "x$LINE" != x ; then
8995 eval "DEFAULT_$LINE"
8996 else
8997 no_cache=1
8998 fi
8999
9000 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
9001
9002fi;
9003
9004 eval "$ac_cv_use_sash"
9005 if test "$no_cache" != 1; then
9006 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
9007 fi
9008
9009 if test "$wxUSE_SASH" = yes; then
9010 echo "$as_me:$LINENO: result: yes" >&5
9011echo "${ECHO_T}yes" >&6
9012 else
9013 echo "$as_me:$LINENO: result: no" >&5
9014echo "${ECHO_T}no" >&6
9015 fi
9016
9017
9018 enablestring=
9019 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
9020echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
9021 no_cache=0
9022 # Check whether --enable-scrollbar or --disable-scrollbar was given.
9023if test "${enable_scrollbar+set}" = set; then
9024 enableval="$enable_scrollbar"
9025
9026 if test "$enableval" = yes; then
9027 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
9028 else
9029 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
9030 fi
9031
9032else
9033
9034 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
9035 if test "x$LINE" != x ; then
9036 eval "DEFAULT_$LINE"
9037 else
9038 no_cache=1
9039 fi
9040
9041 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
9042
9043fi;
9044
9045 eval "$ac_cv_use_scrollbar"
9046 if test "$no_cache" != 1; then
9047 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
9048 fi
9049
9050 if test "$wxUSE_SCROLLBAR" = yes; then
9051 echo "$as_me:$LINENO: result: yes" >&5
9052echo "${ECHO_T}yes" >&6
9053 else
9054 echo "$as_me:$LINENO: result: no" >&5
9055echo "${ECHO_T}no" >&6
9056 fi
9057
9058
9059 enablestring=
9060 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
9061echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
9062 no_cache=0
9063 # Check whether --enable-slider or --disable-slider was given.
9064if test "${enable_slider+set}" = set; then
9065 enableval="$enable_slider"
9066
9067 if test "$enableval" = yes; then
9068 ac_cv_use_slider='wxUSE_SLIDER=yes'
9069 else
9070 ac_cv_use_slider='wxUSE_SLIDER=no'
9071 fi
9072
9073else
9074
9075 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
9076 if test "x$LINE" != x ; then
9077 eval "DEFAULT_$LINE"
9078 else
9079 no_cache=1
9080 fi
9081
9082 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
9083
9084fi;
9085
9086 eval "$ac_cv_use_slider"
9087 if test "$no_cache" != 1; then
9088 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
9089 fi
9090
9091 if test "$wxUSE_SLIDER" = yes; then
9092 echo "$as_me:$LINENO: result: yes" >&5
9093echo "${ECHO_T}yes" >&6
9094 else
9095 echo "$as_me:$LINENO: result: no" >&5
9096echo "${ECHO_T}no" >&6
9097 fi
9098
9099
9100 enablestring=
9101 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
9102echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
9103 no_cache=0
9104 # Check whether --enable-spinbtn or --disable-spinbtn was given.
9105if test "${enable_spinbtn+set}" = set; then
9106 enableval="$enable_spinbtn"
9107
9108 if test "$enableval" = yes; then
9109 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
9110 else
9111 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
9112 fi
9113
9114else
9115
9116 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
9117 if test "x$LINE" != x ; then
9118 eval "DEFAULT_$LINE"
9119 else
9120 no_cache=1
9121 fi
9122
9123 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
9124
9125fi;
9126
9127 eval "$ac_cv_use_spinbtn"
9128 if test "$no_cache" != 1; then
9129 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
9130 fi
9131
9132 if test "$wxUSE_SPINBTN" = yes; then
9133 echo "$as_me:$LINENO: result: yes" >&5
9134echo "${ECHO_T}yes" >&6
9135 else
9136 echo "$as_me:$LINENO: result: no" >&5
9137echo "${ECHO_T}no" >&6
9138 fi
9139
9140
9141 enablestring=
9142 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
9143echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
9144 no_cache=0
9145 # Check whether --enable-spinctrl or --disable-spinctrl was given.
9146if test "${enable_spinctrl+set}" = set; then
9147 enableval="$enable_spinctrl"
9148
9149 if test "$enableval" = yes; then
9150 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
9151 else
9152 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
9153 fi
9154
9155else
9156
9157 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
9158 if test "x$LINE" != x ; then
9159 eval "DEFAULT_$LINE"
9160 else
9161 no_cache=1
9162 fi
9163
9164 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
9165
9166fi;
9167
9168 eval "$ac_cv_use_spinctrl"
9169 if test "$no_cache" != 1; then
9170 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
9171 fi
9172
9173 if test "$wxUSE_SPINCTRL" = yes; then
9174 echo "$as_me:$LINENO: result: yes" >&5
9175echo "${ECHO_T}yes" >&6
9176 else
9177 echo "$as_me:$LINENO: result: no" >&5
9178echo "${ECHO_T}no" >&6
9179 fi
9180
9181
9182 enablestring=
9183 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
9184echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
9185 no_cache=0
9186 # Check whether --enable-splitter or --disable-splitter was given.
9187if test "${enable_splitter+set}" = set; then
9188 enableval="$enable_splitter"
9189
9190 if test "$enableval" = yes; then
9191 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
9192 else
9193 ac_cv_use_splitter='wxUSE_SPLITTER=no'
9194 fi
9195
9196else
9197
9198 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
9199 if test "x$LINE" != x ; then
9200 eval "DEFAULT_$LINE"
9201 else
9202 no_cache=1
9203 fi
9204
9205 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
9206
9207fi;
9208
9209 eval "$ac_cv_use_splitter"
9210 if test "$no_cache" != 1; then
9211 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
9212 fi
9213
9214 if test "$wxUSE_SPLITTER" = yes; then
9215 echo "$as_me:$LINENO: result: yes" >&5
9216echo "${ECHO_T}yes" >&6
9217 else
9218 echo "$as_me:$LINENO: result: no" >&5
9219echo "${ECHO_T}no" >&6
9220 fi
9221
9222
9223 enablestring=
9224 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
9225echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
9226 no_cache=0
9227 # Check whether --enable-statbmp or --disable-statbmp was given.
9228if test "${enable_statbmp+set}" = set; then
9229 enableval="$enable_statbmp"
9230
9231 if test "$enableval" = yes; then
9232 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
9233 else
9234 ac_cv_use_statbmp='wxUSE_STATBMP=no'
9235 fi
9236
9237else
9238
9239 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
9240 if test "x$LINE" != x ; then
9241 eval "DEFAULT_$LINE"
9242 else
9243 no_cache=1
9244 fi
9245
9246 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
9247
9248fi;
9249
9250 eval "$ac_cv_use_statbmp"
9251 if test "$no_cache" != 1; then
9252 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
9253 fi
9254
9255 if test "$wxUSE_STATBMP" = yes; then
9256 echo "$as_me:$LINENO: result: yes" >&5
9257echo "${ECHO_T}yes" >&6
9258 else
9259 echo "$as_me:$LINENO: result: no" >&5
9260echo "${ECHO_T}no" >&6
9261 fi
9262
9263
9264 enablestring=
9265 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
9266echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
9267 no_cache=0
9268 # Check whether --enable-statbox or --disable-statbox was given.
9269if test "${enable_statbox+set}" = set; then
9270 enableval="$enable_statbox"
9271
9272 if test "$enableval" = yes; then
9273 ac_cv_use_statbox='wxUSE_STATBOX=yes'
9274 else
9275 ac_cv_use_statbox='wxUSE_STATBOX=no'
9276 fi
9277
9278else
9279
9280 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
9281 if test "x$LINE" != x ; then
9282 eval "DEFAULT_$LINE"
9283 else
9284 no_cache=1
9285 fi
9286
9287 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
9288
9289fi;
9290
9291 eval "$ac_cv_use_statbox"
9292 if test "$no_cache" != 1; then
9293 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
9294 fi
9295
9296 if test "$wxUSE_STATBOX" = yes; then
9297 echo "$as_me:$LINENO: result: yes" >&5
9298echo "${ECHO_T}yes" >&6
9299 else
9300 echo "$as_me:$LINENO: result: no" >&5
9301echo "${ECHO_T}no" >&6
9302 fi
9303
9304
9305 enablestring=
9306 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
9307echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
9308 no_cache=0
9309 # Check whether --enable-statline or --disable-statline was given.
9310if test "${enable_statline+set}" = set; then
9311 enableval="$enable_statline"
9312
9313 if test "$enableval" = yes; then
9314 ac_cv_use_statline='wxUSE_STATLINE=yes'
9315 else
9316 ac_cv_use_statline='wxUSE_STATLINE=no'
9317 fi
9318
9319else
9320
9321 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
9322 if test "x$LINE" != x ; then
9323 eval "DEFAULT_$LINE"
9324 else
9325 no_cache=1
9326 fi
9327
9328 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
9329
9330fi;
9331
9332 eval "$ac_cv_use_statline"
9333 if test "$no_cache" != 1; then
9334 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
9335 fi
9336
9337 if test "$wxUSE_STATLINE" = yes; then
9338 echo "$as_me:$LINENO: result: yes" >&5
9339echo "${ECHO_T}yes" >&6
9340 else
9341 echo "$as_me:$LINENO: result: no" >&5
9342echo "${ECHO_T}no" >&6
9343 fi
9344
9345
9346 enablestring=
9347 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
9348echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
9349 no_cache=0
9350 # Check whether --enable-stattext or --disable-stattext was given.
9351if test "${enable_stattext+set}" = set; then
9352 enableval="$enable_stattext"
9353
9354 if test "$enableval" = yes; then
9355 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
9356 else
9357 ac_cv_use_stattext='wxUSE_STATTEXT=no'
9358 fi
9359
9360else
9361
9362 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
9363 if test "x$LINE" != x ; then
9364 eval "DEFAULT_$LINE"
9365 else
9366 no_cache=1
9367 fi
9368
9369 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
9370
9371fi;
9372
9373 eval "$ac_cv_use_stattext"
9374 if test "$no_cache" != 1; then
9375 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
9376 fi
9377
9378 if test "$wxUSE_STATTEXT" = yes; then
9379 echo "$as_me:$LINENO: result: yes" >&5
9380echo "${ECHO_T}yes" >&6
9381 else
9382 echo "$as_me:$LINENO: result: no" >&5
9383echo "${ECHO_T}no" >&6
9384 fi
9385
9386
9387 enablestring=
9388 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
9389echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
9390 no_cache=0
9391 # Check whether --enable-statusbar or --disable-statusbar was given.
9392if test "${enable_statusbar+set}" = set; then
9393 enableval="$enable_statusbar"
9394
9395 if test "$enableval" = yes; then
9396 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
9397 else
9398 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
9399 fi
9400
9401else
9402
9403 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
9404 if test "x$LINE" != x ; then
9405 eval "DEFAULT_$LINE"
9406 else
9407 no_cache=1
9408 fi
9409
9410 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
9411
9412fi;
9413
9414 eval "$ac_cv_use_statusbar"
9415 if test "$no_cache" != 1; then
9416 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
9417 fi
9418
9419 if test "$wxUSE_STATUSBAR" = yes; then
9420 echo "$as_me:$LINENO: result: yes" >&5
9421echo "${ECHO_T}yes" >&6
9422 else
9423 echo "$as_me:$LINENO: result: no" >&5
9424echo "${ECHO_T}no" >&6
9425 fi
9426
9427
9428 enablestring=
9429 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
9430echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
9431 no_cache=0
9432 # Check whether --enable-tabdialog or --disable-tabdialog was given.
9433if test "${enable_tabdialog+set}" = set; then
9434 enableval="$enable_tabdialog"
9435
9436 if test "$enableval" = yes; then
f10e38c4 9437 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=yes'
a848cd7e 9438 else
f10e38c4 9439 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=no'
a848cd7e
SC
9440 fi
9441
9442else
9443
f10e38c4 9444 LINE=`grep "wxUSE_TAB_DIALOG" ${wx_arg_cache_file}`
a848cd7e
SC
9445 if test "x$LINE" != x ; then
9446 eval "DEFAULT_$LINE"
9447 else
9448 no_cache=1
9449 fi
9450
f10e38c4 9451 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG='$DEFAULT_wxUSE_TAB_DIALOG
a848cd7e
SC
9452
9453fi;
9454
9455 eval "$ac_cv_use_tabdialog"
9456 if test "$no_cache" != 1; then
9457 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
9458 fi
9459
f10e38c4 9460 if test "$wxUSE_TAB_DIALOG" = yes; then
a848cd7e
SC
9461 echo "$as_me:$LINENO: result: yes" >&5
9462echo "${ECHO_T}yes" >&6
9463 else
9464 echo "$as_me:$LINENO: result: no" >&5
9465echo "${ECHO_T}no" >&6
9466 fi
9467
9468
9469 enablestring=
9470 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
9471echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
9472 no_cache=0
9473 # Check whether --enable-textctrl or --disable-textctrl was given.
9474if test "${enable_textctrl+set}" = set; then
9475 enableval="$enable_textctrl"
9476
9477 if test "$enableval" = yes; then
9478 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
9479 else
9480 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
9481 fi
9482
9483else
9484
9485 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
9486 if test "x$LINE" != x ; then
9487 eval "DEFAULT_$LINE"
9488 else
9489 no_cache=1
9490 fi
9491
9492 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
9493
9494fi;
9495
9496 eval "$ac_cv_use_textctrl"
9497 if test "$no_cache" != 1; then
9498 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
9499 fi
9500
9501 if test "$wxUSE_TEXTCTRL" = yes; then
9502 echo "$as_me:$LINENO: result: yes" >&5
9503echo "${ECHO_T}yes" >&6
9504 else
9505 echo "$as_me:$LINENO: result: no" >&5
9506echo "${ECHO_T}no" >&6
9507 fi
9508
9509
9510 enablestring=
9511 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
9512echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
9513 no_cache=0
9514 # Check whether --enable-togglebtn or --disable-togglebtn was given.
9515if test "${enable_togglebtn+set}" = set; then
9516 enableval="$enable_togglebtn"
9517
9518 if test "$enableval" = yes; then
9519 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
9520 else
9521 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
9522 fi
9523
9524else
9525
9526 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
9527 if test "x$LINE" != x ; then
9528 eval "DEFAULT_$LINE"
9529 else
9530 no_cache=1
9531 fi
9532
9533 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
9534
9535fi;
9536
9537 eval "$ac_cv_use_togglebtn"
9538 if test "$no_cache" != 1; then
9539 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
9540 fi
9541
9542 if test "$wxUSE_TOGGLEBTN" = yes; then
9543 echo "$as_me:$LINENO: result: yes" >&5
9544echo "${ECHO_T}yes" >&6
9545 else
9546 echo "$as_me:$LINENO: result: no" >&5
9547echo "${ECHO_T}no" >&6
9548 fi
9549
9550
9551 enablestring=
9552 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
9553echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
9554 no_cache=0
9555 # Check whether --enable-toolbar or --disable-toolbar was given.
9556if test "${enable_toolbar+set}" = set; then
9557 enableval="$enable_toolbar"
9558
9559 if test "$enableval" = yes; then
9560 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
9561 else
9562 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
9563 fi
9564
9565else
9566
9567 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
9568 if test "x$LINE" != x ; then
9569 eval "DEFAULT_$LINE"
9570 else
9571 no_cache=1
9572 fi
9573
9574 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
9575
9576fi;
9577
9578 eval "$ac_cv_use_toolbar"
9579 if test "$no_cache" != 1; then
9580 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
9581 fi
9582
9583 if test "$wxUSE_TOOLBAR" = yes; then
9584 echo "$as_me:$LINENO: result: yes" >&5
9585echo "${ECHO_T}yes" >&6
9586 else
9587 echo "$as_me:$LINENO: result: no" >&5
9588echo "${ECHO_T}no" >&6
9589 fi
9590
9591
9592 enablestring=
9593 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
9594echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
9595 no_cache=0
9596 # Check whether --enable-tbarnative or --disable-tbarnative was given.
9597if test "${enable_tbarnative+set}" = set; then
9598 enableval="$enable_tbarnative"
9599
9600 if test "$enableval" = yes; then
9601 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
9602 else
9603 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
9604 fi
9605
9606else
9607
9608 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
9609 if test "x$LINE" != x ; then
9610 eval "DEFAULT_$LINE"
9611 else
9612 no_cache=1
9613 fi
9614
9615 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
9616
9617fi;
9618
9619 eval "$ac_cv_use_tbarnative"
9620 if test "$no_cache" != 1; then
9621 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
9622 fi
9623
9624 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
9625 echo "$as_me:$LINENO: result: yes" >&5
9626echo "${ECHO_T}yes" >&6
9627 else
9628 echo "$as_me:$LINENO: result: no" >&5
9629echo "${ECHO_T}no" >&6
9630 fi
9631
9632
9633 enablestring=
9634 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
9635echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
9636 no_cache=0
9637 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
9638if test "${enable_tbarsmpl+set}" = set; then
9639 enableval="$enable_tbarsmpl"
9640
9641 if test "$enableval" = yes; then
9642 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
9643 else
9644 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
9645 fi
9646
9647else
9648
9649 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
9650 if test "x$LINE" != x ; then
9651 eval "DEFAULT_$LINE"
9652 else
9653 no_cache=1
9654 fi
9655
9656 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
9657
9658fi;
9659
9660 eval "$ac_cv_use_tbarsmpl"
9661 if test "$no_cache" != 1; then
9662 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
9663 fi
9664
9665 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
9666 echo "$as_me:$LINENO: result: yes" >&5
9667echo "${ECHO_T}yes" >&6
9668 else
9669 echo "$as_me:$LINENO: result: no" >&5
9670echo "${ECHO_T}no" >&6
9671 fi
9672
9673
0093c2fc
VZ
9674 enablestring=
9675 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
9676echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6
9677 no_cache=0
9678 # Check whether --enable-treebook or --disable-treebook was given.
9679if test "${enable_treebook+set}" = set; then
9680 enableval="$enable_treebook"
9681
9682 if test "$enableval" = yes; then
9683 ac_cv_use_treebook='wxUSE_TREEBOOK=yes'
9684 else
9685 ac_cv_use_treebook='wxUSE_TREEBOOK=no'
9686 fi
9687
9688else
9689
9690 LINE=`grep "wxUSE_TREEBOOK" ${wx_arg_cache_file}`
9691 if test "x$LINE" != x ; then
9692 eval "DEFAULT_$LINE"
9693 else
9694 no_cache=1
9695 fi
9696
9697 ac_cv_use_treebook='wxUSE_TREEBOOK='$DEFAULT_wxUSE_TREEBOOK
9698
9699fi;
9700
9701 eval "$ac_cv_use_treebook"
9702 if test "$no_cache" != 1; then
9703 echo $ac_cv_use_treebook >> ${wx_arg_cache_file}.tmp
9704 fi
9705
9706 if test "$wxUSE_TREEBOOK" = yes; then
9707 echo "$as_me:$LINENO: result: yes" >&5
9708echo "${ECHO_T}yes" >&6
9709 else
9710 echo "$as_me:$LINENO: result: no" >&5
9711echo "${ECHO_T}no" >&6
9712 fi
9713
9714
5ec3bc43
JS
9715 enablestring=
9716 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
9717echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6
9718 no_cache=0
9719 # Check whether --enable-toolbook or --disable-toolbook was given.
9720if test "${enable_toolbook+set}" = set; then
9721 enableval="$enable_toolbook"
9722
9723 if test "$enableval" = yes; then
9724 ac_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
9725 else
9726 ac_cv_use_toolbook='wxUSE_TOOLBOOK=no'
9727 fi
9728
9729else
9730
9731 LINE=`grep "wxUSE_TOOLBOOK" ${wx_arg_cache_file}`
9732 if test "x$LINE" != x ; then
9733 eval "DEFAULT_$LINE"
9734 else
9735 no_cache=1
9736 fi
9737
9738 ac_cv_use_toolbook='wxUSE_TOOLBOOK='$DEFAULT_wxUSE_TOOLBOOK
9739
9740fi;
9741
9742 eval "$ac_cv_use_toolbook"
9743 if test "$no_cache" != 1; then
9744 echo $ac_cv_use_toolbook >> ${wx_arg_cache_file}.tmp
9745 fi
9746
9747 if test "$wxUSE_TOOLBOOK" = yes; then
9748 echo "$as_me:$LINENO: result: yes" >&5
9749echo "${ECHO_T}yes" >&6
9750 else
9751 echo "$as_me:$LINENO: result: no" >&5
9752echo "${ECHO_T}no" >&6
9753 fi
9754
9755
a848cd7e
SC
9756 enablestring=
9757 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
9758echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
9759 no_cache=0
9760 # Check whether --enable-treectrl or --disable-treectrl was given.
9761if test "${enable_treectrl+set}" = set; then
9762 enableval="$enable_treectrl"
9763
9764 if test "$enableval" = yes; then
9765 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
9766 else
9767 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
9768 fi
9769
9770else
9771
9772 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
9773 if test "x$LINE" != x ; then
9774 eval "DEFAULT_$LINE"
9775 else
9776 no_cache=1
9777 fi
9778
9779 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
9780
9781fi;
9782
9783 eval "$ac_cv_use_treectrl"
9784 if test "$no_cache" != 1; then
9785 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
9786 fi
9787
9788 if test "$wxUSE_TREECTRL" = yes; then
9789 echo "$as_me:$LINENO: result: yes" >&5
9790echo "${ECHO_T}yes" >&6
9791 else
9792 echo "$as_me:$LINENO: result: no" >&5
9793echo "${ECHO_T}no" >&6
9794 fi
9795
9796
9797 enablestring=
9798 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
9799echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
9800 no_cache=0
9801 # Check whether --enable-tipwindow or --disable-tipwindow was given.
9802if test "${enable_tipwindow+set}" = set; then
9803 enableval="$enable_tipwindow"
9804
9805 if test "$enableval" = yes; then
9806 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
9807 else
9808 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
9809 fi
9810
9811else
9812
9813 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
9814 if test "x$LINE" != x ; then
9815 eval "DEFAULT_$LINE"
9816 else
9817 no_cache=1
9818 fi
9819
9820 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
9821
9822fi;
9823
9824 eval "$ac_cv_use_tipwindow"
9825 if test "$no_cache" != 1; then
9826 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
9827 fi
9828
9829 if test "$wxUSE_TIPWINDOW" = yes; then
9830 echo "$as_me:$LINENO: result: yes" >&5
9831echo "${ECHO_T}yes" >&6
9832 else
9833 echo "$as_me:$LINENO: result: no" >&5
9834echo "${ECHO_T}no" >&6
9835 fi
9836
9837
9838 enablestring=
9839 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
9840echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
9841 no_cache=0
9842 # Check whether --enable-popupwin or --disable-popupwin was given.
9843if test "${enable_popupwin+set}" = set; then
9844 enableval="$enable_popupwin"
9845
9846 if test "$enableval" = yes; then
9847 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
9848 else
9849 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
9850 fi
9851
9852else
9853
9854 LINE=`grep "wxUSE_POPUPWIN" ${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_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9862
9863fi;
9864
9865 eval "$ac_cv_use_popupwin"
9866 if test "$no_cache" != 1; then
9867 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
9868 fi
9869
9870 if test "$wxUSE_POPUPWIN" = 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
9880
9881 enablestring=
9882 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
9883echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
9884 no_cache=0
9885 # Check whether --enable-commondlg or --disable-commondlg was given.
9886if test "${enable_commondlg+set}" = set; then
9887 enableval="$enable_commondlg"
9888
9889 if test "$enableval" = yes; then
9890 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
9891 else
9892 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
9893 fi
9894
9895else
9896
9897 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
9898 if test "x$LINE" != x ; then
9899 eval "DEFAULT_$LINE"
9900 else
9901 no_cache=1
9902 fi
9903
9904 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
9905
9906fi;
9907
9908 eval "$ac_cv_use_commondlg"
9909 if test "$no_cache" != 1; then
9910 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
9911 fi
9912
9913 if test "$wxUSE_COMMONDLGS" = yes; then
9914 echo "$as_me:$LINENO: result: yes" >&5
9915echo "${ECHO_T}yes" >&6
9916 else
9917 echo "$as_me:$LINENO: result: no" >&5
9918echo "${ECHO_T}no" >&6
9919 fi
9920
9921
9922 enablestring=
9923 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
9924echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
9925 no_cache=0
9926 # Check whether --enable-choicedlg or --disable-choicedlg was given.
9927if test "${enable_choicedlg+set}" = set; then
9928 enableval="$enable_choicedlg"
9929
9930 if test "$enableval" = yes; then
9931 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
9932 else
9933 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
9934 fi
9935
9936else
9937
9938 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
9939 if test "x$LINE" != x ; then
9940 eval "DEFAULT_$LINE"
9941 else
9942 no_cache=1
9943 fi
9944
9945 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
9946
9947fi;
9948
9949 eval "$ac_cv_use_choicedlg"
9950 if test "$no_cache" != 1; then
9951 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
9952 fi
9953
9954 if test "$wxUSE_CHOICEDLG" = yes; then
9955 echo "$as_me:$LINENO: result: yes" >&5
9956echo "${ECHO_T}yes" >&6
9957 else
9958 echo "$as_me:$LINENO: result: no" >&5
9959echo "${ECHO_T}no" >&6
9960 fi
9961
9962
9963 enablestring=
9964 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
9965echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
9966 no_cache=0
9967 # Check whether --enable-coldlg or --disable-coldlg was given.
9968if test "${enable_coldlg+set}" = set; then
9969 enableval="$enable_coldlg"
9970
9971 if test "$enableval" = yes; then
9972 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
9973 else
9974 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
9975 fi
9976
9977else
9978
9979 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
9980 if test "x$LINE" != x ; then
9981 eval "DEFAULT_$LINE"
9982 else
9983 no_cache=1
9984 fi
9985
9986 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
9987
9988fi;
9989
9990 eval "$ac_cv_use_coldlg"
9991 if test "$no_cache" != 1; then
9992 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
9993 fi
9994
9995 if test "$wxUSE_COLOURDLG" = yes; then
9996 echo "$as_me:$LINENO: result: yes" >&5
9997echo "${ECHO_T}yes" >&6
9998 else
9999 echo "$as_me:$LINENO: result: no" >&5
10000echo "${ECHO_T}no" >&6
10001 fi
10002
10003
10004 enablestring=
10005 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
10006echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
10007 no_cache=0
10008 # Check whether --enable-filedlg or --disable-filedlg was given.
10009if test "${enable_filedlg+set}" = set; then
10010 enableval="$enable_filedlg"
10011
10012 if test "$enableval" = yes; then
10013 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
10014 else
10015 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
10016 fi
10017
10018else
10019
10020 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
10021 if test "x$LINE" != x ; then
10022 eval "DEFAULT_$LINE"
10023 else
10024 no_cache=1
10025 fi
10026
10027 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
10028
10029fi;
10030
10031 eval "$ac_cv_use_filedlg"
10032 if test "$no_cache" != 1; then
10033 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
10034 fi
10035
10036 if test "$wxUSE_FILEDLG" = yes; then
10037 echo "$as_me:$LINENO: result: yes" >&5
10038echo "${ECHO_T}yes" >&6
10039 else
10040 echo "$as_me:$LINENO: result: no" >&5
10041echo "${ECHO_T}no" >&6
10042 fi
10043
10044
10045 enablestring=
10046 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
10047echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
10048 no_cache=0
10049 # Check whether --enable-finddlg or --disable-finddlg was given.
10050if test "${enable_finddlg+set}" = set; then
10051 enableval="$enable_finddlg"
10052
10053 if test "$enableval" = yes; then
10054 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
10055 else
10056 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
10057 fi
10058
10059else
10060
10061 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
10062 if test "x$LINE" != x ; then
10063 eval "DEFAULT_$LINE"
10064 else
10065 no_cache=1
10066 fi
10067
10068 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
10069
10070fi;
10071
10072 eval "$ac_cv_use_finddlg"
10073 if test "$no_cache" != 1; then
10074 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
10075 fi
10076
10077 if test "$wxUSE_FINDREPLDLG" = yes; then
10078 echo "$as_me:$LINENO: result: yes" >&5
10079echo "${ECHO_T}yes" >&6
10080 else
10081 echo "$as_me:$LINENO: result: no" >&5
10082echo "${ECHO_T}no" >&6
10083 fi
10084
10085
10086 enablestring=
10087 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
10088echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
10089 no_cache=0
10090 # Check whether --enable-fontdlg or --disable-fontdlg was given.
10091if test "${enable_fontdlg+set}" = set; then
10092 enableval="$enable_fontdlg"
10093
10094 if test "$enableval" = yes; then
10095 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
10096 else
10097 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
10098 fi
10099
10100else
10101
10102 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
10103 if test "x$LINE" != x ; then
10104 eval "DEFAULT_$LINE"
10105 else
10106 no_cache=1
10107 fi
10108
10109 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
10110
10111fi;
10112
10113 eval "$ac_cv_use_fontdlg"
10114 if test "$no_cache" != 1; then
10115 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
10116 fi
10117
10118 if test "$wxUSE_FONTDLG" = yes; then
10119 echo "$as_me:$LINENO: result: yes" >&5
10120echo "${ECHO_T}yes" >&6
10121 else
10122 echo "$as_me:$LINENO: result: no" >&5
10123echo "${ECHO_T}no" >&6
10124 fi
10125
10126
10127 enablestring=
10128 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
10129echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
10130 no_cache=0
10131 # Check whether --enable-dirdlg or --disable-dirdlg was given.
10132if test "${enable_dirdlg+set}" = set; then
10133 enableval="$enable_dirdlg"
10134
10135 if test "$enableval" = yes; then
10136 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
10137 else
10138 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
10139 fi
10140
10141else
10142
10143 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
10144 if test "x$LINE" != x ; then
10145 eval "DEFAULT_$LINE"
10146 else
10147 no_cache=1
10148 fi
10149
10150 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
10151
10152fi;
10153
10154 eval "$ac_cv_use_dirdlg"
10155 if test "$no_cache" != 1; then
10156 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10157 fi
10158
10159 if test "$wxUSE_DIRDLG" = yes; then
10160 echo "$as_me:$LINENO: result: yes" >&5
10161echo "${ECHO_T}yes" >&6
10162 else
10163 echo "$as_me:$LINENO: result: no" >&5
10164echo "${ECHO_T}no" >&6
10165 fi
10166
10167
10168 enablestring=
10169 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
10170echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
10171 no_cache=0
10172 # Check whether --enable-msgdlg or --disable-msgdlg was given.
10173if test "${enable_msgdlg+set}" = set; then
10174 enableval="$enable_msgdlg"
10175
10176 if test "$enableval" = yes; then
10177 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10178 else
10179 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10180 fi
10181
10182else
10183
10184 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10185 if test "x$LINE" != x ; then
10186 eval "DEFAULT_$LINE"
10187 else
10188 no_cache=1
10189 fi
10190
10191 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
10192
10193fi;
10194
10195 eval "$ac_cv_use_msgdlg"
10196 if test "$no_cache" != 1; then
10197 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10198 fi
10199
10200 if test "$wxUSE_MSGDLG" = yes; then
10201 echo "$as_me:$LINENO: result: yes" >&5
10202echo "${ECHO_T}yes" >&6
10203 else
10204 echo "$as_me:$LINENO: result: no" >&5
10205echo "${ECHO_T}no" >&6
10206 fi
10207
10208
10209 enablestring=
10210 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
10211echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
10212 no_cache=0
10213 # Check whether --enable-numberdlg or --disable-numberdlg was given.
10214if test "${enable_numberdlg+set}" = set; then
10215 enableval="$enable_numberdlg"
10216
10217 if test "$enableval" = yes; then
10218 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10219 else
10220 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10221 fi
10222
10223else
10224
10225 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10226 if test "x$LINE" != x ; then
10227 eval "DEFAULT_$LINE"
10228 else
10229 no_cache=1
10230 fi
10231
10232 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
10233
10234fi;
10235
10236 eval "$ac_cv_use_numberdlg"
10237 if test "$no_cache" != 1; then
10238 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10239 fi
10240
10241 if test "$wxUSE_NUMBERDLG" = yes; then
10242 echo "$as_me:$LINENO: result: yes" >&5
10243echo "${ECHO_T}yes" >&6
10244 else
10245 echo "$as_me:$LINENO: result: no" >&5
10246echo "${ECHO_T}no" >&6
10247 fi
10248
10249
10250 enablestring=
10251 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
10252echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
10253 no_cache=0
10254 # Check whether --enable-splash or --disable-splash was given.
10255if test "${enable_splash+set}" = set; then
10256 enableval="$enable_splash"
10257
10258 if test "$enableval" = yes; then
10259 ac_cv_use_splash='wxUSE_SPLASH=yes'
10260 else
10261 ac_cv_use_splash='wxUSE_SPLASH=no'
10262 fi
10263
10264else
10265
10266 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
10267 if test "x$LINE" != x ; then
10268 eval "DEFAULT_$LINE"
10269 else
10270 no_cache=1
10271 fi
10272
10273 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
10274
10275fi;
10276
10277 eval "$ac_cv_use_splash"
10278 if test "$no_cache" != 1; then
10279 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
10280 fi
10281
10282 if test "$wxUSE_SPLASH" = yes; then
10283 echo "$as_me:$LINENO: result: yes" >&5
10284echo "${ECHO_T}yes" >&6
10285 else
10286 echo "$as_me:$LINENO: result: no" >&5
10287echo "${ECHO_T}no" >&6
10288 fi
10289
10290
10291 enablestring=
10292 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
10293echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
10294 no_cache=0
10295 # Check whether --enable-textdlg or --disable-textdlg was given.
10296if test "${enable_textdlg+set}" = set; then
10297 enableval="$enable_textdlg"
10298
10299 if test "$enableval" = yes; then
10300 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
10301 else
10302 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
10303 fi
10304
10305else
10306
10307 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
10308 if test "x$LINE" != x ; then
10309 eval "DEFAULT_$LINE"
10310 else
10311 no_cache=1
10312 fi
10313
10314 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
10315
10316fi;
10317
10318 eval "$ac_cv_use_textdlg"
10319 if test "$no_cache" != 1; then
10320 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
10321 fi
10322
10323 if test "$wxUSE_TEXTDLG" = yes; then
10324 echo "$as_me:$LINENO: result: yes" >&5
10325echo "${ECHO_T}yes" >&6
10326 else
10327 echo "$as_me:$LINENO: result: no" >&5
10328echo "${ECHO_T}no" >&6
10329 fi
10330
10331
10332 enablestring=
10333 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
10334echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
10335 no_cache=0
10336 # Check whether --enable-tipdlg or --disable-tipdlg was given.
10337if test "${enable_tipdlg+set}" = set; then
10338 enableval="$enable_tipdlg"
10339
10340 if test "$enableval" = yes; then
10341 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
10342 else
10343 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
10344 fi
10345
10346else
10347
10348 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
10349 if test "x$LINE" != x ; then
10350 eval "DEFAULT_$LINE"
10351 else
10352 no_cache=1
10353 fi
10354
10355 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
10356
10357fi;
10358
10359 eval "$ac_cv_use_tipdlg"
10360 if test "$no_cache" != 1; then
10361 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
10362 fi
10363
10364 if test "$wxUSE_STARTUP_TIPS" = yes; then
10365 echo "$as_me:$LINENO: result: yes" >&5
10366echo "${ECHO_T}yes" >&6
10367 else
10368 echo "$as_me:$LINENO: result: no" >&5
10369echo "${ECHO_T}no" >&6
10370 fi
10371
10372
10373 enablestring=
10374 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
10375echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
10376 no_cache=0
10377 # Check whether --enable-progressdlg or --disable-progressdlg was given.
10378if test "${enable_progressdlg+set}" = set; then
10379 enableval="$enable_progressdlg"
10380
10381 if test "$enableval" = yes; then
10382 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
10383 else
10384 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
10385 fi
10386
10387else
10388
10389 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
10390 if test "x$LINE" != x ; then
10391 eval "DEFAULT_$LINE"
10392 else
10393 no_cache=1
10394 fi
10395
10396 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
10397
10398fi;
10399
10400 eval "$ac_cv_use_progressdlg"
10401 if test "$no_cache" != 1; then
10402 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
10403 fi
10404
10405 if test "$wxUSE_PROGRESSDLG" = yes; then
10406 echo "$as_me:$LINENO: result: yes" >&5
10407echo "${ECHO_T}yes" >&6
10408 else
10409 echo "$as_me:$LINENO: result: no" >&5
10410echo "${ECHO_T}no" >&6
10411 fi
10412
10413
10414 enablestring=
10415 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
10416echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
10417 no_cache=0
10418 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
10419if test "${enable_wizarddlg+set}" = set; then
10420 enableval="$enable_wizarddlg"
10421
10422 if test "$enableval" = yes; then
10423 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
10424 else
10425 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
10426 fi
10427
10428else
10429
10430 LINE=`grep "wxUSE_WIZARDDLG" ${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_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
10438
10439fi;
10440
10441 eval "$ac_cv_use_wizarddlg"
10442 if test "$no_cache" != 1; then
10443 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
10444 fi
10445
10446 if test "$wxUSE_WIZARDDLG" = 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
10456
10457 enablestring=
10458 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
10459echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
10460 no_cache=0
10461 # Check whether --enable-menus or --disable-menus was given.
10462if test "${enable_menus+set}" = set; then
10463 enableval="$enable_menus"
10464
10465 if test "$enableval" = yes; then
10466 ac_cv_use_menus='wxUSE_MENUS=yes'
10467 else
10468 ac_cv_use_menus='wxUSE_MENUS=no'
10469 fi
10470
10471else
10472
10473 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
10474 if test "x$LINE" != x ; then
10475 eval "DEFAULT_$LINE"
10476 else
10477 no_cache=1
10478 fi
10479
10480 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
10481
10482fi;
10483
10484 eval "$ac_cv_use_menus"
10485 if test "$no_cache" != 1; then
10486 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
10487 fi
10488
10489 if test "$wxUSE_MENUS" = yes; then
10490 echo "$as_me:$LINENO: result: yes" >&5
10491echo "${ECHO_T}yes" >&6
10492 else
10493 echo "$as_me:$LINENO: result: no" >&5
10494echo "${ECHO_T}no" >&6
10495 fi
10496
10497
10498 enablestring=
10499 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
10500echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
10501 no_cache=0
10502 # Check whether --enable-miniframe or --disable-miniframe was given.
10503if test "${enable_miniframe+set}" = set; then
10504 enableval="$enable_miniframe"
10505
10506 if test "$enableval" = yes; then
10507 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
10508 else
10509 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
10510 fi
10511
10512else
10513
10514 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
10515 if test "x$LINE" != x ; then
10516 eval "DEFAULT_$LINE"
10517 else
10518 no_cache=1
10519 fi
10520
10521 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
10522
10523fi;
10524
10525 eval "$ac_cv_use_miniframe"
10526 if test "$no_cache" != 1; then
10527 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
10528 fi
10529
10530 if test "$wxUSE_MINIFRAME" = yes; then
10531 echo "$as_me:$LINENO: result: yes" >&5
10532echo "${ECHO_T}yes" >&6
10533 else
10534 echo "$as_me:$LINENO: result: no" >&5
10535echo "${ECHO_T}no" >&6
10536 fi
10537
10538
10539 enablestring=
10540 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
10541echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
10542 no_cache=0
10543 # Check whether --enable-tooltips or --disable-tooltips was given.
10544if test "${enable_tooltips+set}" = set; then
10545 enableval="$enable_tooltips"
10546
10547 if test "$enableval" = yes; then
10548 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
10549 else
10550 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
10551 fi
10552
10553else
10554
10555 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
10556 if test "x$LINE" != x ; then
10557 eval "DEFAULT_$LINE"
10558 else
10559 no_cache=1
10560 fi
10561
10562 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
10563
10564fi;
10565
10566 eval "$ac_cv_use_tooltips"
10567 if test "$no_cache" != 1; then
10568 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
10569 fi
10570
10571 if test "$wxUSE_TOOLTIPS" = yes; then
10572 echo "$as_me:$LINENO: result: yes" >&5
10573echo "${ECHO_T}yes" >&6
10574 else
10575 echo "$as_me:$LINENO: result: no" >&5
10576echo "${ECHO_T}no" >&6
10577 fi
10578
10579
10580 enablestring=
10581 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
10582echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
10583 no_cache=0
10584 # Check whether --enable-splines or --disable-splines was given.
10585if test "${enable_splines+set}" = set; then
10586 enableval="$enable_splines"
10587
10588 if test "$enableval" = yes; then
10589 ac_cv_use_splines='wxUSE_SPLINES=yes'
10590 else
10591 ac_cv_use_splines='wxUSE_SPLINES=no'
10592 fi
10593
10594else
10595
10596 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
10597 if test "x$LINE" != x ; then
10598 eval "DEFAULT_$LINE"
10599 else
10600 no_cache=1
10601 fi
10602
10603 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
10604
10605fi;
10606
10607 eval "$ac_cv_use_splines"
10608 if test "$no_cache" != 1; then
10609 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
10610 fi
10611
10612 if test "$wxUSE_SPLINES" = yes; then
10613 echo "$as_me:$LINENO: result: yes" >&5
10614echo "${ECHO_T}yes" >&6
10615 else
10616 echo "$as_me:$LINENO: result: no" >&5
10617echo "${ECHO_T}no" >&6
10618 fi
10619
10620
fbe2ca43
SN
10621 enablestring=
10622 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
10623echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6
10624 no_cache=0
10625 # Check whether --enable-mousewheel or --disable-mousewheel was given.
10626if test "${enable_mousewheel+set}" = set; then
10627 enableval="$enable_mousewheel"
10628
10629 if test "$enableval" = yes; then
10630 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
10631 else
10632 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
10633 fi
10634
10635else
10636
10637 LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}`
10638 if test "x$LINE" != x ; then
10639 eval "DEFAULT_$LINE"
10640 else
10641 no_cache=1
10642 fi
10643
10644 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL
10645
10646fi;
10647
10648 eval "$ac_cv_use_mousewheel"
10649 if test "$no_cache" != 1; then
10650 echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
10651 fi
10652
10653 if test "$wxUSE_MOUSEWHEEL" = yes; then
10654 echo "$as_me:$LINENO: result: yes" >&5
10655echo "${ECHO_T}yes" >&6
10656 else
10657 echo "$as_me:$LINENO: result: no" >&5
10658echo "${ECHO_T}no" >&6
10659 fi
10660
10661
a848cd7e
SC
10662 enablestring=
10663 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
10664echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
10665 no_cache=0
10666 # Check whether --enable-validators or --disable-validators was given.
10667if test "${enable_validators+set}" = set; then
10668 enableval="$enable_validators"
10669
10670 if test "$enableval" = yes; then
10671 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
10672 else
10673 ac_cv_use_validators='wxUSE_VALIDATORS=no'
10674 fi
10675
10676else
10677
10678 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
10679 if test "x$LINE" != x ; then
10680 eval "DEFAULT_$LINE"
10681 else
10682 no_cache=1
10683 fi
10684
10685 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
10686
10687fi;
10688
10689 eval "$ac_cv_use_validators"
10690 if test "$no_cache" != 1; then
10691 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
10692 fi
10693
10694 if test "$wxUSE_VALIDATORS" = yes; then
10695 echo "$as_me:$LINENO: result: yes" >&5
10696echo "${ECHO_T}yes" >&6
10697 else
10698 echo "$as_me:$LINENO: result: no" >&5
10699echo "${ECHO_T}no" >&6
10700 fi
10701
10702
10703 enablestring=
10704 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
10705echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
10706 no_cache=0
10707 # Check whether --enable-busyinfo or --disable-busyinfo was given.
10708if test "${enable_busyinfo+set}" = set; then
10709 enableval="$enable_busyinfo"
10710
10711 if test "$enableval" = yes; then
10712 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
10713 else
10714 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
10715 fi
10716
10717else
10718
10719 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
10720 if test "x$LINE" != x ; then
10721 eval "DEFAULT_$LINE"
10722 else
10723 no_cache=1
10724 fi
10725
10726 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
10727
10728fi;
10729
10730 eval "$ac_cv_use_busyinfo"
10731 if test "$no_cache" != 1; then
10732 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
10733 fi
10734
10735 if test "$wxUSE_BUSYINFO" = yes; then
10736 echo "$as_me:$LINENO: result: yes" >&5
10737echo "${ECHO_T}yes" >&6
10738 else
10739 echo "$as_me:$LINENO: result: no" >&5
10740echo "${ECHO_T}no" >&6
10741 fi
10742
10743
10744 enablestring=
10745 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
10746echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
10747 no_cache=0
10748 # Check whether --enable-joystick or --disable-joystick was given.
10749if test "${enable_joystick+set}" = set; then
10750 enableval="$enable_joystick"
10751
10752 if test "$enableval" = yes; then
10753 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
10754 else
10755 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
10756 fi
10757
10758else
10759
10760 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
10761 if test "x$LINE" != x ; then
10762 eval "DEFAULT_$LINE"
10763 else
10764 no_cache=1
10765 fi
10766
10767 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
10768
10769fi;
10770
10771 eval "$ac_cv_use_joystick"
10772 if test "$no_cache" != 1; then
10773 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
10774 fi
10775
10776 if test "$wxUSE_JOYSTICK" = yes; then
10777 echo "$as_me:$LINENO: result: yes" >&5
10778echo "${ECHO_T}yes" >&6
10779 else
10780 echo "$as_me:$LINENO: result: no" >&5
10781echo "${ECHO_T}no" >&6
10782 fi
10783
10784
10785 enablestring=
10786 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
10787echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
10788 no_cache=0
10789 # Check whether --enable-metafile or --disable-metafile was given.
10790if test "${enable_metafile+set}" = set; then
10791 enableval="$enable_metafile"
10792
10793 if test "$enableval" = yes; then
10794 ac_cv_use_metafile='wxUSE_METAFILE=yes'
10795 else
10796 ac_cv_use_metafile='wxUSE_METAFILE=no'
10797 fi
10798
10799else
10800
10801 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
10802 if test "x$LINE" != x ; then
10803 eval "DEFAULT_$LINE"
10804 else
10805 no_cache=1
10806 fi
10807
10808 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
10809
10810fi;
10811
10812 eval "$ac_cv_use_metafile"
10813 if test "$no_cache" != 1; then
10814 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
10815 fi
10816
10817 if test "$wxUSE_METAFILE" = yes; then
10818 echo "$as_me:$LINENO: result: yes" >&5
10819echo "${ECHO_T}yes" >&6
10820 else
10821 echo "$as_me:$LINENO: result: no" >&5
10822echo "${ECHO_T}no" >&6
10823 fi
10824
10825
10826 enablestring=
10827 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
10828echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
10829 no_cache=0
10830 # Check whether --enable-dragimage or --disable-dragimage was given.
10831if test "${enable_dragimage+set}" = set; then
10832 enableval="$enable_dragimage"
10833
10834 if test "$enableval" = yes; then
10835 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
10836 else
10837 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
10838 fi
10839
10840else
10841
10842 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
10843 if test "x$LINE" != x ; then
10844 eval "DEFAULT_$LINE"
10845 else
10846 no_cache=1
10847 fi
10848
10849 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
10850
10851fi;
10852
10853 eval "$ac_cv_use_dragimage"
10854 if test "$no_cache" != 1; then
10855 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
10856 fi
10857
10858 if test "$wxUSE_DRAGIMAGE" = yes; then
10859 echo "$as_me:$LINENO: result: yes" >&5
10860echo "${ECHO_T}yes" >&6
10861 else
10862 echo "$as_me:$LINENO: result: no" >&5
10863echo "${ECHO_T}no" >&6
10864 fi
10865
10866
10867 enablestring=
10868 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
10869echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
10870 no_cache=0
10871 # Check whether --enable-accessibility or --disable-accessibility was given.
10872if test "${enable_accessibility+set}" = set; then
10873 enableval="$enable_accessibility"
10874
10875 if test "$enableval" = yes; then
10876 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
10877 else
10878 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
10879 fi
10880
10881else
10882
10883 LINE=`grep "wxUSE_ACCESSIBILITY" ${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_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
10891
10892fi;
10893
10894 eval "$ac_cv_use_accessibility"
10895 if test "$no_cache" != 1; then
10896 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
10897 fi
10898
10899 if test "$wxUSE_ACCESSIBILITY" = 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
10907
38b4a946
VZ
10908if test "$wxUSE_MSW" = "1"; then
10909
10910 enablestring=
10911 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
10912echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6
10913 no_cache=0
10914 # Check whether --enable-dccache or --disable-dccache was given.
10915if test "${enable_dccache+set}" = set; then
10916 enableval="$enable_dccache"
10917
10918 if test "$enableval" = yes; then
10919 ac_cv_use_dccache='wxUSE_DC_CACHEING=yes'
10920 else
10921 ac_cv_use_dccache='wxUSE_DC_CACHEING=no'
10922 fi
10923
10924else
10925
10926 LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}`
10927 if test "x$LINE" != x ; then
10928 eval "DEFAULT_$LINE"
10929 else
10930 no_cache=1
10931 fi
10932
10933 ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING
10934
10935fi;
10936
10937 eval "$ac_cv_use_dccache"
10938 if test "$no_cache" != 1; then
10939 echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp
10940 fi
10941
10942 if test "$wxUSE_DC_CACHEING" = yes; then
10943 echo "$as_me:$LINENO: result: yes" >&5
10944echo "${ECHO_T}yes" >&6
10945 else
10946 echo "$as_me:$LINENO: result: no" >&5
10947echo "${ECHO_T}no" >&6
10948 fi
10949
10950fi
10951
a848cd7e
SC
10952
10953
10954 enablestring=
10955 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
10956echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
10957 no_cache=0
10958 # Check whether --enable-palette or --disable-palette was given.
10959if test "${enable_palette+set}" = set; then
10960 enableval="$enable_palette"
10961
10962 if test "$enableval" = yes; then
10963 ac_cv_use_palette='wxUSE_PALETTE=yes'
10964 else
10965 ac_cv_use_palette='wxUSE_PALETTE=no'
10966 fi
10967
10968else
10969
10970 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
10971 if test "x$LINE" != x ; then
10972 eval "DEFAULT_$LINE"
10973 else
10974 no_cache=1
10975 fi
10976
10977 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
10978
10979fi;
10980
10981 eval "$ac_cv_use_palette"
10982 if test "$no_cache" != 1; then
10983 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
10984 fi
10985
10986 if test "$wxUSE_PALETTE" = yes; then
10987 echo "$as_me:$LINENO: result: yes" >&5
10988echo "${ECHO_T}yes" >&6
10989 else
10990 echo "$as_me:$LINENO: result: no" >&5
10991echo "${ECHO_T}no" >&6
10992 fi
10993
10994
10995 enablestring=
10996 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
10997echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
10998 no_cache=0
10999 # Check whether --enable-image or --disable-image was given.
11000if test "${enable_image+set}" = set; then
11001 enableval="$enable_image"
11002
11003 if test "$enableval" = yes; then
11004 ac_cv_use_image='wxUSE_IMAGE=yes'
11005 else
11006 ac_cv_use_image='wxUSE_IMAGE=no'
11007 fi
11008
11009else
11010
11011 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
11012 if test "x$LINE" != x ; then
11013 eval "DEFAULT_$LINE"
11014 else
11015 no_cache=1
11016 fi
11017
11018 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
11019
11020fi;
11021
11022 eval "$ac_cv_use_image"
11023 if test "$no_cache" != 1; then
11024 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
11025 fi
11026
11027 if test "$wxUSE_IMAGE" = yes; then
11028 echo "$as_me:$LINENO: result: yes" >&5
11029echo "${ECHO_T}yes" >&6
11030 else
11031 echo "$as_me:$LINENO: result: no" >&5
11032echo "${ECHO_T}no" >&6
11033 fi
11034
11035
11036 enablestring=
11037 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
11038echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
11039 no_cache=0
11040 # Check whether --enable-gif or --disable-gif was given.
11041if test "${enable_gif+set}" = set; then
11042 enableval="$enable_gif"
11043
11044 if test "$enableval" = yes; then
11045 ac_cv_use_gif='wxUSE_GIF=yes'
11046 else
11047 ac_cv_use_gif='wxUSE_GIF=no'
11048 fi
11049
11050else
11051
11052 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
11053 if test "x$LINE" != x ; then
11054 eval "DEFAULT_$LINE"
11055 else
11056 no_cache=1
11057 fi
11058
11059 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
11060
11061fi;
11062
11063 eval "$ac_cv_use_gif"
11064 if test "$no_cache" != 1; then
11065 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
11066 fi
11067
11068 if test "$wxUSE_GIF" = yes; then
11069 echo "$as_me:$LINENO: result: yes" >&5
11070echo "${ECHO_T}yes" >&6
11071 else
11072 echo "$as_me:$LINENO: result: no" >&5
11073echo "${ECHO_T}no" >&6
11074 fi
11075
11076
11077 enablestring=
11078 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
11079echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
11080 no_cache=0
11081 # Check whether --enable-pcx or --disable-pcx was given.
11082if test "${enable_pcx+set}" = set; then
11083 enableval="$enable_pcx"
11084
11085 if test "$enableval" = yes; then
11086 ac_cv_use_pcx='wxUSE_PCX=yes'
11087 else
11088 ac_cv_use_pcx='wxUSE_PCX=no'
11089 fi
11090
11091else
11092
11093 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
11094 if test "x$LINE" != x ; then
11095 eval "DEFAULT_$LINE"
11096 else
11097 no_cache=1
11098 fi
11099
11100 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
11101
11102fi;
11103
11104 eval "$ac_cv_use_pcx"
11105 if test "$no_cache" != 1; then
11106 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
11107 fi
11108
11109 if test "$wxUSE_PCX" = yes; then
11110 echo "$as_me:$LINENO: result: yes" >&5
11111echo "${ECHO_T}yes" >&6
11112 else
11113 echo "$as_me:$LINENO: result: no" >&5
11114echo "${ECHO_T}no" >&6
11115 fi
11116
11117
11118 enablestring=
11119 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
11120echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
11121 no_cache=0
11122 # Check whether --enable-iff or --disable-iff was given.
11123if test "${enable_iff+set}" = set; then
11124 enableval="$enable_iff"
11125
11126 if test "$enableval" = yes; then
11127 ac_cv_use_iff='wxUSE_IFF=yes'
11128 else
11129 ac_cv_use_iff='wxUSE_IFF=no'
11130 fi
11131
11132else
11133
11134 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
11135 if test "x$LINE" != x ; then
11136 eval "DEFAULT_$LINE"
11137 else
11138 no_cache=1
11139 fi
11140
11141 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
11142
11143fi;
11144
11145 eval "$ac_cv_use_iff"
11146 if test "$no_cache" != 1; then
11147 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
11148 fi
11149
11150 if test "$wxUSE_IFF" = yes; then
11151 echo "$as_me:$LINENO: result: yes" >&5
11152echo "${ECHO_T}yes" >&6
11153 else
11154 echo "$as_me:$LINENO: result: no" >&5
11155echo "${ECHO_T}no" >&6
11156 fi
11157
11158
11159 enablestring=
11160 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
11161echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
11162 no_cache=0
11163 # Check whether --enable-pnm or --disable-pnm was given.
11164if test "${enable_pnm+set}" = set; then
11165 enableval="$enable_pnm"
11166
11167 if test "$enableval" = yes; then
11168 ac_cv_use_pnm='wxUSE_PNM=yes'
11169 else
11170 ac_cv_use_pnm='wxUSE_PNM=no'
11171 fi
11172
11173else
11174
11175 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
11176 if test "x$LINE" != x ; then
11177 eval "DEFAULT_$LINE"
11178 else
11179 no_cache=1
11180 fi
11181
11182 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
11183
11184fi;
11185
11186 eval "$ac_cv_use_pnm"
11187 if test "$no_cache" != 1; then
11188 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
11189 fi
11190
11191 if test "$wxUSE_PNM" = yes; then
11192 echo "$as_me:$LINENO: result: yes" >&5
11193echo "${ECHO_T}yes" >&6
11194 else
11195 echo "$as_me:$LINENO: result: no" >&5
11196echo "${ECHO_T}no" >&6
11197 fi
11198
11199
11200 enablestring=
11201 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
11202echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
11203 no_cache=0
11204 # Check whether --enable-xpm or --disable-xpm was given.
11205if test "${enable_xpm+set}" = set; then
11206 enableval="$enable_xpm"
11207
11208 if test "$enableval" = yes; then
11209 ac_cv_use_xpm='wxUSE_XPM=yes'
11210 else
11211 ac_cv_use_xpm='wxUSE_XPM=no'
11212 fi
11213
11214else
11215
11216 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
11217 if test "x$LINE" != x ; then
11218 eval "DEFAULT_$LINE"
11219 else
11220 no_cache=1
11221 fi
11222
11223 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
11224
11225fi;
11226
11227 eval "$ac_cv_use_xpm"
11228 if test "$no_cache" != 1; then
11229 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
11230 fi
11231
11232 if test "$wxUSE_XPM" = yes; then
11233 echo "$as_me:$LINENO: result: yes" >&5
11234echo "${ECHO_T}yes" >&6
11235 else
11236 echo "$as_me:$LINENO: result: no" >&5
11237echo "${ECHO_T}no" >&6
11238 fi
11239
11240
11241 enablestring=
11242 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
11243echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
11244 no_cache=0
11245 # Check whether --enable-ico_cur or --disable-ico_cur was given.
11246if test "${enable_ico_cur+set}" = set; then
11247 enableval="$enable_ico_cur"
11248
11249 if test "$enableval" = yes; then
11250 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
11251 else
11252 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
11253 fi
11254
11255else
11256
11257 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
11258 if test "x$LINE" != x ; then
11259 eval "DEFAULT_$LINE"
11260 else
11261 no_cache=1
11262 fi
11263
11264 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
11265
11266fi;
11267
11268 eval "$ac_cv_use_ico_cur"
11269 if test "$no_cache" != 1; then
11270 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
11271 fi
11272
11273 if test "$wxUSE_ICO_CUR" = yes; then
11274 echo "$as_me:$LINENO: result: yes" >&5
11275echo "${ECHO_T}yes" >&6
11276 else
11277 echo "$as_me:$LINENO: result: no" >&5
11278echo "${ECHO_T}no" >&6
11279 fi
11280
11281
11282fi
11283
11284
11285
ceec2216
RL
11286# Check whether --with-flavour or --without-flavour was given.
11287if test "${with_flavour+set}" = set; then
11288 withval="$with_flavour"
11289 WX_FLAVOUR="$withval"
11290fi;
11291
11292
11293
a848cd7e
SC
11294 enablestring=
11295 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
11296echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
11297 no_cache=0
11298 # Check whether --enable-official_build or --disable-official_build was given.
11299if test "${enable_official_build+set}" = set; then
11300 enableval="$enable_official_build"
11301
11302 if test "$enableval" = yes; then
11303 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
11304 else
11305 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
11306 fi
11307
11308else
11309
11310 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
11311 if test "x$LINE" != x ; then
11312 eval "DEFAULT_$LINE"
11313 else
11314 no_cache=1
11315 fi
11316
11317 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
11318
11319fi;
11320
11321 eval "$ac_cv_use_official_build"
11322 if test "$no_cache" != 1; then
11323 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
11324 fi
11325
11326 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
11327 echo "$as_me:$LINENO: result: yes" >&5
11328echo "${ECHO_T}yes" >&6
11329 else
11330 echo "$as_me:$LINENO: result: no" >&5
11331echo "${ECHO_T}no" >&6
11332 fi
11333
11334# Check whether --enable-vendor or --disable-vendor was given.
11335if test "${enable_vendor+set}" = set; then
11336 enableval="$enable_vendor"
11337 VENDOR="$enableval"
11338fi;
11339if test "x$VENDOR" = "x"; then
11340 VENDOR="custom"
11341fi
11342
a848cd7e
SC
11343
11344
11345
11346 echo "saving argument cache $wx_arg_cache_file"
11347 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
11348
11349
11350
11351echo "$as_me:$LINENO: checking for toolkit" >&5
11352echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
11353
11354# In Wine, we need to default to MSW, not GTK or MOTIF
11355if test "$wxUSE_WINE" = "yes"; then
11356 DEFAULT_DEFAULT_wxUSE_GTK=0
11357 DEFAULT_DEFAULT_wxUSE_MOTIF=0
11358 DEFAULT_DEFAULT_wxUSE_MSW=1
11359 wxUSE_SHARED=no
11360fi
11361
f597b41c 11362
a848cd7e
SC
11363if test "$wxUSE_GUI" = "yes"; then
11364
11365 if test "$USE_BEOS" = 1; then
11366 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
11367echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
11368 { (exit 1); exit 1; }; }
11369 fi
11370
11371 if test "$TOOLKIT_GIVEN" = 1; then
11372 for toolkit in `echo $ALL_TOOLKITS`; do
11373 var=wxUSE_$toolkit
11374 eval "value=\$${var}"
f34ca037
MW
11375 if test "x$value" = "xno"; then
11376 eval "$var=0"
11377 elif test "x$value" != "x"; then
11378 eval "$var=1"
11379 fi
11380
11381 if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
11382 eval "wx${toolkit}_VERSION=$value"
11383 fi
a848cd7e
SC
11384 done
11385 else
11386 for toolkit in `echo $ALL_TOOLKITS`; do
11387 if test "$has_toolkit_in_cache" != 1; then
11388 var=DEFAULT_DEFAULT_wxUSE_$toolkit
11389 else
11390 var=DEFAULT_wxUSE_$toolkit
f34ca037
MW
11391
11392 eval "version=\$DEFAULT_wx${toolkit}_VERSION"
11393 if test "x$version" != "x"; then
11394 eval "wx${toolkit}_VERSION=$version"
11395 fi
a848cd7e
SC
11396 fi
11397 eval "wxUSE_$toolkit=\$${var}"
11398 done
11399 fi
11400
11401 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
11402 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
11403 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
11404
11405 case "${host}" in
11406 *-pc-os2_emx | *-pc-os2-emx )
11407 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
11408 esac
11409
11410 case "$NUM_TOOLKITS" in
11411 1)
11412 ;;
11413 0)
11414 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
11415echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
11416 { (exit 1); exit 1; }; }
11417 ;;
11418 *)
11419 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
11420echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
11421 { (exit 1); exit 1; }; }
11422 esac
11423
f34ca037
MW
11424 # to be removed when --disable-gtk2 isn't needed
11425 if test "x$wxUSE_GTK2" = "xyes"; then
11426 wxGTK_VERSION=2
11427 elif test "x$wxUSE_GTK2" = "xno"; then
11428 wxGTK_VERSION=1
11429 fi
11430
a848cd7e
SC
11431 for toolkit in `echo $ALL_TOOLKITS`; do
11432 var=wxUSE_$toolkit
11433 eval "value=\$${var}"
11434 if test "x$value" != x; then
11435 cache_var=CACHE_$toolkit
11436 eval "cache=\$${cache_var}"
11437 if test "$cache" = 1; then
11438 echo "$var=$value" >> ${wx_arg_cache_file}
f34ca037
MW
11439 eval "version=\$wx${toolkit}_VERSION"
11440 if test "x$version" != "x"; then
11441 echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
11442 fi
a848cd7e
SC
11443 fi
11444 if test "$value" = 1; then
11445 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
11446 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
11447echo "${ECHO_T}$toolkit_echo" >&6
11448 fi
11449 fi
11450 done
11451else
11452 if test "x$host_alias" != "x"; then
11453 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
11454echo "${ECHO_T}base ($host_alias hosted) only" >&6
11455 else
11456 echo "$as_me:$LINENO: result: base only" >&5
11457echo "${ECHO_T}base only" >&6
11458 fi
11459fi
11460
11461wants_win32=0
11462doesnt_want_win32=0
11463case "${host}" in
11464 *-*-cygwin*)
11465 if test "$wxUSE_MSW" = 1 ; then
11466 wants_win32=1
7275146d 11467 BAKEFILE_FORCE_PLATFORM=win32
a848cd7e
SC
11468 else
11469 doesnt_want_win32=1
11470 fi
11471 ;;
11472 *-*-mingw*)
11473 wants_win32=1
11474 ;;
11475esac
11476
11477if test "$wxUSE_WINE" = "yes"; then
11478 wants_win32=1
11479 CC=winegcc
11480 CXX=wineg++
a848cd7e
SC
11481 LDFLAGS_GUI="-mwindows"
11482fi
11483
11484if test "$wants_win32" = 1 ; then
11485 USE_UNIX=0
11486 USE_WIN32=1
11487 cat >>confdefs.h <<\_ACEOF
11488#define __WIN32__ 1
11489_ACEOF
11490
11491 cat >>confdefs.h <<\_ACEOF
11492#define __WIN95__ 1
11493_ACEOF
11494
11495 cat >>confdefs.h <<\_ACEOF
11496#define __WINDOWS__ 1
11497_ACEOF
11498
11499 cat >>confdefs.h <<\_ACEOF
11500#define __GNUWIN32__ 1
11501_ACEOF
11502
11503 cat >>confdefs.h <<\_ACEOF
11504#define STRICT 1
11505_ACEOF
11506
11507 cat >>confdefs.h <<\_ACEOF
11508#define WINVER 0x0400
11509_ACEOF
11510
11511fi
11512if test "$doesnt_want_win32" = 1 ; then
11513 USE_UNIX=1
11514 USE_WIN32=0
11515fi
11516
11517if test "$USE_UNIX" = 1 ; then
11518 wxUSE_UNIX=yes
11519 cat >>confdefs.h <<\_ACEOF
11520#define __UNIX__ 1
11521_ACEOF
11522
11523fi
11524
11525
11526cat >confcache <<\_ACEOF
11527# This file is a shell script that caches the results of configure
11528# tests run on this system so they can be shared between configure
11529# scripts and configure runs, see configure's option --config-cache.
11530# It is not useful on other systems. If it contains results you don't
11531# want to keep, you may remove or edit it.
11532#
11533# config.status only pays attention to the cache file if you give it
11534# the --recheck option to rerun configure.
11535#
11536# `ac_cv_env_foo' variables (set or unset) will be overridden when
11537# loading this file, other *unset* `ac_cv_foo' will be assigned the
11538# following values.
11539
11540_ACEOF
11541
11542# The following way of writing the cache mishandles newlines in values,
11543# but we know of no workaround that is simple, portable, and efficient.
11544# So, don't put newlines in cache variables' values.
11545# Ultrix sh set writes to stderr and can't be redirected directly,
11546# and sets the high bit in the cache file unless we assign to the vars.
11547{
11548 (set) 2>&1 |
11549 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11550 *ac_space=\ *)
11551 # `set' does not quote correctly, so add quotes (double-quote
11552 # substitution turns \\\\ into \\, and sed turns \\ into \).
11553 sed -n \
ac1cb8d3
VS
11554 "s/'/'\\\\''/g;
11555 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
11556 ;;
11557 *)
11558 # `set' quotes correctly as required by POSIX, so do not add quotes.
11559 sed -n \
ac1cb8d3 11560 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
11561 ;;
11562 esac;
11563} |
11564 sed '
11565 t clear
11566 : clear
11567 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11568 t end
11569 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11570 : end' >>confcache
11571if diff $cache_file confcache >/dev/null 2>&1; then :; else
11572 if test -w $cache_file; then
11573 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11574 cat confcache >$cache_file
11575 else
11576 echo "not updating unwritable cache $cache_file"
11577 fi
11578fi
11579rm -f confcache
11580
a848cd7e 11581CFLAGS=${CFLAGS:=}
6dcfc289
DE
11582
11583
3006edc0 11584
6dcfc289 11585 ac_ext=c
a848cd7e
SC
11586ac_cpp='$CPP $CPPFLAGS'
11587ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11588ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11589ac_compiler_gnu=$ac_cv_c_compiler_gnu
11590if test -n "$ac_tool_prefix"; then
11591 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11592set dummy ${ac_tool_prefix}gcc; ac_word=$2
11593echo "$as_me:$LINENO: checking for $ac_word" >&5
11594echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11595if test "${ac_cv_prog_CC+set}" = set; then
11596 echo $ECHO_N "(cached) $ECHO_C" >&6
11597else
11598 if test -n "$CC"; then
11599 ac_cv_prog_CC="$CC" # Let the user override the test.
11600else
11601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11602for as_dir in $PATH
11603do
11604 IFS=$as_save_IFS
11605 test -z "$as_dir" && as_dir=.
11606 for ac_exec_ext in '' $ac_executable_extensions; do
11607 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11608 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11610 break 2
11611 fi
11612done
11613done
11614
11615fi
11616fi
11617CC=$ac_cv_prog_CC
11618if test -n "$CC"; then
11619 echo "$as_me:$LINENO: result: $CC" >&5
11620echo "${ECHO_T}$CC" >&6
11621else
11622 echo "$as_me:$LINENO: result: no" >&5
11623echo "${ECHO_T}no" >&6
11624fi
11625
11626fi
11627if test -z "$ac_cv_prog_CC"; then
11628 ac_ct_CC=$CC
11629 # Extract the first word of "gcc", so it can be a program name with args.
11630set dummy gcc; ac_word=$2
11631echo "$as_me:$LINENO: checking for $ac_word" >&5
11632echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11633if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11634 echo $ECHO_N "(cached) $ECHO_C" >&6
11635else
11636 if test -n "$ac_ct_CC"; then
11637 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11638else
11639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11640for as_dir in $PATH
11641do
11642 IFS=$as_save_IFS
11643 test -z "$as_dir" && as_dir=.
11644 for ac_exec_ext in '' $ac_executable_extensions; do
11645 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11646 ac_cv_prog_ac_ct_CC="gcc"
11647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11648 break 2
11649 fi
11650done
11651done
11652
11653fi
11654fi
11655ac_ct_CC=$ac_cv_prog_ac_ct_CC
11656if test -n "$ac_ct_CC"; then
11657 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11658echo "${ECHO_T}$ac_ct_CC" >&6
11659else
11660 echo "$as_me:$LINENO: result: no" >&5
11661echo "${ECHO_T}no" >&6
11662fi
11663
11664 CC=$ac_ct_CC
11665else
11666 CC="$ac_cv_prog_CC"
11667fi
11668
11669if test -z "$CC"; then
11670 if test -n "$ac_tool_prefix"; then
11671 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11672set dummy ${ac_tool_prefix}cc; ac_word=$2
11673echo "$as_me:$LINENO: checking for $ac_word" >&5
11674echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11675if test "${ac_cv_prog_CC+set}" = set; then
11676 echo $ECHO_N "(cached) $ECHO_C" >&6
11677else
11678 if test -n "$CC"; then
11679 ac_cv_prog_CC="$CC" # Let the user override the test.
11680else
11681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11682for as_dir in $PATH
11683do
11684 IFS=$as_save_IFS
11685 test -z "$as_dir" && as_dir=.
11686 for ac_exec_ext in '' $ac_executable_extensions; do
11687 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11688 ac_cv_prog_CC="${ac_tool_prefix}cc"
11689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11690 break 2
11691 fi
11692done
11693done
11694
11695fi
11696fi
11697CC=$ac_cv_prog_CC
11698if test -n "$CC"; then
11699 echo "$as_me:$LINENO: result: $CC" >&5
11700echo "${ECHO_T}$CC" >&6
11701else
11702 echo "$as_me:$LINENO: result: no" >&5
11703echo "${ECHO_T}no" >&6
11704fi
11705
11706fi
11707if test -z "$ac_cv_prog_CC"; then
11708 ac_ct_CC=$CC
11709 # Extract the first word of "cc", so it can be a program name with args.
11710set dummy cc; ac_word=$2
11711echo "$as_me:$LINENO: checking for $ac_word" >&5
11712echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11713if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11714 echo $ECHO_N "(cached) $ECHO_C" >&6
11715else
11716 if test -n "$ac_ct_CC"; then
11717 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11718else
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 ac_cv_prog_ac_ct_CC="cc"
11727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11728 break 2
11729 fi
11730done
11731done
11732
11733fi
11734fi
11735ac_ct_CC=$ac_cv_prog_ac_ct_CC
11736if test -n "$ac_ct_CC"; then
11737 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11738echo "${ECHO_T}$ac_ct_CC" >&6
11739else
11740 echo "$as_me:$LINENO: result: no" >&5
11741echo "${ECHO_T}no" >&6
11742fi
11743
11744 CC=$ac_ct_CC
11745else
11746 CC="$ac_cv_prog_CC"
11747fi
11748
11749fi
11750if test -z "$CC"; then
11751 # Extract the first word of "cc", so it can be a program name with args.
11752set dummy cc; ac_word=$2
11753echo "$as_me:$LINENO: checking for $ac_word" >&5
11754echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11755if test "${ac_cv_prog_CC+set}" = set; then
11756 echo $ECHO_N "(cached) $ECHO_C" >&6
11757else
11758 if test -n "$CC"; then
11759 ac_cv_prog_CC="$CC" # Let the user override the test.
11760else
11761 ac_prog_rejected=no
11762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11763for as_dir in $PATH
11764do
11765 IFS=$as_save_IFS
11766 test -z "$as_dir" && as_dir=.
11767 for ac_exec_ext in '' $ac_executable_extensions; do
11768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11769 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11770 ac_prog_rejected=yes
11771 continue
11772 fi
11773 ac_cv_prog_CC="cc"
11774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11775 break 2
11776 fi
11777done
11778done
11779
11780if test $ac_prog_rejected = yes; then
11781 # We found a bogon in the path, so make sure we never use it.
11782 set dummy $ac_cv_prog_CC
11783 shift
11784 if test $# != 0; then
11785 # We chose a different compiler from the bogus one.
11786 # However, it has the same basename, so the bogon will be chosen
11787 # first if we set CC to just the basename; use the full file name.
11788 shift
11789 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11790 fi
11791fi
11792fi
11793fi
11794CC=$ac_cv_prog_CC
11795if test -n "$CC"; then
11796 echo "$as_me:$LINENO: result: $CC" >&5
11797echo "${ECHO_T}$CC" >&6
11798else
11799 echo "$as_me:$LINENO: result: no" >&5
11800echo "${ECHO_T}no" >&6
11801fi
11802
11803fi
11804if test -z "$CC"; then
11805 if test -n "$ac_tool_prefix"; then
11806 for ac_prog in cl
11807 do
11808 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11809set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11810echo "$as_me:$LINENO: checking for $ac_word" >&5
11811echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11812if test "${ac_cv_prog_CC+set}" = set; then
11813 echo $ECHO_N "(cached) $ECHO_C" >&6
11814else
11815 if test -n "$CC"; then
11816 ac_cv_prog_CC="$CC" # Let the user override the test.
11817else
11818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11819for as_dir in $PATH
11820do
11821 IFS=$as_save_IFS
11822 test -z "$as_dir" && as_dir=.
11823 for ac_exec_ext in '' $ac_executable_extensions; do
11824 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11825 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11827 break 2
11828 fi
11829done
11830done
11831
11832fi
11833fi
11834CC=$ac_cv_prog_CC
11835if test -n "$CC"; then
11836 echo "$as_me:$LINENO: result: $CC" >&5
11837echo "${ECHO_T}$CC" >&6
11838else
11839 echo "$as_me:$LINENO: result: no" >&5
11840echo "${ECHO_T}no" >&6
11841fi
11842
11843 test -n "$CC" && break
11844 done
11845fi
11846if test -z "$CC"; then
11847 ac_ct_CC=$CC
11848 for ac_prog in cl
11849do
11850 # Extract the first word of "$ac_prog", so it can be a program name with args.
11851set dummy $ac_prog; ac_word=$2
11852echo "$as_me:$LINENO: checking for $ac_word" >&5
11853echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11854if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11855 echo $ECHO_N "(cached) $ECHO_C" >&6
11856else
11857 if test -n "$ac_ct_CC"; then
11858 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11859else
11860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11861for as_dir in $PATH
11862do
11863 IFS=$as_save_IFS
11864 test -z "$as_dir" && as_dir=.
11865 for ac_exec_ext in '' $ac_executable_extensions; do
11866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11867 ac_cv_prog_ac_ct_CC="$ac_prog"
11868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11869 break 2
11870 fi
11871done
11872done
11873
11874fi
11875fi
11876ac_ct_CC=$ac_cv_prog_ac_ct_CC
11877if test -n "$ac_ct_CC"; then
11878 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11879echo "${ECHO_T}$ac_ct_CC" >&6
11880else
11881 echo "$as_me:$LINENO: result: no" >&5
11882echo "${ECHO_T}no" >&6
11883fi
11884
11885 test -n "$ac_ct_CC" && break
11886done
11887
11888 CC=$ac_ct_CC
11889fi
11890
11891fi
11892
11893
11894test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11895See \`config.log' for more details." >&5
11896echo "$as_me: error: no acceptable C compiler found in \$PATH
11897See \`config.log' for more details." >&2;}
11898 { (exit 1); exit 1; }; }
11899
11900# Provide some information about the compiler.
11901echo "$as_me:$LINENO:" \
11902 "checking for C compiler version" >&5
11903ac_compiler=`set X $ac_compile; echo $2`
11904{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11905 (eval $ac_compiler --version </dev/null >&5) 2>&5
11906 ac_status=$?
11907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908 (exit $ac_status); }
11909{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11910 (eval $ac_compiler -v </dev/null >&5) 2>&5
11911 ac_status=$?
11912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913 (exit $ac_status); }
11914{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11915 (eval $ac_compiler -V </dev/null >&5) 2>&5
11916 ac_status=$?
11917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11918 (exit $ac_status); }
11919
11920cat >conftest.$ac_ext <<_ACEOF
11921/* confdefs.h. */
11922_ACEOF
11923cat confdefs.h >>conftest.$ac_ext
11924cat >>conftest.$ac_ext <<_ACEOF
11925/* end confdefs.h. */
11926
11927int
11928main ()
11929{
11930
11931 ;
11932 return 0;
11933}
11934_ACEOF
11935ac_clean_files_save=$ac_clean_files
11936ac_clean_files="$ac_clean_files a.out a.exe b.out"
11937# Try to create an executable without -o first, disregard a.out.
11938# It will help us diagnose broken compilers, and finding out an intuition
11939# of exeext.
ac1cb8d3
VS
11940echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
11941echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
11942ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
11943if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
11944 (eval $ac_link_default) 2>&5
11945 ac_status=$?
11946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947 (exit $ac_status); }; then
11948 # Find the output, starting from the most likely. This scheme is
11949# not robust to junk in `.', hence go to wildcards (a.*) only as a last
11950# resort.
11951
11952# Be careful to initialize this variable, since it used to be cached.
11953# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
11954ac_cv_exeext=
11955# b.out is created by i960 compilers.
11956for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
11957do
11958 test -f "$ac_file" || continue
11959 case $ac_file in
11960 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 11961 ;;
a848cd7e 11962 conftest.$ac_ext )
ac1cb8d3
VS
11963 # This is the source file.
11964 ;;
a848cd7e 11965 [ab].out )
ac1cb8d3
VS
11966 # We found the default executable, but exeext='' is most
11967 # certainly right.
11968 break;;
a848cd7e 11969 *.* )
ac1cb8d3
VS
11970 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
11971 # FIXME: I believe we export ac_cv_exeext for Libtool,
11972 # but it would be cool to find out if it's true. Does anybody
11973 # maintain Libtool? --akim.
11974 export ac_cv_exeext
11975 break;;
a848cd7e 11976 * )
ac1cb8d3 11977 break;;
a848cd7e
SC
11978 esac
11979done
11980else
11981 echo "$as_me: failed program was:" >&5
11982sed 's/^/| /' conftest.$ac_ext >&5
11983
11984{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
11985See \`config.log' for more details." >&5
11986echo "$as_me: error: C compiler cannot create executables
11987See \`config.log' for more details." >&2;}
11988 { (exit 77); exit 77; }; }
11989fi
11990
11991ac_exeext=$ac_cv_exeext
11992echo "$as_me:$LINENO: result: $ac_file" >&5
11993echo "${ECHO_T}$ac_file" >&6
11994
11995# Check the compiler produces executables we can run. If not, either
11996# the compiler is broken, or we cross compile.
11997echo "$as_me:$LINENO: checking whether the C compiler works" >&5
11998echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
11999# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
12000# If not cross compiling, check that we can run a simple program.
12001if test "$cross_compiling" != yes; then
12002 if { ac_try='./$ac_file'
12003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12004 (eval $ac_try) 2>&5
12005 ac_status=$?
12006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007 (exit $ac_status); }; }; then
12008 cross_compiling=no
12009 else
12010 if test "$cross_compiling" = maybe; then
12011 cross_compiling=yes
12012 else
12013 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
12014If you meant to cross compile, use \`--host'.
12015See \`config.log' for more details." >&5
12016echo "$as_me: error: cannot run C compiled programs.
12017If you meant to cross compile, use \`--host'.
12018See \`config.log' for more details." >&2;}
12019 { (exit 1); exit 1; }; }
12020 fi
12021 fi
12022fi
12023echo "$as_me:$LINENO: result: yes" >&5
12024echo "${ECHO_T}yes" >&6
12025
12026rm -f a.out a.exe conftest$ac_cv_exeext b.out
12027ac_clean_files=$ac_clean_files_save
12028# Check the compiler produces executables we can run. If not, either
12029# the compiler is broken, or we cross compile.
12030echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
12031echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
12032echo "$as_me:$LINENO: result: $cross_compiling" >&5
12033echo "${ECHO_T}$cross_compiling" >&6
12034
12035echo "$as_me:$LINENO: checking for suffix of executables" >&5
12036echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
12037if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12038 (eval $ac_link) 2>&5
12039 ac_status=$?
12040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041 (exit $ac_status); }; then
12042 # If both `conftest.exe' and `conftest' are `present' (well, observable)
12043# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
12044# work properly (i.e., refer to `conftest.exe'), while it won't with
12045# `rm'.
12046for ac_file in conftest.exe conftest conftest.*; do
12047 test -f "$ac_file" || continue
12048 case $ac_file in
12049 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
12050 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
12051 export ac_cv_exeext
12052 break;;
a848cd7e
SC
12053 * ) break;;
12054 esac
12055done
12056else
12057 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
12058See \`config.log' for more details." >&5
12059echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
12060See \`config.log' for more details." >&2;}
12061 { (exit 1); exit 1; }; }
12062fi
12063
12064rm -f conftest$ac_cv_exeext
12065echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
12066echo "${ECHO_T}$ac_cv_exeext" >&6
12067
12068rm -f conftest.$ac_ext
12069EXEEXT=$ac_cv_exeext
12070ac_exeext=$EXEEXT
12071echo "$as_me:$LINENO: checking for suffix of object files" >&5
12072echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
12073if test "${ac_cv_objext+set}" = set; then
12074 echo $ECHO_N "(cached) $ECHO_C" >&6
12075else
12076 cat >conftest.$ac_ext <<_ACEOF
12077/* confdefs.h. */
12078_ACEOF
12079cat confdefs.h >>conftest.$ac_ext
12080cat >>conftest.$ac_ext <<_ACEOF
12081/* end confdefs.h. */
12082
12083int
12084main ()
12085{
12086
12087 ;
12088 return 0;
12089}
12090_ACEOF
12091rm -f conftest.o conftest.obj
12092if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12093 (eval $ac_compile) 2>&5
12094 ac_status=$?
12095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096 (exit $ac_status); }; then
12097 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
12098 case $ac_file in
12099 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
12100 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
12101 break;;
12102 esac
12103done
12104else
12105 echo "$as_me: failed program was:" >&5
12106sed 's/^/| /' conftest.$ac_ext >&5
12107
12108{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
12109See \`config.log' for more details." >&5
12110echo "$as_me: error: cannot compute suffix of object files: cannot compile
12111See \`config.log' for more details." >&2;}
12112 { (exit 1); exit 1; }; }
12113fi
12114
12115rm -f conftest.$ac_cv_objext conftest.$ac_ext
12116fi
12117echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
12118echo "${ECHO_T}$ac_cv_objext" >&6
12119OBJEXT=$ac_cv_objext
12120ac_objext=$OBJEXT
12121echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12122echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12123if test "${ac_cv_c_compiler_gnu+set}" = set; then
12124 echo $ECHO_N "(cached) $ECHO_C" >&6
12125else
12126 cat >conftest.$ac_ext <<_ACEOF
12127/* confdefs.h. */
12128_ACEOF
12129cat confdefs.h >>conftest.$ac_ext
12130cat >>conftest.$ac_ext <<_ACEOF
12131/* end confdefs.h. */
12132
12133int
12134main ()
12135{
12136#ifndef __GNUC__
12137 choke me
12138#endif
12139
12140 ;
12141 return 0;
12142}
12143_ACEOF
12144rm -f conftest.$ac_objext
12145if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12146 (eval $ac_compile) 2>conftest.er1
a848cd7e 12147 ac_status=$?
ac1cb8d3
VS
12148 grep -v '^ *+' conftest.er1 >conftest.err
12149 rm -f conftest.er1
12150 cat conftest.err >&5
a848cd7e
SC
12151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12152 (exit $ac_status); } &&
c9a66001 12153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12155 (eval $ac_try) 2>&5
12156 ac_status=$?
12157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12158 (exit $ac_status); }; } &&
12159 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12161 (eval $ac_try) 2>&5
12162 ac_status=$?
12163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164 (exit $ac_status); }; }; then
12165 ac_compiler_gnu=yes
12166else
12167 echo "$as_me: failed program was:" >&5
12168sed 's/^/| /' conftest.$ac_ext >&5
12169
12170ac_compiler_gnu=no
12171fi
ac1cb8d3 12172rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12173ac_cv_c_compiler_gnu=$ac_compiler_gnu
12174
12175fi
12176echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12177echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12178GCC=`test $ac_compiler_gnu = yes && echo yes`
12179ac_test_CFLAGS=${CFLAGS+set}
12180ac_save_CFLAGS=$CFLAGS
8aeeb05c 12181CFLAGS="-g"
a848cd7e
SC
12182echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12183echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12184if test "${ac_cv_prog_cc_g+set}" = set; then
12185 echo $ECHO_N "(cached) $ECHO_C" >&6
12186else
12187 cat >conftest.$ac_ext <<_ACEOF
12188/* confdefs.h. */
12189_ACEOF
12190cat confdefs.h >>conftest.$ac_ext
12191cat >>conftest.$ac_ext <<_ACEOF
12192/* end confdefs.h. */
12193
12194int
12195main ()
12196{
12197
12198 ;
12199 return 0;
12200}
12201_ACEOF
12202rm -f conftest.$ac_objext
12203if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12204 (eval $ac_compile) 2>conftest.er1
a848cd7e 12205 ac_status=$?
ac1cb8d3
VS
12206 grep -v '^ *+' conftest.er1 >conftest.err
12207 rm -f conftest.er1
12208 cat conftest.err >&5
a848cd7e
SC
12209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210 (exit $ac_status); } &&
c9a66001 12211 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12213 (eval $ac_try) 2>&5
12214 ac_status=$?
12215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216 (exit $ac_status); }; } &&
12217 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12219 (eval $ac_try) 2>&5
12220 ac_status=$?
12221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222 (exit $ac_status); }; }; then
12223 ac_cv_prog_cc_g=yes
12224else
12225 echo "$as_me: failed program was:" >&5
12226sed 's/^/| /' conftest.$ac_ext >&5
12227
12228ac_cv_prog_cc_g=no
12229fi
ac1cb8d3 12230rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12231fi
12232echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12233echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12234if test "$ac_test_CFLAGS" = set; then
12235 CFLAGS=$ac_save_CFLAGS
12236elif test $ac_cv_prog_cc_g = yes; then
12237 if test "$GCC" = yes; then
12238 CFLAGS="-g -O2"
12239 else
12240 CFLAGS="-g"
12241 fi
12242else
12243 if test "$GCC" = yes; then
12244 CFLAGS="-O2"
12245 else
12246 CFLAGS=
12247 fi
12248fi
12249echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12250echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12251if test "${ac_cv_prog_cc_stdc+set}" = set; then
12252 echo $ECHO_N "(cached) $ECHO_C" >&6
12253else
12254 ac_cv_prog_cc_stdc=no
12255ac_save_CC=$CC
12256cat >conftest.$ac_ext <<_ACEOF
12257/* confdefs.h. */
12258_ACEOF
12259cat confdefs.h >>conftest.$ac_ext
12260cat >>conftest.$ac_ext <<_ACEOF
12261/* end confdefs.h. */
12262#include <stdarg.h>
12263#include <stdio.h>
12264#include <sys/types.h>
12265#include <sys/stat.h>
12266/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12267struct buf { int x; };
12268FILE * (*rcsopen) (struct buf *, struct stat *, int);
12269static char *e (p, i)
12270 char **p;
12271 int i;
12272{
12273 return p[i];
12274}
12275static char *f (char * (*g) (char **, int), char **p, ...)
12276{
12277 char *s;
12278 va_list v;
12279 va_start (v,p);
12280 s = g (p, va_arg (v,int));
12281 va_end (v);
12282 return s;
12283}
ac1cb8d3
VS
12284
12285/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12286 function prototypes and stuff, but not '\xHH' hex character constants.
12287 These don't provoke an error unfortunately, instead are silently treated
12288 as 'x'. The following induces an error, until -std1 is added to get
12289 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12290 array size at least. It's necessary to write '\x00'==0 to get something
12291 that's true only with -std1. */
12292int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12293
a848cd7e
SC
12294int test (int i, double x);
12295struct s1 {int (*f) (int a);};
12296struct s2 {int (*f) (double a);};
12297int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12298int argc;
12299char **argv;
12300int
12301main ()
12302{
12303return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12304 ;
12305 return 0;
12306}
12307_ACEOF
12308# Don't try gcc -ansi; that turns off useful extensions and
12309# breaks some systems' header files.
12310# AIX -qlanglvl=ansi
12311# Ultrix and OSF/1 -std1
12312# HP-UX 10.20 and later -Ae
12313# HP-UX older versions -Aa -D_HPUX_SOURCE
12314# SVR4 -Xc -D__EXTENSIONS__
12315for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12316do
12317 CC="$ac_save_CC $ac_arg"
12318 rm -f conftest.$ac_objext
12319if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12320 (eval $ac_compile) 2>conftest.er1
a848cd7e 12321 ac_status=$?
ac1cb8d3
VS
12322 grep -v '^ *+' conftest.er1 >conftest.err
12323 rm -f conftest.er1
12324 cat conftest.err >&5
a848cd7e
SC
12325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12326 (exit $ac_status); } &&
c9a66001 12327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12329 (eval $ac_try) 2>&5
12330 ac_status=$?
12331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332 (exit $ac_status); }; } &&
12333 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12335 (eval $ac_try) 2>&5
12336 ac_status=$?
12337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338 (exit $ac_status); }; }; then
12339 ac_cv_prog_cc_stdc=$ac_arg
12340break
12341else
12342 echo "$as_me: failed program was:" >&5
12343sed 's/^/| /' conftest.$ac_ext >&5
12344
12345fi
ac1cb8d3 12346rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
12347done
12348rm -f conftest.$ac_ext conftest.$ac_objext
12349CC=$ac_save_CC
12350
12351fi
12352
12353case "x$ac_cv_prog_cc_stdc" in
12354 x|xno)
12355 echo "$as_me:$LINENO: result: none needed" >&5
12356echo "${ECHO_T}none needed" >&6 ;;
12357 *)
12358 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12359echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12360 CC="$CC $ac_cv_prog_cc_stdc" ;;
12361esac
12362
12363# Some people use a C++ compiler to compile C. Since we use `exit',
12364# in C++ we need to declare it. In case someone uses the same compiler
12365# for both compiling C and C++ we need to have the C++ compiler decide
12366# the declaration of exit, since it's the most demanding environment.
12367cat >conftest.$ac_ext <<_ACEOF
12368#ifndef __cplusplus
12369 choke me
12370#endif
12371_ACEOF
12372rm -f conftest.$ac_objext
12373if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12374 (eval $ac_compile) 2>conftest.er1
a848cd7e 12375 ac_status=$?
ac1cb8d3
VS
12376 grep -v '^ *+' conftest.er1 >conftest.err
12377 rm -f conftest.er1
12378 cat conftest.err >&5
a848cd7e
SC
12379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380 (exit $ac_status); } &&
c9a66001 12381 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12383 (eval $ac_try) 2>&5
12384 ac_status=$?
12385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12386 (exit $ac_status); }; } &&
12387 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12389 (eval $ac_try) 2>&5
12390 ac_status=$?
12391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392 (exit $ac_status); }; }; then
12393 for ac_declaration in \
ac1cb8d3 12394 '' \
a848cd7e
SC
12395 'extern "C" void std::exit (int) throw (); using std::exit;' \
12396 'extern "C" void std::exit (int); using std::exit;' \
12397 'extern "C" void exit (int) throw ();' \
12398 'extern "C" void exit (int);' \
12399 'void exit (int);'
12400do
12401 cat >conftest.$ac_ext <<_ACEOF
12402/* confdefs.h. */
12403_ACEOF
12404cat confdefs.h >>conftest.$ac_ext
12405cat >>conftest.$ac_ext <<_ACEOF
12406/* end confdefs.h. */
de59c161 12407$ac_declaration
ac1cb8d3 12408#include <stdlib.h>
a848cd7e
SC
12409int
12410main ()
12411{
12412exit (42);
12413 ;
12414 return 0;
12415}
12416_ACEOF
12417rm -f conftest.$ac_objext
12418if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12419 (eval $ac_compile) 2>conftest.er1
a848cd7e 12420 ac_status=$?
ac1cb8d3
VS
12421 grep -v '^ *+' conftest.er1 >conftest.err
12422 rm -f conftest.er1
12423 cat conftest.err >&5
a848cd7e
SC
12424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425 (exit $ac_status); } &&
c9a66001 12426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12428 (eval $ac_try) 2>&5
12429 ac_status=$?
12430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431 (exit $ac_status); }; } &&
12432 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12434 (eval $ac_try) 2>&5
12435 ac_status=$?
12436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437 (exit $ac_status); }; }; then
12438 :
12439else
12440 echo "$as_me: failed program was:" >&5
12441sed 's/^/| /' conftest.$ac_ext >&5
12442
12443continue
12444fi
ac1cb8d3 12445rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12446 cat >conftest.$ac_ext <<_ACEOF
12447/* confdefs.h. */
12448_ACEOF
12449cat confdefs.h >>conftest.$ac_ext
12450cat >>conftest.$ac_ext <<_ACEOF
12451/* end confdefs.h. */
12452$ac_declaration
12453int
12454main ()
12455{
12456exit (42);
12457 ;
12458 return 0;
12459}
12460_ACEOF
12461rm -f conftest.$ac_objext
12462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12463 (eval $ac_compile) 2>conftest.er1
a848cd7e 12464 ac_status=$?
ac1cb8d3
VS
12465 grep -v '^ *+' conftest.er1 >conftest.err
12466 rm -f conftest.er1
12467 cat conftest.err >&5
a848cd7e
SC
12468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469 (exit $ac_status); } &&
c9a66001 12470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12472 (eval $ac_try) 2>&5
12473 ac_status=$?
12474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475 (exit $ac_status); }; } &&
12476 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12478 (eval $ac_try) 2>&5
12479 ac_status=$?
12480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481 (exit $ac_status); }; }; then
12482 break
12483else
12484 echo "$as_me: failed program was:" >&5
12485sed 's/^/| /' conftest.$ac_ext >&5
12486
12487fi
ac1cb8d3 12488rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12489done
12490rm -f conftest*
12491if test -n "$ac_declaration"; then
12492 echo '#ifdef __cplusplus' >>confdefs.h
12493 echo $ac_declaration >>confdefs.h
12494 echo '#endif' >>confdefs.h
12495fi
12496
12497else
12498 echo "$as_me: failed program was:" >&5
12499sed 's/^/| /' conftest.$ac_ext >&5
12500
12501fi
ac1cb8d3 12502rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12503ac_ext=c
12504ac_cpp='$CPP $CPPFLAGS'
12505ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12506ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12507ac_compiler_gnu=$ac_cv_c_compiler_gnu
12508
ab0ad5f1
VZ
12509
12510
12511 ac_ext=c
12512ac_cpp='$CPP $CPPFLAGS'
12513ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12514ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12515ac_compiler_gnu=$ac_cv_c_compiler_gnu
12516
12517 echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
12518echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6
12519if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
12520 echo $ECHO_N "(cached) $ECHO_C" >&6
12521else
12522 cat >conftest.$ac_ext <<_ACEOF
12523/* confdefs.h. */
12524_ACEOF
12525cat confdefs.h >>conftest.$ac_ext
12526cat >>conftest.$ac_ext <<_ACEOF
12527/* end confdefs.h. */
12528
12529int
12530main ()
12531{
12532
12533 #ifndef __INTEL_COMPILER
12534 choke me
12535 #endif
12536
12537 ;
12538 return 0;
12539}
12540_ACEOF
12541rm -f conftest.$ac_objext
12542if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12543 (eval $ac_compile) 2>conftest.er1
12544 ac_status=$?
12545 grep -v '^ *+' conftest.er1 >conftest.err
12546 rm -f conftest.er1
12547 cat conftest.err >&5
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); } &&
c9a66001 12550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab0ad5f1
VZ
12551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12552 (eval $ac_try) 2>&5
12553 ac_status=$?
12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); }; } &&
12556 { ac_try='test -s conftest.$ac_objext'
12557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12558 (eval $ac_try) 2>&5
12559 ac_status=$?
12560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561 (exit $ac_status); }; }; then
12562 bakefile_cv_c_compiler___INTEL_COMPILER=yes
12563else
12564 echo "$as_me: failed program was:" >&5
12565sed 's/^/| /' conftest.$ac_ext >&5
12566
12567bakefile_cv_c_compiler___INTEL_COMPILER=no
12568
12569fi
12570rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12571
12572
12573fi
12574echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
12575echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6
12576 ac_ext=c
12577ac_cpp='$CPP $CPPFLAGS'
12578ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12579ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12580ac_compiler_gnu=$ac_cv_c_compiler_gnu
12581
12582 if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
12583 :; INTELCC=yes
12584 else
12585 :;
12586 fi
12587
12588
12589 if test "x$GCC" != "xyes"; then
3006edc0
VZ
12590 if test "xCC" = "xC"; then
12591 echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
480ccd21 12592echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
0093c2fc 12593if test "${bakefile_cv_c_exto+set}" = set; then
480ccd21
DE
12594 echo $ECHO_N "(cached) $ECHO_C" >&6
12595else
12596 cat >conftest.$ac_ext <<_ACEOF
12597/* confdefs.h. */
12598_ACEOF
12599cat confdefs.h >>conftest.$ac_ext
12600cat >>conftest.$ac_ext <<_ACEOF
12601/* end confdefs.h. */
12602
12603int
12604main ()
12605{
12606
12607 ;
12608 return 0;
12609}
12610_ACEOF
12611rm -f conftest.$ac_objext conftest.$ac_ext.o
12612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12613 (eval $ac_compile) 2>&5
12614 ac_status=$?
12615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616 (exit $ac_status); }; then
12617 for ac_file in `(ls conftest.* 2>/dev/null)`; do
12618 case $ac_file in
12619 conftest.$ac_ext.o)
0093c2fc 12620 bakefile_cv_c_exto="-ext o"
480ccd21
DE
12621 ;;
12622 *)
12623 ;;
12624 esac
12625done
12626else
12627 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
12628See \`config.log' for more details." >&5
12629echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
12630See \`config.log' for more details." >&2;}
12631 { (exit 1); exit 1; }; }
12632
12633fi
12634
12635rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
12636
12637fi
0093c2fc
VZ
12638echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
12639echo "${ECHO_T}$bakefile_cv_c_exto" >&6
12640if test "x$bakefile_cv_c_exto" '!=' "x"; then
480ccd21 12641 if test "c" = "c"; then
0093c2fc 12642 CFLAGS="$bakefile_cv_c_exto $CFLAGS"
480ccd21
DE
12643 fi
12644 if test "c" = "cxx"; then
0093c2fc 12645 CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
480ccd21
DE
12646 fi
12647fi
12648
0093c2fc 12649 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
12650 unset ac_cv_prog_cc_g
12651 ac_test_CFLAGS=${CFLAGS+set}
480ccd21 12652ac_save_CFLAGS=$CFLAGS
8aeeb05c 12653CFLAGS="-g"
480ccd21
DE
12654echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12655echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12656if test "${ac_cv_prog_cc_g+set}" = set; then
12657 echo $ECHO_N "(cached) $ECHO_C" >&6
12658else
12659 cat >conftest.$ac_ext <<_ACEOF
12660/* confdefs.h. */
12661_ACEOF
12662cat confdefs.h >>conftest.$ac_ext
12663cat >>conftest.$ac_ext <<_ACEOF
12664/* end confdefs.h. */
12665
12666int
12667main ()
12668{
12669
12670 ;
12671 return 0;
12672}
12673_ACEOF
12674rm -f conftest.$ac_objext
12675if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12676 (eval $ac_compile) 2>conftest.er1
12677 ac_status=$?
12678 grep -v '^ *+' conftest.er1 >conftest.err
12679 rm -f conftest.er1
12680 cat conftest.err >&5
12681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12682 (exit $ac_status); } &&
c9a66001 12683 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
480ccd21
DE
12684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12685 (eval $ac_try) 2>&5
12686 ac_status=$?
12687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688 (exit $ac_status); }; } &&
12689 { ac_try='test -s conftest.$ac_objext'
12690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12691 (eval $ac_try) 2>&5
12692 ac_status=$?
12693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694 (exit $ac_status); }; }; then
12695 ac_cv_prog_cc_g=yes
12696else
12697 echo "$as_me: failed program was:" >&5
12698sed 's/^/| /' conftest.$ac_ext >&5
12699
12700ac_cv_prog_cc_g=no
12701fi
12702rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12703fi
12704echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12705echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12706if test "$ac_test_CFLAGS" = set; then
12707 CFLAGS=$ac_save_CFLAGS
12708elif test $ac_cv_prog_cc_g = yes; then
12709 if test "$GCC" = yes; then
12710 CFLAGS="-g -O2"
12711 else
12712 CFLAGS="-g"
12713 fi
12714else
12715 if test "$GCC" = yes; then
12716 CFLAGS="-O2"
12717 else
12718 CFLAGS=
12719 fi
12720fi
3006edc0 12721 fi
ab0ad5f1 12722 fi
3006edc0
VZ
12723
12724 case `uname -s` in
12725 AIX*)
12726 ac_ext=c
12727ac_cpp='$CPP $CPPFLAGS'
12728ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12729ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12730ac_compiler_gnu=$ac_cv_c_compiler_gnu
12731
12732echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
12733echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
0093c2fc 12734if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
3006edc0
VZ
12735 echo $ECHO_N "(cached) $ECHO_C" >&6
12736else
12737 cat >conftest.$ac_ext <<_ACEOF
12738/* confdefs.h. */
12739_ACEOF
12740cat confdefs.h >>conftest.$ac_ext
12741cat >>conftest.$ac_ext <<_ACEOF
12742/* end confdefs.h. */
12743
12744int
12745main ()
12746{
12747#ifndef __xlC__
12748 choke me
12749#endif
12750
12751 ;
12752 return 0;
12753}
12754_ACEOF
12755rm -f conftest.$ac_objext
12756if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12757 (eval $ac_compile) 2>conftest.er1
12758 ac_status=$?
12759 grep -v '^ *+' conftest.er1 >conftest.err
12760 rm -f conftest.er1
12761 cat conftest.err >&5
12762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763 (exit $ac_status); } &&
c9a66001 12764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
12765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12766 (eval $ac_try) 2>&5
12767 ac_status=$?
12768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769 (exit $ac_status); }; } &&
12770 { ac_try='test -s conftest.$ac_objext'
12771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12772 (eval $ac_try) 2>&5
12773 ac_status=$?
12774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12775 (exit $ac_status); }; }; then
0093c2fc 12776 bakefile_compiler_xlc=yes
3006edc0
VZ
12777else
12778 echo "$as_me: failed program was:" >&5
12779sed 's/^/| /' conftest.$ac_ext >&5
12780
0093c2fc 12781bakefile_compiler_xlc=no
3006edc0
VZ
12782fi
12783rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 12784 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
12785
12786fi
0093c2fc
VZ
12787echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
12788echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
3006edc0 12789
0093c2fc 12790XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
3006edc0
VZ
12791ac_ext=c
12792ac_cpp='$CPP $CPPFLAGS'
12793ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12794ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12795ac_compiler_gnu=$ac_cv_c_compiler_gnu
12796
12797
12798 ;;
12799
12800 Darwin)
12801 ac_ext=c
95986553
DE
12802ac_cpp='$CPP $CPPFLAGS'
12803ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12804ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12805ac_compiler_gnu=$ac_cv_c_compiler_gnu
12806
12807echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
12808echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
12809if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
12810 echo $ECHO_N "(cached) $ECHO_C" >&6
12811else
12812 cat >conftest.$ac_ext <<_ACEOF
12813/* confdefs.h. */
12814_ACEOF
12815cat confdefs.h >>conftest.$ac_ext
12816cat >>conftest.$ac_ext <<_ACEOF
12817/* end confdefs.h. */
12818
12819int
12820main ()
12821{
12822#ifndef __MWERKS__
12823 choke me
12824#endif
12825
12826 ;
12827 return 0;
12828}
12829_ACEOF
12830rm -f conftest.$ac_objext
12831if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12832 (eval $ac_compile) 2>conftest.er1
12833 ac_status=$?
12834 grep -v '^ *+' conftest.er1 >conftest.err
12835 rm -f conftest.er1
12836 cat conftest.err >&5
12837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12838 (exit $ac_status); } &&
c9a66001 12839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
95986553
DE
12840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12841 (eval $ac_try) 2>&5
12842 ac_status=$?
12843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12844 (exit $ac_status); }; } &&
12845 { ac_try='test -s conftest.$ac_objext'
12846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12847 (eval $ac_try) 2>&5
12848 ac_status=$?
12849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850 (exit $ac_status); }; }; then
12851 bakefile_compiler_mwerks=yes
12852else
12853 echo "$as_me: failed program was:" >&5
12854sed 's/^/| /' conftest.$ac_ext >&5
12855
12856bakefile_compiler_mwerks=no
12857fi
12858rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12859 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
12860
12861fi
12862echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
12863echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
12864
0e6fa1d9 12865MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
95986553
DE
12866ac_ext=c
12867ac_cpp='$CPP $CPPFLAGS'
12868ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12869ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12870ac_compiler_gnu=$ac_cv_c_compiler_gnu
12871
12872
3006edc0 12873 ac_ext=c
9273ffba
DE
12874ac_cpp='$CPP $CPPFLAGS'
12875ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12876ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12877ac_compiler_gnu=$ac_cv_c_compiler_gnu
12878
12879echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
12880echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
0093c2fc 12881if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
9273ffba
DE
12882 echo $ECHO_N "(cached) $ECHO_C" >&6
12883else
12884 cat >conftest.$ac_ext <<_ACEOF
12885/* confdefs.h. */
12886_ACEOF
12887cat confdefs.h >>conftest.$ac_ext
12888cat >>conftest.$ac_ext <<_ACEOF
12889/* end confdefs.h. */
12890
12891int
12892main ()
12893{
12894#ifndef __xlC__
12895 choke me
12896#endif
12897
12898 ;
12899 return 0;
12900}
12901_ACEOF
12902rm -f conftest.$ac_objext
12903if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12904 (eval $ac_compile) 2>conftest.er1
12905 ac_status=$?
12906 grep -v '^ *+' conftest.er1 >conftest.err
12907 rm -f conftest.er1
12908 cat conftest.err >&5
12909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910 (exit $ac_status); } &&
c9a66001 12911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9273ffba
DE
12912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12913 (eval $ac_try) 2>&5
12914 ac_status=$?
12915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12916 (exit $ac_status); }; } &&
12917 { ac_try='test -s conftest.$ac_objext'
12918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12919 (eval $ac_try) 2>&5
12920 ac_status=$?
12921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12922 (exit $ac_status); }; }; then
0093c2fc 12923 bakefile_compiler_xlc=yes
9273ffba
DE
12924else
12925 echo "$as_me: failed program was:" >&5
12926sed 's/^/| /' conftest.$ac_ext >&5
12927
0093c2fc 12928bakefile_compiler_xlc=no
9273ffba
DE
12929fi
12930rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 12931 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
12932
12933fi
0093c2fc
VZ
12934echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
12935echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
9273ffba 12936
0093c2fc 12937XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
9273ffba
DE
12938ac_ext=c
12939ac_cpp='$CPP $CPPFLAGS'
12940ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12941ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12942ac_compiler_gnu=$ac_cv_c_compiler_gnu
12943
12944
3006edc0
VZ
12945 ;;
12946
12947 IRIX*)
a848cd7e 12948
6dcfc289 12949
0ad5d837
VZ
12950 ac_ext=c
12951ac_cpp='$CPP $CPPFLAGS'
12952ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12953ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12954ac_compiler_gnu=$ac_cv_c_compiler_gnu
12955
12956 echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
12957echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6
12958if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
12959 echo $ECHO_N "(cached) $ECHO_C" >&6
12960else
12961 cat >conftest.$ac_ext <<_ACEOF
12962/* confdefs.h. */
12963_ACEOF
12964cat confdefs.h >>conftest.$ac_ext
12965cat >>conftest.$ac_ext <<_ACEOF
12966/* end confdefs.h. */
12967
12968int
12969main ()
12970{
12971
12972 #ifndef _SGI_COMPILER_VERSION
12973 choke me
12974 #endif
12975
12976 ;
12977 return 0;
12978}
12979_ACEOF
12980rm -f conftest.$ac_objext
12981if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12982 (eval $ac_compile) 2>conftest.er1
12983 ac_status=$?
12984 grep -v '^ *+' conftest.er1 >conftest.err
12985 rm -f conftest.er1
12986 cat conftest.err >&5
12987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12988 (exit $ac_status); } &&
c9a66001 12989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
12990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12991 (eval $ac_try) 2>&5
12992 ac_status=$?
12993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12994 (exit $ac_status); }; } &&
12995 { ac_try='test -s conftest.$ac_objext'
12996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12997 (eval $ac_try) 2>&5
12998 ac_status=$?
12999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000 (exit $ac_status); }; }; then
13001 bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
13002else
13003 echo "$as_me: failed program was:" >&5
13004sed 's/^/| /' conftest.$ac_ext >&5
13005
13006bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
13007
13008fi
13009rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13010
13011
13012fi
13013echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
13014echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6
13015 ac_ext=c
13016ac_cpp='$CPP $CPPFLAGS'
13017ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13018ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13019ac_compiler_gnu=$ac_cv_c_compiler_gnu
13020
13021 if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
13022 :; SGICC=yes
13023 else
13024 :;
13025 fi
13026
13027
3006edc0
VZ
13028 ;;
13029
0093c2fc 13030 HP-UX*)
3006edc0
VZ
13031
13032
13033 ac_ext=c
13034ac_cpp='$CPP $CPPFLAGS'
13035ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13036ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13037ac_compiler_gnu=$ac_cv_c_compiler_gnu
13038
0093c2fc
VZ
13039 echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
13040echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6
13041if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
3006edc0
VZ
13042 echo $ECHO_N "(cached) $ECHO_C" >&6
13043else
13044 cat >conftest.$ac_ext <<_ACEOF
13045/* confdefs.h. */
13046_ACEOF
13047cat confdefs.h >>conftest.$ac_ext
13048cat >>conftest.$ac_ext <<_ACEOF
13049/* end confdefs.h. */
13050
13051int
13052main ()
13053{
13054
0093c2fc 13055 #ifndef __HP_cc
3006edc0
VZ
13056 choke me
13057 #endif
13058
13059 ;
13060 return 0;
13061}
13062_ACEOF
13063rm -f conftest.$ac_objext
13064if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13065 (eval $ac_compile) 2>conftest.er1
13066 ac_status=$?
13067 grep -v '^ *+' conftest.er1 >conftest.err
13068 rm -f conftest.er1
13069 cat conftest.err >&5
13070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13071 (exit $ac_status); } &&
c9a66001 13072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
13073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13074 (eval $ac_try) 2>&5
13075 ac_status=$?
13076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13077 (exit $ac_status); }; } &&
13078 { ac_try='test -s conftest.$ac_objext'
13079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13080 (eval $ac_try) 2>&5
13081 ac_status=$?
13082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13083 (exit $ac_status); }; }; then
0093c2fc 13084 bakefile_cv_c_compiler___HP_cc=yes
3006edc0
VZ
13085else
13086 echo "$as_me: failed program was:" >&5
13087sed 's/^/| /' conftest.$ac_ext >&5
13088
0093c2fc 13089bakefile_cv_c_compiler___HP_cc=no
3006edc0
VZ
13090
13091fi
13092rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13093
13094
13095fi
0093c2fc
VZ
13096echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
13097echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6
3006edc0
VZ
13098 ac_ext=c
13099ac_cpp='$CPP $CPPFLAGS'
13100ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13101ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13102ac_compiler_gnu=$ac_cv_c_compiler_gnu
13103
0093c2fc
VZ
13104 if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
13105 :; HPCC=yes
a1aa0349
VZ
13106 else
13107 :;
13108 fi
13109
13110
13111 ;;
13112
0093c2fc 13113 OSF1)
a1aa0349
VZ
13114
13115
13116 ac_ext=c
13117ac_cpp='$CPP $CPPFLAGS'
13118ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13119ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13120ac_compiler_gnu=$ac_cv_c_compiler_gnu
13121
0093c2fc
VZ
13122 echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
13123echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6
13124if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
a1aa0349
VZ
13125 echo $ECHO_N "(cached) $ECHO_C" >&6
13126else
13127 cat >conftest.$ac_ext <<_ACEOF
13128/* confdefs.h. */
13129_ACEOF
13130cat confdefs.h >>conftest.$ac_ext
13131cat >>conftest.$ac_ext <<_ACEOF
13132/* end confdefs.h. */
13133
13134int
13135main ()
13136{
13137
0093c2fc 13138 #ifndef __DECC
a1aa0349
VZ
13139 choke me
13140 #endif
13141
13142 ;
13143 return 0;
13144}
13145_ACEOF
13146rm -f conftest.$ac_objext
13147if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13148 (eval $ac_compile) 2>conftest.er1
13149 ac_status=$?
13150 grep -v '^ *+' conftest.er1 >conftest.err
13151 rm -f conftest.er1
13152 cat conftest.err >&5
13153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13154 (exit $ac_status); } &&
c9a66001 13155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a1aa0349
VZ
13156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13157 (eval $ac_try) 2>&5
13158 ac_status=$?
13159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13160 (exit $ac_status); }; } &&
13161 { ac_try='test -s conftest.$ac_objext'
13162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13163 (eval $ac_try) 2>&5
13164 ac_status=$?
13165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13166 (exit $ac_status); }; }; then
0093c2fc 13167 bakefile_cv_c_compiler___DECC=yes
a1aa0349
VZ
13168else
13169 echo "$as_me: failed program was:" >&5
13170sed 's/^/| /' conftest.$ac_ext >&5
13171
0093c2fc 13172bakefile_cv_c_compiler___DECC=no
a1aa0349
VZ
13173
13174fi
13175rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13176
13177
13178fi
0093c2fc
VZ
13179echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
13180echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6
a1aa0349
VZ
13181 ac_ext=c
13182ac_cpp='$CPP $CPPFLAGS'
13183ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13184ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13185ac_compiler_gnu=$ac_cv_c_compiler_gnu
13186
0093c2fc
VZ
13187 if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
13188 :; COMPAQCC=yes
13189 else
13190 :;
13191 fi
13192
13193
13194 ;;
13195
13196 SunOS)
13197
13198
13199 ac_ext=c
13200ac_cpp='$CPP $CPPFLAGS'
13201ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13202ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13203ac_compiler_gnu=$ac_cv_c_compiler_gnu
13204
13205 echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
13206echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6
13207if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
13208 echo $ECHO_N "(cached) $ECHO_C" >&6
13209else
13210 cat >conftest.$ac_ext <<_ACEOF
13211/* confdefs.h. */
13212_ACEOF
13213cat confdefs.h >>conftest.$ac_ext
13214cat >>conftest.$ac_ext <<_ACEOF
13215/* end confdefs.h. */
13216
13217int
13218main ()
13219{
13220
13221 #ifndef __SUNPRO_C
13222 choke me
13223 #endif
13224
13225 ;
13226 return 0;
13227}
13228_ACEOF
13229rm -f conftest.$ac_objext
13230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13231 (eval $ac_compile) 2>conftest.er1
13232 ac_status=$?
13233 grep -v '^ *+' conftest.er1 >conftest.err
13234 rm -f conftest.er1
13235 cat conftest.err >&5
13236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13237 (exit $ac_status); } &&
c9a66001 13238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
0093c2fc
VZ
13239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13240 (eval $ac_try) 2>&5
13241 ac_status=$?
13242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13243 (exit $ac_status); }; } &&
13244 { ac_try='test -s conftest.$ac_objext'
13245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13246 (eval $ac_try) 2>&5
13247 ac_status=$?
13248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249 (exit $ac_status); }; }; then
13250 bakefile_cv_c_compiler___SUNPRO_C=yes
13251else
13252 echo "$as_me: failed program was:" >&5
13253sed 's/^/| /' conftest.$ac_ext >&5
13254
13255bakefile_cv_c_compiler___SUNPRO_C=no
13256
13257fi
13258rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13259
13260
13261fi
13262echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
13263echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6
13264 ac_ext=c
13265ac_cpp='$CPP $CPPFLAGS'
13266ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13267ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13268ac_compiler_gnu=$ac_cv_c_compiler_gnu
13269
13270 if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
13271 :; SUNCC=yes
3006edc0
VZ
13272 else
13273 :;
13274 fi
13275
13276
13277 ;;
13278 esac
ab0ad5f1 13279 fi
a9e5b1f0
MW
13280
13281
3006edc0 13282
a848cd7e
SC
13283ac_ext=c
13284ac_cpp='$CPP $CPPFLAGS'
13285ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13286ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13287ac_compiler_gnu=$ac_cv_c_compiler_gnu
13288echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
13289echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
13290# On Suns, sometimes $CPP names a directory.
13291if test -n "$CPP" && test -d "$CPP"; then
13292 CPP=
13293fi
13294if test -z "$CPP"; then
13295 if test "${ac_cv_prog_CPP+set}" = set; then
13296 echo $ECHO_N "(cached) $ECHO_C" >&6
13297else
13298 # Double quotes because CPP needs to be expanded
13299 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
13300 do
13301 ac_preproc_ok=false
13302for ac_c_preproc_warn_flag in '' yes
13303do
13304 # Use a header file that comes with gcc, so configuring glibc
13305 # with a fresh cross-compiler works.
13306 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13307 # <limits.h> exists even on freestanding compilers.
13308 # On the NeXT, cc -E runs the code through the compiler's parser,
13309 # not just through cpp. "Syntax error" is here to catch this case.
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#ifdef __STDC__
13317# include <limits.h>
13318#else
13319# include <assert.h>
13320#endif
ac1cb8d3 13321 Syntax error
a848cd7e
SC
13322_ACEOF
13323if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13324 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13325 ac_status=$?
13326 grep -v '^ *+' conftest.er1 >conftest.err
13327 rm -f conftest.er1
13328 cat conftest.err >&5
13329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330 (exit $ac_status); } >/dev/null; then
13331 if test -s conftest.err; then
13332 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13333 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13334 else
13335 ac_cpp_err=
13336 fi
13337else
13338 ac_cpp_err=yes
13339fi
13340if test -z "$ac_cpp_err"; then
13341 :
13342else
13343 echo "$as_me: failed program was:" >&5
13344sed 's/^/| /' conftest.$ac_ext >&5
13345
13346 # Broken: fails on valid input.
13347continue
13348fi
13349rm -f conftest.err conftest.$ac_ext
13350
13351 # OK, works on sane cases. Now check whether non-existent headers
13352 # can be detected and how.
13353 cat >conftest.$ac_ext <<_ACEOF
13354/* confdefs.h. */
13355_ACEOF
13356cat confdefs.h >>conftest.$ac_ext
13357cat >>conftest.$ac_ext <<_ACEOF
13358/* end confdefs.h. */
13359#include <ac_nonexistent.h>
13360_ACEOF
13361if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13362 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13363 ac_status=$?
13364 grep -v '^ *+' conftest.er1 >conftest.err
13365 rm -f conftest.er1
13366 cat conftest.err >&5
13367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13368 (exit $ac_status); } >/dev/null; then
13369 if test -s conftest.err; then
13370 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13371 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13372 else
13373 ac_cpp_err=
13374 fi
13375else
13376 ac_cpp_err=yes
13377fi
13378if test -z "$ac_cpp_err"; then
13379 # Broken: success on invalid input.
13380continue
13381else
13382 echo "$as_me: failed program was:" >&5
13383sed 's/^/| /' conftest.$ac_ext >&5
13384
13385 # Passes both tests.
13386ac_preproc_ok=:
13387break
13388fi
13389rm -f conftest.err conftest.$ac_ext
13390
13391done
13392# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13393rm -f conftest.err conftest.$ac_ext
13394if $ac_preproc_ok; then
13395 break
13396fi
13397
13398 done
13399 ac_cv_prog_CPP=$CPP
13400
13401fi
13402 CPP=$ac_cv_prog_CPP
13403else
13404 ac_cv_prog_CPP=$CPP
13405fi
13406echo "$as_me:$LINENO: result: $CPP" >&5
13407echo "${ECHO_T}$CPP" >&6
13408ac_preproc_ok=false
13409for ac_c_preproc_warn_flag in '' yes
13410do
13411 # Use a header file that comes with gcc, so configuring glibc
13412 # with a fresh cross-compiler works.
13413 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13414 # <limits.h> exists even on freestanding compilers.
13415 # On the NeXT, cc -E runs the code through the compiler's parser,
13416 # not just through cpp. "Syntax error" is here to catch this case.
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#ifdef __STDC__
13424# include <limits.h>
13425#else
13426# include <assert.h>
13427#endif
ac1cb8d3 13428 Syntax error
a848cd7e
SC
13429_ACEOF
13430if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13431 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13432 ac_status=$?
13433 grep -v '^ *+' conftest.er1 >conftest.err
13434 rm -f conftest.er1
13435 cat conftest.err >&5
13436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437 (exit $ac_status); } >/dev/null; then
13438 if test -s conftest.err; then
13439 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13440 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13441 else
13442 ac_cpp_err=
13443 fi
13444else
13445 ac_cpp_err=yes
13446fi
13447if test -z "$ac_cpp_err"; then
13448 :
13449else
13450 echo "$as_me: failed program was:" >&5
13451sed 's/^/| /' conftest.$ac_ext >&5
13452
13453 # Broken: fails on valid input.
13454continue
13455fi
13456rm -f conftest.err conftest.$ac_ext
13457
13458 # OK, works on sane cases. Now check whether non-existent headers
13459 # can be detected and how.
13460 cat >conftest.$ac_ext <<_ACEOF
13461/* confdefs.h. */
13462_ACEOF
13463cat confdefs.h >>conftest.$ac_ext
13464cat >>conftest.$ac_ext <<_ACEOF
13465/* end confdefs.h. */
13466#include <ac_nonexistent.h>
13467_ACEOF
13468if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13469 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13470 ac_status=$?
13471 grep -v '^ *+' conftest.er1 >conftest.err
13472 rm -f conftest.er1
13473 cat conftest.err >&5
13474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13475 (exit $ac_status); } >/dev/null; then
13476 if test -s conftest.err; then
13477 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13478 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13479 else
13480 ac_cpp_err=
13481 fi
13482else
13483 ac_cpp_err=yes
13484fi
13485if test -z "$ac_cpp_err"; then
13486 # Broken: success on invalid input.
13487continue
13488else
13489 echo "$as_me: failed program was:" >&5
13490sed 's/^/| /' conftest.$ac_ext >&5
13491
13492 # Passes both tests.
13493ac_preproc_ok=:
13494break
13495fi
13496rm -f conftest.err conftest.$ac_ext
13497
13498done
13499# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13500rm -f conftest.err conftest.$ac_ext
13501if $ac_preproc_ok; then
13502 :
13503else
13504 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
13505See \`config.log' for more details." >&5
13506echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
13507See \`config.log' for more details." >&2;}
13508 { (exit 1); exit 1; }; }
13509fi
13510
13511ac_ext=c
13512ac_cpp='$CPP $CPPFLAGS'
13513ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13514ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13515ac_compiler_gnu=$ac_cv_c_compiler_gnu
13516
13517
13518echo "$as_me:$LINENO: checking for egrep" >&5
13519echo $ECHO_N "checking for egrep... $ECHO_C" >&6
13520if test "${ac_cv_prog_egrep+set}" = set; then
13521 echo $ECHO_N "(cached) $ECHO_C" >&6
13522else
13523 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
13524 then ac_cv_prog_egrep='grep -E'
13525 else ac_cv_prog_egrep='egrep'
13526 fi
13527fi
13528echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
13529echo "${ECHO_T}$ac_cv_prog_egrep" >&6
13530 EGREP=$ac_cv_prog_egrep
13531
13532
13533if test $ac_cv_c_compiler_gnu = yes; then
13534 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
13535echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
13536if test "${ac_cv_prog_gcc_traditional+set}" = set; then
13537 echo $ECHO_N "(cached) $ECHO_C" >&6
13538else
13539 ac_pattern="Autoconf.*'x'"
13540 cat >conftest.$ac_ext <<_ACEOF
13541/* confdefs.h. */
13542_ACEOF
13543cat confdefs.h >>conftest.$ac_ext
13544cat >>conftest.$ac_ext <<_ACEOF
13545/* end confdefs.h. */
13546#include <sgtty.h>
13547Autoconf TIOCGETP
13548_ACEOF
13549if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13550 $EGREP "$ac_pattern" >/dev/null 2>&1; then
13551 ac_cv_prog_gcc_traditional=yes
13552else
13553 ac_cv_prog_gcc_traditional=no
13554fi
13555rm -f conftest*
13556
13557
13558 if test $ac_cv_prog_gcc_traditional = no; then
13559 cat >conftest.$ac_ext <<_ACEOF
13560/* confdefs.h. */
13561_ACEOF
13562cat confdefs.h >>conftest.$ac_ext
13563cat >>conftest.$ac_ext <<_ACEOF
13564/* end confdefs.h. */
13565#include <termio.h>
13566Autoconf TCGETA
13567_ACEOF
13568if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13569 $EGREP "$ac_pattern" >/dev/null 2>&1; then
13570 ac_cv_prog_gcc_traditional=yes
13571fi
13572rm -f conftest*
13573
13574 fi
13575fi
13576echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
13577echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
13578 if test $ac_cv_prog_gcc_traditional = yes; then
13579 CC="$CC -traditional"
13580 fi
13581fi
13582
13583
a848cd7e
SC
13584ac_ext=cc
13585ac_cpp='$CXXCPP $CPPFLAGS'
13586ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13587ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13588ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13589
13590
13591CXXFLAGS=${CXXFLAGS:=}
6dcfc289
DE
13592
13593
3006edc0 13594
6dcfc289 13595 ac_ext=cc
a848cd7e
SC
13596ac_cpp='$CXXCPP $CPPFLAGS'
13597ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13598ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13599ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13600if test -n "$ac_tool_prefix"; then
13601 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13602 do
13603 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13604set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13605echo "$as_me:$LINENO: checking for $ac_word" >&5
13606echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13607if test "${ac_cv_prog_CXX+set}" = set; then
13608 echo $ECHO_N "(cached) $ECHO_C" >&6
13609else
13610 if test -n "$CXX"; then
13611 ac_cv_prog_CXX="$CXX" # Let the user override the test.
13612else
13613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13614for as_dir in $PATH
13615do
13616 IFS=$as_save_IFS
13617 test -z "$as_dir" && as_dir=.
13618 for ac_exec_ext in '' $ac_executable_extensions; do
13619 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13620 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13622 break 2
13623 fi
13624done
13625done
13626
13627fi
13628fi
13629CXX=$ac_cv_prog_CXX
13630if test -n "$CXX"; then
13631 echo "$as_me:$LINENO: result: $CXX" >&5
13632echo "${ECHO_T}$CXX" >&6
13633else
13634 echo "$as_me:$LINENO: result: no" >&5
13635echo "${ECHO_T}no" >&6
13636fi
13637
13638 test -n "$CXX" && break
13639 done
13640fi
13641if test -z "$CXX"; then
13642 ac_ct_CXX=$CXX
13643 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13644do
13645 # Extract the first word of "$ac_prog", so it can be a program name with args.
13646set dummy $ac_prog; ac_word=$2
13647echo "$as_me:$LINENO: checking for $ac_word" >&5
13648echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13649if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
13650 echo $ECHO_N "(cached) $ECHO_C" >&6
13651else
13652 if test -n "$ac_ct_CXX"; then
13653 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13654else
13655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13656for as_dir in $PATH
13657do
13658 IFS=$as_save_IFS
13659 test -z "$as_dir" && as_dir=.
13660 for ac_exec_ext in '' $ac_executable_extensions; do
13661 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13662 ac_cv_prog_ac_ct_CXX="$ac_prog"
13663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13664 break 2
13665 fi
13666done
13667done
13668
13669fi
13670fi
13671ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13672if test -n "$ac_ct_CXX"; then
13673 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
13674echo "${ECHO_T}$ac_ct_CXX" >&6
13675else
13676 echo "$as_me:$LINENO: result: no" >&5
13677echo "${ECHO_T}no" >&6
13678fi
13679
13680 test -n "$ac_ct_CXX" && break
13681done
13682test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
13683
13684 CXX=$ac_ct_CXX
13685fi
13686
13687
13688# Provide some information about the compiler.
13689echo "$as_me:$LINENO:" \
13690 "checking for C++ compiler version" >&5
13691ac_compiler=`set X $ac_compile; echo $2`
13692{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
13693 (eval $ac_compiler --version </dev/null >&5) 2>&5
13694 ac_status=$?
13695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13696 (exit $ac_status); }
13697{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
13698 (eval $ac_compiler -v </dev/null >&5) 2>&5
13699 ac_status=$?
13700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13701 (exit $ac_status); }
13702{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
13703 (eval $ac_compiler -V </dev/null >&5) 2>&5
13704 ac_status=$?
13705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13706 (exit $ac_status); }
13707
13708echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
13709echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
13710if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
13711 echo $ECHO_N "(cached) $ECHO_C" >&6
13712else
13713 cat >conftest.$ac_ext <<_ACEOF
13714/* confdefs.h. */
13715_ACEOF
13716cat confdefs.h >>conftest.$ac_ext
13717cat >>conftest.$ac_ext <<_ACEOF
13718/* end confdefs.h. */
13719
13720int
13721main ()
13722{
13723#ifndef __GNUC__
13724 choke me
13725#endif
13726
13727 ;
13728 return 0;
13729}
13730_ACEOF
13731rm -f conftest.$ac_objext
13732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13733 (eval $ac_compile) 2>conftest.er1
a848cd7e 13734 ac_status=$?
ac1cb8d3
VS
13735 grep -v '^ *+' conftest.er1 >conftest.err
13736 rm -f conftest.er1
13737 cat conftest.err >&5
a848cd7e
SC
13738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13739 (exit $ac_status); } &&
c9a66001 13740 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13742 (eval $ac_try) 2>&5
13743 ac_status=$?
13744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745 (exit $ac_status); }; } &&
13746 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13748 (eval $ac_try) 2>&5
13749 ac_status=$?
13750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751 (exit $ac_status); }; }; then
13752 ac_compiler_gnu=yes
13753else
13754 echo "$as_me: failed program was:" >&5
13755sed 's/^/| /' conftest.$ac_ext >&5
13756
13757ac_compiler_gnu=no
13758fi
ac1cb8d3 13759rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13760ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13761
13762fi
13763echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
13764echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
13765GXX=`test $ac_compiler_gnu = yes && echo yes`
13766ac_test_CXXFLAGS=${CXXFLAGS+set}
13767ac_save_CXXFLAGS=$CXXFLAGS
13768CXXFLAGS="-g"
13769echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
13770echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
13771if test "${ac_cv_prog_cxx_g+set}" = set; then
13772 echo $ECHO_N "(cached) $ECHO_C" >&6
13773else
13774 cat >conftest.$ac_ext <<_ACEOF
13775/* confdefs.h. */
13776_ACEOF
13777cat confdefs.h >>conftest.$ac_ext
13778cat >>conftest.$ac_ext <<_ACEOF
13779/* end confdefs.h. */
13780
13781int
13782main ()
13783{
13784
13785 ;
13786 return 0;
13787}
13788_ACEOF
13789rm -f conftest.$ac_objext
13790if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13791 (eval $ac_compile) 2>conftest.er1
a848cd7e 13792 ac_status=$?
ac1cb8d3
VS
13793 grep -v '^ *+' conftest.er1 >conftest.err
13794 rm -f conftest.er1
13795 cat conftest.err >&5
a848cd7e
SC
13796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797 (exit $ac_status); } &&
c9a66001 13798 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13800 (eval $ac_try) 2>&5
13801 ac_status=$?
13802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803 (exit $ac_status); }; } &&
13804 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13806 (eval $ac_try) 2>&5
13807 ac_status=$?
13808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13809 (exit $ac_status); }; }; then
13810 ac_cv_prog_cxx_g=yes
13811else
13812 echo "$as_me: failed program was:" >&5
13813sed 's/^/| /' conftest.$ac_ext >&5
13814
13815ac_cv_prog_cxx_g=no
13816fi
ac1cb8d3 13817rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13818fi
13819echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
13820echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
13821if test "$ac_test_CXXFLAGS" = set; then
13822 CXXFLAGS=$ac_save_CXXFLAGS
13823elif test $ac_cv_prog_cxx_g = yes; then
13824 if test "$GXX" = yes; then
8aeeb05c 13825 CXXFLAGS="-g -O2"
a848cd7e 13826 else
8aeeb05c 13827 CXXFLAGS="-g"
a848cd7e
SC
13828 fi
13829else
13830 if test "$GXX" = yes; then
13831 CXXFLAGS="-O2"
13832 else
13833 CXXFLAGS=
13834 fi
13835fi
13836for ac_declaration in \
ac1cb8d3 13837 '' \
a848cd7e
SC
13838 'extern "C" void std::exit (int) throw (); using std::exit;' \
13839 'extern "C" void std::exit (int); using std::exit;' \
13840 'extern "C" void exit (int) throw ();' \
13841 'extern "C" void exit (int);' \
13842 'void exit (int);'
13843do
13844 cat >conftest.$ac_ext <<_ACEOF
13845/* confdefs.h. */
13846_ACEOF
13847cat confdefs.h >>conftest.$ac_ext
13848cat >>conftest.$ac_ext <<_ACEOF
13849/* end confdefs.h. */
de59c161 13850$ac_declaration
ac1cb8d3 13851#include <stdlib.h>
a848cd7e
SC
13852int
13853main ()
13854{
13855exit (42);
13856 ;
13857 return 0;
13858}
13859_ACEOF
13860rm -f conftest.$ac_objext
13861if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13862 (eval $ac_compile) 2>conftest.er1
a848cd7e 13863 ac_status=$?
ac1cb8d3
VS
13864 grep -v '^ *+' conftest.er1 >conftest.err
13865 rm -f conftest.er1
13866 cat conftest.err >&5
a848cd7e
SC
13867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13868 (exit $ac_status); } &&
c9a66001 13869 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13871 (eval $ac_try) 2>&5
13872 ac_status=$?
13873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874 (exit $ac_status); }; } &&
13875 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13877 (eval $ac_try) 2>&5
13878 ac_status=$?
13879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880 (exit $ac_status); }; }; then
13881 :
13882else
13883 echo "$as_me: failed program was:" >&5
13884sed 's/^/| /' conftest.$ac_ext >&5
13885
13886continue
13887fi
ac1cb8d3 13888rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13889 cat >conftest.$ac_ext <<_ACEOF
13890/* confdefs.h. */
13891_ACEOF
13892cat confdefs.h >>conftest.$ac_ext
13893cat >>conftest.$ac_ext <<_ACEOF
13894/* end confdefs.h. */
13895$ac_declaration
13896int
13897main ()
13898{
13899exit (42);
13900 ;
13901 return 0;
13902}
13903_ACEOF
13904rm -f conftest.$ac_objext
13905if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13906 (eval $ac_compile) 2>conftest.er1
a848cd7e 13907 ac_status=$?
ac1cb8d3
VS
13908 grep -v '^ *+' conftest.er1 >conftest.err
13909 rm -f conftest.er1
13910 cat conftest.err >&5
a848cd7e
SC
13911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13912 (exit $ac_status); } &&
c9a66001 13913 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13915 (eval $ac_try) 2>&5
13916 ac_status=$?
13917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13918 (exit $ac_status); }; } &&
13919 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13921 (eval $ac_try) 2>&5
13922 ac_status=$?
13923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13924 (exit $ac_status); }; }; then
13925 break
13926else
13927 echo "$as_me: failed program was:" >&5
13928sed 's/^/| /' conftest.$ac_ext >&5
13929
13930fi
ac1cb8d3 13931rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13932done
13933rm -f conftest*
13934if test -n "$ac_declaration"; then
13935 echo '#ifdef __cplusplus' >>confdefs.h
13936 echo $ac_declaration >>confdefs.h
13937 echo '#endif' >>confdefs.h
13938fi
13939
13940ac_ext=cc
13941ac_cpp='$CXXCPP $CPPFLAGS'
13942ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13943ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13944ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13945
ab0ad5f1
VZ
13946
13947
13948 ac_ext=cc
13949ac_cpp='$CXXCPP $CPPFLAGS'
13950ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13951ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13952ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13953
13954 echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
13955echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6
13956if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
13957 echo $ECHO_N "(cached) $ECHO_C" >&6
13958else
13959 cat >conftest.$ac_ext <<_ACEOF
13960/* confdefs.h. */
13961_ACEOF
13962cat confdefs.h >>conftest.$ac_ext
13963cat >>conftest.$ac_ext <<_ACEOF
13964/* end confdefs.h. */
13965
13966int
13967main ()
13968{
13969
13970 #ifndef __INTEL_COMPILER
13971 choke me
13972 #endif
13973
13974 ;
13975 return 0;
13976}
13977_ACEOF
13978rm -f conftest.$ac_objext
13979if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13980 (eval $ac_compile) 2>conftest.er1
13981 ac_status=$?
13982 grep -v '^ *+' conftest.er1 >conftest.err
13983 rm -f conftest.er1
13984 cat conftest.err >&5
13985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13986 (exit $ac_status); } &&
c9a66001 13987 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ab0ad5f1
VZ
13988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13989 (eval $ac_try) 2>&5
13990 ac_status=$?
13991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13992 (exit $ac_status); }; } &&
13993 { ac_try='test -s conftest.$ac_objext'
13994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13995 (eval $ac_try) 2>&5
13996 ac_status=$?
13997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13998 (exit $ac_status); }; }; then
13999 bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
14000else
14001 echo "$as_me: failed program was:" >&5
14002sed 's/^/| /' conftest.$ac_ext >&5
14003
14004bakefile_cv_cxx_compiler___INTEL_COMPILER=no
14005
14006fi
14007rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14008
14009
14010fi
14011echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
14012echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6
14013 ac_ext=cc
14014ac_cpp='$CXXCPP $CPPFLAGS'
14015ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14016ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14017ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14018
14019 if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
14020 :; INTELCXX=yes
14021 else
14022 :;
14023 fi
14024
14025
3006edc0
VZ
14026 if test "x$GCXX" != "xyes"; then
14027 if test "xCXX" = "xC"; then
14028 echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
480ccd21 14029echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
0093c2fc 14030if test "${bakefile_cv_cxx_exto+set}" = set; then
480ccd21
DE
14031 echo $ECHO_N "(cached) $ECHO_C" >&6
14032else
14033 cat >conftest.$ac_ext <<_ACEOF
14034/* confdefs.h. */
14035_ACEOF
14036cat confdefs.h >>conftest.$ac_ext
14037cat >>conftest.$ac_ext <<_ACEOF
14038/* end confdefs.h. */
14039
14040int
14041main ()
14042{
14043
14044 ;
14045 return 0;
14046}
14047_ACEOF
14048rm -f conftest.$ac_objext conftest.$ac_ext.o
14049if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14050 (eval $ac_compile) 2>&5
14051 ac_status=$?
14052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14053 (exit $ac_status); }; then
14054 for ac_file in `(ls conftest.* 2>/dev/null)`; do
14055 case $ac_file in
14056 conftest.$ac_ext.o)
0093c2fc 14057 bakefile_cv_cxx_exto="-ext o"
480ccd21
DE
14058 ;;
14059 *)
14060 ;;
14061 esac
14062done
14063else
14064 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
14065See \`config.log' for more details." >&5
14066echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
14067See \`config.log' for more details." >&2;}
14068 { (exit 1); exit 1; }; }
14069
14070fi
14071
14072rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
14073
14074fi
0093c2fc
VZ
14075echo "$as_me:$LINENO: result: $bakefile_cv_cxx_exto" >&5
14076echo "${ECHO_T}$bakefile_cv_cxx_exto" >&6
14077if test "x$bakefile_cv_cxx_exto" '!=' "x"; then
480ccd21 14078 if test "cxx" = "c"; then
0093c2fc 14079 CFLAGS="$bakefile_cv_cxx_exto $CFLAGS"
480ccd21
DE
14080 fi
14081 if test "cxx" = "cxx"; then
0093c2fc 14082 CXXFLAGS="$bakefile_cv_cxx_exto $CXXFLAGS"
480ccd21
DE
14083 fi
14084fi
14085
0093c2fc 14086 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
14087 unset ac_cv_prog_cc_g
14088 ac_test_CFLAGS=${CFLAGS+set}
14089ac_save_CFLAGS=$CFLAGS
8aeeb05c 14090CFLAGS="-g"
3006edc0
VZ
14091echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
14092echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
14093if test "${ac_cv_prog_cc_g+set}" = set; then
480ccd21
DE
14094 echo $ECHO_N "(cached) $ECHO_C" >&6
14095else
14096 cat >conftest.$ac_ext <<_ACEOF
14097/* confdefs.h. */
14098_ACEOF
14099cat confdefs.h >>conftest.$ac_ext
14100cat >>conftest.$ac_ext <<_ACEOF
14101/* end confdefs.h. */
14102
14103int
14104main ()
14105{
14106
14107 ;
14108 return 0;
14109}
14110_ACEOF
14111rm -f conftest.$ac_objext
14112if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14113 (eval $ac_compile) 2>conftest.er1
14114 ac_status=$?
14115 grep -v '^ *+' conftest.er1 >conftest.err
14116 rm -f conftest.er1
14117 cat conftest.err >&5
14118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14119 (exit $ac_status); } &&
c9a66001 14120 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
480ccd21
DE
14121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14122 (eval $ac_try) 2>&5
14123 ac_status=$?
14124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14125 (exit $ac_status); }; } &&
14126 { ac_try='test -s conftest.$ac_objext'
14127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14128 (eval $ac_try) 2>&5
14129 ac_status=$?
14130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14131 (exit $ac_status); }; }; then
3006edc0 14132 ac_cv_prog_cc_g=yes
480ccd21
DE
14133else
14134 echo "$as_me: failed program was:" >&5
14135sed 's/^/| /' conftest.$ac_ext >&5
14136
3006edc0 14137ac_cv_prog_cc_g=no
480ccd21
DE
14138fi
14139rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14140fi
3006edc0
VZ
14141echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
14142echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
14143if test "$ac_test_CFLAGS" = set; then
14144 CFLAGS=$ac_save_CFLAGS
14145elif test $ac_cv_prog_cc_g = yes; then
14146 if test "$GCC" = yes; then
14147 CFLAGS="-g -O2"
480ccd21 14148 else
3006edc0 14149 CFLAGS="-g"
480ccd21
DE
14150 fi
14151else
3006edc0
VZ
14152 if test "$GCC" = yes; then
14153 CFLAGS="-O2"
480ccd21 14154 else
3006edc0 14155 CFLAGS=
480ccd21
DE
14156 fi
14157fi
3006edc0 14158 fi
ab0ad5f1 14159 fi
3006edc0
VZ
14160
14161 case `uname -s` in
14162 AIX*)
14163 ac_ext=cc
14164ac_cpp='$CXXCPP $CPPFLAGS'
14165ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14166ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14167ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14168
14169echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
14170echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 14171if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
3006edc0
VZ
14172 echo $ECHO_N "(cached) $ECHO_C" >&6
14173else
14174 cat >conftest.$ac_ext <<_ACEOF
14175/* confdefs.h. */
14176_ACEOF
14177cat confdefs.h >>conftest.$ac_ext
14178cat >>conftest.$ac_ext <<_ACEOF
14179/* end confdefs.h. */
14180
14181int
14182main ()
14183{
14184#ifndef __xlC__
14185 choke me
14186#endif
14187
14188 ;
14189 return 0;
14190}
14191_ACEOF
14192rm -f conftest.$ac_objext
14193if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14194 (eval $ac_compile) 2>conftest.er1
14195 ac_status=$?
14196 grep -v '^ *+' conftest.er1 >conftest.err
14197 rm -f conftest.er1
14198 cat conftest.err >&5
14199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14200 (exit $ac_status); } &&
c9a66001 14201 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
14202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14203 (eval $ac_try) 2>&5
14204 ac_status=$?
14205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14206 (exit $ac_status); }; } &&
14207 { ac_try='test -s conftest.$ac_objext'
14208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14209 (eval $ac_try) 2>&5
14210 ac_status=$?
14211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212 (exit $ac_status); }; }; then
0093c2fc 14213 bakefile_compiler_xlc=yes
3006edc0
VZ
14214else
14215 echo "$as_me: failed program was:" >&5
14216sed 's/^/| /' conftest.$ac_ext >&5
14217
0093c2fc 14218bakefile_compiler_xlc=no
3006edc0
VZ
14219fi
14220rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 14221 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
14222
14223fi
0093c2fc
VZ
14224echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
14225echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
3006edc0 14226
0093c2fc 14227XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
3006edc0
VZ
14228ac_ext=cc
14229ac_cpp='$CXXCPP $CPPFLAGS'
14230ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14231ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14232ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14233
14234
14235 ;;
14236
14237 Darwin)
14238 ac_ext=cc
95986553
DE
14239ac_cpp='$CXXCPP $CPPFLAGS'
14240ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14241ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14242ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14243
14244echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
14245echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
14246if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
14247 echo $ECHO_N "(cached) $ECHO_C" >&6
14248else
14249 cat >conftest.$ac_ext <<_ACEOF
14250/* confdefs.h. */
14251_ACEOF
14252cat confdefs.h >>conftest.$ac_ext
14253cat >>conftest.$ac_ext <<_ACEOF
14254/* end confdefs.h. */
14255
14256int
14257main ()
14258{
14259#ifndef __MWERKS__
14260 choke me
14261#endif
14262
14263 ;
14264 return 0;
14265}
14266_ACEOF
14267rm -f conftest.$ac_objext
14268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14269 (eval $ac_compile) 2>conftest.er1
14270 ac_status=$?
14271 grep -v '^ *+' conftest.er1 >conftest.err
14272 rm -f conftest.er1
14273 cat conftest.err >&5
14274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275 (exit $ac_status); } &&
c9a66001 14276 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
95986553
DE
14277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14278 (eval $ac_try) 2>&5
14279 ac_status=$?
14280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14281 (exit $ac_status); }; } &&
14282 { ac_try='test -s conftest.$ac_objext'
14283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14284 (eval $ac_try) 2>&5
14285 ac_status=$?
14286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14287 (exit $ac_status); }; }; then
14288 bakefile_compiler_mwerks=yes
14289else
14290 echo "$as_me: failed program was:" >&5
14291sed 's/^/| /' conftest.$ac_ext >&5
14292
14293bakefile_compiler_mwerks=no
14294fi
14295rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14296 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
14297
14298fi
14299echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
14300echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
14301
0e6fa1d9 14302MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
95986553
DE
14303ac_ext=cc
14304ac_cpp='$CXXCPP $CPPFLAGS'
14305ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14306ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14307ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14308
14309
3006edc0 14310 ac_ext=cc
9273ffba
DE
14311ac_cpp='$CXXCPP $CPPFLAGS'
14312ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14313ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14314ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14315
14316echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
14317echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 14318if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
9273ffba
DE
14319 echo $ECHO_N "(cached) $ECHO_C" >&6
14320else
14321 cat >conftest.$ac_ext <<_ACEOF
14322/* confdefs.h. */
14323_ACEOF
14324cat confdefs.h >>conftest.$ac_ext
14325cat >>conftest.$ac_ext <<_ACEOF
14326/* end confdefs.h. */
14327
14328int
14329main ()
14330{
14331#ifndef __xlC__
14332 choke me
14333#endif
14334
14335 ;
14336 return 0;
14337}
14338_ACEOF
14339rm -f conftest.$ac_objext
14340if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14341 (eval $ac_compile) 2>conftest.er1
14342 ac_status=$?
14343 grep -v '^ *+' conftest.er1 >conftest.err
14344 rm -f conftest.er1
14345 cat conftest.err >&5
14346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347 (exit $ac_status); } &&
c9a66001 14348 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9273ffba
DE
14349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14350 (eval $ac_try) 2>&5
14351 ac_status=$?
14352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353 (exit $ac_status); }; } &&
14354 { ac_try='test -s conftest.$ac_objext'
14355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14356 (eval $ac_try) 2>&5
14357 ac_status=$?
14358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14359 (exit $ac_status); }; }; then
0093c2fc 14360 bakefile_compiler_xlc=yes
9273ffba
DE
14361else
14362 echo "$as_me: failed program was:" >&5
14363sed 's/^/| /' conftest.$ac_ext >&5
14364
0093c2fc 14365bakefile_compiler_xlc=no
9273ffba
DE
14366fi
14367rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 14368 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
14369
14370fi
0093c2fc
VZ
14371echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
14372echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
9273ffba 14373
0093c2fc 14374XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
9273ffba
DE
14375ac_ext=cc
14376ac_cpp='$CXXCPP $CPPFLAGS'
14377ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14378ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14379ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14380
14381
3006edc0
VZ
14382 ;;
14383
14384 IRIX*)
95986553 14385
6dcfc289 14386
0ad5d837
VZ
14387 ac_ext=cc
14388ac_cpp='$CXXCPP $CPPFLAGS'
14389ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14390ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14391ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14392
14393 echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
14394echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6
14395if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
14396 echo $ECHO_N "(cached) $ECHO_C" >&6
14397else
14398 cat >conftest.$ac_ext <<_ACEOF
14399/* confdefs.h. */
14400_ACEOF
14401cat confdefs.h >>conftest.$ac_ext
14402cat >>conftest.$ac_ext <<_ACEOF
14403/* end confdefs.h. */
14404
14405int
14406main ()
14407{
14408
14409 #ifndef _SGI_COMPILER_VERSION
14410 choke me
14411 #endif
14412
14413 ;
14414 return 0;
14415}
14416_ACEOF
14417rm -f conftest.$ac_objext
14418if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14419 (eval $ac_compile) 2>conftest.er1
14420 ac_status=$?
14421 grep -v '^ *+' conftest.er1 >conftest.err
14422 rm -f conftest.er1
14423 cat conftest.err >&5
14424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14425 (exit $ac_status); } &&
c9a66001 14426 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
14427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14428 (eval $ac_try) 2>&5
14429 ac_status=$?
14430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14431 (exit $ac_status); }; } &&
14432 { ac_try='test -s conftest.$ac_objext'
14433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14434 (eval $ac_try) 2>&5
14435 ac_status=$?
14436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14437 (exit $ac_status); }; }; then
14438 bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
14439else
14440 echo "$as_me: failed program was:" >&5
14441sed 's/^/| /' conftest.$ac_ext >&5
14442
14443bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
14444
14445fi
14446rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14447
14448
14449fi
14450echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
14451echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6
14452 ac_ext=cc
14453ac_cpp='$CXXCPP $CPPFLAGS'
14454ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14455ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14456ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14457
14458 if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
14459 :; SGICXX=yes
14460 else
14461 :;
14462 fi
14463
14464
3006edc0
VZ
14465 ;;
14466
0093c2fc 14467 HP-UX*)
3006edc0
VZ
14468
14469
14470 ac_ext=cc
14471ac_cpp='$CXXCPP $CPPFLAGS'
14472ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14473ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14474ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14475
0093c2fc
VZ
14476 echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
14477echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6
14478if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
3006edc0
VZ
14479 echo $ECHO_N "(cached) $ECHO_C" >&6
14480else
14481 cat >conftest.$ac_ext <<_ACEOF
14482/* confdefs.h. */
14483_ACEOF
14484cat confdefs.h >>conftest.$ac_ext
14485cat >>conftest.$ac_ext <<_ACEOF
14486/* end confdefs.h. */
14487
14488int
14489main ()
14490{
14491
0093c2fc 14492 #ifndef __HP_aCC
3006edc0
VZ
14493 choke me
14494 #endif
14495
14496 ;
14497 return 0;
14498}
14499_ACEOF
14500rm -f conftest.$ac_objext
14501if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14502 (eval $ac_compile) 2>conftest.er1
14503 ac_status=$?
14504 grep -v '^ *+' conftest.er1 >conftest.err
14505 rm -f conftest.er1
14506 cat conftest.err >&5
14507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14508 (exit $ac_status); } &&
c9a66001 14509 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
14510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14511 (eval $ac_try) 2>&5
14512 ac_status=$?
14513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14514 (exit $ac_status); }; } &&
14515 { ac_try='test -s conftest.$ac_objext'
14516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14517 (eval $ac_try) 2>&5
14518 ac_status=$?
14519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14520 (exit $ac_status); }; }; then
0093c2fc 14521 bakefile_cv_cxx_compiler___HP_aCC=yes
3006edc0
VZ
14522else
14523 echo "$as_me: failed program was:" >&5
14524sed 's/^/| /' conftest.$ac_ext >&5
14525
0093c2fc 14526bakefile_cv_cxx_compiler___HP_aCC=no
3006edc0
VZ
14527
14528fi
14529rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14530
14531
14532fi
0093c2fc
VZ
14533echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
14534echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6
3006edc0
VZ
14535 ac_ext=cc
14536ac_cpp='$CXXCPP $CPPFLAGS'
14537ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14538ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14539ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14540
0093c2fc
VZ
14541 if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
14542 :; HPCXX=yes
a1aa0349
VZ
14543 else
14544 :;
14545 fi
14546
14547
14548 ;;
14549
0093c2fc 14550 OSF1)
a1aa0349
VZ
14551
14552
14553 ac_ext=cc
14554ac_cpp='$CXXCPP $CPPFLAGS'
14555ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14556ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14557ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14558
0093c2fc
VZ
14559 echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
14560echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6
14561if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
a1aa0349
VZ
14562 echo $ECHO_N "(cached) $ECHO_C" >&6
14563else
14564 cat >conftest.$ac_ext <<_ACEOF
14565/* confdefs.h. */
14566_ACEOF
14567cat confdefs.h >>conftest.$ac_ext
14568cat >>conftest.$ac_ext <<_ACEOF
14569/* end confdefs.h. */
14570
14571int
14572main ()
14573{
14574
0093c2fc 14575 #ifndef __DECCXX
a1aa0349
VZ
14576 choke me
14577 #endif
14578
14579 ;
14580 return 0;
14581}
14582_ACEOF
14583rm -f conftest.$ac_objext
14584if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14585 (eval $ac_compile) 2>conftest.er1
14586 ac_status=$?
14587 grep -v '^ *+' conftest.er1 >conftest.err
14588 rm -f conftest.er1
14589 cat conftest.err >&5
14590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591 (exit $ac_status); } &&
c9a66001 14592 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a1aa0349
VZ
14593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14594 (eval $ac_try) 2>&5
14595 ac_status=$?
14596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14597 (exit $ac_status); }; } &&
14598 { ac_try='test -s conftest.$ac_objext'
14599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14600 (eval $ac_try) 2>&5
14601 ac_status=$?
14602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14603 (exit $ac_status); }; }; then
0093c2fc 14604 bakefile_cv_cxx_compiler___DECCXX=yes
a1aa0349
VZ
14605else
14606 echo "$as_me: failed program was:" >&5
14607sed 's/^/| /' conftest.$ac_ext >&5
14608
0093c2fc 14609bakefile_cv_cxx_compiler___DECCXX=no
a1aa0349
VZ
14610
14611fi
14612rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14613
14614
14615fi
0093c2fc
VZ
14616echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
14617echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6
a1aa0349
VZ
14618 ac_ext=cc
14619ac_cpp='$CXXCPP $CPPFLAGS'
14620ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14621ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14622ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14623
0093c2fc
VZ
14624 if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
14625 :; COMPAQCXX=yes
14626 else
14627 :;
14628 fi
14629
14630
14631 ;;
14632
14633 SunOS)
14634
14635
14636 ac_ext=cc
14637ac_cpp='$CXXCPP $CPPFLAGS'
14638ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14639ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14640ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14641
14642 echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
14643echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6
14644if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
14645 echo $ECHO_N "(cached) $ECHO_C" >&6
14646else
14647 cat >conftest.$ac_ext <<_ACEOF
14648/* confdefs.h. */
14649_ACEOF
14650cat confdefs.h >>conftest.$ac_ext
14651cat >>conftest.$ac_ext <<_ACEOF
14652/* end confdefs.h. */
14653
14654int
14655main ()
14656{
14657
14658 #ifndef __SUNPRO_CC
14659 choke me
14660 #endif
14661
14662 ;
14663 return 0;
14664}
14665_ACEOF
14666rm -f conftest.$ac_objext
14667if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14668 (eval $ac_compile) 2>conftest.er1
14669 ac_status=$?
14670 grep -v '^ *+' conftest.er1 >conftest.err
14671 rm -f conftest.er1
14672 cat conftest.err >&5
14673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14674 (exit $ac_status); } &&
c9a66001 14675 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0093c2fc
VZ
14676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14677 (eval $ac_try) 2>&5
14678 ac_status=$?
14679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680 (exit $ac_status); }; } &&
14681 { ac_try='test -s conftest.$ac_objext'
14682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14683 (eval $ac_try) 2>&5
14684 ac_status=$?
14685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14686 (exit $ac_status); }; }; then
14687 bakefile_cv_cxx_compiler___SUNPRO_CC=yes
14688else
14689 echo "$as_me: failed program was:" >&5
14690sed 's/^/| /' conftest.$ac_ext >&5
14691
14692bakefile_cv_cxx_compiler___SUNPRO_CC=no
14693
14694fi
14695rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14696
14697
14698fi
14699echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
14700echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6
14701 ac_ext=cc
14702ac_cpp='$CXXCPP $CPPFLAGS'
14703ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14704ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14705ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14706
14707 if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
14708 :; SUNCXX=yes
3006edc0
VZ
14709 else
14710 :;
ab0ad5f1 14711 fi
a9e5b1f0
MW
14712
14713
3006edc0
VZ
14714 ;;
14715 esac
14716 fi
14717
14718
14719
a848cd7e
SC
14720if test -n "$ac_tool_prefix"; then
14721 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14722set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14723echo "$as_me:$LINENO: checking for $ac_word" >&5
14724echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14725if test "${ac_cv_prog_RANLIB+set}" = set; then
14726 echo $ECHO_N "(cached) $ECHO_C" >&6
14727else
14728 if test -n "$RANLIB"; then
14729 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14730else
14731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14732for as_dir in $PATH
14733do
14734 IFS=$as_save_IFS
14735 test -z "$as_dir" && as_dir=.
14736 for ac_exec_ext in '' $ac_executable_extensions; do
14737 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14738 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14740 break 2
14741 fi
14742done
14743done
14744
14745fi
14746fi
14747RANLIB=$ac_cv_prog_RANLIB
14748if test -n "$RANLIB"; then
14749 echo "$as_me:$LINENO: result: $RANLIB" >&5
14750echo "${ECHO_T}$RANLIB" >&6
14751else
14752 echo "$as_me:$LINENO: result: no" >&5
14753echo "${ECHO_T}no" >&6
14754fi
14755
14756fi
14757if test -z "$ac_cv_prog_RANLIB"; then
14758 ac_ct_RANLIB=$RANLIB
14759 # Extract the first word of "ranlib", so it can be a program name with args.
14760set dummy ranlib; ac_word=$2
14761echo "$as_me:$LINENO: checking for $ac_word" >&5
14762echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14763if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14764 echo $ECHO_N "(cached) $ECHO_C" >&6
14765else
14766 if test -n "$ac_ct_RANLIB"; then
14767 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # 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
14776 ac_cv_prog_ac_ct_RANLIB="ranlib"
14777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14778 break 2
14779 fi
14780done
14781done
14782
14783 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
14784fi
14785fi
14786ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14787if test -n "$ac_ct_RANLIB"; then
14788 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14789echo "${ECHO_T}$ac_ct_RANLIB" >&6
14790else
14791 echo "$as_me:$LINENO: result: no" >&5
14792echo "${ECHO_T}no" >&6
14793fi
14794
14795 RANLIB=$ac_ct_RANLIB
14796else
14797 RANLIB="$ac_cv_prog_RANLIB"
14798fi
14799
14800
8c80d384
DE
14801if test -n "$ac_tool_prefix"; then
14802 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14803set dummy ${ac_tool_prefix}ar; ac_word=$2
a848cd7e
SC
14804echo "$as_me:$LINENO: checking for $ac_word" >&5
14805echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14806if test "${ac_cv_prog_AR+set}" = set; then
14807 echo $ECHO_N "(cached) $ECHO_C" >&6
14808else
14809 if test -n "$AR"; then
14810 ac_cv_prog_AR="$AR" # Let the user override the test.
14811else
14812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14813for as_dir in $PATH
14814do
14815 IFS=$as_save_IFS
14816 test -z "$as_dir" && as_dir=.
14817 for ac_exec_ext in '' $ac_executable_extensions; do
14818 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 14819 ac_cv_prog_AR="${ac_tool_prefix}ar"
a848cd7e
SC
14820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14821 break 2
14822 fi
14823done
14824done
14825
14826fi
14827fi
14828AR=$ac_cv_prog_AR
14829if test -n "$AR"; then
14830 echo "$as_me:$LINENO: result: $AR" >&5
14831echo "${ECHO_T}$AR" >&6
14832else
14833 echo "$as_me:$LINENO: result: no" >&5
14834echo "${ECHO_T}no" >&6
14835fi
14836
8c80d384
DE
14837fi
14838if test -z "$ac_cv_prog_AR"; then
14839 ac_ct_AR=$AR
14840 # Extract the first word of "ar", so it can be a program name with args.
14841set dummy ar; ac_word=$2
14842echo "$as_me:$LINENO: checking for $ac_word" >&5
14843echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14844if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14845 echo $ECHO_N "(cached) $ECHO_C" >&6
14846else
14847 if test -n "$ac_ct_AR"; then
14848 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14849else
14850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14851for as_dir in $PATH
14852do
14853 IFS=$as_save_IFS
14854 test -z "$as_dir" && as_dir=.
14855 for ac_exec_ext in '' $ac_executable_extensions; do
14856 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14857 ac_cv_prog_ac_ct_AR="ar"
14858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14859 break 2
14860 fi
14861done
14862done
14863
14864fi
14865fi
14866ac_ct_AR=$ac_cv_prog_ac_ct_AR
14867if test -n "$ac_ct_AR"; then
14868 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14869echo "${ECHO_T}$ac_ct_AR" >&6
14870else
14871 echo "$as_me:$LINENO: result: no" >&5
14872echo "${ECHO_T}no" >&6
14873fi
14874
14875 AR=$ac_ct_AR
14876else
14877 AR="$ac_cv_prog_AR"
14878fi
14879
a848cd7e 14880if test "x$AR" = "x" ; then
77ffb593
JS
14881 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
14882echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
14883 { (exit 1); exit 1; }; }
14884fi
14885
14886# Find a good install program. We prefer a C program (faster),
14887# so one script is as good as another. But avoid the broken or
14888# incompatible versions:
14889# SysV /etc/install, /usr/sbin/install
14890# SunOS /usr/etc/install
14891# IRIX /sbin/install
14892# AIX /bin/install
14893# AmigaOS /C/install, which installs bootblocks on floppy discs
14894# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
14895# AFS /usr/afsws/bin/install, which mishandles nonexistent args
14896# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 14897# OS/2's system install, which has a completely different semantic
a848cd7e
SC
14898# ./install, which can be erroneously created by make from ./install.sh.
14899echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
14900echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
14901if test -z "$INSTALL"; then
14902if test "${ac_cv_path_install+set}" = set; then
14903 echo $ECHO_N "(cached) $ECHO_C" >&6
14904else
14905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14906for as_dir in $PATH
14907do
14908 IFS=$as_save_IFS
14909 test -z "$as_dir" && as_dir=.
14910 # Account for people who put trailing slashes in PATH elements.
14911case $as_dir/ in
14912 ./ | .// | /cC/* | \
14913 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 14914 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
14915 /usr/ucb/* ) ;;
14916 *)
14917 # OSF1 and SCO ODT 3.0 have their own names for install.
14918 # Don't use installbsd from OSF since it installs stuff as root
14919 # by default.
14920 for ac_prog in ginstall scoinst install; do
14921 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
14922 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
14923 if test $ac_prog = install &&
14924 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14925 # AIX install. It has an incompatible calling convention.
14926 :
14927 elif test $ac_prog = install &&
14928 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14929 # program-specific install script used by HP pwplus--don't use.
14930 :
14931 else
14932 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
14933 break 3
14934 fi
14935 fi
a848cd7e
SC
14936 done
14937 done
14938 ;;
14939esac
14940done
14941
14942
14943fi
14944 if test "${ac_cv_path_install+set}" = set; then
14945 INSTALL=$ac_cv_path_install
14946 else
14947 # As a last resort, use the slow shell script. We don't cache a
14948 # path for INSTALL within a source directory, because that will
14949 # break other packages using the cache if that directory is
14950 # removed, or if the path is relative.
14951 INSTALL=$ac_install_sh
14952 fi
14953fi
14954echo "$as_me:$LINENO: result: $INSTALL" >&5
14955echo "${ECHO_T}$INSTALL" >&6
14956
14957# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
14958# It thinks the first close brace ends the variable substitution.
14959test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
14960
14961test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
14962
14963test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
14964
14965
14966case ${INSTALL} in
14967 /* ) # Absolute
14968 ;;
14969 ?:* ) # Drive letter, considered as absolute.
14970 ;;
14971 *)
14972 INSTALL=`pwd`/${INSTALL} ;;
14973esac
14974
a848cd7e
SC
14975
14976case "${host}" in
14977
cfda0ea8 14978 *-*-darwin* )
a848cd7e
SC
14979 INSTALL_PROGRAM="cp -fp"
14980 INSTALL_DATA="cp -fp"
14981 ;;
14982 *)
14983 ;;
14984esac
14985
8c80d384
DE
14986if test -n "$ac_tool_prefix"; then
14987 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14988set dummy ${ac_tool_prefix}strip; ac_word=$2
a848cd7e
SC
14989echo "$as_me:$LINENO: checking for $ac_word" >&5
14990echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14991if test "${ac_cv_prog_STRIP+set}" = set; then
14992 echo $ECHO_N "(cached) $ECHO_C" >&6
14993else
14994 if test -n "$STRIP"; then
14995 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14996else
14997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14998for as_dir in $PATH
14999do
15000 IFS=$as_save_IFS
15001 test -z "$as_dir" && as_dir=.
15002 for ac_exec_ext in '' $ac_executable_extensions; do
15003 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 15004 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
a848cd7e
SC
15005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15006 break 2
15007 fi
15008done
15009done
15010
a848cd7e
SC
15011fi
15012fi
15013STRIP=$ac_cv_prog_STRIP
15014if test -n "$STRIP"; then
15015 echo "$as_me:$LINENO: result: $STRIP" >&5
15016echo "${ECHO_T}$STRIP" >&6
15017else
15018 echo "$as_me:$LINENO: result: no" >&5
15019echo "${ECHO_T}no" >&6
15020fi
15021
8c80d384
DE
15022fi
15023if test -z "$ac_cv_prog_STRIP"; then
15024 ac_ct_STRIP=$STRIP
15025 # Extract the first word of "strip", so it can be a program name with args.
15026set dummy strip; ac_word=$2
15027echo "$as_me:$LINENO: checking for $ac_word" >&5
15028echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15029if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
15030 echo $ECHO_N "(cached) $ECHO_C" >&6
15031else
15032 if test -n "$ac_ct_STRIP"; then
15033 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15034else
15035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15036for as_dir in $PATH
15037do
15038 IFS=$as_save_IFS
15039 test -z "$as_dir" && as_dir=.
15040 for ac_exec_ext in '' $ac_executable_extensions; do
15041 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15042 ac_cv_prog_ac_ct_STRIP="strip"
15043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15044 break 2
15045 fi
15046done
15047done
15048
15049 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="true"
15050fi
15051fi
15052ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15053if test -n "$ac_ct_STRIP"; then
15054 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
15055echo "${ECHO_T}$ac_ct_STRIP" >&6
15056else
15057 echo "$as_me:$LINENO: result: no" >&5
15058echo "${ECHO_T}no" >&6
15059fi
15060
15061 STRIP=$ac_ct_STRIP
15062else
15063 STRIP="$ac_cv_prog_STRIP"
15064fi
15065
15066
15067if test "$wxUSE_WINE" = "yes"; then
15068 if test -n "$ac_tool_prefix"; then
15069 # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args.
15070set dummy ${ac_tool_prefix}wrc; ac_word=$2
15071echo "$as_me:$LINENO: checking for $ac_word" >&5
15072echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 15073if test "${ac_cv_prog_WINDRES+set}" = set; then
8c80d384
DE
15074 echo $ECHO_N "(cached) $ECHO_C" >&6
15075else
8ced02f6
DE
15076 if test -n "$WINDRES"; then
15077 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8c80d384
DE
15078else
15079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15080for as_dir in $PATH
15081do
15082 IFS=$as_save_IFS
15083 test -z "$as_dir" && as_dir=.
15084 for ac_exec_ext in '' $ac_executable_extensions; do
15085 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 15086 ac_cv_prog_WINDRES="${ac_tool_prefix}wrc"
8c80d384
DE
15087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15088 break 2
15089 fi
15090done
15091done
15092
15093fi
15094fi
8ced02f6
DE
15095WINDRES=$ac_cv_prog_WINDRES
15096if test -n "$WINDRES"; then
15097 echo "$as_me:$LINENO: result: $WINDRES" >&5
15098echo "${ECHO_T}$WINDRES" >&6
8c80d384
DE
15099else
15100 echo "$as_me:$LINENO: result: no" >&5
15101echo "${ECHO_T}no" >&6
15102fi
15103
15104fi
8ced02f6
DE
15105if test -z "$ac_cv_prog_WINDRES"; then
15106 ac_ct_WINDRES=$WINDRES
8c80d384
DE
15107 # Extract the first word of "wrc", so it can be a program name with args.
15108set dummy wrc; ac_word=$2
15109echo "$as_me:$LINENO: checking for $ac_word" >&5
15110echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 15111if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
8c80d384
DE
15112 echo $ECHO_N "(cached) $ECHO_C" >&6
15113else
8ced02f6
DE
15114 if test -n "$ac_ct_WINDRES"; then
15115 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
8c80d384
DE
15116else
15117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15118for as_dir in $PATH
15119do
15120 IFS=$as_save_IFS
15121 test -z "$as_dir" && as_dir=.
15122 for ac_exec_ext in '' $ac_executable_extensions; do
15123 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 15124 ac_cv_prog_ac_ct_WINDRES="wrc"
8c80d384
DE
15125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15126 break 2
15127 fi
15128done
15129done
15130
15131fi
15132fi
8ced02f6
DE
15133ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
15134if test -n "$ac_ct_WINDRES"; then
15135 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
15136echo "${ECHO_T}$ac_ct_WINDRES" >&6
8c80d384
DE
15137else
15138 echo "$as_me:$LINENO: result: no" >&5
15139echo "${ECHO_T}no" >&6
15140fi
15141
8ced02f6 15142 WINDRES=$ac_ct_WINDRES
8c80d384 15143else
8ced02f6 15144 WINDRES="$ac_cv_prog_WINDRES"
8c80d384
DE
15145fi
15146
004ee6da 15147 RESCOMP="$WINDRES"
8c80d384
DE
15148else
15149 case "${host}" in
15150 *-*-cygwin* | *-*-mingw32* )
004ee6da
RL
15151 if test -n "$ac_tool_prefix"; then
15152 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
15153set dummy ${ac_tool_prefix}windres; ac_word=$2
15154echo "$as_me:$LINENO: checking for $ac_word" >&5
15155echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15156if test "${ac_cv_prog_WINDRES+set}" = set; then
15157 echo $ECHO_N "(cached) $ECHO_C" >&6
15158else
15159 if test -n "$WINDRES"; then
15160 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
15161else
15162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15163for as_dir in $PATH
15164do
15165 IFS=$as_save_IFS
15166 test -z "$as_dir" && as_dir=.
15167 for ac_exec_ext in '' $ac_executable_extensions; do
15168 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15169 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
15170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15171 break 2
15172 fi
15173done
15174done
15175
15176fi
15177fi
15178WINDRES=$ac_cv_prog_WINDRES
15179if test -n "$WINDRES"; then
15180 echo "$as_me:$LINENO: result: $WINDRES" >&5
15181echo "${ECHO_T}$WINDRES" >&6
15182else
15183 echo "$as_me:$LINENO: result: no" >&5
15184echo "${ECHO_T}no" >&6
15185fi
15186
15187fi
15188if test -z "$ac_cv_prog_WINDRES"; then
15189 ac_ct_WINDRES=$WINDRES
15190 # Extract the first word of "windres", so it can be a program name with args.
15191set dummy windres; ac_word=$2
15192echo "$as_me:$LINENO: checking for $ac_word" >&5
15193echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15194if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
15195 echo $ECHO_N "(cached) $ECHO_C" >&6
15196else
15197 if test -n "$ac_ct_WINDRES"; then
15198 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
15199else
15200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15201for as_dir in $PATH
15202do
15203 IFS=$as_save_IFS
15204 test -z "$as_dir" && as_dir=.
15205 for ac_exec_ext in '' $ac_executable_extensions; do
15206 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15207 ac_cv_prog_ac_ct_WINDRES="windres"
15208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15209 break 2
15210 fi
15211done
15212done
15213
15214fi
15215fi
15216ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
15217if test -n "$ac_ct_WINDRES"; then
15218 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
15219echo "${ECHO_T}$ac_ct_WINDRES" >&6
15220else
15221 echo "$as_me:$LINENO: result: no" >&5
15222echo "${ECHO_T}no" >&6
15223fi
15224
15225 WINDRES=$ac_ct_WINDRES
15226else
15227 WINDRES="$ac_cv_prog_WINDRES"
15228fi
15229
15230 RESCOMP="$WINDRES"
15231 if test -n "$ac_tool_prefix"; then
8c80d384
DE
15232 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
15233set dummy ${ac_tool_prefix}dlltool; ac_word=$2
15234echo "$as_me:$LINENO: checking for $ac_word" >&5
15235echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15236if test "${ac_cv_prog_DLLTOOL+set}" = set; then
15237 echo $ECHO_N "(cached) $ECHO_C" >&6
15238else
15239 if test -n "$DLLTOOL"; then
15240 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
15241else
15242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15243for as_dir in $PATH
15244do
15245 IFS=$as_save_IFS
15246 test -z "$as_dir" && as_dir=.
15247 for ac_exec_ext in '' $ac_executable_extensions; do
15248 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15249 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
15250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15251 break 2
15252 fi
15253done
15254done
15255
15256fi
15257fi
15258DLLTOOL=$ac_cv_prog_DLLTOOL
15259if test -n "$DLLTOOL"; then
15260 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
15261echo "${ECHO_T}$DLLTOOL" >&6
15262else
15263 echo "$as_me:$LINENO: result: no" >&5
15264echo "${ECHO_T}no" >&6
15265fi
15266
15267fi
15268if test -z "$ac_cv_prog_DLLTOOL"; then
15269 ac_ct_DLLTOOL=$DLLTOOL
15270 # Extract the first word of "dlltool", so it can be a program name with args.
15271set dummy dlltool; ac_word=$2
15272echo "$as_me:$LINENO: checking for $ac_word" >&5
15273echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15274if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
15275 echo $ECHO_N "(cached) $ECHO_C" >&6
15276else
15277 if test -n "$ac_ct_DLLTOOL"; then
15278 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
15279else
15280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15281for as_dir in $PATH
15282do
15283 IFS=$as_save_IFS
15284 test -z "$as_dir" && as_dir=.
15285 for ac_exec_ext in '' $ac_executable_extensions; do
15286 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15287 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
15288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15289 break 2
15290 fi
15291done
15292done
15293
15294fi
15295fi
15296ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
15297if test -n "$ac_ct_DLLTOOL"; then
15298 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
15299echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
15300else
15301 echo "$as_me:$LINENO: result: no" >&5
15302echo "${ECHO_T}no" >&6
15303fi
15304
15305 DLLTOOL=$ac_ct_DLLTOOL
15306else
15307 DLLTOOL="$ac_cv_prog_DLLTOOL"
15308fi
15309
15310 ;;
15311 esac
15312fi
a848cd7e
SC
15313
15314echo "$as_me:$LINENO: checking if make is GNU make" >&5
15315echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
15316if test "${wx_cv_prog_makeisgnu+set}" = set; then
15317 echo $ECHO_N "(cached) $ECHO_C" >&6
15318else
15319
15320 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
15321 egrep -s GNU > /dev/null); then
15322 wx_cv_prog_makeisgnu="yes"
15323 else
15324 wx_cv_prog_makeisgnu="no"
15325 fi
15326
15327fi
15328echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
15329echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
15330
15331if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
15332 IF_GNU_MAKE=""
15333else
15334 IF_GNU_MAKE="#"
15335fi
15336
15337
15338
15339if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
15340echo "$as_me:$LINENO: checking if make supports VPATH" >&5
15341echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
15342if test "${wx_cv_prog_makevpath+set}" = set; then
15343 echo $ECHO_N "(cached) $ECHO_C" >&6
15344else
15345
15346cat - << EOF > confMake
15347check : file
15348 cp \$? \$@
15349 cp \$? final_file
15350EOF
15351
15352if test ! -d sub ; then
15353 mkdir sub
15354fi
15355echo dummy > sub/file
15356${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
15357RESULT=$?
15358rm -f sub/file check final_file confMake
15359rmdir sub
15360if test "$RESULT" = 0; then
15361 wx_cv_prog_makevpath="yes"
15362else
15363 wx_cv_prog_makevpath="no"
15364fi
15365
15366fi
15367echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
15368echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
15369
15370if test "x$wx_cv_prog_makevpath" != "xyes"; then
15371{ { echo "$as_me:$LINENO: error:
15372You need a make-utility that is able to use the variable
15373VPATH correctly.
15374If your version of make does not support VPATH correctly,
15375please install GNU-make (possibly as gmake), and start
15376configure with the following command:
15377export MAKE=gmake; ./configure for sh-type shells
15378setenv MAKE gmake; ./configure for csh-type shells
15379Also please do remember to use gmake in this case every time
15380you are trying to compile.
15381" >&5
15382echo "$as_me: error:
15383You need a make-utility that is able to use the variable
15384VPATH correctly.
15385If your version of make does not support VPATH correctly,
15386please install GNU-make (possibly as gmake), and start
15387configure with the following command:
15388export MAKE=gmake; ./configure for sh-type shells
15389setenv MAKE gmake; ./configure for csh-type shells
15390Also please do remember to use gmake in this case every time
15391you are trying to compile.
15392" >&2;}
15393 { (exit 1); exit 1; }; }
15394fi fi
15395echo "$as_me:$LINENO: checking whether ln -s works" >&5
15396echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
15397LN_S=$as_ln_s
15398if test "$LN_S" = "ln -s"; then
15399 echo "$as_me:$LINENO: result: yes" >&5
15400echo "${ECHO_T}yes" >&6
15401else
15402 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
15403echo "${ECHO_T}no, using $LN_S" >&6
15404fi
15405
15406
bcaab0f9 15407
a848cd7e 15408
2113bc77 15409if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
c92ad099 15410 CXXFLAGS="-qunique $CXXFLAGS"
9273ffba
DE
15411fi
15412
4d7ec9f1
DE
15413case "${host}" in
15414 powerpc-*-darwin* )
15415 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
15416echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
15417 cat >conftest.$ac_ext <<_ACEOF
15418/* confdefs.h. */
15419_ACEOF
15420cat confdefs.h >>conftest.$ac_ext
15421cat >>conftest.$ac_ext <<_ACEOF
15422/* end confdefs.h. */
15423
15424int
15425main ()
15426{
15427#ifndef __POWERPC__
15428 choke me for lack of PowerPC
15429#endif
15430
15431 ;
15432 return 0;
15433}
15434_ACEOF
15435rm -f conftest.$ac_objext
15436if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15437 (eval $ac_compile) 2>conftest.er1
15438 ac_status=$?
15439 grep -v '^ *+' conftest.er1 >conftest.err
15440 rm -f conftest.er1
15441 cat conftest.err >&5
15442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443 (exit $ac_status); } &&
c9a66001 15444 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
15445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15446 (eval $ac_try) 2>&5
15447 ac_status=$?
15448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449 (exit $ac_status); }; } &&
15450 { ac_try='test -s conftest.$ac_objext'
15451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15452 (eval $ac_try) 2>&5
15453 ac_status=$?
15454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15455 (exit $ac_status); }; }; then
15456 echo "$as_me:$LINENO: result: yes" >&5
15457echo "${ECHO_T}yes" >&6
15458else
15459 echo "$as_me: failed program was:" >&5
15460sed 's/^/| /' conftest.$ac_ext >&5
15461
15462echo "$as_me:$LINENO: result: no" >&5
15463echo "${ECHO_T}no" >&6
15464 cat >>confdefs.h <<\_ACEOF
15465#define __POWERPC__ 1
15466_ACEOF
15467
15468
15469fi
15470rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cfda0ea8
DE
15471 ;;
15472esac
15473
15474case "${host}" in
15475 *-*-darwin* )
4d7ec9f1
DE
15476 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
15477echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
15478 cat >conftest.$ac_ext <<_ACEOF
15479/* confdefs.h. */
15480_ACEOF
15481cat confdefs.h >>conftest.$ac_ext
15482cat >>conftest.$ac_ext <<_ACEOF
15483/* end confdefs.h. */
15484#include <CoreFoundation/CFBase.h>
15485
15486int
15487main ()
15488{
15489
15490 ;
15491 return 0;
15492}
15493_ACEOF
15494rm -f conftest.$ac_objext
15495if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15496 (eval $ac_compile) 2>conftest.er1
15497 ac_status=$?
15498 grep -v '^ *+' conftest.er1 >conftest.err
15499 rm -f conftest.er1
15500 cat conftest.err >&5
15501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15502 (exit $ac_status); } &&
c9a66001 15503 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
15504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15505 (eval $ac_try) 2>&5
15506 ac_status=$?
15507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15508 (exit $ac_status); }; } &&
15509 { ac_try='test -s conftest.$ac_objext'
15510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15511 (eval $ac_try) 2>&5
15512 ac_status=$?
15513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15514 (exit $ac_status); }; }; then
15515 echo "$as_me:$LINENO: result: yes" >&5
15516echo "${ECHO_T}yes" >&6
15517else
15518 echo "$as_me: failed program was:" >&5
15519sed 's/^/| /' conftest.$ac_ext >&5
15520
15521echo "$as_me:$LINENO: result: no" >&5
15522echo "${ECHO_T}no" >&6
15523 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
15524echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
15525 cat >conftest.$ac_ext <<_ACEOF
15526/* confdefs.h. */
15527_ACEOF
15528cat confdefs.h >>conftest.$ac_ext
15529cat >>conftest.$ac_ext <<_ACEOF
15530/* end confdefs.h. */
15531#define __CF_USE_FRAMEWORK_INCLUDES__
15532#include <CoreFoundation/CFBase.h>
15533
15534int
15535main ()
15536{
15537
15538 ;
15539 return 0;
15540}
15541_ACEOF
15542rm -f conftest.$ac_objext
15543if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15544 (eval $ac_compile) 2>conftest.er1
15545 ac_status=$?
15546 grep -v '^ *+' conftest.er1 >conftest.err
15547 rm -f conftest.er1
15548 cat conftest.err >&5
15549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15550 (exit $ac_status); } &&
c9a66001 15551 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
15552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15553 (eval $ac_try) 2>&5
15554 ac_status=$?
15555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556 (exit $ac_status); }; } &&
15557 { ac_try='test -s conftest.$ac_objext'
15558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15559 (eval $ac_try) 2>&5
15560 ac_status=$?
15561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15562 (exit $ac_status); }; }; then
15563 echo "$as_me:$LINENO: result: yes" >&5
15564echo "${ECHO_T}yes" >&6
c92ad099 15565 CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
4d7ec9f1
DE
15566else
15567 echo "$as_me: failed program was:" >&5
15568sed 's/^/| /' conftest.$ac_ext >&5
15569
15570{ { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
15571See \`config.log' for more details." >&5
15572echo "$as_me: error: no. CoreFoundation not available.
15573See \`config.log' for more details." >&2;}
15574 { (exit 1); exit 1; }; }
15575
15576fi
15577rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15578
15579
15580fi
15581rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15582 ;;
15583esac
15584
a848cd7e
SC
15585case "${host}" in
15586 *-pc-os2_emx | *-pc-os2-emx )
6ba87b06
SN
15587 ac_ext=c
15588ac_cpp='$CPP $CPPFLAGS'
15589ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15590ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15591ac_compiler_gnu=$ac_cv_c_compiler_gnu
15592
15593 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
a848cd7e
SC
15594 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
15595echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
15596if test "${ac_cv_lib_cExt_drand48+set}" = set; then
15597 echo $ECHO_N "(cached) $ECHO_C" >&6
15598else
15599 ac_check_lib_save_LIBS=$LIBS
15600LIBS="-lcExt $LIBS"
15601cat >conftest.$ac_ext <<_ACEOF
15602/* confdefs.h. */
15603_ACEOF
15604cat confdefs.h >>conftest.$ac_ext
15605cat >>conftest.$ac_ext <<_ACEOF
15606/* end confdefs.h. */
15607
15608/* Override any gcc2 internal prototype to avoid an error. */
15609#ifdef __cplusplus
15610extern "C"
15611#endif
15612/* We use char because int might match the return type of a gcc2
15613 builtin and then its argument prototype would still apply. */
15614char drand48 ();
15615int
15616main ()
15617{
15618drand48 ();
15619 ;
15620 return 0;
15621}
15622_ACEOF
15623rm -f conftest.$ac_objext conftest$ac_exeext
15624if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15625 (eval $ac_link) 2>conftest.er1
a848cd7e 15626 ac_status=$?
ac1cb8d3
VS
15627 grep -v '^ *+' conftest.er1 >conftest.err
15628 rm -f conftest.er1
15629 cat conftest.err >&5
a848cd7e
SC
15630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15631 (exit $ac_status); } &&
c9a66001 15632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15634 (eval $ac_try) 2>&5
15635 ac_status=$?
15636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15637 (exit $ac_status); }; } &&
15638 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15640 (eval $ac_try) 2>&5
15641 ac_status=$?
15642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15643 (exit $ac_status); }; }; then
15644 ac_cv_lib_cExt_drand48=yes
15645else
15646 echo "$as_me: failed program was:" >&5
15647sed 's/^/| /' conftest.$ac_ext >&5
15648
15649ac_cv_lib_cExt_drand48=no
15650fi
ac1cb8d3
VS
15651rm -f conftest.err conftest.$ac_objext \
15652 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15653LIBS=$ac_check_lib_save_LIBS
15654fi
15655echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
15656echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
15657if test $ac_cv_lib_cExt_drand48 = yes; then
15658 LIBS="$LIBS -lcExt"
15659fi
15660
15661 else
15662 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
15663 fi
69120ee4
VZ
15664 echo "$as_me:$LINENO: checking for gcc/libc version" >&5
15665echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
a848cd7e
SC
15666if test "${wx_cv_gccversion+set}" = set; then
15667 echo $ECHO_N "(cached) $ECHO_C" >&6
15668else
15669
391a765e
VS
15670 if test "$cross_compiling" = yes; then
15671 wx_cv_gccversion="EMX2"
15672
15673else
15674 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
15675/* confdefs.h. */
15676_ACEOF
15677cat confdefs.h >>conftest.$ac_ext
15678cat >>conftest.$ac_ext <<_ACEOF
15679/* end confdefs.h. */
15680
391a765e 15681 #include <stdio.h>
a848cd7e 15682
391a765e
VS
15683 int main()
15684 {
15685 FILE *f=fopen("conftestval", "w");
15686 if (!f) exit(1);
15687 fprintf(f,
a848cd7e 15688 #if (__GNUC__ < 3)
391a765e
VS
15689 "EMX2"
15690 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
15691 "EMX3"
15692 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
15693 "Innotek5"
15694 #else
15695 "Innotek6"
a848cd7e 15696 #endif
391a765e
VS
15697 );
15698 exit(0);
15699 }
a848cd7e 15700
a848cd7e 15701_ACEOF
391a765e
VS
15702rm -f conftest$ac_exeext
15703if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15704 (eval $ac_link) 2>&5
ac1cb8d3
VS
15705 ac_status=$?
15706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 15707 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a848cd7e
SC
15708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15709 (eval $ac_try) 2>&5
15710 ac_status=$?
15711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15712 (exit $ac_status); }; }; then
391a765e 15713 wx_cv_gccversion=`cat conftestval`
a848cd7e 15714else
391a765e
VS
15715 echo "$as_me: program exited with status $ac_status" >&5
15716echo "$as_me: failed program was:" >&5
a848cd7e
SC
15717sed 's/^/| /' conftest.$ac_ext >&5
15718
391a765e
VS
15719( exit $ac_status )
15720wx_cv_gccversion="EMX2"
a848cd7e 15721fi
391a765e 15722rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 15723fi
a848cd7e
SC
15724
15725fi
15726echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
15727echo "${ECHO_T}$wx_cv_gccversion" >&6
6ba87b06
SN
15728 ac_ext=cc
15729ac_cpp='$CXXCPP $CPPFLAGS'
15730ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15731ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15732ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15733
391a765e 15734 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
15735 LIBS="$LIBS -lstdcpp"
15736 LDFLAGS="$LDFLAGS -Zsysv-signals"
15737 else
391a765e 15738 if test "$wx_cv_gccversion" = "EMX3"; then
ddd14b14 15739 LIBS="$LIBS -lstdcxx -lgcc"
a848cd7e
SC
15740 LDFLAGS="$LDFLAGS -Zsysv-signals"
15741 else
15742 LIBS="$LIBS -lstdc++"
15743 fi
15744 fi
94acd38e
DE
15745 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
15746 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
15747echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
15748 wxUSE_OMF=yes
2da0c077 15749 enable_omf=yes
a848cd7e
SC
15750 fi
15751 ;;
15752 *)
15753
95986553 15754 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
15755echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
15756if test "${ac_cv_string_strcasecmp+set}" = set; then
15757 echo $ECHO_N "(cached) $ECHO_C" >&6
15758else
15759
15760 cat >conftest.$ac_ext <<_ACEOF
15761/* confdefs.h. */
15762_ACEOF
15763cat confdefs.h >>conftest.$ac_ext
15764cat >>conftest.$ac_ext <<_ACEOF
15765/* end confdefs.h. */
15766
15767 #include <string.h>
15768
15769int
15770main ()
15771{
15772
15773 strcasecmp("foo", "bar");
15774
15775 ;
15776 return 0;
15777}
15778_ACEOF
15779rm -f conftest.$ac_objext conftest$ac_exeext
15780if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15781 (eval $ac_link) 2>conftest.er1
a848cd7e 15782 ac_status=$?
ac1cb8d3
VS
15783 grep -v '^ *+' conftest.er1 >conftest.err
15784 rm -f conftest.er1
15785 cat conftest.err >&5
a848cd7e
SC
15786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15787 (exit $ac_status); } &&
c9a66001 15788 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15790 (eval $ac_try) 2>&5
15791 ac_status=$?
15792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15793 (exit $ac_status); }; } &&
15794 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15796 (eval $ac_try) 2>&5
15797 ac_status=$?
15798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15799 (exit $ac_status); }; }; then
15800 ac_cv_string_strcasecmp=yes
15801else
15802 echo "$as_me: failed program was:" >&5
15803sed 's/^/| /' conftest.$ac_ext >&5
15804
15805ac_cv_string_strcasecmp=no
15806
15807fi
ac1cb8d3
VS
15808rm -f conftest.err conftest.$ac_objext \
15809 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15810
15811fi
15812echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
15813echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
15814
15815 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
15816 cat >>confdefs.h <<\_ACEOF
15817#define HAVE_STRCASECMP_IN_STRING_H 1
15818_ACEOF
15819
15820 else
15821 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
15822echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
15823if test "${ac_cv_strings_strcasecmp+set}" = set; then
15824 echo $ECHO_N "(cached) $ECHO_C" >&6
15825else
15826
15827 cat >conftest.$ac_ext <<_ACEOF
15828/* confdefs.h. */
15829_ACEOF
15830cat confdefs.h >>conftest.$ac_ext
15831cat >>conftest.$ac_ext <<_ACEOF
15832/* end confdefs.h. */
15833
15834 #include <strings.h>
15835
15836int
15837main ()
15838{
15839
15840 strcasecmp("foo", "bar");
15841
15842 ;
15843 return 0;
15844}
15845_ACEOF
15846rm -f conftest.$ac_objext conftest$ac_exeext
15847if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15848 (eval $ac_link) 2>conftest.er1
a848cd7e 15849 ac_status=$?
ac1cb8d3
VS
15850 grep -v '^ *+' conftest.er1 >conftest.err
15851 rm -f conftest.er1
15852 cat conftest.err >&5
a848cd7e
SC
15853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854 (exit $ac_status); } &&
c9a66001 15855 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15857 (eval $ac_try) 2>&5
15858 ac_status=$?
15859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15860 (exit $ac_status); }; } &&
15861 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15863 (eval $ac_try) 2>&5
15864 ac_status=$?
15865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15866 (exit $ac_status); }; }; then
15867 ac_cv_strings_strcasecmp=yes
15868else
15869 echo "$as_me: failed program was:" >&5
15870sed 's/^/| /' conftest.$ac_ext >&5
15871
15872ac_cv_strings_strcasecmp=no
15873
15874fi
ac1cb8d3
VS
15875rm -f conftest.err conftest.$ac_objext \
15876 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15877
15878fi
15879echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
15880echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
15881
0c3c69fc 15882 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
15883 cat >>confdefs.h <<\_ACEOF
15884#define HAVE_STRCASECMP_IN_STRINGS_H 1
15885_ACEOF
15886
15887 else
15888 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
15889echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
15890 { (exit 1); exit 1; }; }
15891 fi
15892 fi
15893
a848cd7e
SC
15894 ;;
15895esac
15896
15897
5d7b7554
VZ
15898ac_ext=cc
15899ac_cpp='$CXXCPP $CPPFLAGS'
15900ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15901ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15902ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15903echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
15904echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
15905if test -z "$CXXCPP"; then
15906 if test "${ac_cv_prog_CXXCPP+set}" = set; then
15907 echo $ECHO_N "(cached) $ECHO_C" >&6
15908else
15909 # Double quotes because CXXCPP needs to be expanded
15910 for CXXCPP in "$CXX -E" "/lib/cpp"
15911 do
15912 ac_preproc_ok=false
15913for ac_cxx_preproc_warn_flag in '' yes
15914do
15915 # Use a header file that comes with gcc, so configuring glibc
15916 # with a fresh cross-compiler works.
15917 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15918 # <limits.h> exists even on freestanding compilers.
15919 # On the NeXT, cc -E runs the code through the compiler's parser,
15920 # not just through cpp. "Syntax error" is here to catch this case.
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#ifdef __STDC__
15928# include <limits.h>
15929#else
15930# include <assert.h>
15931#endif
15932 Syntax error
15933_ACEOF
15934if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15935 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15936 ac_status=$?
15937 grep -v '^ *+' conftest.er1 >conftest.err
15938 rm -f conftest.er1
15939 cat conftest.err >&5
15940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15941 (exit $ac_status); } >/dev/null; then
15942 if test -s conftest.err; then
15943 ac_cpp_err=$ac_cxx_preproc_warn_flag
15944 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15945 else
15946 ac_cpp_err=
15947 fi
15948else
15949 ac_cpp_err=yes
15950fi
15951if test -z "$ac_cpp_err"; then
15952 :
15953else
15954 echo "$as_me: failed program was:" >&5
15955sed 's/^/| /' conftest.$ac_ext >&5
15956
15957 # Broken: fails on valid input.
15958continue
15959fi
15960rm -f conftest.err conftest.$ac_ext
15961
15962 # OK, works on sane cases. Now check whether non-existent headers
15963 # can be detected and how.
15964 cat >conftest.$ac_ext <<_ACEOF
15965/* confdefs.h. */
15966_ACEOF
15967cat confdefs.h >>conftest.$ac_ext
15968cat >>conftest.$ac_ext <<_ACEOF
15969/* end confdefs.h. */
15970#include <ac_nonexistent.h>
15971_ACEOF
15972if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15973 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15974 ac_status=$?
15975 grep -v '^ *+' conftest.er1 >conftest.err
15976 rm -f conftest.er1
15977 cat conftest.err >&5
15978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15979 (exit $ac_status); } >/dev/null; then
15980 if test -s conftest.err; then
15981 ac_cpp_err=$ac_cxx_preproc_warn_flag
15982 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15983 else
15984 ac_cpp_err=
15985 fi
15986else
15987 ac_cpp_err=yes
15988fi
15989if test -z "$ac_cpp_err"; then
15990 # Broken: success on invalid input.
15991continue
15992else
15993 echo "$as_me: failed program was:" >&5
15994sed 's/^/| /' conftest.$ac_ext >&5
15995
15996 # Passes both tests.
15997ac_preproc_ok=:
15998break
15999fi
16000rm -f conftest.err conftest.$ac_ext
16001
16002done
16003# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16004rm -f conftest.err conftest.$ac_ext
16005if $ac_preproc_ok; then
16006 break
16007fi
16008
16009 done
16010 ac_cv_prog_CXXCPP=$CXXCPP
16011
16012fi
16013 CXXCPP=$ac_cv_prog_CXXCPP
16014else
16015 ac_cv_prog_CXXCPP=$CXXCPP
16016fi
16017echo "$as_me:$LINENO: result: $CXXCPP" >&5
16018echo "${ECHO_T}$CXXCPP" >&6
16019ac_preproc_ok=false
16020for ac_cxx_preproc_warn_flag in '' yes
16021do
16022 # Use a header file that comes with gcc, so configuring glibc
16023 # with a fresh cross-compiler works.
16024 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16025 # <limits.h> exists even on freestanding compilers.
16026 # On the NeXT, cc -E runs the code through the compiler's parser,
16027 # not just through cpp. "Syntax error" is here to catch this case.
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#ifdef __STDC__
16035# include <limits.h>
16036#else
16037# include <assert.h>
16038#endif
16039 Syntax error
16040_ACEOF
16041if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16042 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16043 ac_status=$?
16044 grep -v '^ *+' conftest.er1 >conftest.err
16045 rm -f conftest.er1
16046 cat conftest.err >&5
16047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16048 (exit $ac_status); } >/dev/null; then
16049 if test -s conftest.err; then
16050 ac_cpp_err=$ac_cxx_preproc_warn_flag
16051 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16052 else
16053 ac_cpp_err=
16054 fi
16055else
16056 ac_cpp_err=yes
16057fi
16058if test -z "$ac_cpp_err"; then
16059 :
16060else
16061 echo "$as_me: failed program was:" >&5
16062sed 's/^/| /' conftest.$ac_ext >&5
16063
16064 # Broken: fails on valid input.
16065continue
16066fi
16067rm -f conftest.err conftest.$ac_ext
16068
16069 # OK, works on sane cases. Now check whether non-existent headers
16070 # can be detected and how.
16071 cat >conftest.$ac_ext <<_ACEOF
16072/* confdefs.h. */
16073_ACEOF
16074cat confdefs.h >>conftest.$ac_ext
16075cat >>conftest.$ac_ext <<_ACEOF
16076/* end confdefs.h. */
16077#include <ac_nonexistent.h>
16078_ACEOF
16079if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16080 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16081 ac_status=$?
16082 grep -v '^ *+' conftest.er1 >conftest.err
16083 rm -f conftest.er1
16084 cat conftest.err >&5
16085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16086 (exit $ac_status); } >/dev/null; then
16087 if test -s conftest.err; then
16088 ac_cpp_err=$ac_cxx_preproc_warn_flag
16089 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16090 else
16091 ac_cpp_err=
16092 fi
16093else
16094 ac_cpp_err=yes
16095fi
16096if test -z "$ac_cpp_err"; then
16097 # Broken: success on invalid input.
16098continue
16099else
16100 echo "$as_me: failed program was:" >&5
16101sed 's/^/| /' conftest.$ac_ext >&5
16102
16103 # Passes both tests.
16104ac_preproc_ok=:
16105break
16106fi
16107rm -f conftest.err conftest.$ac_ext
16108
16109done
16110# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16111rm -f conftest.err conftest.$ac_ext
16112if $ac_preproc_ok; then
16113 :
16114else
16115 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
16116See \`config.log' for more details." >&5
16117echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
16118See \`config.log' for more details." >&2;}
16119 { (exit 1); exit 1; }; }
16120fi
16121
16122ac_ext=cc
16123ac_cpp='$CXXCPP $CPPFLAGS'
16124ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16125ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16126ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16127
16128
a848cd7e
SC
16129echo "$as_me:$LINENO: checking for ANSI C header files" >&5
16130echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
16131if test "${ac_cv_header_stdc+set}" = set; then
16132 echo $ECHO_N "(cached) $ECHO_C" >&6
16133else
16134 cat >conftest.$ac_ext <<_ACEOF
16135/* confdefs.h. */
16136_ACEOF
16137cat confdefs.h >>conftest.$ac_ext
16138cat >>conftest.$ac_ext <<_ACEOF
16139/* end confdefs.h. */
16140#include <stdlib.h>
16141#include <stdarg.h>
16142#include <string.h>
16143#include <float.h>
16144
16145int
16146main ()
16147{
16148
16149 ;
16150 return 0;
16151}
16152_ACEOF
16153rm -f conftest.$ac_objext
16154if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16155 (eval $ac_compile) 2>conftest.er1
a848cd7e 16156 ac_status=$?
ac1cb8d3
VS
16157 grep -v '^ *+' conftest.er1 >conftest.err
16158 rm -f conftest.er1
16159 cat conftest.err >&5
a848cd7e
SC
16160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16161 (exit $ac_status); } &&
c9a66001 16162 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16164 (eval $ac_try) 2>&5
16165 ac_status=$?
16166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16167 (exit $ac_status); }; } &&
16168 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16170 (eval $ac_try) 2>&5
16171 ac_status=$?
16172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16173 (exit $ac_status); }; }; then
16174 ac_cv_header_stdc=yes
16175else
16176 echo "$as_me: failed program was:" >&5
16177sed 's/^/| /' conftest.$ac_ext >&5
16178
16179ac_cv_header_stdc=no
16180fi
ac1cb8d3 16181rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16182
16183if test $ac_cv_header_stdc = yes; then
16184 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16185 cat >conftest.$ac_ext <<_ACEOF
16186/* confdefs.h. */
16187_ACEOF
16188cat confdefs.h >>conftest.$ac_ext
16189cat >>conftest.$ac_ext <<_ACEOF
16190/* end confdefs.h. */
16191#include <string.h>
16192
16193_ACEOF
16194if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16195 $EGREP "memchr" >/dev/null 2>&1; then
16196 :
16197else
16198 ac_cv_header_stdc=no
16199fi
16200rm -f conftest*
16201
16202fi
16203
16204if test $ac_cv_header_stdc = yes; then
16205 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16206 cat >conftest.$ac_ext <<_ACEOF
16207/* confdefs.h. */
16208_ACEOF
16209cat confdefs.h >>conftest.$ac_ext
16210cat >>conftest.$ac_ext <<_ACEOF
16211/* end confdefs.h. */
16212#include <stdlib.h>
16213
16214_ACEOF
16215if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16216 $EGREP "free" >/dev/null 2>&1; then
16217 :
16218else
16219 ac_cv_header_stdc=no
16220fi
16221rm -f conftest*
16222
16223fi
16224
16225if test $ac_cv_header_stdc = yes; then
16226 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16227 if test "$cross_compiling" = yes; then
16228 :
16229else
16230 cat >conftest.$ac_ext <<_ACEOF
16231/* confdefs.h. */
16232_ACEOF
16233cat confdefs.h >>conftest.$ac_ext
16234cat >>conftest.$ac_ext <<_ACEOF
16235/* end confdefs.h. */
16236#include <ctype.h>
16237#if ((' ' & 0x0FF) == 0x020)
16238# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16239# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16240#else
16241# define ISLOWER(c) \
ac1cb8d3
VS
16242 (('a' <= (c) && (c) <= 'i') \
16243 || ('j' <= (c) && (c) <= 'r') \
16244 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
16245# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16246#endif
16247
16248#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16249int
16250main ()
16251{
16252 int i;
16253 for (i = 0; i < 256; i++)
16254 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 16255 || toupper (i) != TOUPPER (i))
a848cd7e
SC
16256 exit(2);
16257 exit (0);
16258}
16259_ACEOF
16260rm -f conftest$ac_exeext
16261if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16262 (eval $ac_link) 2>&5
16263 ac_status=$?
16264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16265 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16267 (eval $ac_try) 2>&5
16268 ac_status=$?
16269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16270 (exit $ac_status); }; }; then
16271 :
16272else
16273 echo "$as_me: program exited with status $ac_status" >&5
16274echo "$as_me: failed program was:" >&5
16275sed 's/^/| /' conftest.$ac_ext >&5
16276
16277( exit $ac_status )
16278ac_cv_header_stdc=no
16279fi
ac1cb8d3 16280rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16281fi
16282fi
16283fi
16284echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
16285echo "${ECHO_T}$ac_cv_header_stdc" >&6
16286if test $ac_cv_header_stdc = yes; then
16287
16288cat >>confdefs.h <<\_ACEOF
16289#define STDC_HEADERS 1
16290_ACEOF
16291
16292fi
16293
16294# On IRIX 5.3, sys/types and inttypes.h are conflicting.
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 16305 inttypes.h stdint.h unistd.h
a848cd7e
SC
16306do
16307as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16308echo "$as_me:$LINENO: checking for $ac_header" >&5
16309echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16310if eval "test \"\${$as_ac_Header+set}\" = set"; then
16311 echo $ECHO_N "(cached) $ECHO_C" >&6
16312else
16313 cat >conftest.$ac_ext <<_ACEOF
16314/* confdefs.h. */
16315_ACEOF
16316cat confdefs.h >>conftest.$ac_ext
16317cat >>conftest.$ac_ext <<_ACEOF
16318/* end confdefs.h. */
16319$ac_includes_default
16320
16321#include <$ac_header>
16322_ACEOF
16323rm -f conftest.$ac_objext
16324if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16325 (eval $ac_compile) 2>conftest.er1
a848cd7e 16326 ac_status=$?
ac1cb8d3
VS
16327 grep -v '^ *+' conftest.er1 >conftest.err
16328 rm -f conftest.er1
16329 cat conftest.err >&5
a848cd7e
SC
16330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16331 (exit $ac_status); } &&
c9a66001 16332 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16334 (eval $ac_try) 2>&5
16335 ac_status=$?
16336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16337 (exit $ac_status); }; } &&
16338 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16340 (eval $ac_try) 2>&5
16341 ac_status=$?
16342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16343 (exit $ac_status); }; }; then
16344 eval "$as_ac_Header=yes"
16345else
16346 echo "$as_me: failed program was:" >&5
16347sed 's/^/| /' conftest.$ac_ext >&5
16348
16349eval "$as_ac_Header=no"
16350fi
ac1cb8d3 16351rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16352fi
16353echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16354echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16355if test `eval echo '${'$as_ac_Header'}'` = yes; then
16356 cat >>confdefs.h <<_ACEOF
16357#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16358_ACEOF
16359
16360fi
16361
16362done
16363
16364
16365
16366for ac_header in stdlib.h
16367do
16368as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16369if eval "test \"\${$as_ac_Header+set}\" = set"; then
16370 echo "$as_me:$LINENO: checking for $ac_header" >&5
16371echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16372if eval "test \"\${$as_ac_Header+set}\" = set"; then
16373 echo $ECHO_N "(cached) $ECHO_C" >&6
16374fi
16375echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16376echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16377else
16378 # Is the header compilable?
16379echo "$as_me:$LINENO: checking $ac_header usability" >&5
16380echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16381cat >conftest.$ac_ext <<_ACEOF
16382/* confdefs.h. */
16383_ACEOF
16384cat confdefs.h >>conftest.$ac_ext
16385cat >>conftest.$ac_ext <<_ACEOF
16386/* end confdefs.h. */
16387$ac_includes_default
16388#include <$ac_header>
16389_ACEOF
16390rm -f conftest.$ac_objext
16391if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16392 (eval $ac_compile) 2>conftest.er1
a848cd7e 16393 ac_status=$?
ac1cb8d3
VS
16394 grep -v '^ *+' conftest.er1 >conftest.err
16395 rm -f conftest.er1
16396 cat conftest.err >&5
a848cd7e
SC
16397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16398 (exit $ac_status); } &&
c9a66001 16399 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16401 (eval $ac_try) 2>&5
16402 ac_status=$?
16403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404 (exit $ac_status); }; } &&
16405 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16407 (eval $ac_try) 2>&5
16408 ac_status=$?
16409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16410 (exit $ac_status); }; }; then
16411 ac_header_compiler=yes
16412else
16413 echo "$as_me: failed program was:" >&5
16414sed 's/^/| /' conftest.$ac_ext >&5
16415
16416ac_header_compiler=no
16417fi
ac1cb8d3 16418rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16419echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16420echo "${ECHO_T}$ac_header_compiler" >&6
16421
16422# Is the header present?
16423echo "$as_me:$LINENO: checking $ac_header presence" >&5
16424echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16425cat >conftest.$ac_ext <<_ACEOF
16426/* confdefs.h. */
16427_ACEOF
16428cat confdefs.h >>conftest.$ac_ext
16429cat >>conftest.$ac_ext <<_ACEOF
16430/* end confdefs.h. */
16431#include <$ac_header>
16432_ACEOF
16433if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16434 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16435 ac_status=$?
16436 grep -v '^ *+' conftest.er1 >conftest.err
16437 rm -f conftest.er1
16438 cat conftest.err >&5
16439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16440 (exit $ac_status); } >/dev/null; then
16441 if test -s conftest.err; then
5d7b7554
VZ
16442 ac_cpp_err=$ac_cxx_preproc_warn_flag
16443 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16444 else
16445 ac_cpp_err=
16446 fi
16447else
16448 ac_cpp_err=yes
16449fi
16450if test -z "$ac_cpp_err"; then
16451 ac_header_preproc=yes
16452else
16453 echo "$as_me: failed program was:" >&5
16454sed 's/^/| /' conftest.$ac_ext >&5
16455
16456 ac_header_preproc=no
16457fi
16458rm -f conftest.err conftest.$ac_ext
16459echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16460echo "${ECHO_T}$ac_header_preproc" >&6
16461
16462# So? What about this header?
5d7b7554 16463case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16464 yes:no: )
a848cd7e
SC
16465 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16466echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16467 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16468echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16469 ac_header_preproc=yes
a848cd7e 16470 ;;
ac1cb8d3 16471 no:yes:* )
a848cd7e
SC
16472 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16473echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16474 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16475echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16476 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16477echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16478 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16479echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16480 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16481echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16482 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16483echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16484 (
16485 cat <<\_ASBOX
ac1cb8d3
VS
16486## ----------------------------------------- ##
16487## Report this to wx-dev@lists.wxwidgets.org ##
16488## ----------------------------------------- ##
a848cd7e
SC
16489_ASBOX
16490 ) |
16491 sed "s/^/$as_me: WARNING: /" >&2
16492 ;;
16493esac
16494echo "$as_me:$LINENO: checking for $ac_header" >&5
16495echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16496if eval "test \"\${$as_ac_Header+set}\" = set"; then
16497 echo $ECHO_N "(cached) $ECHO_C" >&6
16498else
ac1cb8d3 16499 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16500fi
16501echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16502echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16503
16504fi
16505if test `eval echo '${'$as_ac_Header'}'` = yes; then
16506 cat >>confdefs.h <<_ACEOF
16507#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16508_ACEOF
16509
16510fi
16511
16512done
16513
16514
16515for ac_header in malloc.h
16516do
16517as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16518if eval "test \"\${$as_ac_Header+set}\" = set"; then
16519 echo "$as_me:$LINENO: checking for $ac_header" >&5
16520echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16521if eval "test \"\${$as_ac_Header+set}\" = set"; then
16522 echo $ECHO_N "(cached) $ECHO_C" >&6
16523fi
16524echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16525echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16526else
16527 # Is the header compilable?
16528echo "$as_me:$LINENO: checking $ac_header usability" >&5
16529echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16530cat >conftest.$ac_ext <<_ACEOF
16531/* confdefs.h. */
16532_ACEOF
16533cat confdefs.h >>conftest.$ac_ext
16534cat >>conftest.$ac_ext <<_ACEOF
16535/* end confdefs.h. */
16536$ac_includes_default
16537#include <$ac_header>
16538_ACEOF
16539rm -f conftest.$ac_objext
16540if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16541 (eval $ac_compile) 2>conftest.er1
a848cd7e 16542 ac_status=$?
ac1cb8d3
VS
16543 grep -v '^ *+' conftest.er1 >conftest.err
16544 rm -f conftest.er1
16545 cat conftest.err >&5
a848cd7e
SC
16546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547 (exit $ac_status); } &&
c9a66001 16548 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16550 (eval $ac_try) 2>&5
16551 ac_status=$?
16552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16553 (exit $ac_status); }; } &&
16554 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16556 (eval $ac_try) 2>&5
16557 ac_status=$?
16558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559 (exit $ac_status); }; }; then
16560 ac_header_compiler=yes
16561else
16562 echo "$as_me: failed program was:" >&5
16563sed 's/^/| /' conftest.$ac_ext >&5
16564
16565ac_header_compiler=no
16566fi
ac1cb8d3 16567rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16568echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16569echo "${ECHO_T}$ac_header_compiler" >&6
16570
16571# Is the header present?
16572echo "$as_me:$LINENO: checking $ac_header presence" >&5
16573echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16574cat >conftest.$ac_ext <<_ACEOF
16575/* confdefs.h. */
16576_ACEOF
16577cat confdefs.h >>conftest.$ac_ext
16578cat >>conftest.$ac_ext <<_ACEOF
16579/* end confdefs.h. */
16580#include <$ac_header>
16581_ACEOF
16582if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16583 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16584 ac_status=$?
16585 grep -v '^ *+' conftest.er1 >conftest.err
16586 rm -f conftest.er1
16587 cat conftest.err >&5
16588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16589 (exit $ac_status); } >/dev/null; then
16590 if test -s conftest.err; then
5d7b7554
VZ
16591 ac_cpp_err=$ac_cxx_preproc_warn_flag
16592 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16593 else
16594 ac_cpp_err=
16595 fi
16596else
16597 ac_cpp_err=yes
16598fi
16599if test -z "$ac_cpp_err"; then
16600 ac_header_preproc=yes
16601else
16602 echo "$as_me: failed program was:" >&5
16603sed 's/^/| /' conftest.$ac_ext >&5
16604
16605 ac_header_preproc=no
16606fi
16607rm -f conftest.err conftest.$ac_ext
16608echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16609echo "${ECHO_T}$ac_header_preproc" >&6
16610
16611# So? What about this header?
5d7b7554 16612case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16613 yes:no: )
a848cd7e
SC
16614 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16615echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16616 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16617echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16618 ac_header_preproc=yes
a848cd7e 16619 ;;
ac1cb8d3 16620 no:yes:* )
a848cd7e
SC
16621 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16622echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16623 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16624echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16625 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16626echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16627 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16628echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16629 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16630echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16631 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16632echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16633 (
16634 cat <<\_ASBOX
ac1cb8d3
VS
16635## ----------------------------------------- ##
16636## Report this to wx-dev@lists.wxwidgets.org ##
16637## ----------------------------------------- ##
a848cd7e
SC
16638_ASBOX
16639 ) |
16640 sed "s/^/$as_me: WARNING: /" >&2
16641 ;;
16642esac
16643echo "$as_me:$LINENO: checking for $ac_header" >&5
16644echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16645if eval "test \"\${$as_ac_Header+set}\" = set"; then
16646 echo $ECHO_N "(cached) $ECHO_C" >&6
16647else
ac1cb8d3 16648 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16649fi
16650echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16651echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16652
16653fi
16654if test `eval echo '${'$as_ac_Header'}'` = yes; then
16655 cat >>confdefs.h <<_ACEOF
16656#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16657_ACEOF
16658
16659fi
16660
16661done
16662
16663
16664for ac_header in unistd.h
16665do
16666as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16667if eval "test \"\${$as_ac_Header+set}\" = set"; then
16668 echo "$as_me:$LINENO: checking for $ac_header" >&5
16669echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16670if eval "test \"\${$as_ac_Header+set}\" = set"; then
16671 echo $ECHO_N "(cached) $ECHO_C" >&6
16672fi
16673echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16674echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16675else
16676 # Is the header compilable?
16677echo "$as_me:$LINENO: checking $ac_header usability" >&5
16678echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16679cat >conftest.$ac_ext <<_ACEOF
16680/* confdefs.h. */
16681_ACEOF
16682cat confdefs.h >>conftest.$ac_ext
16683cat >>conftest.$ac_ext <<_ACEOF
16684/* end confdefs.h. */
16685$ac_includes_default
16686#include <$ac_header>
16687_ACEOF
16688rm -f conftest.$ac_objext
16689if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16690 (eval $ac_compile) 2>conftest.er1
a848cd7e 16691 ac_status=$?
ac1cb8d3
VS
16692 grep -v '^ *+' conftest.er1 >conftest.err
16693 rm -f conftest.er1
16694 cat conftest.err >&5
a848cd7e
SC
16695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16696 (exit $ac_status); } &&
c9a66001 16697 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16699 (eval $ac_try) 2>&5
16700 ac_status=$?
16701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16702 (exit $ac_status); }; } &&
16703 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16705 (eval $ac_try) 2>&5
16706 ac_status=$?
16707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16708 (exit $ac_status); }; }; then
16709 ac_header_compiler=yes
16710else
16711 echo "$as_me: failed program was:" >&5
16712sed 's/^/| /' conftest.$ac_ext >&5
16713
16714ac_header_compiler=no
16715fi
ac1cb8d3 16716rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16717echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16718echo "${ECHO_T}$ac_header_compiler" >&6
16719
16720# Is the header present?
16721echo "$as_me:$LINENO: checking $ac_header presence" >&5
16722echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16723cat >conftest.$ac_ext <<_ACEOF
16724/* confdefs.h. */
16725_ACEOF
16726cat confdefs.h >>conftest.$ac_ext
16727cat >>conftest.$ac_ext <<_ACEOF
16728/* end confdefs.h. */
16729#include <$ac_header>
16730_ACEOF
16731if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16732 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16733 ac_status=$?
16734 grep -v '^ *+' conftest.er1 >conftest.err
16735 rm -f conftest.er1
16736 cat conftest.err >&5
16737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16738 (exit $ac_status); } >/dev/null; then
16739 if test -s conftest.err; then
5d7b7554
VZ
16740 ac_cpp_err=$ac_cxx_preproc_warn_flag
16741 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16742 else
16743 ac_cpp_err=
16744 fi
16745else
16746 ac_cpp_err=yes
16747fi
16748if test -z "$ac_cpp_err"; then
16749 ac_header_preproc=yes
16750else
16751 echo "$as_me: failed program was:" >&5
16752sed 's/^/| /' conftest.$ac_ext >&5
16753
16754 ac_header_preproc=no
16755fi
16756rm -f conftest.err conftest.$ac_ext
16757echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16758echo "${ECHO_T}$ac_header_preproc" >&6
16759
16760# So? What about this header?
5d7b7554 16761case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16762 yes:no: )
a848cd7e
SC
16763 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16764echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16765 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16766echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16767 ac_header_preproc=yes
a848cd7e 16768 ;;
ac1cb8d3 16769 no:yes:* )
a848cd7e
SC
16770 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16771echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16772 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16773echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16774 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16775echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16776 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16777echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16778 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16779echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16780 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16781echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16782 (
16783 cat <<\_ASBOX
ac1cb8d3
VS
16784## ----------------------------------------- ##
16785## Report this to wx-dev@lists.wxwidgets.org ##
16786## ----------------------------------------- ##
a848cd7e
SC
16787_ASBOX
16788 ) |
16789 sed "s/^/$as_me: WARNING: /" >&2
16790 ;;
16791esac
16792echo "$as_me:$LINENO: checking for $ac_header" >&5
16793echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16794if eval "test \"\${$as_ac_Header+set}\" = set"; then
16795 echo $ECHO_N "(cached) $ECHO_C" >&6
16796else
ac1cb8d3 16797 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16798fi
16799echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16800echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16801
16802fi
16803if test `eval echo '${'$as_ac_Header'}'` = yes; then
16804 cat >>confdefs.h <<_ACEOF
16805#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16806_ACEOF
16807
16808fi
16809
16810done
16811
16812
16813for ac_header in wchar.h
16814do
16815as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16816if eval "test \"\${$as_ac_Header+set}\" = set"; then
16817 echo "$as_me:$LINENO: checking for $ac_header" >&5
16818echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16819if eval "test \"\${$as_ac_Header+set}\" = set"; then
16820 echo $ECHO_N "(cached) $ECHO_C" >&6
16821fi
16822echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16823echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16824else
16825 # Is the header compilable?
16826echo "$as_me:$LINENO: checking $ac_header usability" >&5
16827echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16828cat >conftest.$ac_ext <<_ACEOF
16829/* confdefs.h. */
16830_ACEOF
16831cat confdefs.h >>conftest.$ac_ext
16832cat >>conftest.$ac_ext <<_ACEOF
16833/* end confdefs.h. */
16834$ac_includes_default
16835#include <$ac_header>
16836_ACEOF
16837rm -f conftest.$ac_objext
16838if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16839 (eval $ac_compile) 2>conftest.er1
a848cd7e 16840 ac_status=$?
ac1cb8d3
VS
16841 grep -v '^ *+' conftest.er1 >conftest.err
16842 rm -f conftest.er1
16843 cat conftest.err >&5
a848cd7e
SC
16844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16845 (exit $ac_status); } &&
c9a66001 16846 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16848 (eval $ac_try) 2>&5
16849 ac_status=$?
16850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851 (exit $ac_status); }; } &&
16852 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16854 (eval $ac_try) 2>&5
16855 ac_status=$?
16856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857 (exit $ac_status); }; }; then
16858 ac_header_compiler=yes
16859else
16860 echo "$as_me: failed program was:" >&5
16861sed 's/^/| /' conftest.$ac_ext >&5
16862
16863ac_header_compiler=no
16864fi
ac1cb8d3 16865rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16866echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16867echo "${ECHO_T}$ac_header_compiler" >&6
16868
16869# Is the header present?
16870echo "$as_me:$LINENO: checking $ac_header presence" >&5
16871echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16872cat >conftest.$ac_ext <<_ACEOF
16873/* confdefs.h. */
16874_ACEOF
16875cat confdefs.h >>conftest.$ac_ext
16876cat >>conftest.$ac_ext <<_ACEOF
16877/* end confdefs.h. */
16878#include <$ac_header>
16879_ACEOF
16880if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16881 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16882 ac_status=$?
16883 grep -v '^ *+' conftest.er1 >conftest.err
16884 rm -f conftest.er1
16885 cat conftest.err >&5
16886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16887 (exit $ac_status); } >/dev/null; then
16888 if test -s conftest.err; then
5d7b7554
VZ
16889 ac_cpp_err=$ac_cxx_preproc_warn_flag
16890 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16891 else
16892 ac_cpp_err=
16893 fi
16894else
16895 ac_cpp_err=yes
16896fi
16897if test -z "$ac_cpp_err"; then
16898 ac_header_preproc=yes
16899else
16900 echo "$as_me: failed program was:" >&5
16901sed 's/^/| /' conftest.$ac_ext >&5
16902
16903 ac_header_preproc=no
16904fi
16905rm -f conftest.err conftest.$ac_ext
16906echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16907echo "${ECHO_T}$ac_header_preproc" >&6
16908
16909# So? What about this header?
5d7b7554 16910case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16911 yes:no: )
a848cd7e
SC
16912 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16913echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16914 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16915echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16916 ac_header_preproc=yes
a848cd7e 16917 ;;
ac1cb8d3 16918 no:yes:* )
a848cd7e
SC
16919 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16920echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16921 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16922echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16923 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16924echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16925 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16926echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16927 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16928echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16929 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16930echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16931 (
16932 cat <<\_ASBOX
ac1cb8d3
VS
16933## ----------------------------------------- ##
16934## Report this to wx-dev@lists.wxwidgets.org ##
16935## ----------------------------------------- ##
a848cd7e
SC
16936_ASBOX
16937 ) |
16938 sed "s/^/$as_me: WARNING: /" >&2
16939 ;;
16940esac
16941echo "$as_me:$LINENO: checking for $ac_header" >&5
16942echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16943if eval "test \"\${$as_ac_Header+set}\" = set"; then
16944 echo $ECHO_N "(cached) $ECHO_C" >&6
16945else
ac1cb8d3 16946 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16947fi
16948echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16949echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16950
16951fi
16952if test `eval echo '${'$as_ac_Header'}'` = yes; then
16953 cat >>confdefs.h <<_ACEOF
16954#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16955_ACEOF
16956
16957fi
16958
16959done
16960
16961
16962if test "$ac_cv_header_wchar_h" != "yes"; then
16963
16964for ac_header in wcstr.h
16965do
16966as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16967if eval "test \"\${$as_ac_Header+set}\" = set"; then
16968 echo "$as_me:$LINENO: checking for $ac_header" >&5
16969echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16970if eval "test \"\${$as_ac_Header+set}\" = set"; then
16971 echo $ECHO_N "(cached) $ECHO_C" >&6
16972fi
16973echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16974echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16975else
16976 # Is the header compilable?
16977echo "$as_me:$LINENO: checking $ac_header usability" >&5
16978echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16979cat >conftest.$ac_ext <<_ACEOF
16980/* confdefs.h. */
16981_ACEOF
16982cat confdefs.h >>conftest.$ac_ext
16983cat >>conftest.$ac_ext <<_ACEOF
16984/* end confdefs.h. */
16985$ac_includes_default
16986#include <$ac_header>
16987_ACEOF
16988rm -f conftest.$ac_objext
16989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16990 (eval $ac_compile) 2>conftest.er1
a848cd7e 16991 ac_status=$?
ac1cb8d3
VS
16992 grep -v '^ *+' conftest.er1 >conftest.err
16993 rm -f conftest.er1
16994 cat conftest.err >&5
a848cd7e
SC
16995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16996 (exit $ac_status); } &&
c9a66001 16997 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16999 (eval $ac_try) 2>&5
17000 ac_status=$?
17001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17002 (exit $ac_status); }; } &&
17003 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17005 (eval $ac_try) 2>&5
17006 ac_status=$?
17007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17008 (exit $ac_status); }; }; then
17009 ac_header_compiler=yes
17010else
17011 echo "$as_me: failed program was:" >&5
17012sed 's/^/| /' conftest.$ac_ext >&5
17013
17014ac_header_compiler=no
17015fi
ac1cb8d3 17016rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17017echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17018echo "${ECHO_T}$ac_header_compiler" >&6
17019
17020# Is the header present?
17021echo "$as_me:$LINENO: checking $ac_header presence" >&5
17022echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17023cat >conftest.$ac_ext <<_ACEOF
17024/* confdefs.h. */
17025_ACEOF
17026cat confdefs.h >>conftest.$ac_ext
17027cat >>conftest.$ac_ext <<_ACEOF
17028/* end confdefs.h. */
17029#include <$ac_header>
17030_ACEOF
17031if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17032 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17033 ac_status=$?
17034 grep -v '^ *+' conftest.er1 >conftest.err
17035 rm -f conftest.er1
17036 cat conftest.err >&5
17037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17038 (exit $ac_status); } >/dev/null; then
17039 if test -s conftest.err; then
5d7b7554
VZ
17040 ac_cpp_err=$ac_cxx_preproc_warn_flag
17041 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17042 else
17043 ac_cpp_err=
17044 fi
17045else
17046 ac_cpp_err=yes
17047fi
17048if test -z "$ac_cpp_err"; then
17049 ac_header_preproc=yes
17050else
17051 echo "$as_me: failed program was:" >&5
17052sed 's/^/| /' conftest.$ac_ext >&5
17053
17054 ac_header_preproc=no
17055fi
17056rm -f conftest.err conftest.$ac_ext
17057echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17058echo "${ECHO_T}$ac_header_preproc" >&6
17059
17060# So? What about this header?
5d7b7554 17061case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17062 yes:no: )
a848cd7e
SC
17063 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17064echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17066echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17067 ac_header_preproc=yes
a848cd7e 17068 ;;
ac1cb8d3 17069 no:yes:* )
a848cd7e
SC
17070 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17071echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17072 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17073echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17074 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17075echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17076 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17077echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17078 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17079echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17080 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17081echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17082 (
17083 cat <<\_ASBOX
ac1cb8d3
VS
17084## ----------------------------------------- ##
17085## Report this to wx-dev@lists.wxwidgets.org ##
17086## ----------------------------------------- ##
a848cd7e
SC
17087_ASBOX
17088 ) |
17089 sed "s/^/$as_me: WARNING: /" >&2
17090 ;;
17091esac
17092echo "$as_me:$LINENO: checking for $ac_header" >&5
17093echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17094if eval "test \"\${$as_ac_Header+set}\" = set"; then
17095 echo $ECHO_N "(cached) $ECHO_C" >&6
17096else
ac1cb8d3 17097 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17098fi
17099echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17100echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17101
17102fi
17103if test `eval echo '${'$as_ac_Header'}'` = yes; then
17104 cat >>confdefs.h <<_ACEOF
17105#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17106_ACEOF
17107
17108fi
17109
17110done
17111
17112fi
17113
17114
17115for ac_header in fnmatch.h
17116do
17117as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17118if eval "test \"\${$as_ac_Header+set}\" = set"; then
17119 echo "$as_me:$LINENO: checking for $ac_header" >&5
17120echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17121if eval "test \"\${$as_ac_Header+set}\" = set"; then
17122 echo $ECHO_N "(cached) $ECHO_C" >&6
17123fi
17124echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17125echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17126else
17127 # Is the header compilable?
17128echo "$as_me:$LINENO: checking $ac_header usability" >&5
17129echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17130cat >conftest.$ac_ext <<_ACEOF
17131/* confdefs.h. */
17132_ACEOF
17133cat confdefs.h >>conftest.$ac_ext
17134cat >>conftest.$ac_ext <<_ACEOF
17135/* end confdefs.h. */
17136$ac_includes_default
17137#include <$ac_header>
17138_ACEOF
17139rm -f conftest.$ac_objext
17140if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17141 (eval $ac_compile) 2>conftest.er1
a848cd7e 17142 ac_status=$?
ac1cb8d3
VS
17143 grep -v '^ *+' conftest.er1 >conftest.err
17144 rm -f conftest.er1
17145 cat conftest.err >&5
a848cd7e
SC
17146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17147 (exit $ac_status); } &&
c9a66001 17148 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17150 (eval $ac_try) 2>&5
17151 ac_status=$?
17152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17153 (exit $ac_status); }; } &&
17154 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17156 (eval $ac_try) 2>&5
17157 ac_status=$?
17158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17159 (exit $ac_status); }; }; then
17160 ac_header_compiler=yes
17161else
17162 echo "$as_me: failed program was:" >&5
17163sed 's/^/| /' conftest.$ac_ext >&5
17164
17165ac_header_compiler=no
17166fi
ac1cb8d3 17167rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17168echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17169echo "${ECHO_T}$ac_header_compiler" >&6
17170
17171# Is the header present?
17172echo "$as_me:$LINENO: checking $ac_header presence" >&5
17173echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17174cat >conftest.$ac_ext <<_ACEOF
17175/* confdefs.h. */
17176_ACEOF
17177cat confdefs.h >>conftest.$ac_ext
17178cat >>conftest.$ac_ext <<_ACEOF
17179/* end confdefs.h. */
17180#include <$ac_header>
17181_ACEOF
17182if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17183 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17184 ac_status=$?
17185 grep -v '^ *+' conftest.er1 >conftest.err
17186 rm -f conftest.er1
17187 cat conftest.err >&5
17188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17189 (exit $ac_status); } >/dev/null; then
17190 if test -s conftest.err; then
5d7b7554
VZ
17191 ac_cpp_err=$ac_cxx_preproc_warn_flag
17192 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17193 else
17194 ac_cpp_err=
17195 fi
17196else
17197 ac_cpp_err=yes
17198fi
17199if test -z "$ac_cpp_err"; then
17200 ac_header_preproc=yes
17201else
17202 echo "$as_me: failed program was:" >&5
17203sed 's/^/| /' conftest.$ac_ext >&5
17204
17205 ac_header_preproc=no
17206fi
17207rm -f conftest.err conftest.$ac_ext
17208echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17209echo "${ECHO_T}$ac_header_preproc" >&6
17210
17211# So? What about this header?
5d7b7554 17212case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17213 yes:no: )
a848cd7e
SC
17214 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17215echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17216 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17217echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17218 ac_header_preproc=yes
a848cd7e 17219 ;;
ac1cb8d3 17220 no:yes:* )
a848cd7e
SC
17221 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17222echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17223 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17224echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17225 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17226echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17227 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17228echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17229 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17230echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17231 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17232echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17233 (
17234 cat <<\_ASBOX
ac1cb8d3
VS
17235## ----------------------------------------- ##
17236## Report this to wx-dev@lists.wxwidgets.org ##
17237## ----------------------------------------- ##
a848cd7e
SC
17238_ASBOX
17239 ) |
17240 sed "s/^/$as_me: WARNING: /" >&2
17241 ;;
17242esac
17243echo "$as_me:$LINENO: checking for $ac_header" >&5
17244echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17245if eval "test \"\${$as_ac_Header+set}\" = set"; then
17246 echo $ECHO_N "(cached) $ECHO_C" >&6
17247else
ac1cb8d3 17248 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17249fi
17250echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17251echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17252
17253fi
17254if test `eval echo '${'$as_ac_Header'}'` = yes; then
17255 cat >>confdefs.h <<_ACEOF
17256#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17257_ACEOF
17258
17259fi
17260
17261done
17262
17263
a848cd7e
SC
17264
17265for ac_header in langinfo.h
17266do
17267as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17268if eval "test \"\${$as_ac_Header+set}\" = set"; then
17269 echo "$as_me:$LINENO: checking for $ac_header" >&5
17270echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17271if eval "test \"\${$as_ac_Header+set}\" = set"; then
17272 echo $ECHO_N "(cached) $ECHO_C" >&6
17273fi
17274echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17275echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17276else
17277 # Is the header compilable?
17278echo "$as_me:$LINENO: checking $ac_header usability" >&5
17279echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17280cat >conftest.$ac_ext <<_ACEOF
17281/* confdefs.h. */
17282_ACEOF
17283cat confdefs.h >>conftest.$ac_ext
17284cat >>conftest.$ac_ext <<_ACEOF
17285/* end confdefs.h. */
17286$ac_includes_default
17287#include <$ac_header>
17288_ACEOF
17289rm -f conftest.$ac_objext
17290if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17291 (eval $ac_compile) 2>conftest.er1
a848cd7e 17292 ac_status=$?
ac1cb8d3
VS
17293 grep -v '^ *+' conftest.er1 >conftest.err
17294 rm -f conftest.er1
17295 cat conftest.err >&5
a848cd7e
SC
17296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17297 (exit $ac_status); } &&
c9a66001 17298 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17300 (eval $ac_try) 2>&5
17301 ac_status=$?
17302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17303 (exit $ac_status); }; } &&
17304 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17306 (eval $ac_try) 2>&5
17307 ac_status=$?
17308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17309 (exit $ac_status); }; }; then
17310 ac_header_compiler=yes
17311else
17312 echo "$as_me: failed program was:" >&5
17313sed 's/^/| /' conftest.$ac_ext >&5
17314
17315ac_header_compiler=no
17316fi
ac1cb8d3 17317rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17318echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17319echo "${ECHO_T}$ac_header_compiler" >&6
17320
17321# Is the header present?
17322echo "$as_me:$LINENO: checking $ac_header presence" >&5
17323echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17324cat >conftest.$ac_ext <<_ACEOF
17325/* confdefs.h. */
17326_ACEOF
17327cat confdefs.h >>conftest.$ac_ext
17328cat >>conftest.$ac_ext <<_ACEOF
17329/* end confdefs.h. */
17330#include <$ac_header>
17331_ACEOF
17332if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17333 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17334 ac_status=$?
17335 grep -v '^ *+' conftest.er1 >conftest.err
17336 rm -f conftest.er1
17337 cat conftest.err >&5
17338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17339 (exit $ac_status); } >/dev/null; then
17340 if test -s conftest.err; then
5d7b7554
VZ
17341 ac_cpp_err=$ac_cxx_preproc_warn_flag
17342 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17343 else
17344 ac_cpp_err=
17345 fi
17346else
17347 ac_cpp_err=yes
17348fi
17349if test -z "$ac_cpp_err"; then
17350 ac_header_preproc=yes
17351else
17352 echo "$as_me: failed program was:" >&5
17353sed 's/^/| /' conftest.$ac_ext >&5
17354
17355 ac_header_preproc=no
17356fi
17357rm -f conftest.err conftest.$ac_ext
17358echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17359echo "${ECHO_T}$ac_header_preproc" >&6
17360
17361# So? What about this header?
5d7b7554 17362case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17363 yes:no: )
a848cd7e
SC
17364 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17365echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17366 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17367echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17368 ac_header_preproc=yes
a848cd7e 17369 ;;
ac1cb8d3 17370 no:yes:* )
a848cd7e
SC
17371 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17372echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17373 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17374echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17375 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17376echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17377 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17378echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17379 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17380echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17381 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17382echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17383 (
17384 cat <<\_ASBOX
ac1cb8d3
VS
17385## ----------------------------------------- ##
17386## Report this to wx-dev@lists.wxwidgets.org ##
17387## ----------------------------------------- ##
a848cd7e
SC
17388_ASBOX
17389 ) |
17390 sed "s/^/$as_me: WARNING: /" >&2
17391 ;;
17392esac
17393echo "$as_me:$LINENO: checking for $ac_header" >&5
17394echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17395if eval "test \"\${$as_ac_Header+set}\" = set"; then
17396 echo $ECHO_N "(cached) $ECHO_C" >&6
17397else
ac1cb8d3 17398 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17399fi
17400echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17401echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17402
17403fi
17404if test `eval echo '${'$as_ac_Header'}'` = yes; then
17405 cat >>confdefs.h <<_ACEOF
17406#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17407_ACEOF
17408
17409fi
17410
17411done
17412
17413
17414case "${host}" in
17415 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
17416 if test $ac_cv_header_langinfo_h = "yes" \
17417 -a \( "$wx_cv_gccversion" = "EMX2" \
17418 -o "$wx_cv_gccversion" = "EMX3" \
17419 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
17420 LIBS="$LIBS -lintl"
17421 fi
17422 ;;
17423esac
17424
bc023abb
MW
17425if test "$USE_UNIX" = 1 ; then
17426
17427for ac_header in sys/select.h
17428do
17429as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17430if eval "test \"\${$as_ac_Header+set}\" = set"; then
17431 echo "$as_me:$LINENO: checking for $ac_header" >&5
17432echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17433if eval "test \"\${$as_ac_Header+set}\" = set"; then
17434 echo $ECHO_N "(cached) $ECHO_C" >&6
17435fi
17436echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17437echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17438else
17439 # Is the header compilable?
17440echo "$as_me:$LINENO: checking $ac_header usability" >&5
17441echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17442cat >conftest.$ac_ext <<_ACEOF
17443/* confdefs.h. */
17444_ACEOF
17445cat confdefs.h >>conftest.$ac_ext
17446cat >>conftest.$ac_ext <<_ACEOF
17447/* end confdefs.h. */
17448$ac_includes_default
17449#include <$ac_header>
17450_ACEOF
17451rm -f conftest.$ac_objext
17452if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17453 (eval $ac_compile) 2>conftest.er1
17454 ac_status=$?
17455 grep -v '^ *+' conftest.er1 >conftest.err
17456 rm -f conftest.er1
17457 cat conftest.err >&5
17458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17459 (exit $ac_status); } &&
17460 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17462 (eval $ac_try) 2>&5
17463 ac_status=$?
17464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17465 (exit $ac_status); }; } &&
17466 { ac_try='test -s conftest.$ac_objext'
17467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17468 (eval $ac_try) 2>&5
17469 ac_status=$?
17470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17471 (exit $ac_status); }; }; then
17472 ac_header_compiler=yes
17473else
17474 echo "$as_me: failed program was:" >&5
17475sed 's/^/| /' conftest.$ac_ext >&5
17476
17477ac_header_compiler=no
17478fi
17479rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17480echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17481echo "${ECHO_T}$ac_header_compiler" >&6
17482
17483# Is the header present?
17484echo "$as_me:$LINENO: checking $ac_header presence" >&5
17485echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17486cat >conftest.$ac_ext <<_ACEOF
17487/* confdefs.h. */
17488_ACEOF
17489cat confdefs.h >>conftest.$ac_ext
17490cat >>conftest.$ac_ext <<_ACEOF
17491/* end confdefs.h. */
17492#include <$ac_header>
17493_ACEOF
17494if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17495 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17496 ac_status=$?
17497 grep -v '^ *+' conftest.er1 >conftest.err
17498 rm -f conftest.er1
17499 cat conftest.err >&5
17500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17501 (exit $ac_status); } >/dev/null; then
17502 if test -s conftest.err; then
17503 ac_cpp_err=$ac_cxx_preproc_warn_flag
17504 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
17505 else
17506 ac_cpp_err=
17507 fi
17508else
17509 ac_cpp_err=yes
17510fi
17511if test -z "$ac_cpp_err"; then
17512 ac_header_preproc=yes
17513else
17514 echo "$as_me: failed program was:" >&5
17515sed 's/^/| /' conftest.$ac_ext >&5
17516
17517 ac_header_preproc=no
17518fi
17519rm -f conftest.err conftest.$ac_ext
17520echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17521echo "${ECHO_T}$ac_header_preproc" >&6
17522
17523# So? What about this header?
17524case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
17525 yes:no: )
17526 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17527echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17528 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17529echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17530 ac_header_preproc=yes
17531 ;;
17532 no:yes:* )
17533 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17534echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17535 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17536echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17537 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17538echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17539 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17540echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17542echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17543 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17544echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17545 (
17546 cat <<\_ASBOX
17547## ----------------------------------------- ##
17548## Report this to wx-dev@lists.wxwidgets.org ##
17549## ----------------------------------------- ##
17550_ASBOX
17551 ) |
17552 sed "s/^/$as_me: WARNING: /" >&2
17553 ;;
17554esac
17555echo "$as_me:$LINENO: checking for $ac_header" >&5
17556echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17557if eval "test \"\${$as_ac_Header+set}\" = set"; then
17558 echo $ECHO_N "(cached) $ECHO_C" >&6
17559else
17560 eval "$as_ac_Header=\$ac_header_preproc"
17561fi
17562echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17563echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17564
17565fi
17566if test `eval echo '${'$as_ac_Header'}'` = yes; then
17567 cat >>confdefs.h <<_ACEOF
17568#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17569_ACEOF
17570
17571fi
17572
17573done
17574
17575fi
17576
a848cd7e
SC
17577
17578echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17579echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
17580if test "${ac_cv_c_const+set}" = set; then
17581 echo $ECHO_N "(cached) $ECHO_C" >&6
17582else
17583 cat >conftest.$ac_ext <<_ACEOF
17584/* confdefs.h. */
17585_ACEOF
17586cat confdefs.h >>conftest.$ac_ext
17587cat >>conftest.$ac_ext <<_ACEOF
17588/* end confdefs.h. */
17589
17590int
17591main ()
17592{
17593/* FIXME: Include the comments suggested by Paul. */
17594#ifndef __cplusplus
17595 /* Ultrix mips cc rejects this. */
17596 typedef int charset[2];
17597 const charset x;
17598 /* SunOS 4.1.1 cc rejects this. */
17599 char const *const *ccp;
17600 char **p;
17601 /* NEC SVR4.0.2 mips cc rejects this. */
17602 struct point {int x, y;};
17603 static struct point const zero = {0,0};
17604 /* AIX XL C 1.02.0.0 rejects this.
17605 It does not let you subtract one const X* pointer from another in
17606 an arm of an if-expression whose if-part is not a constant
17607 expression */
17608 const char *g = "string";
17609 ccp = &g + (g ? g-g : 0);
17610 /* HPUX 7.0 cc rejects these. */
17611 ++ccp;
17612 p = (char**) ccp;
17613 ccp = (char const *const *) p;
17614 { /* SCO 3.2v4 cc rejects this. */
17615 char *t;
17616 char const *s = 0 ? (char *) 0 : (char const *) 0;
17617
17618 *t++ = 0;
17619 }
17620 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17621 int x[] = {25, 17};
17622 const int *foo = &x[0];
17623 ++foo;
17624 }
17625 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17626 typedef const int *iptr;
17627 iptr p = 0;
17628 ++p;
17629 }
17630 { /* AIX XL C 1.02.0.0 rejects this saying
17631 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17632 struct s { int j; const int *ap[3]; };
17633 struct s *b; b->j = 5;
17634 }
17635 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17636 const int foo = 10;
17637 }
17638#endif
17639
17640 ;
17641 return 0;
17642}
17643_ACEOF
17644rm -f conftest.$ac_objext
17645if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17646 (eval $ac_compile) 2>conftest.er1
a848cd7e 17647 ac_status=$?
ac1cb8d3
VS
17648 grep -v '^ *+' conftest.er1 >conftest.err
17649 rm -f conftest.er1
17650 cat conftest.err >&5
a848cd7e
SC
17651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652 (exit $ac_status); } &&
c9a66001 17653 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17655 (eval $ac_try) 2>&5
17656 ac_status=$?
17657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658 (exit $ac_status); }; } &&
17659 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17661 (eval $ac_try) 2>&5
17662 ac_status=$?
17663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664 (exit $ac_status); }; }; then
17665 ac_cv_c_const=yes
17666else
17667 echo "$as_me: failed program was:" >&5
17668sed 's/^/| /' conftest.$ac_ext >&5
17669
17670ac_cv_c_const=no
17671fi
ac1cb8d3 17672rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17673fi
17674echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17675echo "${ECHO_T}$ac_cv_c_const" >&6
17676if test $ac_cv_c_const = no; then
17677
17678cat >>confdefs.h <<\_ACEOF
17679#define const
17680_ACEOF
17681
17682fi
17683
17684echo "$as_me:$LINENO: checking for inline" >&5
17685echo $ECHO_N "checking for inline... $ECHO_C" >&6
17686if test "${ac_cv_c_inline+set}" = set; then
17687 echo $ECHO_N "(cached) $ECHO_C" >&6
17688else
17689 ac_cv_c_inline=no
17690for ac_kw in inline __inline__ __inline; do
17691 cat >conftest.$ac_ext <<_ACEOF
17692/* confdefs.h. */
17693_ACEOF
17694cat confdefs.h >>conftest.$ac_ext
17695cat >>conftest.$ac_ext <<_ACEOF
17696/* end confdefs.h. */
17697#ifndef __cplusplus
17698typedef int foo_t;
17699static $ac_kw foo_t static_foo () {return 0; }
17700$ac_kw foo_t foo () {return 0; }
17701#endif
17702
17703_ACEOF
17704rm -f conftest.$ac_objext
17705if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17706 (eval $ac_compile) 2>conftest.er1
a848cd7e 17707 ac_status=$?
ac1cb8d3
VS
17708 grep -v '^ *+' conftest.er1 >conftest.err
17709 rm -f conftest.er1
17710 cat conftest.err >&5
a848cd7e
SC
17711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17712 (exit $ac_status); } &&
c9a66001 17713 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17715 (eval $ac_try) 2>&5
17716 ac_status=$?
17717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17718 (exit $ac_status); }; } &&
17719 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17721 (eval $ac_try) 2>&5
17722 ac_status=$?
17723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724 (exit $ac_status); }; }; then
17725 ac_cv_c_inline=$ac_kw; break
17726else
17727 echo "$as_me: failed program was:" >&5
17728sed 's/^/| /' conftest.$ac_ext >&5
17729
17730fi
ac1cb8d3 17731rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17732done
17733
17734fi
17735echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
17736echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
17737
17738
a848cd7e
SC
17739case $ac_cv_c_inline in
17740 inline | yes) ;;
ac1cb8d3
VS
17741 *)
17742 case $ac_cv_c_inline in
17743 no) ac_val=;;
17744 *) ac_val=$ac_cv_c_inline;;
17745 esac
17746 cat >>confdefs.h <<_ACEOF
17747#ifndef __cplusplus
17748#define inline $ac_val
17749#endif
de59c161 17750_ACEOF
ac1cb8d3 17751 ;;
a848cd7e
SC
17752esac
17753
17754
17755echo "$as_me:$LINENO: checking for char" >&5
17756echo $ECHO_N "checking for char... $ECHO_C" >&6
17757if test "${ac_cv_type_char+set}" = set; then
17758 echo $ECHO_N "(cached) $ECHO_C" >&6
17759else
17760 cat >conftest.$ac_ext <<_ACEOF
17761/* confdefs.h. */
17762_ACEOF
17763cat confdefs.h >>conftest.$ac_ext
17764cat >>conftest.$ac_ext <<_ACEOF
17765/* end confdefs.h. */
17766$ac_includes_default
17767int
17768main ()
17769{
17770if ((char *) 0)
17771 return 0;
17772if (sizeof (char))
17773 return 0;
17774 ;
17775 return 0;
17776}
17777_ACEOF
17778rm -f conftest.$ac_objext
17779if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17780 (eval $ac_compile) 2>conftest.er1
a848cd7e 17781 ac_status=$?
ac1cb8d3
VS
17782 grep -v '^ *+' conftest.er1 >conftest.err
17783 rm -f conftest.er1
17784 cat conftest.err >&5
a848cd7e
SC
17785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17786 (exit $ac_status); } &&
c9a66001 17787 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17789 (eval $ac_try) 2>&5
17790 ac_status=$?
17791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792 (exit $ac_status); }; } &&
17793 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17795 (eval $ac_try) 2>&5
17796 ac_status=$?
17797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17798 (exit $ac_status); }; }; then
17799 ac_cv_type_char=yes
17800else
17801 echo "$as_me: failed program was:" >&5
17802sed 's/^/| /' conftest.$ac_ext >&5
17803
17804ac_cv_type_char=no
17805fi
ac1cb8d3 17806rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17807fi
17808echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
17809echo "${ECHO_T}$ac_cv_type_char" >&6
17810
17811echo "$as_me:$LINENO: checking size of char" >&5
17812echo $ECHO_N "checking size of char... $ECHO_C" >&6
17813if test "${ac_cv_sizeof_char+set}" = set; then
17814 echo $ECHO_N "(cached) $ECHO_C" >&6
17815else
17816 if test "$ac_cv_type_char" = yes; then
17817 # The cast to unsigned long works around a bug in the HP C Compiler
17818 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17819 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17820 # This bug is HP SR number 8606223364.
17821 if test "$cross_compiling" = yes; then
17822 # Depending upon the size, compute the lo and hi bounds.
17823cat >conftest.$ac_ext <<_ACEOF
17824/* confdefs.h. */
17825_ACEOF
17826cat confdefs.h >>conftest.$ac_ext
17827cat >>conftest.$ac_ext <<_ACEOF
17828/* end confdefs.h. */
17829$ac_includes_default
17830int
17831main ()
17832{
17833static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
17834test_array [0] = 0
17835
17836 ;
17837 return 0;
17838}
17839_ACEOF
17840rm -f conftest.$ac_objext
17841if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17842 (eval $ac_compile) 2>conftest.er1
a848cd7e 17843 ac_status=$?
ac1cb8d3
VS
17844 grep -v '^ *+' conftest.er1 >conftest.err
17845 rm -f conftest.er1
17846 cat conftest.err >&5
a848cd7e
SC
17847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17848 (exit $ac_status); } &&
c9a66001 17849 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17851 (eval $ac_try) 2>&5
17852 ac_status=$?
17853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854 (exit $ac_status); }; } &&
17855 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17857 (eval $ac_try) 2>&5
17858 ac_status=$?
17859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17860 (exit $ac_status); }; }; then
17861 ac_lo=0 ac_mid=0
17862 while :; do
17863 cat >conftest.$ac_ext <<_ACEOF
17864/* confdefs.h. */
17865_ACEOF
17866cat confdefs.h >>conftest.$ac_ext
17867cat >>conftest.$ac_ext <<_ACEOF
17868/* end confdefs.h. */
17869$ac_includes_default
17870int
17871main ()
17872{
17873static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
17874test_array [0] = 0
17875
17876 ;
17877 return 0;
17878}
17879_ACEOF
17880rm -f conftest.$ac_objext
17881if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17882 (eval $ac_compile) 2>conftest.er1
a848cd7e 17883 ac_status=$?
ac1cb8d3
VS
17884 grep -v '^ *+' conftest.er1 >conftest.err
17885 rm -f conftest.er1
17886 cat conftest.err >&5
a848cd7e
SC
17887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17888 (exit $ac_status); } &&
c9a66001 17889 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17891 (eval $ac_try) 2>&5
17892 ac_status=$?
17893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17894 (exit $ac_status); }; } &&
17895 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17897 (eval $ac_try) 2>&5
17898 ac_status=$?
17899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17900 (exit $ac_status); }; }; then
17901 ac_hi=$ac_mid; break
17902else
17903 echo "$as_me: failed program was:" >&5
17904sed 's/^/| /' conftest.$ac_ext >&5
17905
17906ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17907 if test $ac_lo -le $ac_mid; then
17908 ac_lo= ac_hi=
17909 break
17910 fi
17911 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17912fi
ac1cb8d3 17913rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17914 done
17915else
17916 echo "$as_me: failed program was:" >&5
17917sed 's/^/| /' conftest.$ac_ext >&5
17918
17919cat >conftest.$ac_ext <<_ACEOF
17920/* confdefs.h. */
17921_ACEOF
17922cat confdefs.h >>conftest.$ac_ext
17923cat >>conftest.$ac_ext <<_ACEOF
17924/* end confdefs.h. */
17925$ac_includes_default
17926int
17927main ()
17928{
17929static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
17930test_array [0] = 0
17931
17932 ;
17933 return 0;
17934}
17935_ACEOF
17936rm -f conftest.$ac_objext
17937if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17938 (eval $ac_compile) 2>conftest.er1
a848cd7e 17939 ac_status=$?
ac1cb8d3
VS
17940 grep -v '^ *+' conftest.er1 >conftest.err
17941 rm -f conftest.er1
17942 cat conftest.err >&5
a848cd7e
SC
17943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17944 (exit $ac_status); } &&
c9a66001 17945 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17947 (eval $ac_try) 2>&5
17948 ac_status=$?
17949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17950 (exit $ac_status); }; } &&
17951 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17953 (eval $ac_try) 2>&5
17954 ac_status=$?
17955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17956 (exit $ac_status); }; }; then
17957 ac_hi=-1 ac_mid=-1
17958 while :; do
17959 cat >conftest.$ac_ext <<_ACEOF
17960/* confdefs.h. */
17961_ACEOF
17962cat confdefs.h >>conftest.$ac_ext
17963cat >>conftest.$ac_ext <<_ACEOF
17964/* end confdefs.h. */
17965$ac_includes_default
17966int
17967main ()
17968{
17969static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
17970test_array [0] = 0
17971
17972 ;
17973 return 0;
17974}
17975_ACEOF
17976rm -f conftest.$ac_objext
17977if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17978 (eval $ac_compile) 2>conftest.er1
a848cd7e 17979 ac_status=$?
ac1cb8d3
VS
17980 grep -v '^ *+' conftest.er1 >conftest.err
17981 rm -f conftest.er1
17982 cat conftest.err >&5
a848cd7e
SC
17983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17984 (exit $ac_status); } &&
c9a66001 17985 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17987 (eval $ac_try) 2>&5
17988 ac_status=$?
17989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17990 (exit $ac_status); }; } &&
17991 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17993 (eval $ac_try) 2>&5
17994 ac_status=$?
17995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17996 (exit $ac_status); }; }; then
17997 ac_lo=$ac_mid; break
17998else
17999 echo "$as_me: failed program was:" >&5
18000sed 's/^/| /' conftest.$ac_ext >&5
18001
18002ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18003 if test $ac_mid -le $ac_hi; then
18004 ac_lo= ac_hi=
18005 break
18006 fi
18007 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18008fi
ac1cb8d3 18009rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18010 done
18011else
18012 echo "$as_me: failed program was:" >&5
18013sed 's/^/| /' conftest.$ac_ext >&5
18014
18015ac_lo= ac_hi=
18016fi
ac1cb8d3 18017rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18018fi
ac1cb8d3 18019rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18020# Binary search between lo and hi bounds.
18021while test "x$ac_lo" != "x$ac_hi"; do
18022 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18023 cat >conftest.$ac_ext <<_ACEOF
18024/* confdefs.h. */
18025_ACEOF
18026cat confdefs.h >>conftest.$ac_ext
18027cat >>conftest.$ac_ext <<_ACEOF
18028/* end confdefs.h. */
18029$ac_includes_default
18030int
18031main ()
18032{
18033static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
18034test_array [0] = 0
18035
18036 ;
18037 return 0;
18038}
18039_ACEOF
18040rm -f conftest.$ac_objext
18041if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18042 (eval $ac_compile) 2>conftest.er1
a848cd7e 18043 ac_status=$?
ac1cb8d3
VS
18044 grep -v '^ *+' conftest.er1 >conftest.err
18045 rm -f conftest.er1
18046 cat conftest.err >&5
a848cd7e
SC
18047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18048 (exit $ac_status); } &&
c9a66001 18049 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18051 (eval $ac_try) 2>&5
18052 ac_status=$?
18053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18054 (exit $ac_status); }; } &&
18055 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18057 (eval $ac_try) 2>&5
18058 ac_status=$?
18059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18060 (exit $ac_status); }; }; then
18061 ac_hi=$ac_mid
18062else
18063 echo "$as_me: failed program was:" >&5
18064sed 's/^/| /' conftest.$ac_ext >&5
18065
18066ac_lo=`expr '(' $ac_mid ')' + 1`
18067fi
ac1cb8d3 18068rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18069done
18070case $ac_lo in
18071?*) ac_cv_sizeof_char=$ac_lo;;
18072'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
18073See \`config.log' for more details." >&5
18074echo "$as_me: error: cannot compute sizeof (char), 77
18075See \`config.log' for more details." >&2;}
18076 { (exit 1); exit 1; }; } ;;
18077esac
18078else
18079 if test "$cross_compiling" = yes; then
c9a66001
VZ
18080 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18081echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18082 { (exit 1); exit 1; }; }
18083else
18084 cat >conftest.$ac_ext <<_ACEOF
18085/* confdefs.h. */
18086_ACEOF
18087cat confdefs.h >>conftest.$ac_ext
18088cat >>conftest.$ac_ext <<_ACEOF
18089/* end confdefs.h. */
18090$ac_includes_default
18091long longval () { return (long) (sizeof (char)); }
18092unsigned long ulongval () { return (long) (sizeof (char)); }
18093#include <stdio.h>
18094#include <stdlib.h>
18095int
18096main ()
18097{
18098
18099 FILE *f = fopen ("conftest.val", "w");
18100 if (! f)
18101 exit (1);
18102 if (((long) (sizeof (char))) < 0)
18103 {
18104 long i = longval ();
18105 if (i != ((long) (sizeof (char))))
18106 exit (1);
18107 fprintf (f, "%ld\n", i);
18108 }
18109 else
18110 {
18111 unsigned long i = ulongval ();
18112 if (i != ((long) (sizeof (char))))
18113 exit (1);
18114 fprintf (f, "%lu\n", i);
18115 }
18116 exit (ferror (f) || fclose (f) != 0);
18117
18118 ;
18119 return 0;
18120}
18121_ACEOF
18122rm -f conftest$ac_exeext
18123if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18124 (eval $ac_link) 2>&5
18125 ac_status=$?
18126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18127 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18129 (eval $ac_try) 2>&5
18130 ac_status=$?
18131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18132 (exit $ac_status); }; }; then
18133 ac_cv_sizeof_char=`cat conftest.val`
18134else
18135 echo "$as_me: program exited with status $ac_status" >&5
18136echo "$as_me: failed program was:" >&5
18137sed 's/^/| /' conftest.$ac_ext >&5
18138
18139( exit $ac_status )
18140{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
18141See \`config.log' for more details." >&5
18142echo "$as_me: error: cannot compute sizeof (char), 77
18143See \`config.log' for more details." >&2;}
18144 { (exit 1); exit 1; }; }
18145fi
ac1cb8d3 18146rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18147fi
18148fi
18149rm -f conftest.val
18150else
18151 ac_cv_sizeof_char=0
18152fi
18153fi
18154echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
18155echo "${ECHO_T}$ac_cv_sizeof_char" >&6
18156cat >>confdefs.h <<_ACEOF
18157#define SIZEOF_CHAR $ac_cv_sizeof_char
18158_ACEOF
18159
18160
18161echo "$as_me:$LINENO: checking for short" >&5
18162echo $ECHO_N "checking for short... $ECHO_C" >&6
18163if test "${ac_cv_type_short+set}" = set; then
18164 echo $ECHO_N "(cached) $ECHO_C" >&6
18165else
18166 cat >conftest.$ac_ext <<_ACEOF
18167/* confdefs.h. */
18168_ACEOF
18169cat confdefs.h >>conftest.$ac_ext
18170cat >>conftest.$ac_ext <<_ACEOF
18171/* end confdefs.h. */
18172$ac_includes_default
18173int
18174main ()
18175{
18176if ((short *) 0)
18177 return 0;
18178if (sizeof (short))
18179 return 0;
18180 ;
18181 return 0;
18182}
18183_ACEOF
18184rm -f conftest.$ac_objext
18185if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18186 (eval $ac_compile) 2>conftest.er1
a848cd7e 18187 ac_status=$?
ac1cb8d3
VS
18188 grep -v '^ *+' conftest.er1 >conftest.err
18189 rm -f conftest.er1
18190 cat conftest.err >&5
a848cd7e
SC
18191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18192 (exit $ac_status); } &&
c9a66001 18193 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18195 (eval $ac_try) 2>&5
18196 ac_status=$?
18197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18198 (exit $ac_status); }; } &&
18199 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18201 (eval $ac_try) 2>&5
18202 ac_status=$?
18203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18204 (exit $ac_status); }; }; then
18205 ac_cv_type_short=yes
18206else
18207 echo "$as_me: failed program was:" >&5
18208sed 's/^/| /' conftest.$ac_ext >&5
18209
18210ac_cv_type_short=no
18211fi
ac1cb8d3 18212rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18213fi
18214echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
18215echo "${ECHO_T}$ac_cv_type_short" >&6
18216
18217echo "$as_me:$LINENO: checking size of short" >&5
18218echo $ECHO_N "checking size of short... $ECHO_C" >&6
18219if test "${ac_cv_sizeof_short+set}" = set; then
18220 echo $ECHO_N "(cached) $ECHO_C" >&6
18221else
18222 if test "$ac_cv_type_short" = yes; then
18223 # The cast to unsigned long works around a bug in the HP C Compiler
18224 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18225 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18226 # This bug is HP SR number 8606223364.
18227 if test "$cross_compiling" = yes; then
18228 # Depending upon the size, compute the lo and hi bounds.
18229cat >conftest.$ac_ext <<_ACEOF
18230/* confdefs.h. */
18231_ACEOF
18232cat confdefs.h >>conftest.$ac_ext
18233cat >>conftest.$ac_ext <<_ACEOF
18234/* end confdefs.h. */
18235$ac_includes_default
18236int
18237main ()
18238{
18239static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
18240test_array [0] = 0
18241
18242 ;
18243 return 0;
18244}
18245_ACEOF
18246rm -f conftest.$ac_objext
18247if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18248 (eval $ac_compile) 2>conftest.er1
a848cd7e 18249 ac_status=$?
ac1cb8d3
VS
18250 grep -v '^ *+' conftest.er1 >conftest.err
18251 rm -f conftest.er1
18252 cat conftest.err >&5
a848cd7e
SC
18253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18254 (exit $ac_status); } &&
c9a66001 18255 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18257 (eval $ac_try) 2>&5
18258 ac_status=$?
18259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18260 (exit $ac_status); }; } &&
18261 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18263 (eval $ac_try) 2>&5
18264 ac_status=$?
18265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18266 (exit $ac_status); }; }; then
18267 ac_lo=0 ac_mid=0
18268 while :; do
18269 cat >conftest.$ac_ext <<_ACEOF
18270/* confdefs.h. */
18271_ACEOF
18272cat confdefs.h >>conftest.$ac_ext
18273cat >>conftest.$ac_ext <<_ACEOF
18274/* end confdefs.h. */
18275$ac_includes_default
18276int
18277main ()
18278{
18279static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
18280test_array [0] = 0
18281
18282 ;
18283 return 0;
18284}
18285_ACEOF
18286rm -f conftest.$ac_objext
18287if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18288 (eval $ac_compile) 2>conftest.er1
a848cd7e 18289 ac_status=$?
ac1cb8d3
VS
18290 grep -v '^ *+' conftest.er1 >conftest.err
18291 rm -f conftest.er1
18292 cat conftest.err >&5
a848cd7e
SC
18293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18294 (exit $ac_status); } &&
c9a66001 18295 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18297 (eval $ac_try) 2>&5
18298 ac_status=$?
18299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18300 (exit $ac_status); }; } &&
18301 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18303 (eval $ac_try) 2>&5
18304 ac_status=$?
18305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18306 (exit $ac_status); }; }; then
18307 ac_hi=$ac_mid; break
18308else
18309 echo "$as_me: failed program was:" >&5
18310sed 's/^/| /' conftest.$ac_ext >&5
18311
18312ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18313 if test $ac_lo -le $ac_mid; then
18314 ac_lo= ac_hi=
18315 break
18316 fi
18317 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18318fi
ac1cb8d3 18319rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18320 done
18321else
18322 echo "$as_me: failed program was:" >&5
18323sed 's/^/| /' conftest.$ac_ext >&5
18324
18325cat >conftest.$ac_ext <<_ACEOF
18326/* confdefs.h. */
18327_ACEOF
18328cat confdefs.h >>conftest.$ac_ext
18329cat >>conftest.$ac_ext <<_ACEOF
18330/* end confdefs.h. */
18331$ac_includes_default
18332int
18333main ()
18334{
18335static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
18336test_array [0] = 0
18337
18338 ;
18339 return 0;
18340}
18341_ACEOF
18342rm -f conftest.$ac_objext
18343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18344 (eval $ac_compile) 2>conftest.er1
a848cd7e 18345 ac_status=$?
ac1cb8d3
VS
18346 grep -v '^ *+' conftest.er1 >conftest.err
18347 rm -f conftest.er1
18348 cat conftest.err >&5
a848cd7e
SC
18349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18350 (exit $ac_status); } &&
c9a66001 18351 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18353 (eval $ac_try) 2>&5
18354 ac_status=$?
18355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18356 (exit $ac_status); }; } &&
18357 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18359 (eval $ac_try) 2>&5
18360 ac_status=$?
18361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18362 (exit $ac_status); }; }; then
18363 ac_hi=-1 ac_mid=-1
18364 while :; do
18365 cat >conftest.$ac_ext <<_ACEOF
18366/* confdefs.h. */
18367_ACEOF
18368cat confdefs.h >>conftest.$ac_ext
18369cat >>conftest.$ac_ext <<_ACEOF
18370/* end confdefs.h. */
18371$ac_includes_default
18372int
18373main ()
18374{
18375static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
18376test_array [0] = 0
18377
18378 ;
18379 return 0;
18380}
18381_ACEOF
18382rm -f conftest.$ac_objext
18383if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18384 (eval $ac_compile) 2>conftest.er1
a848cd7e 18385 ac_status=$?
ac1cb8d3
VS
18386 grep -v '^ *+' conftest.er1 >conftest.err
18387 rm -f conftest.er1
18388 cat conftest.err >&5
a848cd7e
SC
18389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18390 (exit $ac_status); } &&
c9a66001 18391 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18393 (eval $ac_try) 2>&5
18394 ac_status=$?
18395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18396 (exit $ac_status); }; } &&
18397 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18399 (eval $ac_try) 2>&5
18400 ac_status=$?
18401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18402 (exit $ac_status); }; }; then
18403 ac_lo=$ac_mid; break
18404else
18405 echo "$as_me: failed program was:" >&5
18406sed 's/^/| /' conftest.$ac_ext >&5
18407
18408ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18409 if test $ac_mid -le $ac_hi; then
18410 ac_lo= ac_hi=
18411 break
18412 fi
18413 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18414fi
ac1cb8d3 18415rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18416 done
18417else
18418 echo "$as_me: failed program was:" >&5
18419sed 's/^/| /' conftest.$ac_ext >&5
18420
18421ac_lo= ac_hi=
18422fi
ac1cb8d3 18423rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18424fi
ac1cb8d3 18425rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18426# Binary search between lo and hi bounds.
18427while test "x$ac_lo" != "x$ac_hi"; do
18428 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18429 cat >conftest.$ac_ext <<_ACEOF
18430/* confdefs.h. */
18431_ACEOF
18432cat confdefs.h >>conftest.$ac_ext
18433cat >>conftest.$ac_ext <<_ACEOF
18434/* end confdefs.h. */
18435$ac_includes_default
18436int
18437main ()
18438{
18439static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
18440test_array [0] = 0
18441
18442 ;
18443 return 0;
18444}
18445_ACEOF
18446rm -f conftest.$ac_objext
18447if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18448 (eval $ac_compile) 2>conftest.er1
a848cd7e 18449 ac_status=$?
ac1cb8d3
VS
18450 grep -v '^ *+' conftest.er1 >conftest.err
18451 rm -f conftest.er1
18452 cat conftest.err >&5
a848cd7e
SC
18453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18454 (exit $ac_status); } &&
c9a66001 18455 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18457 (eval $ac_try) 2>&5
18458 ac_status=$?
18459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18460 (exit $ac_status); }; } &&
18461 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18463 (eval $ac_try) 2>&5
18464 ac_status=$?
18465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466 (exit $ac_status); }; }; then
18467 ac_hi=$ac_mid
18468else
18469 echo "$as_me: failed program was:" >&5
18470sed 's/^/| /' conftest.$ac_ext >&5
18471
18472ac_lo=`expr '(' $ac_mid ')' + 1`
18473fi
ac1cb8d3 18474rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18475done
18476case $ac_lo in
18477?*) ac_cv_sizeof_short=$ac_lo;;
18478'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18479See \`config.log' for more details." >&5
18480echo "$as_me: error: cannot compute sizeof (short), 77
18481See \`config.log' for more details." >&2;}
18482 { (exit 1); exit 1; }; } ;;
18483esac
18484else
18485 if test "$cross_compiling" = yes; then
c9a66001
VZ
18486 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18487echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18488 { (exit 1); exit 1; }; }
18489else
18490 cat >conftest.$ac_ext <<_ACEOF
18491/* confdefs.h. */
18492_ACEOF
18493cat confdefs.h >>conftest.$ac_ext
18494cat >>conftest.$ac_ext <<_ACEOF
18495/* end confdefs.h. */
18496$ac_includes_default
18497long longval () { return (long) (sizeof (short)); }
18498unsigned long ulongval () { return (long) (sizeof (short)); }
18499#include <stdio.h>
18500#include <stdlib.h>
18501int
18502main ()
18503{
18504
18505 FILE *f = fopen ("conftest.val", "w");
18506 if (! f)
18507 exit (1);
18508 if (((long) (sizeof (short))) < 0)
18509 {
18510 long i = longval ();
18511 if (i != ((long) (sizeof (short))))
18512 exit (1);
18513 fprintf (f, "%ld\n", i);
18514 }
18515 else
18516 {
18517 unsigned long i = ulongval ();
18518 if (i != ((long) (sizeof (short))))
18519 exit (1);
18520 fprintf (f, "%lu\n", i);
18521 }
18522 exit (ferror (f) || fclose (f) != 0);
18523
18524 ;
18525 return 0;
18526}
18527_ACEOF
18528rm -f conftest$ac_exeext
18529if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18530 (eval $ac_link) 2>&5
18531 ac_status=$?
18532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18533 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18535 (eval $ac_try) 2>&5
18536 ac_status=$?
18537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18538 (exit $ac_status); }; }; then
18539 ac_cv_sizeof_short=`cat conftest.val`
18540else
18541 echo "$as_me: program exited with status $ac_status" >&5
18542echo "$as_me: failed program was:" >&5
18543sed 's/^/| /' conftest.$ac_ext >&5
18544
18545( exit $ac_status )
18546{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18547See \`config.log' for more details." >&5
18548echo "$as_me: error: cannot compute sizeof (short), 77
18549See \`config.log' for more details." >&2;}
18550 { (exit 1); exit 1; }; }
18551fi
ac1cb8d3 18552rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18553fi
18554fi
18555rm -f conftest.val
18556else
18557 ac_cv_sizeof_short=0
18558fi
18559fi
18560echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
18561echo "${ECHO_T}$ac_cv_sizeof_short" >&6
18562cat >>confdefs.h <<_ACEOF
18563#define SIZEOF_SHORT $ac_cv_sizeof_short
18564_ACEOF
18565
18566
18567echo "$as_me:$LINENO: checking for void *" >&5
18568echo $ECHO_N "checking for void *... $ECHO_C" >&6
18569if test "${ac_cv_type_void_p+set}" = set; then
18570 echo $ECHO_N "(cached) $ECHO_C" >&6
18571else
18572 cat >conftest.$ac_ext <<_ACEOF
18573/* confdefs.h. */
18574_ACEOF
18575cat confdefs.h >>conftest.$ac_ext
18576cat >>conftest.$ac_ext <<_ACEOF
18577/* end confdefs.h. */
18578$ac_includes_default
18579int
18580main ()
18581{
18582if ((void * *) 0)
18583 return 0;
18584if (sizeof (void *))
18585 return 0;
18586 ;
18587 return 0;
18588}
18589_ACEOF
18590rm -f conftest.$ac_objext
18591if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18592 (eval $ac_compile) 2>conftest.er1
a848cd7e 18593 ac_status=$?
ac1cb8d3
VS
18594 grep -v '^ *+' conftest.er1 >conftest.err
18595 rm -f conftest.er1
18596 cat conftest.err >&5
a848cd7e
SC
18597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18598 (exit $ac_status); } &&
c9a66001 18599 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18601 (eval $ac_try) 2>&5
18602 ac_status=$?
18603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18604 (exit $ac_status); }; } &&
18605 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18607 (eval $ac_try) 2>&5
18608 ac_status=$?
18609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18610 (exit $ac_status); }; }; then
18611 ac_cv_type_void_p=yes
18612else
18613 echo "$as_me: failed program was:" >&5
18614sed 's/^/| /' conftest.$ac_ext >&5
18615
18616ac_cv_type_void_p=no
18617fi
ac1cb8d3 18618rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18619fi
18620echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
18621echo "${ECHO_T}$ac_cv_type_void_p" >&6
18622
18623echo "$as_me:$LINENO: checking size of void *" >&5
18624echo $ECHO_N "checking size of void *... $ECHO_C" >&6
18625if test "${ac_cv_sizeof_void_p+set}" = set; then
18626 echo $ECHO_N "(cached) $ECHO_C" >&6
18627else
18628 if test "$ac_cv_type_void_p" = yes; then
18629 # The cast to unsigned long works around a bug in the HP C Compiler
18630 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18631 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18632 # This bug is HP SR number 8606223364.
18633 if test "$cross_compiling" = yes; then
18634 # Depending upon the size, compute the lo and hi bounds.
18635cat >conftest.$ac_ext <<_ACEOF
18636/* confdefs.h. */
18637_ACEOF
18638cat confdefs.h >>conftest.$ac_ext
18639cat >>conftest.$ac_ext <<_ACEOF
18640/* end confdefs.h. */
18641$ac_includes_default
18642int
18643main ()
18644{
18645static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
18646test_array [0] = 0
18647
18648 ;
18649 return 0;
18650}
18651_ACEOF
18652rm -f conftest.$ac_objext
18653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18654 (eval $ac_compile) 2>conftest.er1
a848cd7e 18655 ac_status=$?
ac1cb8d3
VS
18656 grep -v '^ *+' conftest.er1 >conftest.err
18657 rm -f conftest.er1
18658 cat conftest.err >&5
a848cd7e
SC
18659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18660 (exit $ac_status); } &&
c9a66001 18661 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18663 (eval $ac_try) 2>&5
18664 ac_status=$?
18665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18666 (exit $ac_status); }; } &&
18667 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18669 (eval $ac_try) 2>&5
18670 ac_status=$?
18671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18672 (exit $ac_status); }; }; then
18673 ac_lo=0 ac_mid=0
18674 while :; do
18675 cat >conftest.$ac_ext <<_ACEOF
18676/* confdefs.h. */
18677_ACEOF
18678cat confdefs.h >>conftest.$ac_ext
18679cat >>conftest.$ac_ext <<_ACEOF
18680/* end confdefs.h. */
18681$ac_includes_default
18682int
18683main ()
18684{
18685static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
18686test_array [0] = 0
18687
18688 ;
18689 return 0;
18690}
18691_ACEOF
18692rm -f conftest.$ac_objext
18693if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18694 (eval $ac_compile) 2>conftest.er1
a848cd7e 18695 ac_status=$?
ac1cb8d3
VS
18696 grep -v '^ *+' conftest.er1 >conftest.err
18697 rm -f conftest.er1
18698 cat conftest.err >&5
a848cd7e
SC
18699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18700 (exit $ac_status); } &&
c9a66001 18701 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18703 (eval $ac_try) 2>&5
18704 ac_status=$?
18705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18706 (exit $ac_status); }; } &&
18707 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18709 (eval $ac_try) 2>&5
18710 ac_status=$?
18711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18712 (exit $ac_status); }; }; then
18713 ac_hi=$ac_mid; break
18714else
18715 echo "$as_me: failed program was:" >&5
18716sed 's/^/| /' conftest.$ac_ext >&5
18717
18718ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18719 if test $ac_lo -le $ac_mid; then
18720 ac_lo= ac_hi=
18721 break
18722 fi
18723 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18724fi
ac1cb8d3 18725rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18726 done
18727else
18728 echo "$as_me: failed program was:" >&5
18729sed 's/^/| /' conftest.$ac_ext >&5
18730
18731cat >conftest.$ac_ext <<_ACEOF
18732/* confdefs.h. */
18733_ACEOF
18734cat confdefs.h >>conftest.$ac_ext
18735cat >>conftest.$ac_ext <<_ACEOF
18736/* end confdefs.h. */
18737$ac_includes_default
18738int
18739main ()
18740{
18741static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
18742test_array [0] = 0
18743
18744 ;
18745 return 0;
18746}
18747_ACEOF
18748rm -f conftest.$ac_objext
18749if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18750 (eval $ac_compile) 2>conftest.er1
a848cd7e 18751 ac_status=$?
ac1cb8d3
VS
18752 grep -v '^ *+' conftest.er1 >conftest.err
18753 rm -f conftest.er1
18754 cat conftest.err >&5
a848cd7e
SC
18755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18756 (exit $ac_status); } &&
c9a66001 18757 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18759 (eval $ac_try) 2>&5
18760 ac_status=$?
18761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18762 (exit $ac_status); }; } &&
18763 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18765 (eval $ac_try) 2>&5
18766 ac_status=$?
18767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18768 (exit $ac_status); }; }; then
18769 ac_hi=-1 ac_mid=-1
18770 while :; do
18771 cat >conftest.$ac_ext <<_ACEOF
18772/* confdefs.h. */
18773_ACEOF
18774cat confdefs.h >>conftest.$ac_ext
18775cat >>conftest.$ac_ext <<_ACEOF
18776/* end confdefs.h. */
18777$ac_includes_default
18778int
18779main ()
18780{
18781static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
18782test_array [0] = 0
18783
18784 ;
18785 return 0;
18786}
18787_ACEOF
18788rm -f conftest.$ac_objext
18789if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18790 (eval $ac_compile) 2>conftest.er1
a848cd7e 18791 ac_status=$?
ac1cb8d3
VS
18792 grep -v '^ *+' conftest.er1 >conftest.err
18793 rm -f conftest.er1
18794 cat conftest.err >&5
a848cd7e
SC
18795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18796 (exit $ac_status); } &&
c9a66001 18797 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18799 (eval $ac_try) 2>&5
18800 ac_status=$?
18801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18802 (exit $ac_status); }; } &&
18803 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18805 (eval $ac_try) 2>&5
18806 ac_status=$?
18807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18808 (exit $ac_status); }; }; then
18809 ac_lo=$ac_mid; break
18810else
18811 echo "$as_me: failed program was:" >&5
18812sed 's/^/| /' conftest.$ac_ext >&5
18813
18814ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18815 if test $ac_mid -le $ac_hi; then
18816 ac_lo= ac_hi=
18817 break
18818 fi
18819 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18820fi
ac1cb8d3 18821rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18822 done
18823else
18824 echo "$as_me: failed program was:" >&5
18825sed 's/^/| /' conftest.$ac_ext >&5
18826
18827ac_lo= ac_hi=
18828fi
ac1cb8d3 18829rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18830fi
ac1cb8d3 18831rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18832# Binary search between lo and hi bounds.
18833while test "x$ac_lo" != "x$ac_hi"; do
18834 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18835 cat >conftest.$ac_ext <<_ACEOF
18836/* confdefs.h. */
18837_ACEOF
18838cat confdefs.h >>conftest.$ac_ext
18839cat >>conftest.$ac_ext <<_ACEOF
18840/* end confdefs.h. */
18841$ac_includes_default
18842int
18843main ()
18844{
18845static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
18846test_array [0] = 0
18847
18848 ;
18849 return 0;
18850}
18851_ACEOF
18852rm -f conftest.$ac_objext
18853if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18854 (eval $ac_compile) 2>conftest.er1
a848cd7e 18855 ac_status=$?
ac1cb8d3
VS
18856 grep -v '^ *+' conftest.er1 >conftest.err
18857 rm -f conftest.er1
18858 cat conftest.err >&5
a848cd7e
SC
18859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18860 (exit $ac_status); } &&
c9a66001 18861 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18863 (eval $ac_try) 2>&5
18864 ac_status=$?
18865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18866 (exit $ac_status); }; } &&
18867 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18869 (eval $ac_try) 2>&5
18870 ac_status=$?
18871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18872 (exit $ac_status); }; }; then
18873 ac_hi=$ac_mid
18874else
18875 echo "$as_me: failed program was:" >&5
18876sed 's/^/| /' conftest.$ac_ext >&5
18877
18878ac_lo=`expr '(' $ac_mid ')' + 1`
18879fi
ac1cb8d3 18880rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18881done
18882case $ac_lo in
18883?*) ac_cv_sizeof_void_p=$ac_lo;;
18884'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
18885See \`config.log' for more details." >&5
18886echo "$as_me: error: cannot compute sizeof (void *), 77
18887See \`config.log' for more details." >&2;}
18888 { (exit 1); exit 1; }; } ;;
18889esac
18890else
18891 if test "$cross_compiling" = yes; then
c9a66001
VZ
18892 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18893echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18894 { (exit 1); exit 1; }; }
18895else
18896 cat >conftest.$ac_ext <<_ACEOF
18897/* confdefs.h. */
18898_ACEOF
18899cat confdefs.h >>conftest.$ac_ext
18900cat >>conftest.$ac_ext <<_ACEOF
18901/* end confdefs.h. */
18902$ac_includes_default
18903long longval () { return (long) (sizeof (void *)); }
18904unsigned long ulongval () { return (long) (sizeof (void *)); }
18905#include <stdio.h>
18906#include <stdlib.h>
18907int
18908main ()
18909{
18910
18911 FILE *f = fopen ("conftest.val", "w");
18912 if (! f)
18913 exit (1);
18914 if (((long) (sizeof (void *))) < 0)
18915 {
18916 long i = longval ();
18917 if (i != ((long) (sizeof (void *))))
18918 exit (1);
18919 fprintf (f, "%ld\n", i);
18920 }
18921 else
18922 {
18923 unsigned long i = ulongval ();
18924 if (i != ((long) (sizeof (void *))))
18925 exit (1);
18926 fprintf (f, "%lu\n", i);
18927 }
18928 exit (ferror (f) || fclose (f) != 0);
18929
18930 ;
18931 return 0;
18932}
18933_ACEOF
18934rm -f conftest$ac_exeext
18935if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18936 (eval $ac_link) 2>&5
18937 ac_status=$?
18938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18939 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18941 (eval $ac_try) 2>&5
18942 ac_status=$?
18943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18944 (exit $ac_status); }; }; then
18945 ac_cv_sizeof_void_p=`cat conftest.val`
18946else
18947 echo "$as_me: program exited with status $ac_status" >&5
18948echo "$as_me: failed program was:" >&5
18949sed 's/^/| /' conftest.$ac_ext >&5
18950
18951( exit $ac_status )
18952{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
18953See \`config.log' for more details." >&5
18954echo "$as_me: error: cannot compute sizeof (void *), 77
18955See \`config.log' for more details." >&2;}
18956 { (exit 1); exit 1; }; }
18957fi
ac1cb8d3 18958rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18959fi
18960fi
18961rm -f conftest.val
18962else
18963 ac_cv_sizeof_void_p=0
18964fi
18965fi
18966echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
18967echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
18968cat >>confdefs.h <<_ACEOF
18969#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
18970_ACEOF
18971
18972
18973echo "$as_me:$LINENO: checking for int" >&5
18974echo $ECHO_N "checking for int... $ECHO_C" >&6
18975if test "${ac_cv_type_int+set}" = set; then
18976 echo $ECHO_N "(cached) $ECHO_C" >&6
18977else
18978 cat >conftest.$ac_ext <<_ACEOF
18979/* confdefs.h. */
18980_ACEOF
18981cat confdefs.h >>conftest.$ac_ext
18982cat >>conftest.$ac_ext <<_ACEOF
18983/* end confdefs.h. */
18984$ac_includes_default
18985int
18986main ()
18987{
18988if ((int *) 0)
18989 return 0;
18990if (sizeof (int))
18991 return 0;
18992 ;
18993 return 0;
18994}
18995_ACEOF
18996rm -f conftest.$ac_objext
18997if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18998 (eval $ac_compile) 2>conftest.er1
a848cd7e 18999 ac_status=$?
ac1cb8d3
VS
19000 grep -v '^ *+' conftest.er1 >conftest.err
19001 rm -f conftest.er1
19002 cat conftest.err >&5
a848cd7e
SC
19003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19004 (exit $ac_status); } &&
c9a66001 19005 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19007 (eval $ac_try) 2>&5
19008 ac_status=$?
19009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19010 (exit $ac_status); }; } &&
19011 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19013 (eval $ac_try) 2>&5
19014 ac_status=$?
19015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19016 (exit $ac_status); }; }; then
19017 ac_cv_type_int=yes
19018else
19019 echo "$as_me: failed program was:" >&5
19020sed 's/^/| /' conftest.$ac_ext >&5
19021
19022ac_cv_type_int=no
19023fi
ac1cb8d3 19024rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19025fi
19026echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
19027echo "${ECHO_T}$ac_cv_type_int" >&6
19028
19029echo "$as_me:$LINENO: checking size of int" >&5
19030echo $ECHO_N "checking size of int... $ECHO_C" >&6
19031if test "${ac_cv_sizeof_int+set}" = set; then
19032 echo $ECHO_N "(cached) $ECHO_C" >&6
19033else
19034 if test "$ac_cv_type_int" = yes; then
19035 # The cast to unsigned long works around a bug in the HP C Compiler
19036 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19037 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19038 # This bug is HP SR number 8606223364.
19039 if test "$cross_compiling" = yes; then
19040 # Depending upon the size, compute the lo and hi bounds.
19041cat >conftest.$ac_ext <<_ACEOF
19042/* confdefs.h. */
19043_ACEOF
19044cat confdefs.h >>conftest.$ac_ext
19045cat >>conftest.$ac_ext <<_ACEOF
19046/* end confdefs.h. */
19047$ac_includes_default
19048int
19049main ()
19050{
19051static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
19052test_array [0] = 0
19053
19054 ;
19055 return 0;
19056}
19057_ACEOF
19058rm -f conftest.$ac_objext
19059if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19060 (eval $ac_compile) 2>conftest.er1
a848cd7e 19061 ac_status=$?
ac1cb8d3
VS
19062 grep -v '^ *+' conftest.er1 >conftest.err
19063 rm -f conftest.er1
19064 cat conftest.err >&5
a848cd7e
SC
19065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066 (exit $ac_status); } &&
c9a66001 19067 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19069 (eval $ac_try) 2>&5
19070 ac_status=$?
19071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19072 (exit $ac_status); }; } &&
19073 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19075 (eval $ac_try) 2>&5
19076 ac_status=$?
19077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078 (exit $ac_status); }; }; then
19079 ac_lo=0 ac_mid=0
19080 while :; do
19081 cat >conftest.$ac_ext <<_ACEOF
19082/* confdefs.h. */
19083_ACEOF
19084cat confdefs.h >>conftest.$ac_ext
19085cat >>conftest.$ac_ext <<_ACEOF
19086/* end confdefs.h. */
19087$ac_includes_default
19088int
19089main ()
19090{
19091static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
19092test_array [0] = 0
19093
19094 ;
19095 return 0;
19096}
19097_ACEOF
19098rm -f conftest.$ac_objext
19099if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19100 (eval $ac_compile) 2>conftest.er1
a848cd7e 19101 ac_status=$?
ac1cb8d3
VS
19102 grep -v '^ *+' conftest.er1 >conftest.err
19103 rm -f conftest.er1
19104 cat conftest.err >&5
a848cd7e
SC
19105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19106 (exit $ac_status); } &&
c9a66001 19107 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19109 (eval $ac_try) 2>&5
19110 ac_status=$?
19111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19112 (exit $ac_status); }; } &&
19113 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19115 (eval $ac_try) 2>&5
19116 ac_status=$?
19117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19118 (exit $ac_status); }; }; then
19119 ac_hi=$ac_mid; break
19120else
19121 echo "$as_me: failed program was:" >&5
19122sed 's/^/| /' conftest.$ac_ext >&5
19123
19124ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19125 if test $ac_lo -le $ac_mid; then
19126 ac_lo= ac_hi=
19127 break
19128 fi
19129 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19130fi
ac1cb8d3 19131rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19132 done
19133else
19134 echo "$as_me: failed program was:" >&5
19135sed 's/^/| /' conftest.$ac_ext >&5
19136
19137cat >conftest.$ac_ext <<_ACEOF
19138/* confdefs.h. */
19139_ACEOF
19140cat confdefs.h >>conftest.$ac_ext
19141cat >>conftest.$ac_ext <<_ACEOF
19142/* end confdefs.h. */
19143$ac_includes_default
19144int
19145main ()
19146{
19147static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
19148test_array [0] = 0
19149
19150 ;
19151 return 0;
19152}
19153_ACEOF
19154rm -f conftest.$ac_objext
19155if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19156 (eval $ac_compile) 2>conftest.er1
a848cd7e 19157 ac_status=$?
ac1cb8d3
VS
19158 grep -v '^ *+' conftest.er1 >conftest.err
19159 rm -f conftest.er1
19160 cat conftest.err >&5
a848cd7e
SC
19161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19162 (exit $ac_status); } &&
c9a66001 19163 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19165 (eval $ac_try) 2>&5
19166 ac_status=$?
19167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19168 (exit $ac_status); }; } &&
19169 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19171 (eval $ac_try) 2>&5
19172 ac_status=$?
19173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19174 (exit $ac_status); }; }; then
19175 ac_hi=-1 ac_mid=-1
19176 while :; do
19177 cat >conftest.$ac_ext <<_ACEOF
19178/* confdefs.h. */
19179_ACEOF
19180cat confdefs.h >>conftest.$ac_ext
19181cat >>conftest.$ac_ext <<_ACEOF
19182/* end confdefs.h. */
19183$ac_includes_default
19184int
19185main ()
19186{
19187static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
19188test_array [0] = 0
19189
19190 ;
19191 return 0;
19192}
19193_ACEOF
19194rm -f conftest.$ac_objext
19195if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19196 (eval $ac_compile) 2>conftest.er1
a848cd7e 19197 ac_status=$?
ac1cb8d3
VS
19198 grep -v '^ *+' conftest.er1 >conftest.err
19199 rm -f conftest.er1
19200 cat conftest.err >&5
a848cd7e
SC
19201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202 (exit $ac_status); } &&
c9a66001 19203 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19205 (eval $ac_try) 2>&5
19206 ac_status=$?
19207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19208 (exit $ac_status); }; } &&
19209 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19211 (eval $ac_try) 2>&5
19212 ac_status=$?
19213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19214 (exit $ac_status); }; }; then
19215 ac_lo=$ac_mid; break
19216else
19217 echo "$as_me: failed program was:" >&5
19218sed 's/^/| /' conftest.$ac_ext >&5
19219
19220ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19221 if test $ac_mid -le $ac_hi; then
19222 ac_lo= ac_hi=
19223 break
19224 fi
19225 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19226fi
ac1cb8d3 19227rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19228 done
19229else
19230 echo "$as_me: failed program was:" >&5
19231sed 's/^/| /' conftest.$ac_ext >&5
19232
19233ac_lo= ac_hi=
19234fi
ac1cb8d3 19235rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19236fi
ac1cb8d3 19237rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19238# Binary search between lo and hi bounds.
19239while test "x$ac_lo" != "x$ac_hi"; do
19240 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19241 cat >conftest.$ac_ext <<_ACEOF
19242/* confdefs.h. */
19243_ACEOF
19244cat confdefs.h >>conftest.$ac_ext
19245cat >>conftest.$ac_ext <<_ACEOF
19246/* end confdefs.h. */
19247$ac_includes_default
19248int
19249main ()
19250{
19251static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
19252test_array [0] = 0
19253
19254 ;
19255 return 0;
19256}
19257_ACEOF
19258rm -f conftest.$ac_objext
19259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19260 (eval $ac_compile) 2>conftest.er1
a848cd7e 19261 ac_status=$?
ac1cb8d3
VS
19262 grep -v '^ *+' conftest.er1 >conftest.err
19263 rm -f conftest.er1
19264 cat conftest.err >&5
a848cd7e
SC
19265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19266 (exit $ac_status); } &&
c9a66001 19267 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19269 (eval $ac_try) 2>&5
19270 ac_status=$?
19271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19272 (exit $ac_status); }; } &&
19273 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19275 (eval $ac_try) 2>&5
19276 ac_status=$?
19277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19278 (exit $ac_status); }; }; then
19279 ac_hi=$ac_mid
19280else
19281 echo "$as_me: failed program was:" >&5
19282sed 's/^/| /' conftest.$ac_ext >&5
19283
19284ac_lo=`expr '(' $ac_mid ')' + 1`
19285fi
ac1cb8d3 19286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19287done
19288case $ac_lo in
19289?*) ac_cv_sizeof_int=$ac_lo;;
19290'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
19291See \`config.log' for more details." >&5
19292echo "$as_me: error: cannot compute sizeof (int), 77
19293See \`config.log' for more details." >&2;}
19294 { (exit 1); exit 1; }; } ;;
19295esac
19296else
19297 if test "$cross_compiling" = yes; then
c9a66001
VZ
19298 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19299echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19300 { (exit 1); exit 1; }; }
19301else
19302 cat >conftest.$ac_ext <<_ACEOF
19303/* confdefs.h. */
19304_ACEOF
19305cat confdefs.h >>conftest.$ac_ext
19306cat >>conftest.$ac_ext <<_ACEOF
19307/* end confdefs.h. */
19308$ac_includes_default
19309long longval () { return (long) (sizeof (int)); }
19310unsigned long ulongval () { return (long) (sizeof (int)); }
19311#include <stdio.h>
19312#include <stdlib.h>
19313int
19314main ()
19315{
19316
19317 FILE *f = fopen ("conftest.val", "w");
19318 if (! f)
19319 exit (1);
19320 if (((long) (sizeof (int))) < 0)
19321 {
19322 long i = longval ();
19323 if (i != ((long) (sizeof (int))))
19324 exit (1);
19325 fprintf (f, "%ld\n", i);
19326 }
19327 else
19328 {
19329 unsigned long i = ulongval ();
19330 if (i != ((long) (sizeof (int))))
19331 exit (1);
19332 fprintf (f, "%lu\n", i);
19333 }
19334 exit (ferror (f) || fclose (f) != 0);
19335
19336 ;
19337 return 0;
19338}
19339_ACEOF
19340rm -f conftest$ac_exeext
19341if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19342 (eval $ac_link) 2>&5
19343 ac_status=$?
19344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19345 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19347 (eval $ac_try) 2>&5
19348 ac_status=$?
19349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19350 (exit $ac_status); }; }; then
19351 ac_cv_sizeof_int=`cat conftest.val`
19352else
19353 echo "$as_me: program exited with status $ac_status" >&5
19354echo "$as_me: failed program was:" >&5
19355sed 's/^/| /' conftest.$ac_ext >&5
19356
19357( exit $ac_status )
19358{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
19359See \`config.log' for more details." >&5
19360echo "$as_me: error: cannot compute sizeof (int), 77
19361See \`config.log' for more details." >&2;}
19362 { (exit 1); exit 1; }; }
19363fi
ac1cb8d3 19364rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19365fi
19366fi
19367rm -f conftest.val
19368else
19369 ac_cv_sizeof_int=0
19370fi
19371fi
19372echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
19373echo "${ECHO_T}$ac_cv_sizeof_int" >&6
19374cat >>confdefs.h <<_ACEOF
19375#define SIZEOF_INT $ac_cv_sizeof_int
19376_ACEOF
19377
19378
19379echo "$as_me:$LINENO: checking for long" >&5
19380echo $ECHO_N "checking for long... $ECHO_C" >&6
19381if test "${ac_cv_type_long+set}" = set; then
19382 echo $ECHO_N "(cached) $ECHO_C" >&6
19383else
19384 cat >conftest.$ac_ext <<_ACEOF
19385/* confdefs.h. */
19386_ACEOF
19387cat confdefs.h >>conftest.$ac_ext
19388cat >>conftest.$ac_ext <<_ACEOF
19389/* end confdefs.h. */
19390$ac_includes_default
19391int
19392main ()
19393{
19394if ((long *) 0)
19395 return 0;
19396if (sizeof (long))
19397 return 0;
19398 ;
19399 return 0;
19400}
19401_ACEOF
19402rm -f conftest.$ac_objext
19403if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19404 (eval $ac_compile) 2>conftest.er1
a848cd7e 19405 ac_status=$?
ac1cb8d3
VS
19406 grep -v '^ *+' conftest.er1 >conftest.err
19407 rm -f conftest.er1
19408 cat conftest.err >&5
a848cd7e
SC
19409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19410 (exit $ac_status); } &&
c9a66001 19411 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19413 (eval $ac_try) 2>&5
19414 ac_status=$?
19415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19416 (exit $ac_status); }; } &&
19417 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19419 (eval $ac_try) 2>&5
19420 ac_status=$?
19421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19422 (exit $ac_status); }; }; then
19423 ac_cv_type_long=yes
19424else
19425 echo "$as_me: failed program was:" >&5
19426sed 's/^/| /' conftest.$ac_ext >&5
19427
19428ac_cv_type_long=no
19429fi
ac1cb8d3 19430rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19431fi
19432echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
19433echo "${ECHO_T}$ac_cv_type_long" >&6
19434
19435echo "$as_me:$LINENO: checking size of long" >&5
19436echo $ECHO_N "checking size of long... $ECHO_C" >&6
19437if test "${ac_cv_sizeof_long+set}" = set; then
19438 echo $ECHO_N "(cached) $ECHO_C" >&6
19439else
19440 if test "$ac_cv_type_long" = yes; then
19441 # The cast to unsigned long works around a bug in the HP C Compiler
19442 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19443 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19444 # This bug is HP SR number 8606223364.
19445 if test "$cross_compiling" = yes; then
19446 # Depending upon the size, compute the lo and hi bounds.
19447cat >conftest.$ac_ext <<_ACEOF
19448/* confdefs.h. */
19449_ACEOF
19450cat confdefs.h >>conftest.$ac_ext
19451cat >>conftest.$ac_ext <<_ACEOF
19452/* end confdefs.h. */
19453$ac_includes_default
19454int
19455main ()
19456{
19457static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
19458test_array [0] = 0
19459
19460 ;
19461 return 0;
19462}
19463_ACEOF
19464rm -f conftest.$ac_objext
19465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19466 (eval $ac_compile) 2>conftest.er1
a848cd7e 19467 ac_status=$?
ac1cb8d3
VS
19468 grep -v '^ *+' conftest.er1 >conftest.err
19469 rm -f conftest.er1
19470 cat conftest.err >&5
a848cd7e
SC
19471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19472 (exit $ac_status); } &&
c9a66001 19473 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19475 (eval $ac_try) 2>&5
19476 ac_status=$?
19477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19478 (exit $ac_status); }; } &&
19479 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19481 (eval $ac_try) 2>&5
19482 ac_status=$?
19483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19484 (exit $ac_status); }; }; then
19485 ac_lo=0 ac_mid=0
19486 while :; do
19487 cat >conftest.$ac_ext <<_ACEOF
19488/* confdefs.h. */
19489_ACEOF
19490cat confdefs.h >>conftest.$ac_ext
19491cat >>conftest.$ac_ext <<_ACEOF
19492/* end confdefs.h. */
19493$ac_includes_default
19494int
19495main ()
19496{
19497static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19498test_array [0] = 0
19499
19500 ;
19501 return 0;
19502}
19503_ACEOF
19504rm -f conftest.$ac_objext
19505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19506 (eval $ac_compile) 2>conftest.er1
a848cd7e 19507 ac_status=$?
ac1cb8d3
VS
19508 grep -v '^ *+' conftest.er1 >conftest.err
19509 rm -f conftest.er1
19510 cat conftest.err >&5
a848cd7e
SC
19511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19512 (exit $ac_status); } &&
c9a66001 19513 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19515 (eval $ac_try) 2>&5
19516 ac_status=$?
19517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518 (exit $ac_status); }; } &&
19519 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19521 (eval $ac_try) 2>&5
19522 ac_status=$?
19523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19524 (exit $ac_status); }; }; then
19525 ac_hi=$ac_mid; break
19526else
19527 echo "$as_me: failed program was:" >&5
19528sed 's/^/| /' conftest.$ac_ext >&5
19529
19530ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19531 if test $ac_lo -le $ac_mid; then
19532 ac_lo= ac_hi=
19533 break
19534 fi
19535 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19536fi
ac1cb8d3 19537rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19538 done
19539else
19540 echo "$as_me: failed program was:" >&5
19541sed 's/^/| /' conftest.$ac_ext >&5
19542
19543cat >conftest.$ac_ext <<_ACEOF
19544/* confdefs.h. */
19545_ACEOF
19546cat confdefs.h >>conftest.$ac_ext
19547cat >>conftest.$ac_ext <<_ACEOF
19548/* end confdefs.h. */
19549$ac_includes_default
19550int
19551main ()
19552{
19553static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
19554test_array [0] = 0
19555
19556 ;
19557 return 0;
19558}
19559_ACEOF
19560rm -f conftest.$ac_objext
19561if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19562 (eval $ac_compile) 2>conftest.er1
a848cd7e 19563 ac_status=$?
ac1cb8d3
VS
19564 grep -v '^ *+' conftest.er1 >conftest.err
19565 rm -f conftest.er1
19566 cat conftest.err >&5
a848cd7e
SC
19567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19568 (exit $ac_status); } &&
c9a66001 19569 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19571 (eval $ac_try) 2>&5
19572 ac_status=$?
19573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19574 (exit $ac_status); }; } &&
19575 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19577 (eval $ac_try) 2>&5
19578 ac_status=$?
19579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19580 (exit $ac_status); }; }; then
19581 ac_hi=-1 ac_mid=-1
19582 while :; do
19583 cat >conftest.$ac_ext <<_ACEOF
19584/* confdefs.h. */
19585_ACEOF
19586cat confdefs.h >>conftest.$ac_ext
19587cat >>conftest.$ac_ext <<_ACEOF
19588/* end confdefs.h. */
19589$ac_includes_default
19590int
19591main ()
19592{
19593static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
19594test_array [0] = 0
19595
19596 ;
19597 return 0;
19598}
19599_ACEOF
19600rm -f conftest.$ac_objext
19601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19602 (eval $ac_compile) 2>conftest.er1
a848cd7e 19603 ac_status=$?
ac1cb8d3
VS
19604 grep -v '^ *+' conftest.er1 >conftest.err
19605 rm -f conftest.er1
19606 cat conftest.err >&5
a848cd7e
SC
19607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19608 (exit $ac_status); } &&
c9a66001 19609 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19611 (eval $ac_try) 2>&5
19612 ac_status=$?
19613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19614 (exit $ac_status); }; } &&
19615 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19617 (eval $ac_try) 2>&5
19618 ac_status=$?
19619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620 (exit $ac_status); }; }; then
19621 ac_lo=$ac_mid; break
19622else
19623 echo "$as_me: failed program was:" >&5
19624sed 's/^/| /' conftest.$ac_ext >&5
19625
19626ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19627 if test $ac_mid -le $ac_hi; then
19628 ac_lo= ac_hi=
19629 break
19630 fi
19631 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19632fi
ac1cb8d3 19633rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19634 done
19635else
19636 echo "$as_me: failed program was:" >&5
19637sed 's/^/| /' conftest.$ac_ext >&5
19638
19639ac_lo= ac_hi=
19640fi
ac1cb8d3 19641rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19642fi
ac1cb8d3 19643rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19644# Binary search between lo and hi bounds.
19645while test "x$ac_lo" != "x$ac_hi"; do
19646 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19647 cat >conftest.$ac_ext <<_ACEOF
19648/* confdefs.h. */
19649_ACEOF
19650cat confdefs.h >>conftest.$ac_ext
19651cat >>conftest.$ac_ext <<_ACEOF
19652/* end confdefs.h. */
19653$ac_includes_default
19654int
19655main ()
19656{
19657static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19658test_array [0] = 0
19659
19660 ;
19661 return 0;
19662}
19663_ACEOF
19664rm -f conftest.$ac_objext
19665if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19666 (eval $ac_compile) 2>conftest.er1
a848cd7e 19667 ac_status=$?
ac1cb8d3
VS
19668 grep -v '^ *+' conftest.er1 >conftest.err
19669 rm -f conftest.er1
19670 cat conftest.err >&5
a848cd7e
SC
19671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19672 (exit $ac_status); } &&
c9a66001 19673 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19675 (eval $ac_try) 2>&5
19676 ac_status=$?
19677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19678 (exit $ac_status); }; } &&
19679 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19681 (eval $ac_try) 2>&5
19682 ac_status=$?
19683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19684 (exit $ac_status); }; }; then
19685 ac_hi=$ac_mid
19686else
19687 echo "$as_me: failed program was:" >&5
19688sed 's/^/| /' conftest.$ac_ext >&5
19689
19690ac_lo=`expr '(' $ac_mid ')' + 1`
19691fi
ac1cb8d3 19692rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19693done
19694case $ac_lo in
19695?*) ac_cv_sizeof_long=$ac_lo;;
19696'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19697See \`config.log' for more details." >&5
19698echo "$as_me: error: cannot compute sizeof (long), 77
19699See \`config.log' for more details." >&2;}
19700 { (exit 1); exit 1; }; } ;;
19701esac
19702else
19703 if test "$cross_compiling" = yes; then
c9a66001
VZ
19704 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19705echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19706 { (exit 1); exit 1; }; }
19707else
19708 cat >conftest.$ac_ext <<_ACEOF
19709/* confdefs.h. */
19710_ACEOF
19711cat confdefs.h >>conftest.$ac_ext
19712cat >>conftest.$ac_ext <<_ACEOF
19713/* end confdefs.h. */
19714$ac_includes_default
19715long longval () { return (long) (sizeof (long)); }
19716unsigned long ulongval () { return (long) (sizeof (long)); }
19717#include <stdio.h>
19718#include <stdlib.h>
19719int
19720main ()
19721{
19722
19723 FILE *f = fopen ("conftest.val", "w");
19724 if (! f)
19725 exit (1);
19726 if (((long) (sizeof (long))) < 0)
19727 {
19728 long i = longval ();
19729 if (i != ((long) (sizeof (long))))
19730 exit (1);
19731 fprintf (f, "%ld\n", i);
19732 }
19733 else
19734 {
19735 unsigned long i = ulongval ();
19736 if (i != ((long) (sizeof (long))))
19737 exit (1);
19738 fprintf (f, "%lu\n", i);
19739 }
19740 exit (ferror (f) || fclose (f) != 0);
19741
19742 ;
19743 return 0;
19744}
19745_ACEOF
19746rm -f conftest$ac_exeext
19747if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19748 (eval $ac_link) 2>&5
19749 ac_status=$?
19750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19751 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19753 (eval $ac_try) 2>&5
19754 ac_status=$?
19755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19756 (exit $ac_status); }; }; then
19757 ac_cv_sizeof_long=`cat conftest.val`
19758else
19759 echo "$as_me: program exited with status $ac_status" >&5
19760echo "$as_me: failed program was:" >&5
19761sed 's/^/| /' conftest.$ac_ext >&5
19762
19763( exit $ac_status )
19764{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19765See \`config.log' for more details." >&5
19766echo "$as_me: error: cannot compute sizeof (long), 77
19767See \`config.log' for more details." >&2;}
19768 { (exit 1); exit 1; }; }
19769fi
ac1cb8d3 19770rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19771fi
19772fi
19773rm -f conftest.val
19774else
19775 ac_cv_sizeof_long=0
19776fi
19777fi
19778echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
19779echo "${ECHO_T}$ac_cv_sizeof_long" >&6
19780cat >>confdefs.h <<_ACEOF
19781#define SIZEOF_LONG $ac_cv_sizeof_long
19782_ACEOF
19783
19784
19785echo "$as_me:$LINENO: checking for size_t" >&5
19786echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19787if test "${ac_cv_type_size_t+set}" = set; then
19788 echo $ECHO_N "(cached) $ECHO_C" >&6
19789else
19790 cat >conftest.$ac_ext <<_ACEOF
19791/* confdefs.h. */
19792_ACEOF
19793cat confdefs.h >>conftest.$ac_ext
19794cat >>conftest.$ac_ext <<_ACEOF
19795/* end confdefs.h. */
19796$ac_includes_default
19797int
19798main ()
19799{
19800if ((size_t *) 0)
19801 return 0;
19802if (sizeof (size_t))
19803 return 0;
19804 ;
19805 return 0;
19806}
19807_ACEOF
19808rm -f conftest.$ac_objext
19809if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19810 (eval $ac_compile) 2>conftest.er1
a848cd7e 19811 ac_status=$?
ac1cb8d3
VS
19812 grep -v '^ *+' conftest.er1 >conftest.err
19813 rm -f conftest.er1
19814 cat conftest.err >&5
a848cd7e
SC
19815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19816 (exit $ac_status); } &&
c9a66001 19817 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19819 (eval $ac_try) 2>&5
19820 ac_status=$?
19821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19822 (exit $ac_status); }; } &&
19823 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19825 (eval $ac_try) 2>&5
19826 ac_status=$?
19827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19828 (exit $ac_status); }; }; then
19829 ac_cv_type_size_t=yes
19830else
19831 echo "$as_me: failed program was:" >&5
19832sed 's/^/| /' conftest.$ac_ext >&5
19833
19834ac_cv_type_size_t=no
19835fi
ac1cb8d3 19836rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19837fi
19838echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19839echo "${ECHO_T}$ac_cv_type_size_t" >&6
19840
19841echo "$as_me:$LINENO: checking size of size_t" >&5
19842echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
19843if test "${ac_cv_sizeof_size_t+set}" = set; then
19844 echo $ECHO_N "(cached) $ECHO_C" >&6
19845else
19846 if test "$ac_cv_type_size_t" = yes; then
19847 # The cast to unsigned long works around a bug in the HP C Compiler
19848 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19849 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19850 # This bug is HP SR number 8606223364.
19851 if test "$cross_compiling" = yes; then
19852 # Depending upon the size, compute the lo and hi bounds.
19853cat >conftest.$ac_ext <<_ACEOF
19854/* confdefs.h. */
19855_ACEOF
19856cat confdefs.h >>conftest.$ac_ext
19857cat >>conftest.$ac_ext <<_ACEOF
19858/* end confdefs.h. */
19859$ac_includes_default
19860int
19861main ()
19862{
19863static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
19864test_array [0] = 0
19865
19866 ;
19867 return 0;
19868}
19869_ACEOF
19870rm -f conftest.$ac_objext
19871if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19872 (eval $ac_compile) 2>conftest.er1
a848cd7e 19873 ac_status=$?
ac1cb8d3
VS
19874 grep -v '^ *+' conftest.er1 >conftest.err
19875 rm -f conftest.er1
19876 cat conftest.err >&5
a848cd7e
SC
19877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19878 (exit $ac_status); } &&
c9a66001 19879 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19881 (eval $ac_try) 2>&5
19882 ac_status=$?
19883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19884 (exit $ac_status); }; } &&
19885 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19887 (eval $ac_try) 2>&5
19888 ac_status=$?
19889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19890 (exit $ac_status); }; }; then
19891 ac_lo=0 ac_mid=0
19892 while :; do
19893 cat >conftest.$ac_ext <<_ACEOF
19894/* confdefs.h. */
19895_ACEOF
19896cat confdefs.h >>conftest.$ac_ext
19897cat >>conftest.$ac_ext <<_ACEOF
19898/* end confdefs.h. */
19899$ac_includes_default
19900int
19901main ()
19902{
19903static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
19904test_array [0] = 0
19905
19906 ;
19907 return 0;
19908}
19909_ACEOF
19910rm -f conftest.$ac_objext
19911if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19912 (eval $ac_compile) 2>conftest.er1
a848cd7e 19913 ac_status=$?
ac1cb8d3
VS
19914 grep -v '^ *+' conftest.er1 >conftest.err
19915 rm -f conftest.er1
19916 cat conftest.err >&5
a848cd7e
SC
19917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19918 (exit $ac_status); } &&
c9a66001 19919 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19921 (eval $ac_try) 2>&5
19922 ac_status=$?
19923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19924 (exit $ac_status); }; } &&
19925 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19927 (eval $ac_try) 2>&5
19928 ac_status=$?
19929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19930 (exit $ac_status); }; }; then
19931 ac_hi=$ac_mid; break
19932else
19933 echo "$as_me: failed program was:" >&5
19934sed 's/^/| /' conftest.$ac_ext >&5
19935
19936ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19937 if test $ac_lo -le $ac_mid; then
19938 ac_lo= ac_hi=
19939 break
19940 fi
19941 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19942fi
ac1cb8d3 19943rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19944 done
19945else
19946 echo "$as_me: failed program was:" >&5
19947sed 's/^/| /' conftest.$ac_ext >&5
19948
19949cat >conftest.$ac_ext <<_ACEOF
19950/* confdefs.h. */
19951_ACEOF
19952cat confdefs.h >>conftest.$ac_ext
19953cat >>conftest.$ac_ext <<_ACEOF
19954/* end confdefs.h. */
19955$ac_includes_default
19956int
19957main ()
19958{
19959static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
19960test_array [0] = 0
19961
19962 ;
19963 return 0;
19964}
19965_ACEOF
19966rm -f conftest.$ac_objext
19967if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19968 (eval $ac_compile) 2>conftest.er1
a848cd7e 19969 ac_status=$?
ac1cb8d3
VS
19970 grep -v '^ *+' conftest.er1 >conftest.err
19971 rm -f conftest.er1
19972 cat conftest.err >&5
a848cd7e
SC
19973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19974 (exit $ac_status); } &&
c9a66001 19975 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19977 (eval $ac_try) 2>&5
19978 ac_status=$?
19979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19980 (exit $ac_status); }; } &&
19981 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19983 (eval $ac_try) 2>&5
19984 ac_status=$?
19985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19986 (exit $ac_status); }; }; then
19987 ac_hi=-1 ac_mid=-1
19988 while :; do
19989 cat >conftest.$ac_ext <<_ACEOF
19990/* confdefs.h. */
19991_ACEOF
19992cat confdefs.h >>conftest.$ac_ext
19993cat >>conftest.$ac_ext <<_ACEOF
19994/* end confdefs.h. */
19995$ac_includes_default
19996int
19997main ()
19998{
19999static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
20000test_array [0] = 0
20001
20002 ;
20003 return 0;
20004}
20005_ACEOF
20006rm -f conftest.$ac_objext
20007if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20008 (eval $ac_compile) 2>conftest.er1
a848cd7e 20009 ac_status=$?
ac1cb8d3
VS
20010 grep -v '^ *+' conftest.er1 >conftest.err
20011 rm -f conftest.er1
20012 cat conftest.err >&5
a848cd7e
SC
20013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20014 (exit $ac_status); } &&
c9a66001 20015 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20017 (eval $ac_try) 2>&5
20018 ac_status=$?
20019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20020 (exit $ac_status); }; } &&
20021 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20023 (eval $ac_try) 2>&5
20024 ac_status=$?
20025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20026 (exit $ac_status); }; }; then
20027 ac_lo=$ac_mid; break
20028else
20029 echo "$as_me: failed program was:" >&5
20030sed 's/^/| /' conftest.$ac_ext >&5
20031
20032ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20033 if test $ac_mid -le $ac_hi; then
20034 ac_lo= ac_hi=
20035 break
20036 fi
20037 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20038fi
ac1cb8d3 20039rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20040 done
20041else
20042 echo "$as_me: failed program was:" >&5
20043sed 's/^/| /' conftest.$ac_ext >&5
20044
20045ac_lo= ac_hi=
20046fi
ac1cb8d3 20047rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20048fi
ac1cb8d3 20049rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20050# Binary search between lo and hi bounds.
20051while test "x$ac_lo" != "x$ac_hi"; do
20052 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20053 cat >conftest.$ac_ext <<_ACEOF
20054/* confdefs.h. */
20055_ACEOF
20056cat confdefs.h >>conftest.$ac_ext
20057cat >>conftest.$ac_ext <<_ACEOF
20058/* end confdefs.h. */
20059$ac_includes_default
20060int
20061main ()
20062{
20063static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
20064test_array [0] = 0
20065
20066 ;
20067 return 0;
20068}
20069_ACEOF
20070rm -f conftest.$ac_objext
20071if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20072 (eval $ac_compile) 2>conftest.er1
a848cd7e 20073 ac_status=$?
ac1cb8d3
VS
20074 grep -v '^ *+' conftest.er1 >conftest.err
20075 rm -f conftest.er1
20076 cat conftest.err >&5
a848cd7e
SC
20077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20078 (exit $ac_status); } &&
c9a66001 20079 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20081 (eval $ac_try) 2>&5
20082 ac_status=$?
20083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20084 (exit $ac_status); }; } &&
20085 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20087 (eval $ac_try) 2>&5
20088 ac_status=$?
20089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20090 (exit $ac_status); }; }; then
20091 ac_hi=$ac_mid
20092else
20093 echo "$as_me: failed program was:" >&5
20094sed 's/^/| /' conftest.$ac_ext >&5
20095
20096ac_lo=`expr '(' $ac_mid ')' + 1`
20097fi
ac1cb8d3 20098rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20099done
20100case $ac_lo in
20101?*) ac_cv_sizeof_size_t=$ac_lo;;
20102'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
20103See \`config.log' for more details." >&5
20104echo "$as_me: error: cannot compute sizeof (size_t), 77
20105See \`config.log' for more details." >&2;}
20106 { (exit 1); exit 1; }; } ;;
20107esac
20108else
20109 if test "$cross_compiling" = yes; then
c9a66001
VZ
20110 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20111echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
20112 { (exit 1); exit 1; }; }
20113else
20114 cat >conftest.$ac_ext <<_ACEOF
20115/* confdefs.h. */
20116_ACEOF
20117cat confdefs.h >>conftest.$ac_ext
20118cat >>conftest.$ac_ext <<_ACEOF
20119/* end confdefs.h. */
20120$ac_includes_default
20121long longval () { return (long) (sizeof (size_t)); }
20122unsigned long ulongval () { return (long) (sizeof (size_t)); }
20123#include <stdio.h>
20124#include <stdlib.h>
20125int
20126main ()
20127{
20128
20129 FILE *f = fopen ("conftest.val", "w");
20130 if (! f)
20131 exit (1);
20132 if (((long) (sizeof (size_t))) < 0)
20133 {
20134 long i = longval ();
20135 if (i != ((long) (sizeof (size_t))))
20136 exit (1);
20137 fprintf (f, "%ld\n", i);
20138 }
20139 else
20140 {
20141 unsigned long i = ulongval ();
20142 if (i != ((long) (sizeof (size_t))))
20143 exit (1);
20144 fprintf (f, "%lu\n", i);
20145 }
20146 exit (ferror (f) || fclose (f) != 0);
20147
20148 ;
20149 return 0;
20150}
20151_ACEOF
20152rm -f conftest$ac_exeext
20153if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20154 (eval $ac_link) 2>&5
20155 ac_status=$?
20156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20157 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20159 (eval $ac_try) 2>&5
20160 ac_status=$?
20161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20162 (exit $ac_status); }; }; then
20163 ac_cv_sizeof_size_t=`cat conftest.val`
20164else
20165 echo "$as_me: program exited with status $ac_status" >&5
20166echo "$as_me: failed program was:" >&5
20167sed 's/^/| /' conftest.$ac_ext >&5
20168
20169( exit $ac_status )
20170{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
20171See \`config.log' for more details." >&5
20172echo "$as_me: error: cannot compute sizeof (size_t), 77
20173See \`config.log' for more details." >&2;}
20174 { (exit 1); exit 1; }; }
20175fi
ac1cb8d3 20176rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20177fi
20178fi
20179rm -f conftest.val
20180else
20181 ac_cv_sizeof_size_t=0
20182fi
20183fi
20184echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
20185echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
20186cat >>confdefs.h <<_ACEOF
20187#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
20188_ACEOF
20189
20190
20191
20192case "${host}" in
20193 arm-*-linux* )
20194 echo "$as_me:$LINENO: checking for long long" >&5
20195echo $ECHO_N "checking for long long... $ECHO_C" >&6
20196if test "${ac_cv_type_long_long+set}" = set; then
20197 echo $ECHO_N "(cached) $ECHO_C" >&6
20198else
20199 cat >conftest.$ac_ext <<_ACEOF
20200/* confdefs.h. */
20201_ACEOF
20202cat confdefs.h >>conftest.$ac_ext
20203cat >>conftest.$ac_ext <<_ACEOF
20204/* end confdefs.h. */
20205$ac_includes_default
20206int
20207main ()
20208{
20209if ((long long *) 0)
20210 return 0;
20211if (sizeof (long long))
20212 return 0;
20213 ;
20214 return 0;
20215}
20216_ACEOF
20217rm -f conftest.$ac_objext
20218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20219 (eval $ac_compile) 2>conftest.er1
a848cd7e 20220 ac_status=$?
ac1cb8d3
VS
20221 grep -v '^ *+' conftest.er1 >conftest.err
20222 rm -f conftest.er1
20223 cat conftest.err >&5
a848cd7e
SC
20224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20225 (exit $ac_status); } &&
c9a66001 20226 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20228 (eval $ac_try) 2>&5
20229 ac_status=$?
20230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20231 (exit $ac_status); }; } &&
20232 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20234 (eval $ac_try) 2>&5
20235 ac_status=$?
20236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20237 (exit $ac_status); }; }; then
20238 ac_cv_type_long_long=yes
20239else
20240 echo "$as_me: failed program was:" >&5
20241sed 's/^/| /' conftest.$ac_ext >&5
20242
20243ac_cv_type_long_long=no
20244fi
ac1cb8d3 20245rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20246fi
20247echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20248echo "${ECHO_T}$ac_cv_type_long_long" >&6
20249
20250echo "$as_me:$LINENO: checking size of long long" >&5
20251echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20252if test "${ac_cv_sizeof_long_long+set}" = set; then
20253 echo $ECHO_N "(cached) $ECHO_C" >&6
20254else
20255 if test "$ac_cv_type_long_long" = yes; then
20256 # The cast to unsigned long works around a bug in the HP C Compiler
20257 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20258 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20259 # This bug is HP SR number 8606223364.
20260 if test "$cross_compiling" = yes; then
20261 # Depending upon the size, compute the lo and hi bounds.
20262cat >conftest.$ac_ext <<_ACEOF
20263/* confdefs.h. */
20264_ACEOF
20265cat confdefs.h >>conftest.$ac_ext
20266cat >>conftest.$ac_ext <<_ACEOF
20267/* end confdefs.h. */
20268$ac_includes_default
20269int
20270main ()
20271{
20272static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20273test_array [0] = 0
20274
20275 ;
20276 return 0;
20277}
20278_ACEOF
20279rm -f conftest.$ac_objext
20280if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20281 (eval $ac_compile) 2>conftest.er1
a848cd7e 20282 ac_status=$?
ac1cb8d3
VS
20283 grep -v '^ *+' conftest.er1 >conftest.err
20284 rm -f conftest.er1
20285 cat conftest.err >&5
a848cd7e
SC
20286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20287 (exit $ac_status); } &&
c9a66001 20288 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20290 (eval $ac_try) 2>&5
20291 ac_status=$?
20292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20293 (exit $ac_status); }; } &&
20294 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20296 (eval $ac_try) 2>&5
20297 ac_status=$?
20298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20299 (exit $ac_status); }; }; then
20300 ac_lo=0 ac_mid=0
20301 while :; do
20302 cat >conftest.$ac_ext <<_ACEOF
20303/* confdefs.h. */
20304_ACEOF
20305cat confdefs.h >>conftest.$ac_ext
20306cat >>conftest.$ac_ext <<_ACEOF
20307/* end confdefs.h. */
20308$ac_includes_default
20309int
20310main ()
20311{
20312static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20313test_array [0] = 0
20314
20315 ;
20316 return 0;
20317}
20318_ACEOF
20319rm -f conftest.$ac_objext
20320if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20321 (eval $ac_compile) 2>conftest.er1
a848cd7e 20322 ac_status=$?
ac1cb8d3
VS
20323 grep -v '^ *+' conftest.er1 >conftest.err
20324 rm -f conftest.er1
20325 cat conftest.err >&5
a848cd7e
SC
20326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20327 (exit $ac_status); } &&
c9a66001 20328 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20330 (eval $ac_try) 2>&5
20331 ac_status=$?
20332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20333 (exit $ac_status); }; } &&
20334 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20336 (eval $ac_try) 2>&5
20337 ac_status=$?
20338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20339 (exit $ac_status); }; }; then
20340 ac_hi=$ac_mid; break
20341else
20342 echo "$as_me: failed program was:" >&5
20343sed 's/^/| /' conftest.$ac_ext >&5
20344
20345ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
20346 if test $ac_lo -le $ac_mid; then
20347 ac_lo= ac_hi=
20348 break
20349 fi
20350 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20351fi
ac1cb8d3 20352rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20353 done
20354else
20355 echo "$as_me: failed program was:" >&5
20356sed 's/^/| /' conftest.$ac_ext >&5
20357
20358cat >conftest.$ac_ext <<_ACEOF
20359/* confdefs.h. */
20360_ACEOF
20361cat confdefs.h >>conftest.$ac_ext
20362cat >>conftest.$ac_ext <<_ACEOF
20363/* end confdefs.h. */
20364$ac_includes_default
20365int
20366main ()
20367{
20368static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20369test_array [0] = 0
20370
20371 ;
20372 return 0;
20373}
20374_ACEOF
20375rm -f conftest.$ac_objext
20376if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20377 (eval $ac_compile) 2>conftest.er1
a848cd7e 20378 ac_status=$?
ac1cb8d3
VS
20379 grep -v '^ *+' conftest.er1 >conftest.err
20380 rm -f conftest.er1
20381 cat conftest.err >&5
a848cd7e
SC
20382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20383 (exit $ac_status); } &&
c9a66001 20384 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20386 (eval $ac_try) 2>&5
20387 ac_status=$?
20388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20389 (exit $ac_status); }; } &&
20390 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20392 (eval $ac_try) 2>&5
20393 ac_status=$?
20394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20395 (exit $ac_status); }; }; then
20396 ac_hi=-1 ac_mid=-1
20397 while :; do
20398 cat >conftest.$ac_ext <<_ACEOF
20399/* confdefs.h. */
20400_ACEOF
20401cat confdefs.h >>conftest.$ac_ext
20402cat >>conftest.$ac_ext <<_ACEOF
20403/* end confdefs.h. */
20404$ac_includes_default
20405int
20406main ()
20407{
20408static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20409test_array [0] = 0
20410
20411 ;
20412 return 0;
20413}
20414_ACEOF
20415rm -f conftest.$ac_objext
20416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20417 (eval $ac_compile) 2>conftest.er1
a848cd7e 20418 ac_status=$?
ac1cb8d3
VS
20419 grep -v '^ *+' conftest.er1 >conftest.err
20420 rm -f conftest.er1
20421 cat conftest.err >&5
a848cd7e
SC
20422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20423 (exit $ac_status); } &&
c9a66001 20424 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20426 (eval $ac_try) 2>&5
20427 ac_status=$?
20428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20429 (exit $ac_status); }; } &&
20430 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20432 (eval $ac_try) 2>&5
20433 ac_status=$?
20434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20435 (exit $ac_status); }; }; then
20436 ac_lo=$ac_mid; break
20437else
20438 echo "$as_me: failed program was:" >&5
20439sed 's/^/| /' conftest.$ac_ext >&5
20440
20441ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20442 if test $ac_mid -le $ac_hi; then
20443 ac_lo= ac_hi=
20444 break
20445 fi
20446 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20447fi
ac1cb8d3 20448rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20449 done
20450else
20451 echo "$as_me: failed program was:" >&5
20452sed 's/^/| /' conftest.$ac_ext >&5
20453
20454ac_lo= ac_hi=
20455fi
ac1cb8d3 20456rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20457fi
ac1cb8d3 20458rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20459# Binary search between lo and hi bounds.
20460while test "x$ac_lo" != "x$ac_hi"; do
20461 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20462 cat >conftest.$ac_ext <<_ACEOF
20463/* confdefs.h. */
20464_ACEOF
20465cat confdefs.h >>conftest.$ac_ext
20466cat >>conftest.$ac_ext <<_ACEOF
20467/* end confdefs.h. */
20468$ac_includes_default
20469int
20470main ()
20471{
20472static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20473test_array [0] = 0
20474
20475 ;
20476 return 0;
20477}
20478_ACEOF
20479rm -f conftest.$ac_objext
20480if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20481 (eval $ac_compile) 2>conftest.er1
a848cd7e 20482 ac_status=$?
ac1cb8d3
VS
20483 grep -v '^ *+' conftest.er1 >conftest.err
20484 rm -f conftest.er1
20485 cat conftest.err >&5
a848cd7e
SC
20486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20487 (exit $ac_status); } &&
c9a66001 20488 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20490 (eval $ac_try) 2>&5
20491 ac_status=$?
20492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20493 (exit $ac_status); }; } &&
20494 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20496 (eval $ac_try) 2>&5
20497 ac_status=$?
20498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20499 (exit $ac_status); }; }; then
20500 ac_hi=$ac_mid
20501else
20502 echo "$as_me: failed program was:" >&5
20503sed 's/^/| /' conftest.$ac_ext >&5
20504
20505ac_lo=`expr '(' $ac_mid ')' + 1`
20506fi
ac1cb8d3 20507rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20508done
20509case $ac_lo in
20510?*) ac_cv_sizeof_long_long=$ac_lo;;
20511'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20512See \`config.log' for more details." >&5
20513echo "$as_me: error: cannot compute sizeof (long long), 77
20514See \`config.log' for more details." >&2;}
20515 { (exit 1); exit 1; }; } ;;
20516esac
20517else
20518 if test "$cross_compiling" = yes; then
c9a66001
VZ
20519 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20520echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
20521 { (exit 1); exit 1; }; }
20522else
20523 cat >conftest.$ac_ext <<_ACEOF
20524/* confdefs.h. */
20525_ACEOF
20526cat confdefs.h >>conftest.$ac_ext
20527cat >>conftest.$ac_ext <<_ACEOF
20528/* end confdefs.h. */
20529$ac_includes_default
20530long longval () { return (long) (sizeof (long long)); }
20531unsigned long ulongval () { return (long) (sizeof (long long)); }
20532#include <stdio.h>
20533#include <stdlib.h>
20534int
20535main ()
20536{
20537
20538 FILE *f = fopen ("conftest.val", "w");
20539 if (! f)
20540 exit (1);
20541 if (((long) (sizeof (long long))) < 0)
20542 {
20543 long i = longval ();
20544 if (i != ((long) (sizeof (long long))))
20545 exit (1);
20546 fprintf (f, "%ld\n", i);
20547 }
20548 else
20549 {
20550 unsigned long i = ulongval ();
20551 if (i != ((long) (sizeof (long long))))
20552 exit (1);
20553 fprintf (f, "%lu\n", i);
20554 }
20555 exit (ferror (f) || fclose (f) != 0);
20556
20557 ;
20558 return 0;
20559}
20560_ACEOF
20561rm -f conftest$ac_exeext
20562if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20563 (eval $ac_link) 2>&5
20564 ac_status=$?
20565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20566 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20568 (eval $ac_try) 2>&5
20569 ac_status=$?
20570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20571 (exit $ac_status); }; }; then
20572 ac_cv_sizeof_long_long=`cat conftest.val`
20573else
20574 echo "$as_me: program exited with status $ac_status" >&5
20575echo "$as_me: failed program was:" >&5
20576sed 's/^/| /' conftest.$ac_ext >&5
20577
20578( exit $ac_status )
20579{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20580See \`config.log' for more details." >&5
20581echo "$as_me: error: cannot compute sizeof (long long), 77
20582See \`config.log' for more details." >&2;}
20583 { (exit 1); exit 1; }; }
20584fi
ac1cb8d3 20585rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20586fi
20587fi
20588rm -f conftest.val
20589else
20590 ac_cv_sizeof_long_long=0
20591fi
20592fi
20593echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20594echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20595cat >>confdefs.h <<_ACEOF
20596#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20597_ACEOF
20598
20599
20600 ;;
20601 *-hp-hpux* )
20602 echo "$as_me:$LINENO: checking for long long" >&5
20603echo $ECHO_N "checking for long long... $ECHO_C" >&6
20604if test "${ac_cv_type_long_long+set}" = set; then
20605 echo $ECHO_N "(cached) $ECHO_C" >&6
20606else
20607 cat >conftest.$ac_ext <<_ACEOF
20608/* confdefs.h. */
20609_ACEOF
20610cat confdefs.h >>conftest.$ac_ext
20611cat >>conftest.$ac_ext <<_ACEOF
20612/* end confdefs.h. */
20613$ac_includes_default
20614int
20615main ()
20616{
20617if ((long long *) 0)
20618 return 0;
20619if (sizeof (long long))
20620 return 0;
20621 ;
20622 return 0;
20623}
20624_ACEOF
20625rm -f conftest.$ac_objext
20626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20627 (eval $ac_compile) 2>conftest.er1
a848cd7e 20628 ac_status=$?
ac1cb8d3
VS
20629 grep -v '^ *+' conftest.er1 >conftest.err
20630 rm -f conftest.er1
20631 cat conftest.err >&5
a848cd7e
SC
20632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20633 (exit $ac_status); } &&
c9a66001 20634 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20636 (eval $ac_try) 2>&5
20637 ac_status=$?
20638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20639 (exit $ac_status); }; } &&
20640 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20642 (eval $ac_try) 2>&5
20643 ac_status=$?
20644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20645 (exit $ac_status); }; }; then
20646 ac_cv_type_long_long=yes
20647else
20648 echo "$as_me: failed program was:" >&5
20649sed 's/^/| /' conftest.$ac_ext >&5
20650
20651ac_cv_type_long_long=no
20652fi
ac1cb8d3 20653rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20654fi
20655echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20656echo "${ECHO_T}$ac_cv_type_long_long" >&6
20657
20658echo "$as_me:$LINENO: checking size of long long" >&5
20659echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20660if test "${ac_cv_sizeof_long_long+set}" = set; then
20661 echo $ECHO_N "(cached) $ECHO_C" >&6
20662else
20663 if test "$ac_cv_type_long_long" = yes; then
20664 # The cast to unsigned long works around a bug in the HP C Compiler
20665 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20666 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20667 # This bug is HP SR number 8606223364.
20668 if test "$cross_compiling" = yes; then
20669 # Depending upon the size, compute the lo and hi bounds.
20670cat >conftest.$ac_ext <<_ACEOF
20671/* confdefs.h. */
20672_ACEOF
20673cat confdefs.h >>conftest.$ac_ext
20674cat >>conftest.$ac_ext <<_ACEOF
20675/* end confdefs.h. */
20676$ac_includes_default
20677int
20678main ()
20679{
20680static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20681test_array [0] = 0
20682
20683 ;
20684 return 0;
20685}
20686_ACEOF
20687rm -f conftest.$ac_objext
20688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20689 (eval $ac_compile) 2>conftest.er1
a848cd7e 20690 ac_status=$?
ac1cb8d3
VS
20691 grep -v '^ *+' conftest.er1 >conftest.err
20692 rm -f conftest.er1
20693 cat conftest.err >&5
a848cd7e
SC
20694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20695 (exit $ac_status); } &&
c9a66001 20696 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20698 (eval $ac_try) 2>&5
20699 ac_status=$?
20700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20701 (exit $ac_status); }; } &&
20702 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20704 (eval $ac_try) 2>&5
20705 ac_status=$?
20706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20707 (exit $ac_status); }; }; then
20708 ac_lo=0 ac_mid=0
20709 while :; do
20710 cat >conftest.$ac_ext <<_ACEOF
20711/* confdefs.h. */
20712_ACEOF
20713cat confdefs.h >>conftest.$ac_ext
20714cat >>conftest.$ac_ext <<_ACEOF
20715/* end confdefs.h. */
20716$ac_includes_default
20717int
20718main ()
20719{
20720static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20721test_array [0] = 0
20722
20723 ;
20724 return 0;
20725}
20726_ACEOF
20727rm -f conftest.$ac_objext
20728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20729 (eval $ac_compile) 2>conftest.er1
a848cd7e 20730 ac_status=$?
ac1cb8d3
VS
20731 grep -v '^ *+' conftest.er1 >conftest.err
20732 rm -f conftest.er1
20733 cat conftest.err >&5
a848cd7e
SC
20734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20735 (exit $ac_status); } &&
c9a66001 20736 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20738 (eval $ac_try) 2>&5
20739 ac_status=$?
20740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20741 (exit $ac_status); }; } &&
20742 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20744 (eval $ac_try) 2>&5
20745 ac_status=$?
20746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20747 (exit $ac_status); }; }; then
20748 ac_hi=$ac_mid; break
20749else
20750 echo "$as_me: failed program was:" >&5
20751sed 's/^/| /' conftest.$ac_ext >&5
20752
20753ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
20754 if test $ac_lo -le $ac_mid; then
20755 ac_lo= ac_hi=
20756 break
20757 fi
20758 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20759fi
ac1cb8d3 20760rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20761 done
20762else
20763 echo "$as_me: failed program was:" >&5
20764sed 's/^/| /' conftest.$ac_ext >&5
20765
20766cat >conftest.$ac_ext <<_ACEOF
20767/* confdefs.h. */
20768_ACEOF
20769cat confdefs.h >>conftest.$ac_ext
20770cat >>conftest.$ac_ext <<_ACEOF
20771/* end confdefs.h. */
20772$ac_includes_default
20773int
20774main ()
20775{
20776static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20777test_array [0] = 0
20778
20779 ;
20780 return 0;
20781}
20782_ACEOF
20783rm -f conftest.$ac_objext
20784if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20785 (eval $ac_compile) 2>conftest.er1
a848cd7e 20786 ac_status=$?
ac1cb8d3
VS
20787 grep -v '^ *+' conftest.er1 >conftest.err
20788 rm -f conftest.er1
20789 cat conftest.err >&5
a848cd7e
SC
20790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20791 (exit $ac_status); } &&
c9a66001 20792 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20794 (eval $ac_try) 2>&5
20795 ac_status=$?
20796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20797 (exit $ac_status); }; } &&
20798 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20800 (eval $ac_try) 2>&5
20801 ac_status=$?
20802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20803 (exit $ac_status); }; }; then
20804 ac_hi=-1 ac_mid=-1
20805 while :; do
20806 cat >conftest.$ac_ext <<_ACEOF
20807/* confdefs.h. */
20808_ACEOF
20809cat confdefs.h >>conftest.$ac_ext
20810cat >>conftest.$ac_ext <<_ACEOF
20811/* end confdefs.h. */
20812$ac_includes_default
20813int
20814main ()
20815{
20816static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20817test_array [0] = 0
20818
20819 ;
20820 return 0;
20821}
20822_ACEOF
20823rm -f conftest.$ac_objext
20824if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20825 (eval $ac_compile) 2>conftest.er1
a848cd7e 20826 ac_status=$?
ac1cb8d3
VS
20827 grep -v '^ *+' conftest.er1 >conftest.err
20828 rm -f conftest.er1
20829 cat conftest.err >&5
a848cd7e
SC
20830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20831 (exit $ac_status); } &&
c9a66001 20832 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20834 (eval $ac_try) 2>&5
20835 ac_status=$?
20836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20837 (exit $ac_status); }; } &&
20838 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20840 (eval $ac_try) 2>&5
20841 ac_status=$?
20842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20843 (exit $ac_status); }; }; then
20844 ac_lo=$ac_mid; break
20845else
20846 echo "$as_me: failed program was:" >&5
20847sed 's/^/| /' conftest.$ac_ext >&5
20848
20849ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20850 if test $ac_mid -le $ac_hi; then
20851 ac_lo= ac_hi=
20852 break
20853 fi
20854 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20855fi
ac1cb8d3 20856rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20857 done
20858else
20859 echo "$as_me: failed program was:" >&5
20860sed 's/^/| /' conftest.$ac_ext >&5
20861
20862ac_lo= ac_hi=
20863fi
ac1cb8d3 20864rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20865fi
ac1cb8d3 20866rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20867# Binary search between lo and hi bounds.
20868while test "x$ac_lo" != "x$ac_hi"; do
20869 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20870 cat >conftest.$ac_ext <<_ACEOF
20871/* confdefs.h. */
20872_ACEOF
20873cat confdefs.h >>conftest.$ac_ext
20874cat >>conftest.$ac_ext <<_ACEOF
20875/* end confdefs.h. */
20876$ac_includes_default
20877int
20878main ()
20879{
20880static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20881test_array [0] = 0
20882
20883 ;
20884 return 0;
20885}
20886_ACEOF
20887rm -f conftest.$ac_objext
20888if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20889 (eval $ac_compile) 2>conftest.er1
a848cd7e 20890 ac_status=$?
ac1cb8d3
VS
20891 grep -v '^ *+' conftest.er1 >conftest.err
20892 rm -f conftest.er1
20893 cat conftest.err >&5
a848cd7e
SC
20894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20895 (exit $ac_status); } &&
c9a66001 20896 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20898 (eval $ac_try) 2>&5
20899 ac_status=$?
20900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20901 (exit $ac_status); }; } &&
20902 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20904 (eval $ac_try) 2>&5
20905 ac_status=$?
20906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20907 (exit $ac_status); }; }; then
20908 ac_hi=$ac_mid
20909else
20910 echo "$as_me: failed program was:" >&5
20911sed 's/^/| /' conftest.$ac_ext >&5
20912
20913ac_lo=`expr '(' $ac_mid ')' + 1`
20914fi
ac1cb8d3 20915rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20916done
20917case $ac_lo in
20918?*) ac_cv_sizeof_long_long=$ac_lo;;
20919'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20920See \`config.log' for more details." >&5
20921echo "$as_me: error: cannot compute sizeof (long long), 77
20922See \`config.log' for more details." >&2;}
20923 { (exit 1); exit 1; }; } ;;
20924esac
20925else
20926 if test "$cross_compiling" = yes; then
c9a66001
VZ
20927 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20928echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
20929 { (exit 1); exit 1; }; }
20930else
20931 cat >conftest.$ac_ext <<_ACEOF
20932/* confdefs.h. */
20933_ACEOF
20934cat confdefs.h >>conftest.$ac_ext
20935cat >>conftest.$ac_ext <<_ACEOF
20936/* end confdefs.h. */
20937$ac_includes_default
20938long longval () { return (long) (sizeof (long long)); }
20939unsigned long ulongval () { return (long) (sizeof (long long)); }
20940#include <stdio.h>
20941#include <stdlib.h>
20942int
20943main ()
20944{
20945
20946 FILE *f = fopen ("conftest.val", "w");
20947 if (! f)
20948 exit (1);
20949 if (((long) (sizeof (long long))) < 0)
20950 {
20951 long i = longval ();
20952 if (i != ((long) (sizeof (long long))))
20953 exit (1);
20954 fprintf (f, "%ld\n", i);
20955 }
20956 else
20957 {
20958 unsigned long i = ulongval ();
20959 if (i != ((long) (sizeof (long long))))
20960 exit (1);
20961 fprintf (f, "%lu\n", i);
20962 }
20963 exit (ferror (f) || fclose (f) != 0);
20964
20965 ;
20966 return 0;
20967}
20968_ACEOF
20969rm -f conftest$ac_exeext
20970if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20971 (eval $ac_link) 2>&5
20972 ac_status=$?
20973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20974 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20976 (eval $ac_try) 2>&5
20977 ac_status=$?
20978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20979 (exit $ac_status); }; }; then
20980 ac_cv_sizeof_long_long=`cat conftest.val`
20981else
20982 echo "$as_me: program exited with status $ac_status" >&5
20983echo "$as_me: failed program was:" >&5
20984sed 's/^/| /' conftest.$ac_ext >&5
20985
20986( exit $ac_status )
20987{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20988See \`config.log' for more details." >&5
20989echo "$as_me: error: cannot compute sizeof (long long), 77
20990See \`config.log' for more details." >&2;}
20991 { (exit 1); exit 1; }; }
20992fi
ac1cb8d3 20993rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20994fi
20995fi
20996rm -f conftest.val
20997else
20998 ac_cv_sizeof_long_long=0
20999fi
21000fi
21001echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
21002echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
21003cat >>confdefs.h <<_ACEOF
21004#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21005_ACEOF
21006
21007
21008 if test "$ac_cv_sizeof_long_long" != "0"; then
c92ad099 21009 CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
a848cd7e
SC
21010 fi
21011 ;;
21012 * )
21013 echo "$as_me:$LINENO: checking for long long" >&5
21014echo $ECHO_N "checking for long long... $ECHO_C" >&6
21015if test "${ac_cv_type_long_long+set}" = set; then
21016 echo $ECHO_N "(cached) $ECHO_C" >&6
21017else
21018 cat >conftest.$ac_ext <<_ACEOF
21019/* confdefs.h. */
21020_ACEOF
21021cat confdefs.h >>conftest.$ac_ext
21022cat >>conftest.$ac_ext <<_ACEOF
21023/* end confdefs.h. */
21024$ac_includes_default
21025int
21026main ()
21027{
21028if ((long long *) 0)
21029 return 0;
21030if (sizeof (long long))
21031 return 0;
21032 ;
21033 return 0;
21034}
21035_ACEOF
21036rm -f conftest.$ac_objext
21037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21038 (eval $ac_compile) 2>conftest.er1
a848cd7e 21039 ac_status=$?
ac1cb8d3
VS
21040 grep -v '^ *+' conftest.er1 >conftest.err
21041 rm -f conftest.er1
21042 cat conftest.err >&5
a848cd7e
SC
21043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21044 (exit $ac_status); } &&
c9a66001 21045 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21047 (eval $ac_try) 2>&5
21048 ac_status=$?
21049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21050 (exit $ac_status); }; } &&
21051 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21053 (eval $ac_try) 2>&5
21054 ac_status=$?
21055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21056 (exit $ac_status); }; }; then
21057 ac_cv_type_long_long=yes
21058else
21059 echo "$as_me: failed program was:" >&5
21060sed 's/^/| /' conftest.$ac_ext >&5
21061
21062ac_cv_type_long_long=no
21063fi
ac1cb8d3 21064rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21065fi
21066echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
21067echo "${ECHO_T}$ac_cv_type_long_long" >&6
21068
21069echo "$as_me:$LINENO: checking size of long long" >&5
21070echo $ECHO_N "checking size of long long... $ECHO_C" >&6
21071if test "${ac_cv_sizeof_long_long+set}" = set; then
21072 echo $ECHO_N "(cached) $ECHO_C" >&6
21073else
21074 if test "$ac_cv_type_long_long" = yes; then
21075 # The cast to unsigned long works around a bug in the HP C Compiler
21076 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21077 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21078 # This bug is HP SR number 8606223364.
21079 if test "$cross_compiling" = yes; then
21080 # Depending upon the size, compute the lo and hi bounds.
21081cat >conftest.$ac_ext <<_ACEOF
21082/* confdefs.h. */
21083_ACEOF
21084cat confdefs.h >>conftest.$ac_ext
21085cat >>conftest.$ac_ext <<_ACEOF
21086/* end confdefs.h. */
21087$ac_includes_default
21088int
21089main ()
21090{
21091static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
21092test_array [0] = 0
21093
21094 ;
21095 return 0;
21096}
21097_ACEOF
21098rm -f conftest.$ac_objext
21099if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21100 (eval $ac_compile) 2>conftest.er1
a848cd7e 21101 ac_status=$?
ac1cb8d3
VS
21102 grep -v '^ *+' conftest.er1 >conftest.err
21103 rm -f conftest.er1
21104 cat conftest.err >&5
a848cd7e
SC
21105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21106 (exit $ac_status); } &&
c9a66001 21107 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21109 (eval $ac_try) 2>&5
21110 ac_status=$?
21111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21112 (exit $ac_status); }; } &&
21113 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21115 (eval $ac_try) 2>&5
21116 ac_status=$?
21117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21118 (exit $ac_status); }; }; then
21119 ac_lo=0 ac_mid=0
21120 while :; do
21121 cat >conftest.$ac_ext <<_ACEOF
21122/* confdefs.h. */
21123_ACEOF
21124cat confdefs.h >>conftest.$ac_ext
21125cat >>conftest.$ac_ext <<_ACEOF
21126/* end confdefs.h. */
21127$ac_includes_default
21128int
21129main ()
21130{
21131static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21132test_array [0] = 0
21133
21134 ;
21135 return 0;
21136}
21137_ACEOF
21138rm -f conftest.$ac_objext
21139if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21140 (eval $ac_compile) 2>conftest.er1
a848cd7e 21141 ac_status=$?
ac1cb8d3
VS
21142 grep -v '^ *+' conftest.er1 >conftest.err
21143 rm -f conftest.er1
21144 cat conftest.err >&5
a848cd7e
SC
21145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21146 (exit $ac_status); } &&
c9a66001 21147 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21149 (eval $ac_try) 2>&5
21150 ac_status=$?
21151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21152 (exit $ac_status); }; } &&
21153 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21155 (eval $ac_try) 2>&5
21156 ac_status=$?
21157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21158 (exit $ac_status); }; }; then
21159 ac_hi=$ac_mid; break
21160else
21161 echo "$as_me: failed program was:" >&5
21162sed 's/^/| /' conftest.$ac_ext >&5
21163
21164ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
21165 if test $ac_lo -le $ac_mid; then
21166 ac_lo= ac_hi=
21167 break
21168 fi
21169 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 21170fi
ac1cb8d3 21171rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21172 done
21173else
21174 echo "$as_me: failed program was:" >&5
21175sed 's/^/| /' conftest.$ac_ext >&5
21176
21177cat >conftest.$ac_ext <<_ACEOF
21178/* confdefs.h. */
21179_ACEOF
21180cat confdefs.h >>conftest.$ac_ext
21181cat >>conftest.$ac_ext <<_ACEOF
21182/* end confdefs.h. */
21183$ac_includes_default
21184int
21185main ()
21186{
21187static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
21188test_array [0] = 0
21189
21190 ;
21191 return 0;
21192}
21193_ACEOF
21194rm -f conftest.$ac_objext
21195if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21196 (eval $ac_compile) 2>conftest.er1
a848cd7e 21197 ac_status=$?
ac1cb8d3
VS
21198 grep -v '^ *+' conftest.er1 >conftest.err
21199 rm -f conftest.er1
21200 cat conftest.err >&5
a848cd7e
SC
21201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21202 (exit $ac_status); } &&
c9a66001 21203 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21205 (eval $ac_try) 2>&5
21206 ac_status=$?
21207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21208 (exit $ac_status); }; } &&
21209 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21211 (eval $ac_try) 2>&5
21212 ac_status=$?
21213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21214 (exit $ac_status); }; }; then
21215 ac_hi=-1 ac_mid=-1
21216 while :; do
21217 cat >conftest.$ac_ext <<_ACEOF
21218/* confdefs.h. */
21219_ACEOF
21220cat confdefs.h >>conftest.$ac_ext
21221cat >>conftest.$ac_ext <<_ACEOF
21222/* end confdefs.h. */
21223$ac_includes_default
21224int
21225main ()
21226{
21227static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
21228test_array [0] = 0
21229
21230 ;
21231 return 0;
21232}
21233_ACEOF
21234rm -f conftest.$ac_objext
21235if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21236 (eval $ac_compile) 2>conftest.er1
a848cd7e 21237 ac_status=$?
ac1cb8d3
VS
21238 grep -v '^ *+' conftest.er1 >conftest.err
21239 rm -f conftest.er1
21240 cat conftest.err >&5
a848cd7e
SC
21241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21242 (exit $ac_status); } &&
c9a66001 21243 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21245 (eval $ac_try) 2>&5
21246 ac_status=$?
21247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21248 (exit $ac_status); }; } &&
21249 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21251 (eval $ac_try) 2>&5
21252 ac_status=$?
21253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21254 (exit $ac_status); }; }; then
21255 ac_lo=$ac_mid; break
21256else
21257 echo "$as_me: failed program was:" >&5
21258sed 's/^/| /' conftest.$ac_ext >&5
21259
21260ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
21261 if test $ac_mid -le $ac_hi; then
21262 ac_lo= ac_hi=
21263 break
21264 fi
21265 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 21266fi
ac1cb8d3 21267rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21268 done
21269else
21270 echo "$as_me: failed program was:" >&5
21271sed 's/^/| /' conftest.$ac_ext >&5
21272
21273ac_lo= ac_hi=
21274fi
ac1cb8d3 21275rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 21276fi
ac1cb8d3 21277rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21278# Binary search between lo and hi bounds.
21279while test "x$ac_lo" != "x$ac_hi"; do
21280 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21281 cat >conftest.$ac_ext <<_ACEOF
21282/* confdefs.h. */
21283_ACEOF
21284cat confdefs.h >>conftest.$ac_ext
21285cat >>conftest.$ac_ext <<_ACEOF
21286/* end confdefs.h. */
21287$ac_includes_default
21288int
21289main ()
21290{
21291static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21292test_array [0] = 0
21293
21294 ;
21295 return 0;
21296}
21297_ACEOF
21298rm -f conftest.$ac_objext
21299if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21300 (eval $ac_compile) 2>conftest.er1
a848cd7e 21301 ac_status=$?
ac1cb8d3
VS
21302 grep -v '^ *+' conftest.er1 >conftest.err
21303 rm -f conftest.er1
21304 cat conftest.err >&5
a848cd7e
SC
21305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21306 (exit $ac_status); } &&
c9a66001 21307 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21309 (eval $ac_try) 2>&5
21310 ac_status=$?
21311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21312 (exit $ac_status); }; } &&
21313 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21315 (eval $ac_try) 2>&5
21316 ac_status=$?
21317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21318 (exit $ac_status); }; }; then
21319 ac_hi=$ac_mid
21320else
21321 echo "$as_me: failed program was:" >&5
21322sed 's/^/| /' conftest.$ac_ext >&5
21323
21324ac_lo=`expr '(' $ac_mid ')' + 1`
21325fi
ac1cb8d3 21326rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21327done
21328case $ac_lo in
21329?*) ac_cv_sizeof_long_long=$ac_lo;;
21330'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21331See \`config.log' for more details." >&5
21332echo "$as_me: error: cannot compute sizeof (long long), 77
21333See \`config.log' for more details." >&2;}
21334 { (exit 1); exit 1; }; } ;;
21335esac
21336else
21337 if test "$cross_compiling" = yes; then
c9a66001
VZ
21338 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
21339echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
21340 { (exit 1); exit 1; }; }
21341else
21342 cat >conftest.$ac_ext <<_ACEOF
21343/* confdefs.h. */
21344_ACEOF
21345cat confdefs.h >>conftest.$ac_ext
21346cat >>conftest.$ac_ext <<_ACEOF
21347/* end confdefs.h. */
21348$ac_includes_default
21349long longval () { return (long) (sizeof (long long)); }
21350unsigned long ulongval () { return (long) (sizeof (long long)); }
21351#include <stdio.h>
21352#include <stdlib.h>
21353int
21354main ()
21355{
21356
21357 FILE *f = fopen ("conftest.val", "w");
21358 if (! f)
21359 exit (1);
21360 if (((long) (sizeof (long long))) < 0)
21361 {
21362 long i = longval ();
21363 if (i != ((long) (sizeof (long long))))
21364 exit (1);
21365 fprintf (f, "%ld\n", i);
21366 }
21367 else
21368 {
21369 unsigned long i = ulongval ();
21370 if (i != ((long) (sizeof (long long))))
21371 exit (1);
21372 fprintf (f, "%lu\n", i);
21373 }
21374 exit (ferror (f) || fclose (f) != 0);
21375
21376 ;
21377 return 0;
21378}
21379_ACEOF
21380rm -f conftest$ac_exeext
21381if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21382 (eval $ac_link) 2>&5
21383 ac_status=$?
21384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21385 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21387 (eval $ac_try) 2>&5
21388 ac_status=$?
21389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21390 (exit $ac_status); }; }; then
21391 ac_cv_sizeof_long_long=`cat conftest.val`
21392else
21393 echo "$as_me: program exited with status $ac_status" >&5
21394echo "$as_me: failed program was:" >&5
21395sed 's/^/| /' conftest.$ac_ext >&5
21396
21397( exit $ac_status )
21398{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21399See \`config.log' for more details." >&5
21400echo "$as_me: error: cannot compute sizeof (long long), 77
21401See \`config.log' for more details." >&2;}
21402 { (exit 1); exit 1; }; }
21403fi
ac1cb8d3 21404rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21405fi
21406fi
21407rm -f conftest.val
21408else
21409 ac_cv_sizeof_long_long=0
21410fi
21411fi
21412echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
21413echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
21414cat >>confdefs.h <<_ACEOF
21415#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21416_ACEOF
21417
21418
21419esac
21420
238ecede
MW
21421echo "$as_me:$LINENO: checking for wchar_t" >&5
21422echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
21423if test "${ac_cv_type_wchar_t+set}" = set; then
21424 echo $ECHO_N "(cached) $ECHO_C" >&6
21425else
21426 cat >conftest.$ac_ext <<_ACEOF
21427/* confdefs.h. */
21428_ACEOF
21429cat confdefs.h >>conftest.$ac_ext
21430cat >>conftest.$ac_ext <<_ACEOF
21431/* end confdefs.h. */
21432
83d8eb47
MW
21433 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21434 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21435 # error "fake wchar_t"
21436 #endif
21437 #ifdef HAVE_WCHAR_H
21438 # ifdef __CYGWIN__
21439 # include <stddef.h>
21440 # endif
21441 # include <wchar.h>
21442 #endif
21443 #ifdef HAVE_STDLIB_H
21444 # include <stdlib.h>
21445 #endif
21446 #include <stdio.h>
21447
21448
21449
21450int
21451main ()
21452{
21453if ((wchar_t *) 0)
21454 return 0;
21455if (sizeof (wchar_t))
21456 return 0;
21457 ;
21458 return 0;
21459}
21460_ACEOF
21461rm -f conftest.$ac_objext
21462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21463 (eval $ac_compile) 2>conftest.er1
21464 ac_status=$?
21465 grep -v '^ *+' conftest.er1 >conftest.err
21466 rm -f conftest.er1
21467 cat conftest.err >&5
21468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21469 (exit $ac_status); } &&
c9a66001 21470 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21472 (eval $ac_try) 2>&5
21473 ac_status=$?
21474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21475 (exit $ac_status); }; } &&
21476 { ac_try='test -s conftest.$ac_objext'
21477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21478 (eval $ac_try) 2>&5
21479 ac_status=$?
21480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21481 (exit $ac_status); }; }; then
21482 ac_cv_type_wchar_t=yes
21483else
21484 echo "$as_me: failed program was:" >&5
21485sed 's/^/| /' conftest.$ac_ext >&5
21486
21487ac_cv_type_wchar_t=no
21488fi
21489rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21490fi
21491echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
21492echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
21493
a848cd7e
SC
21494echo "$as_me:$LINENO: checking size of wchar_t" >&5
21495echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
238ecede 21496if test "${ac_cv_sizeof_wchar_t+set}" = set; then
a848cd7e
SC
21497 echo $ECHO_N "(cached) $ECHO_C" >&6
21498else
238ecede
MW
21499 if test "$ac_cv_type_wchar_t" = yes; then
21500 # The cast to unsigned long works around a bug in the HP C Compiler
21501 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21502 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21503 # This bug is HP SR number 8606223364.
21504 if test "$cross_compiling" = yes; then
21505 # Depending upon the size, compute the lo and hi bounds.
21506cat >conftest.$ac_ext <<_ACEOF
21507/* confdefs.h. */
21508_ACEOF
21509cat confdefs.h >>conftest.$ac_ext
21510cat >>conftest.$ac_ext <<_ACEOF
21511/* end confdefs.h. */
21512
83d8eb47
MW
21513 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21514 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21515 # error "fake wchar_t"
21516 #endif
21517 #ifdef HAVE_WCHAR_H
21518 # ifdef __CYGWIN__
21519 # include <stddef.h>
21520 # endif
21521 # include <wchar.h>
21522 #endif
21523 #ifdef HAVE_STDLIB_H
21524 # include <stdlib.h>
21525 #endif
21526 #include <stdio.h>
21527
21528
21529
21530int
21531main ()
21532{
21533static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
21534test_array [0] = 0
21535
21536 ;
21537 return 0;
21538}
21539_ACEOF
21540rm -f conftest.$ac_objext
21541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21542 (eval $ac_compile) 2>conftest.er1
21543 ac_status=$?
21544 grep -v '^ *+' conftest.er1 >conftest.err
21545 rm -f conftest.er1
21546 cat conftest.err >&5
21547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21548 (exit $ac_status); } &&
c9a66001 21549 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21551 (eval $ac_try) 2>&5
21552 ac_status=$?
21553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21554 (exit $ac_status); }; } &&
21555 { ac_try='test -s conftest.$ac_objext'
21556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21557 (eval $ac_try) 2>&5
21558 ac_status=$?
21559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21560 (exit $ac_status); }; }; then
21561 ac_lo=0 ac_mid=0
21562 while :; do
21563 cat >conftest.$ac_ext <<_ACEOF
21564/* confdefs.h. */
21565_ACEOF
21566cat confdefs.h >>conftest.$ac_ext
21567cat >>conftest.$ac_ext <<_ACEOF
21568/* end confdefs.h. */
21569
83d8eb47
MW
21570 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21571 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21572 # error "fake wchar_t"
21573 #endif
21574 #ifdef HAVE_WCHAR_H
21575 # ifdef __CYGWIN__
21576 # include <stddef.h>
21577 # endif
21578 # include <wchar.h>
21579 #endif
21580 #ifdef HAVE_STDLIB_H
21581 # include <stdlib.h>
21582 #endif
21583 #include <stdio.h>
21584
21585
21586
21587int
21588main ()
21589{
21590static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
21591test_array [0] = 0
21592
21593 ;
21594 return 0;
21595}
21596_ACEOF
21597rm -f conftest.$ac_objext
21598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21599 (eval $ac_compile) 2>conftest.er1
21600 ac_status=$?
21601 grep -v '^ *+' conftest.er1 >conftest.err
21602 rm -f conftest.er1
21603 cat conftest.err >&5
21604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21605 (exit $ac_status); } &&
c9a66001 21606 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21608 (eval $ac_try) 2>&5
21609 ac_status=$?
21610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21611 (exit $ac_status); }; } &&
21612 { ac_try='test -s conftest.$ac_objext'
21613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21614 (eval $ac_try) 2>&5
21615 ac_status=$?
21616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21617 (exit $ac_status); }; }; then
21618 ac_hi=$ac_mid; break
21619else
21620 echo "$as_me: failed program was:" >&5
21621sed 's/^/| /' conftest.$ac_ext >&5
21622
21623ac_lo=`expr $ac_mid + 1`
21624 if test $ac_lo -le $ac_mid; then
21625 ac_lo= ac_hi=
21626 break
21627 fi
21628 ac_mid=`expr 2 '*' $ac_mid + 1`
21629fi
21630rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21631 done
21632else
21633 echo "$as_me: failed program was:" >&5
21634sed 's/^/| /' conftest.$ac_ext >&5
21635
21636cat >conftest.$ac_ext <<_ACEOF
21637/* confdefs.h. */
21638_ACEOF
21639cat confdefs.h >>conftest.$ac_ext
21640cat >>conftest.$ac_ext <<_ACEOF
21641/* end confdefs.h. */
21642
83d8eb47
MW
21643 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21644 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21645 # error "fake wchar_t"
21646 #endif
21647 #ifdef HAVE_WCHAR_H
21648 # ifdef __CYGWIN__
21649 # include <stddef.h>
21650 # endif
21651 # include <wchar.h>
21652 #endif
21653 #ifdef HAVE_STDLIB_H
21654 # include <stdlib.h>
21655 #endif
21656 #include <stdio.h>
21657
21658
21659
21660int
21661main ()
21662{
21663static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
21664test_array [0] = 0
21665
21666 ;
21667 return 0;
21668}
21669_ACEOF
21670rm -f conftest.$ac_objext
21671if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21672 (eval $ac_compile) 2>conftest.er1
21673 ac_status=$?
21674 grep -v '^ *+' conftest.er1 >conftest.err
21675 rm -f conftest.er1
21676 cat conftest.err >&5
21677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21678 (exit $ac_status); } &&
c9a66001 21679 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21681 (eval $ac_try) 2>&5
21682 ac_status=$?
21683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21684 (exit $ac_status); }; } &&
21685 { ac_try='test -s conftest.$ac_objext'
21686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21687 (eval $ac_try) 2>&5
21688 ac_status=$?
21689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21690 (exit $ac_status); }; }; then
21691 ac_hi=-1 ac_mid=-1
21692 while :; do
21693 cat >conftest.$ac_ext <<_ACEOF
21694/* confdefs.h. */
21695_ACEOF
21696cat confdefs.h >>conftest.$ac_ext
21697cat >>conftest.$ac_ext <<_ACEOF
21698/* end confdefs.h. */
21699
83d8eb47
MW
21700 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21701 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21702 # error "fake wchar_t"
21703 #endif
21704 #ifdef HAVE_WCHAR_H
21705 # ifdef __CYGWIN__
21706 # include <stddef.h>
21707 # endif
21708 # include <wchar.h>
21709 #endif
21710 #ifdef HAVE_STDLIB_H
21711 # include <stdlib.h>
21712 #endif
21713 #include <stdio.h>
21714
21715
21716
21717int
21718main ()
21719{
21720static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
21721test_array [0] = 0
21722
21723 ;
21724 return 0;
21725}
21726_ACEOF
21727rm -f conftest.$ac_objext
21728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21729 (eval $ac_compile) 2>conftest.er1
21730 ac_status=$?
21731 grep -v '^ *+' conftest.er1 >conftest.err
21732 rm -f conftest.er1
21733 cat conftest.err >&5
21734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21735 (exit $ac_status); } &&
c9a66001 21736 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21738 (eval $ac_try) 2>&5
21739 ac_status=$?
21740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21741 (exit $ac_status); }; } &&
21742 { ac_try='test -s conftest.$ac_objext'
21743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21744 (eval $ac_try) 2>&5
21745 ac_status=$?
21746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21747 (exit $ac_status); }; }; then
21748 ac_lo=$ac_mid; break
21749else
21750 echo "$as_me: failed program was:" >&5
21751sed 's/^/| /' conftest.$ac_ext >&5
21752
21753ac_hi=`expr '(' $ac_mid ')' - 1`
21754 if test $ac_mid -le $ac_hi; then
21755 ac_lo= ac_hi=
21756 break
21757 fi
21758 ac_mid=`expr 2 '*' $ac_mid`
21759fi
21760rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21761 done
21762else
21763 echo "$as_me: failed program was:" >&5
21764sed 's/^/| /' conftest.$ac_ext >&5
21765
21766ac_lo= ac_hi=
21767fi
21768rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21769fi
21770rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21771# Binary search between lo and hi bounds.
21772while test "x$ac_lo" != "x$ac_hi"; do
21773 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21774 cat >conftest.$ac_ext <<_ACEOF
21775/* confdefs.h. */
21776_ACEOF
21777cat confdefs.h >>conftest.$ac_ext
21778cat >>conftest.$ac_ext <<_ACEOF
21779/* end confdefs.h. */
21780
83d8eb47
MW
21781 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21782 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21783 # error "fake wchar_t"
21784 #endif
21785 #ifdef HAVE_WCHAR_H
21786 # ifdef __CYGWIN__
21787 # include <stddef.h>
21788 # endif
21789 # include <wchar.h>
21790 #endif
21791 #ifdef HAVE_STDLIB_H
21792 # include <stdlib.h>
21793 #endif
21794 #include <stdio.h>
a848cd7e 21795
a848cd7e 21796
a848cd7e 21797
238ecede
MW
21798int
21799main ()
21800{
21801static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
21802test_array [0] = 0
a848cd7e 21803
238ecede
MW
21804 ;
21805 return 0;
21806}
21807_ACEOF
21808rm -f conftest.$ac_objext
21809if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21810 (eval $ac_compile) 2>conftest.er1
21811 ac_status=$?
21812 grep -v '^ *+' conftest.er1 >conftest.err
21813 rm -f conftest.er1
21814 cat conftest.err >&5
21815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21816 (exit $ac_status); } &&
c9a66001 21817 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21819 (eval $ac_try) 2>&5
21820 ac_status=$?
21821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21822 (exit $ac_status); }; } &&
21823 { ac_try='test -s conftest.$ac_objext'
21824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21825 (eval $ac_try) 2>&5
21826 ac_status=$?
21827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21828 (exit $ac_status); }; }; then
21829 ac_hi=$ac_mid
21830else
21831 echo "$as_me: failed program was:" >&5
21832sed 's/^/| /' conftest.$ac_ext >&5
21833
21834ac_lo=`expr '(' $ac_mid ')' + 1`
21835fi
21836rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21837done
21838case $ac_lo in
21839?*) ac_cv_sizeof_wchar_t=$ac_lo;;
21840'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
21841See \`config.log' for more details." >&5
21842echo "$as_me: error: cannot compute sizeof (wchar_t), 77
21843See \`config.log' for more details." >&2;}
21844 { (exit 1); exit 1; }; } ;;
21845esac
21846else
21847 if test "$cross_compiling" = yes; then
c9a66001
VZ
21848 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
21849echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
238ecede 21850 { (exit 1); exit 1; }; }
a848cd7e
SC
21851else
21852 cat >conftest.$ac_ext <<_ACEOF
21853/* confdefs.h. */
21854_ACEOF
21855cat confdefs.h >>conftest.$ac_ext
21856cat >>conftest.$ac_ext <<_ACEOF
21857/* end confdefs.h. */
21858
83d8eb47
MW
21859 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21860 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21861 # error "fake wchar_t"
21862 #endif
21863 #ifdef HAVE_WCHAR_H
21864 # ifdef __CYGWIN__
21865 # include <stddef.h>
21866 # endif
21867 # include <wchar.h>
21868 #endif
21869 #ifdef HAVE_STDLIB_H
21870 # include <stdlib.h>
21871 #endif
21872 #include <stdio.h>
21873
21874
21875
21876long longval () { return (long) (sizeof (wchar_t)); }
21877unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
21878#include <stdio.h>
21879#include <stdlib.h>
21880int
21881main ()
21882{
a848cd7e 21883
238ecede
MW
21884 FILE *f = fopen ("conftest.val", "w");
21885 if (! f)
21886 exit (1);
21887 if (((long) (sizeof (wchar_t))) < 0)
21888 {
21889 long i = longval ();
21890 if (i != ((long) (sizeof (wchar_t))))
21891 exit (1);
21892 fprintf (f, "%ld\n", i);
21893 }
21894 else
21895 {
21896 unsigned long i = ulongval ();
21897 if (i != ((long) (sizeof (wchar_t))))
21898 exit (1);
21899 fprintf (f, "%lu\n", i);
21900 }
21901 exit (ferror (f) || fclose (f) != 0);
21902
21903 ;
21904 return 0;
21905}
a848cd7e
SC
21906_ACEOF
21907rm -f conftest$ac_exeext
21908if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21909 (eval $ac_link) 2>&5
21910 ac_status=$?
21911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21912 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21914 (eval $ac_try) 2>&5
21915 ac_status=$?
21916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21917 (exit $ac_status); }; }; then
238ecede 21918 ac_cv_sizeof_wchar_t=`cat conftest.val`
a848cd7e
SC
21919else
21920 echo "$as_me: program exited with status $ac_status" >&5
21921echo "$as_me: failed program was:" >&5
21922sed 's/^/| /' conftest.$ac_ext >&5
21923
21924( exit $ac_status )
238ecede
MW
21925{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
21926See \`config.log' for more details." >&5
21927echo "$as_me: error: cannot compute sizeof (wchar_t), 77
21928See \`config.log' for more details." >&2;}
21929 { (exit 1); exit 1; }; }
a848cd7e 21930fi
ac1cb8d3 21931rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 21932fi
a848cd7e 21933fi
238ecede
MW
21934rm -f conftest.val
21935else
21936 ac_cv_sizeof_wchar_t=0
21937fi
21938fi
21939echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
21940echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
a848cd7e 21941cat >>confdefs.h <<_ACEOF
238ecede 21942#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
a848cd7e
SC
21943_ACEOF
21944
21945
47a7e797
MW
21946if test "$ac_cv_sizeof_wchar_t" != "0"; then
21947 wxUSE_WCHAR_T=yes
21948else
21949 wxUSE_WCHAR_T=no
21950fi
238ecede 21951
ba3d13e1
VZ
21952echo "$as_me:$LINENO: checking for va_copy" >&5
21953echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
21954if test "${wx_cv_func_va_copy+set}" = set; then
21955 echo $ECHO_N "(cached) $ECHO_C" >&6
21956else
21957
21958 cat >conftest.$ac_ext <<_ACEOF
21959
21960 #include <stdarg.h>
21961 void foo(char *f, ...)
21962 {
21963 va_list ap1, ap2;
21964 va_start(ap1, f);
21965 va_copy(ap2, ap1);
21966 va_end(ap2);
21967 va_end(ap1);
21968 }
5886b072
VZ
21969 int main()
21970 {
b902e639
VZ
21971 foo("hi", 17);
21972 return 0;
5886b072 21973 }
ba3d13e1
VZ
21974_ACEOF
21975rm -f conftest.$ac_objext conftest$ac_exeext
21976if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21977 (eval $ac_link) 2>conftest.er1
21978 ac_status=$?
21979 grep -v '^ *+' conftest.er1 >conftest.err
21980 rm -f conftest.er1
21981 cat conftest.err >&5
21982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21983 (exit $ac_status); } &&
c9a66001 21984 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ba3d13e1
VZ
21985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21986 (eval $ac_try) 2>&5
21987 ac_status=$?
21988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21989 (exit $ac_status); }; } &&
21990 { ac_try='test -s conftest$ac_exeext'
21991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21992 (eval $ac_try) 2>&5
21993 ac_status=$?
21994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21995 (exit $ac_status); }; }; then
21996 wx_cv_func_va_copy=yes
21997else
21998 echo "$as_me: failed program was:" >&5
21999sed 's/^/| /' conftest.$ac_ext >&5
22000
22001wx_cv_func_va_copy=no
22002
22003fi
22004rm -f conftest.err conftest.$ac_objext \
22005 conftest$ac_exeext conftest.$ac_ext
22006
22007
22008fi
22009echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
22010echo "${ECHO_T}$wx_cv_func_va_copy" >&6
22011
22012if test $wx_cv_func_va_copy = "yes"; then
22013 cat >>confdefs.h <<\_ACEOF
22014#define HAVE_VA_COPY 1
22015_ACEOF
22016
22017else
22018 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
22019echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
22020if test "${wx_cv_type_va_list_lvalue+set}" = set; then
22021 echo $ECHO_N "(cached) $ECHO_C" >&6
22022else
22023
22024 if test "$cross_compiling" = yes; then
22025 wx_cv_type_va_list_lvalue=yes
22026
22027else
22028 cat >conftest.$ac_ext <<_ACEOF
22029
22030 #include <stdarg.h>
22031 int foo(char *f, ...)
22032 {
22033 va_list ap1, ap2;
22034 va_start(ap1, f);
22035 ap2 = ap1;
22036 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
22037 return 1;
22038 va_end(ap2);
22039 va_end(ap1);
22040 return 0;
22041 }
22042 int main()
22043 {
22044 return foo("hi", 17);
22045 }
22046_ACEOF
22047rm -f conftest$ac_exeext
22048if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22049 (eval $ac_link) 2>&5
22050 ac_status=$?
22051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22052 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22054 (eval $ac_try) 2>&5
22055 ac_status=$?
22056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22057 (exit $ac_status); }; }; then
22058 wx_cv_type_va_list_lvalue=yes
22059else
22060 echo "$as_me: program exited with status $ac_status" >&5
22061echo "$as_me: failed program was:" >&5
22062sed 's/^/| /' conftest.$ac_ext >&5
22063
22064( exit $ac_status )
22065wx_cv_type_va_list_lvalue=no
22066fi
22067rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22068fi
22069
22070
22071fi
22072echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
22073echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
22074
22075 if test $wx_cv_type_va_list_lvalue != "yes"; then
22076 cat >>confdefs.h <<\_ACEOF
22077#define VA_LIST_IS_ARRAY 1
22078_ACEOF
22079
22080 fi
22081fi
22082
a848cd7e
SC
22083# Check whether --enable-largefile or --disable-largefile was given.
22084if test "${enable_largefile+set}" = set; then
22085 enableval="$enable_largefile"
22086
22087fi;
22088if test "$enable_largefile" != no; then
22089 wx_largefile=no
22090
22091 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
22092echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
22093if test "${ac_cv_sys_file_offset_bits+set}" = set; then
22094 echo $ECHO_N "(cached) $ECHO_C" >&6
22095else
22096
22097 cat >conftest.$ac_ext <<_ACEOF
22098/* confdefs.h. */
22099_ACEOF
22100cat confdefs.h >>conftest.$ac_ext
22101cat >>conftest.$ac_ext <<_ACEOF
22102/* end confdefs.h. */
22103#define _FILE_OFFSET_BITS 64
22104 #include <sys/types.h>
22105int
22106main ()
22107{
22108typedef struct {
22109 unsigned int field: sizeof(off_t) == 8;
22110} wxlf;
22111
22112 ;
22113 return 0;
22114}
22115_ACEOF
22116rm -f conftest.$ac_objext
22117if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22118 (eval $ac_compile) 2>conftest.er1
a848cd7e 22119 ac_status=$?
ac1cb8d3
VS
22120 grep -v '^ *+' conftest.er1 >conftest.err
22121 rm -f conftest.er1
22122 cat conftest.err >&5
a848cd7e
SC
22123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22124 (exit $ac_status); } &&
c9a66001 22125 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22127 (eval $ac_try) 2>&5
22128 ac_status=$?
22129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22130 (exit $ac_status); }; } &&
22131 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22133 (eval $ac_try) 2>&5
22134 ac_status=$?
22135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22136 (exit $ac_status); }; }; then
22137 ac_cv_sys_file_offset_bits=64
22138else
22139 echo "$as_me: failed program was:" >&5
22140sed 's/^/| /' conftest.$ac_ext >&5
22141
22142ac_cv_sys_file_offset_bits=no
22143fi
ac1cb8d3 22144rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22145
22146
22147fi
22148echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
22149echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
22150
22151 if test "$ac_cv_sys_file_offset_bits" != no; then
22152 wx_largefile=yes
22153 cat >>confdefs.h <<_ACEOF
22154#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
22155_ACEOF
22156
22157 fi
22158
22159 if test "x$wx_largefile" != "xyes"; then
22160
22161 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
22162echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
22163if test "${ac_cv_sys_large_files+set}" = set; then
22164 echo $ECHO_N "(cached) $ECHO_C" >&6
22165else
22166
22167 cat >conftest.$ac_ext <<_ACEOF
22168/* confdefs.h. */
22169_ACEOF
22170cat confdefs.h >>conftest.$ac_ext
22171cat >>conftest.$ac_ext <<_ACEOF
22172/* end confdefs.h. */
22173#define _LARGE_FILES 1
22174 #include <sys/types.h>
22175int
22176main ()
22177{
22178typedef struct {
22179 unsigned int field: sizeof(off_t) == 8;
22180} wxlf;
22181
22182 ;
22183 return 0;
22184}
22185_ACEOF
22186rm -f conftest.$ac_objext
22187if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22188 (eval $ac_compile) 2>conftest.er1
a848cd7e 22189 ac_status=$?
ac1cb8d3
VS
22190 grep -v '^ *+' conftest.er1 >conftest.err
22191 rm -f conftest.er1
22192 cat conftest.err >&5
a848cd7e
SC
22193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22194 (exit $ac_status); } &&
c9a66001 22195 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22197 (eval $ac_try) 2>&5
22198 ac_status=$?
22199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22200 (exit $ac_status); }; } &&
22201 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22203 (eval $ac_try) 2>&5
22204 ac_status=$?
22205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22206 (exit $ac_status); }; }; then
22207 ac_cv_sys_large_files=1
22208else
22209 echo "$as_me: failed program was:" >&5
22210sed 's/^/| /' conftest.$ac_ext >&5
22211
22212ac_cv_sys_large_files=no
22213fi
ac1cb8d3 22214rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22215
22216
22217fi
22218echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
22219echo "${ECHO_T}$ac_cv_sys_large_files" >&6
22220
22221 if test "$ac_cv_sys_large_files" != no; then
22222 wx_largefile=yes
22223 cat >>confdefs.h <<_ACEOF
22224#define _LARGE_FILES $ac_cv_sys_large_files
22225_ACEOF
22226
22227 fi
22228
22229 fi
22230
22231 echo "$as_me:$LINENO: checking if large file support is available" >&5
22232echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
22233 if test "x$wx_largefile" = "xyes"; then
22234 cat >>confdefs.h <<\_ACEOF
22235#define HAVE_LARGEFILE_SUPPORT 1
22236_ACEOF
22237
22238 fi
22239 echo "$as_me:$LINENO: result: $wx_largefile" >&5
22240echo "${ECHO_T}$wx_largefile" >&6
22241fi
22242
5b674b9d
DE
22243
22244if test "x$wx_largefile" = "xyes"; then
22245 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
5ff751d6 22246 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
00421666
MW
22247
22248 if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
22249 echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
22250echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6
22251if test "${wx_cv_STDC_EXT_required+set}" = set; then
22252 echo $ECHO_N "(cached) $ECHO_C" >&6
22253else
22254
00421666
MW
22255 cat >conftest.$ac_ext <<_ACEOF
22256/* confdefs.h. */
22257_ACEOF
22258cat confdefs.h >>conftest.$ac_ext
22259cat >>conftest.$ac_ext <<_ACEOF
22260/* end confdefs.h. */
22261
22262int
22263main ()
22264{
22265
22266 #ifndef __STDC_EXT__
22267 choke me
22268 #endif
22269
22270 ;
22271 return 0;
22272}
22273_ACEOF
22274rm -f conftest.$ac_objext
22275if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22276 (eval $ac_compile) 2>conftest.er1
22277 ac_status=$?
22278 grep -v '^ *+' conftest.er1 >conftest.err
22279 rm -f conftest.er1
22280 cat conftest.err >&5
22281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22282 (exit $ac_status); } &&
c9a66001 22283 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
00421666
MW
22284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22285 (eval $ac_try) 2>&5
22286 ac_status=$?
22287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22288 (exit $ac_status); }; } &&
22289 { ac_try='test -s conftest.$ac_objext'
22290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22291 (eval $ac_try) 2>&5
22292 ac_status=$?
22293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22294 (exit $ac_status); }; }; then
22295 wx_cv_STDC_EXT_required=no
22296else
22297 echo "$as_me: failed program was:" >&5
22298sed 's/^/| /' conftest.$ac_ext >&5
22299
22300wx_cv_STDC_EXT_required=yes
22301
22302fi
22303rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
00421666
MW
22304
22305
22306fi
22307echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
22308echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6
22309 if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
5ff751d6 22310 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
00421666
MW
22311 fi
22312 fi
5b674b9d 22313 else
5ff751d6 22314 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES"
5b674b9d
DE
22315 fi
22316 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
22317echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
22318if test "${ac_cv_sys_largefile_source+set}" = set; then
22319 echo $ECHO_N "(cached) $ECHO_C" >&6
22320else
22321 while :; do
22322 ac_cv_sys_largefile_source=no
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#include <stdio.h>
22330int
22331main ()
22332{
22333return !fseeko;
22334 ;
22335 return 0;
22336}
22337_ACEOF
22338rm -f conftest.$ac_objext
22339if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22340 (eval $ac_compile) 2>conftest.er1
22341 ac_status=$?
22342 grep -v '^ *+' conftest.er1 >conftest.err
22343 rm -f conftest.er1
22344 cat conftest.err >&5
22345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22346 (exit $ac_status); } &&
c9a66001 22347 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
22348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22349 (eval $ac_try) 2>&5
22350 ac_status=$?
22351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22352 (exit $ac_status); }; } &&
22353 { ac_try='test -s conftest.$ac_objext'
22354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22355 (eval $ac_try) 2>&5
22356 ac_status=$?
22357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22358 (exit $ac_status); }; }; then
22359 break
22360else
22361 echo "$as_me: failed program was:" >&5
22362sed 's/^/| /' conftest.$ac_ext >&5
22363
22364fi
22365rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22366 cat >conftest.$ac_ext <<_ACEOF
22367/* confdefs.h. */
22368_ACEOF
22369cat confdefs.h >>conftest.$ac_ext
22370cat >>conftest.$ac_ext <<_ACEOF
22371/* end confdefs.h. */
22372#define _LARGEFILE_SOURCE 1
22373#include <stdio.h>
22374int
22375main ()
22376{
22377return !fseeko;
22378 ;
22379 return 0;
22380}
22381_ACEOF
22382rm -f conftest.$ac_objext
22383if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22384 (eval $ac_compile) 2>conftest.er1
22385 ac_status=$?
22386 grep -v '^ *+' conftest.er1 >conftest.err
22387 rm -f conftest.er1
22388 cat conftest.err >&5
22389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22390 (exit $ac_status); } &&
c9a66001 22391 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
22392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22393 (eval $ac_try) 2>&5
22394 ac_status=$?
22395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22396 (exit $ac_status); }; } &&
22397 { ac_try='test -s conftest.$ac_objext'
22398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22399 (eval $ac_try) 2>&5
22400 ac_status=$?
22401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22402 (exit $ac_status); }; }; then
22403 ac_cv_sys_largefile_source=1; break
22404else
22405 echo "$as_me: failed program was:" >&5
22406sed 's/^/| /' conftest.$ac_ext >&5
22407
22408fi
22409rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22410 break
22411done
22412fi
22413echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
22414echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
22415if test "$ac_cv_sys_largefile_source" != no; then
22416
22417cat >>confdefs.h <<_ACEOF
22418#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
22419_ACEOF
22420
22421fi
22422rm -f conftest*
22423
22424# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
22425# in glibc 2.1.3, but that breaks too many other things.
22426# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
22427echo "$as_me:$LINENO: checking for fseeko" >&5
22428echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
22429if test "${ac_cv_func_fseeko+set}" = set; then
22430 echo $ECHO_N "(cached) $ECHO_C" >&6
22431else
22432 cat >conftest.$ac_ext <<_ACEOF
22433/* confdefs.h. */
22434_ACEOF
22435cat confdefs.h >>conftest.$ac_ext
22436cat >>conftest.$ac_ext <<_ACEOF
22437/* end confdefs.h. */
22438#include <stdio.h>
22439int
22440main ()
22441{
22442return fseeko && fseeko (stdin, 0, 0);
22443 ;
22444 return 0;
22445}
22446_ACEOF
22447rm -f conftest.$ac_objext conftest$ac_exeext
22448if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22449 (eval $ac_link) 2>conftest.er1
22450 ac_status=$?
22451 grep -v '^ *+' conftest.er1 >conftest.err
22452 rm -f conftest.er1
22453 cat conftest.err >&5
22454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22455 (exit $ac_status); } &&
c9a66001 22456 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
22457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22458 (eval $ac_try) 2>&5
22459 ac_status=$?
22460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22461 (exit $ac_status); }; } &&
22462 { ac_try='test -s conftest$ac_exeext'
22463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22464 (eval $ac_try) 2>&5
22465 ac_status=$?
22466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22467 (exit $ac_status); }; }; then
22468 ac_cv_func_fseeko=yes
22469else
22470 echo "$as_me: failed program was:" >&5
22471sed 's/^/| /' conftest.$ac_ext >&5
22472
22473ac_cv_func_fseeko=no
22474fi
22475rm -f conftest.err conftest.$ac_objext \
22476 conftest$ac_exeext conftest.$ac_ext
22477fi
22478echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
22479echo "${ECHO_T}$ac_cv_func_fseeko" >&6
22480if test $ac_cv_func_fseeko = yes; then
22481
22482cat >>confdefs.h <<\_ACEOF
22483#define HAVE_FSEEKO 1
22484_ACEOF
22485
22486fi
22487
5b674b9d 22488 if test "$ac_cv_sys_largefile_source" != no; then
5ff751d6 22489 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e 22490 fi
a848cd7e
SC
22491fi
22492
22493echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22494echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
22495if test "${ac_cv_c_bigendian+set}" = set; then
22496 echo $ECHO_N "(cached) $ECHO_C" >&6
22497else
22498 ac_cv_c_bigendian=unknown
22499# See if sys/param.h defines the BYTE_ORDER macro.
22500cat >conftest.$ac_ext <<_ACEOF
22501/* confdefs.h. */
22502_ACEOF
22503cat confdefs.h >>conftest.$ac_ext
22504cat >>conftest.$ac_ext <<_ACEOF
22505/* end confdefs.h. */
22506#include <sys/types.h>
22507#include <sys/param.h>
22508int
22509main ()
22510{
22511
22512#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
22513 bogus endian macros
22514#endif
22515 ;
22516 return 0;
22517}
22518_ACEOF
22519rm -f conftest.$ac_objext
22520if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22521 (eval $ac_compile) 2>conftest.er1
a848cd7e 22522 ac_status=$?
ac1cb8d3
VS
22523 grep -v '^ *+' conftest.er1 >conftest.err
22524 rm -f conftest.er1
22525 cat conftest.err >&5
a848cd7e
SC
22526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22527 (exit $ac_status); } &&
c9a66001 22528 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22530 (eval $ac_try) 2>&5
22531 ac_status=$?
22532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22533 (exit $ac_status); }; } &&
22534 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22536 (eval $ac_try) 2>&5
22537 ac_status=$?
22538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22539 (exit $ac_status); }; }; then
22540 # It does; now see whether it defined to BIG_ENDIAN or not.
22541cat >conftest.$ac_ext <<_ACEOF
22542/* confdefs.h. */
22543_ACEOF
22544cat confdefs.h >>conftest.$ac_ext
22545cat >>conftest.$ac_ext <<_ACEOF
22546/* end confdefs.h. */
22547#include <sys/types.h>
22548#include <sys/param.h>
22549int
22550main ()
22551{
22552
22553#if BYTE_ORDER != BIG_ENDIAN
22554 not big endian
22555#endif
22556 ;
22557 return 0;
22558}
22559_ACEOF
22560rm -f conftest.$ac_objext
22561if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22562 (eval $ac_compile) 2>conftest.er1
a848cd7e 22563 ac_status=$?
ac1cb8d3
VS
22564 grep -v '^ *+' conftest.er1 >conftest.err
22565 rm -f conftest.er1
22566 cat conftest.err >&5
a848cd7e
SC
22567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22568 (exit $ac_status); } &&
c9a66001 22569 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22571 (eval $ac_try) 2>&5
22572 ac_status=$?
22573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22574 (exit $ac_status); }; } &&
22575 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22577 (eval $ac_try) 2>&5
22578 ac_status=$?
22579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22580 (exit $ac_status); }; }; then
22581 ac_cv_c_bigendian=yes
22582else
22583 echo "$as_me: failed program was:" >&5
22584sed 's/^/| /' conftest.$ac_ext >&5
22585
22586ac_cv_c_bigendian=no
22587fi
ac1cb8d3 22588rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22589else
22590 echo "$as_me: failed program was:" >&5
22591sed 's/^/| /' conftest.$ac_ext >&5
22592
22593fi
ac1cb8d3 22594rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22595if test $ac_cv_c_bigendian = unknown; then
22596if test "$cross_compiling" = yes; then
22597 ac_cv_c_bigendian=unknown
22598else
22599 cat >conftest.$ac_ext <<_ACEOF
22600/* confdefs.h. */
22601_ACEOF
22602cat confdefs.h >>conftest.$ac_ext
22603cat >>conftest.$ac_ext <<_ACEOF
22604/* end confdefs.h. */
22605main () {
22606 /* Are we little or big endian? From Harbison&Steele. */
22607 union
22608 {
22609 long l;
22610 char c[sizeof (long)];
22611 } u;
22612 u.l = 1;
22613 exit (u.c[sizeof (long) - 1] == 1);
22614}
22615_ACEOF
22616rm -f conftest$ac_exeext
22617if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22618 (eval $ac_link) 2>&5
22619 ac_status=$?
22620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22621 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22623 (eval $ac_try) 2>&5
22624 ac_status=$?
22625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22626 (exit $ac_status); }; }; then
22627 ac_cv_c_bigendian=no
22628else
22629 echo "$as_me: program exited with status $ac_status" >&5
22630echo "$as_me: failed program was:" >&5
22631sed 's/^/| /' conftest.$ac_ext >&5
22632
22633( exit $ac_status )
22634ac_cv_c_bigendian=yes
22635fi
ac1cb8d3 22636rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22637fi
22638fi
22639fi
22640echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22641echo "${ECHO_T}$ac_cv_c_bigendian" >&6
22642if test $ac_cv_c_bigendian = unknown; then
22643 { 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
22644echo "$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;}
22645fi
22646if test $ac_cv_c_bigendian = yes; then
22647 cat >>confdefs.h <<\_ACEOF
22648#define WORDS_BIGENDIAN 1
22649_ACEOF
22650
22651fi
22652
22653
a848cd7e
SC
22654
22655
22656
22657 ac_ext=cc
22658ac_cpp='$CXXCPP $CPPFLAGS'
22659ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22660ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22661ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22662
22663
22664
22665for ac_header in iostream
22666do
22667as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22668if eval "test \"\${$as_ac_Header+set}\" = set"; then
22669 echo "$as_me:$LINENO: checking for $ac_header" >&5
22670echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22671if eval "test \"\${$as_ac_Header+set}\" = set"; then
22672 echo $ECHO_N "(cached) $ECHO_C" >&6
22673fi
22674echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22675echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22676else
22677 # Is the header compilable?
22678echo "$as_me:$LINENO: checking $ac_header usability" >&5
22679echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22680cat >conftest.$ac_ext <<_ACEOF
22681/* confdefs.h. */
22682_ACEOF
22683cat confdefs.h >>conftest.$ac_ext
22684cat >>conftest.$ac_ext <<_ACEOF
22685/* end confdefs.h. */
22686$ac_includes_default
22687#include <$ac_header>
22688_ACEOF
22689rm -f conftest.$ac_objext
22690if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22691 (eval $ac_compile) 2>conftest.er1
a848cd7e 22692 ac_status=$?
ac1cb8d3
VS
22693 grep -v '^ *+' conftest.er1 >conftest.err
22694 rm -f conftest.er1
22695 cat conftest.err >&5
a848cd7e
SC
22696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22697 (exit $ac_status); } &&
c9a66001 22698 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22700 (eval $ac_try) 2>&5
22701 ac_status=$?
22702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22703 (exit $ac_status); }; } &&
22704 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22706 (eval $ac_try) 2>&5
22707 ac_status=$?
22708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22709 (exit $ac_status); }; }; then
22710 ac_header_compiler=yes
22711else
22712 echo "$as_me: failed program was:" >&5
22713sed 's/^/| /' conftest.$ac_ext >&5
22714
22715ac_header_compiler=no
22716fi
ac1cb8d3 22717rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22718echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22719echo "${ECHO_T}$ac_header_compiler" >&6
22720
22721# Is the header present?
22722echo "$as_me:$LINENO: checking $ac_header presence" >&5
22723echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22724cat >conftest.$ac_ext <<_ACEOF
22725/* confdefs.h. */
22726_ACEOF
22727cat confdefs.h >>conftest.$ac_ext
22728cat >>conftest.$ac_ext <<_ACEOF
22729/* end confdefs.h. */
22730#include <$ac_header>
22731_ACEOF
22732if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22733 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22734 ac_status=$?
22735 grep -v '^ *+' conftest.er1 >conftest.err
22736 rm -f conftest.er1
22737 cat conftest.err >&5
22738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22739 (exit $ac_status); } >/dev/null; then
22740 if test -s conftest.err; then
22741 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 22742 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
22743 else
22744 ac_cpp_err=
22745 fi
22746else
22747 ac_cpp_err=yes
22748fi
22749if test -z "$ac_cpp_err"; then
22750 ac_header_preproc=yes
22751else
22752 echo "$as_me: failed program was:" >&5
22753sed 's/^/| /' conftest.$ac_ext >&5
22754
22755 ac_header_preproc=no
22756fi
22757rm -f conftest.err conftest.$ac_ext
22758echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22759echo "${ECHO_T}$ac_header_preproc" >&6
22760
22761# So? What about this header?
ac1cb8d3
VS
22762case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22763 yes:no: )
a848cd7e
SC
22764 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22765echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22766 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22767echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22768 ac_header_preproc=yes
a848cd7e 22769 ;;
ac1cb8d3 22770 no:yes:* )
a848cd7e
SC
22771 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22772echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22773 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22774echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22775 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22776echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22777 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22778echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22779 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22780echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22781 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22782echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22783 (
22784 cat <<\_ASBOX
ac1cb8d3
VS
22785## ----------------------------------------- ##
22786## Report this to wx-dev@lists.wxwidgets.org ##
22787## ----------------------------------------- ##
a848cd7e
SC
22788_ASBOX
22789 ) |
22790 sed "s/^/$as_me: WARNING: /" >&2
22791 ;;
22792esac
22793echo "$as_me:$LINENO: checking for $ac_header" >&5
22794echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22795if eval "test \"\${$as_ac_Header+set}\" = set"; then
22796 echo $ECHO_N "(cached) $ECHO_C" >&6
22797else
ac1cb8d3 22798 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
22799fi
22800echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22801echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22802
22803fi
22804if test `eval echo '${'$as_ac_Header'}'` = yes; then
22805 cat >>confdefs.h <<_ACEOF
22806#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22807_ACEOF
22808
22809fi
22810
22811done
22812
22813
22814 if test "$ac_cv_header_iostream" = "yes" ; then
22815 :
22816 else
22817 cat >>confdefs.h <<\_ACEOF
22818#define wxUSE_IOSTREAMH 1
22819_ACEOF
22820
22821 fi
22822
5d7b7554
VZ
22823 ac_ext=cc
22824ac_cpp='$CXXCPP $CPPFLAGS'
22825ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22826ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22827ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
22828
22829
22830
22831
22832 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
22833echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
22834if test "${wx_cv_cpp_bool+set}" = set; then
22835 echo $ECHO_N "(cached) $ECHO_C" >&6
22836else
22837
22838
22839
22840 ac_ext=cc
22841ac_cpp='$CXXCPP $CPPFLAGS'
22842ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22843ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22844ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22845
22846
22847 cat >conftest.$ac_ext <<_ACEOF
22848/* confdefs.h. */
22849_ACEOF
22850cat confdefs.h >>conftest.$ac_ext
22851cat >>conftest.$ac_ext <<_ACEOF
22852/* end confdefs.h. */
22853
22854
22855int
22856main ()
22857{
22858
22859 bool b = true;
22860
22861 return 0;
22862
22863 ;
22864 return 0;
22865}
22866_ACEOF
22867rm -f conftest.$ac_objext
22868if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22869 (eval $ac_compile) 2>conftest.er1
a848cd7e 22870 ac_status=$?
ac1cb8d3
VS
22871 grep -v '^ *+' conftest.er1 >conftest.err
22872 rm -f conftest.er1
22873 cat conftest.err >&5
a848cd7e
SC
22874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22875 (exit $ac_status); } &&
c9a66001 22876 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22878 (eval $ac_try) 2>&5
22879 ac_status=$?
22880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22881 (exit $ac_status); }; } &&
22882 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22884 (eval $ac_try) 2>&5
22885 ac_status=$?
22886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22887 (exit $ac_status); }; }; then
22888
22889 wx_cv_cpp_bool=yes
22890
22891else
22892 echo "$as_me: failed program was:" >&5
22893sed 's/^/| /' conftest.$ac_ext >&5
22894
22895
22896 wx_cv_cpp_bool=no
22897
22898
22899fi
ac1cb8d3 22900rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 22901
5d7b7554
VZ
22902 ac_ext=cc
22903ac_cpp='$CXXCPP $CPPFLAGS'
22904ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22905ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22906ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
22907
22908
22909fi
22910echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
22911echo "${ECHO_T}$wx_cv_cpp_bool" >&6
22912
22913 if test "$wx_cv_cpp_bool" = "yes"; then
22914 cat >>confdefs.h <<\_ACEOF
22915#define HAVE_BOOL 1
22916_ACEOF
22917
22918 fi
22919
22920
22921
22922 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
22923echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
22924if test "${wx_cv_explicit+set}" = set; then
22925 echo $ECHO_N "(cached) $ECHO_C" >&6
22926else
22927
22928
22929
22930 ac_ext=cc
22931ac_cpp='$CXXCPP $CPPFLAGS'
22932ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22933ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22934ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22935
22936
22937 cat >conftest.$ac_ext <<_ACEOF
22938/* confdefs.h. */
22939_ACEOF
22940cat confdefs.h >>conftest.$ac_ext
22941cat >>conftest.$ac_ext <<_ACEOF
22942/* end confdefs.h. */
22943
22944 class Foo { public: explicit Foo(int) {} };
22945
22946int
22947main ()
22948{
22949
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
22978 cat >conftest.$ac_ext <<_ACEOF
22979/* confdefs.h. */
22980_ACEOF
22981cat confdefs.h >>conftest.$ac_ext
22982cat >>conftest.$ac_ext <<_ACEOF
22983/* end confdefs.h. */
22984
22985 class Foo { public: explicit Foo(int) {} };
22986 static void TakeFoo(const Foo& foo) { }
22987
22988int
22989main ()
22990{
22991
22992 TakeFoo(17);
22993 return 0;
22994
22995 ;
22996 return 0;
22997}
22998_ACEOF
22999rm -f conftest.$ac_objext
23000if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23001 (eval $ac_compile) 2>conftest.er1
a848cd7e 23002 ac_status=$?
ac1cb8d3
VS
23003 grep -v '^ *+' conftest.er1 >conftest.err
23004 rm -f conftest.er1
23005 cat conftest.err >&5
a848cd7e
SC
23006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23007 (exit $ac_status); } &&
c9a66001 23008 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23010 (eval $ac_try) 2>&5
23011 ac_status=$?
23012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23013 (exit $ac_status); }; } &&
23014 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23016 (eval $ac_try) 2>&5
23017 ac_status=$?
23018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23019 (exit $ac_status); }; }; then
23020 wx_cv_explicit=no
23021else
23022 echo "$as_me: failed program was:" >&5
23023sed 's/^/| /' conftest.$ac_ext >&5
23024
23025wx_cv_explicit=yes
23026
23027fi
ac1cb8d3 23028rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23029
23030else
23031 echo "$as_me: failed program was:" >&5
23032sed 's/^/| /' conftest.$ac_ext >&5
23033
23034wx_cv_explicit=no
23035
23036fi
ac1cb8d3 23037rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 23038
5d7b7554
VZ
23039 ac_ext=cc
23040ac_cpp='$CXXCPP $CPPFLAGS'
23041ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23042ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23043ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23044
23045
23046fi
23047echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
23048echo "${ECHO_T}$wx_cv_explicit" >&6
23049
23050 if test "$wx_cv_explicit" = "yes"; then
23051 cat >>confdefs.h <<\_ACEOF
23052#define HAVE_EXPLICIT 1
23053_ACEOF
23054
23055 fi
23056
23057
23058echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
23059echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
23060if test "${ac_cv_cxx_const_cast+set}" = set; then
23061 echo $ECHO_N "(cached) $ECHO_C" >&6
23062else
23063
23064
23065 ac_ext=cc
23066ac_cpp='$CXXCPP $CPPFLAGS'
23067ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23068ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23069ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23070
23071 cat >conftest.$ac_ext <<_ACEOF
23072/* confdefs.h. */
23073_ACEOF
23074cat confdefs.h >>conftest.$ac_ext
23075cat >>conftest.$ac_ext <<_ACEOF
23076/* end confdefs.h. */
23077
23078int
23079main ()
23080{
23081int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
23082 ;
23083 return 0;
23084}
23085_ACEOF
23086rm -f conftest.$ac_objext
23087if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23088 (eval $ac_compile) 2>conftest.er1
a848cd7e 23089 ac_status=$?
ac1cb8d3
VS
23090 grep -v '^ *+' conftest.er1 >conftest.err
23091 rm -f conftest.er1
23092 cat conftest.err >&5
a848cd7e
SC
23093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23094 (exit $ac_status); } &&
c9a66001 23095 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23097 (eval $ac_try) 2>&5
23098 ac_status=$?
23099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23100 (exit $ac_status); }; } &&
23101 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23103 (eval $ac_try) 2>&5
23104 ac_status=$?
23105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23106 (exit $ac_status); }; }; then
23107 ac_cv_cxx_const_cast=yes
23108else
23109 echo "$as_me: failed program was:" >&5
23110sed 's/^/| /' conftest.$ac_ext >&5
23111
23112ac_cv_cxx_const_cast=no
23113fi
ac1cb8d3 23114rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
23115 ac_ext=cc
23116ac_cpp='$CXXCPP $CPPFLAGS'
23117ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23118ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23119ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23120
23121
23122fi
23123echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
23124echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
23125if test "$ac_cv_cxx_const_cast" = yes; then
23126
23127cat >>confdefs.h <<\_ACEOF
23128#define HAVE_CONST_CAST
23129_ACEOF
23130
23131fi
23132
7714864e
RL
23133echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
23134echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
23135if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
23136 echo $ECHO_N "(cached) $ECHO_C" >&6
23137else
23138
23139
23140 ac_ext=cc
23141ac_cpp='$CXXCPP $CPPFLAGS'
23142ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23143ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23144ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23145
23146 cat >conftest.$ac_ext <<_ACEOF
23147/* confdefs.h. */
23148_ACEOF
23149cat confdefs.h >>conftest.$ac_ext
23150cat >>conftest.$ac_ext <<_ACEOF
23151/* end confdefs.h. */
23152#include <typeinfo>
23153class Base { public : Base () {} virtual void f () = 0;};
23154class Derived : public Base { public : Derived () {} virtual void f () {} };
23155class Unrelated { public : Unrelated () {} };
23156int g (Unrelated&) { return 0; }
23157int
23158main ()
23159{
23160
23161Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
23162 ;
23163 return 0;
23164}
23165_ACEOF
23166rm -f conftest.$ac_objext
23167if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23168 (eval $ac_compile) 2>conftest.er1
23169 ac_status=$?
23170 grep -v '^ *+' conftest.er1 >conftest.err
23171 rm -f conftest.er1
23172 cat conftest.err >&5
23173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23174 (exit $ac_status); } &&
c9a66001 23175 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7714864e
RL
23176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23177 (eval $ac_try) 2>&5
23178 ac_status=$?
23179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23180 (exit $ac_status); }; } &&
23181 { ac_try='test -s conftest.$ac_objext'
23182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23183 (eval $ac_try) 2>&5
23184 ac_status=$?
23185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23186 (exit $ac_status); }; }; then
23187 ac_cv_cxx_reinterpret_cast=yes
23188else
23189 echo "$as_me: failed program was:" >&5
23190sed 's/^/| /' conftest.$ac_ext >&5
23191
23192ac_cv_cxx_reinterpret_cast=no
23193fi
23194rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
23195 ac_ext=cc
23196ac_cpp='$CXXCPP $CPPFLAGS'
23197ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23198ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23199ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7714864e
RL
23200
23201
23202fi
23203echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
23204echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
23205if test "$ac_cv_cxx_reinterpret_cast" = yes; then
23206
23207cat >>confdefs.h <<\_ACEOF
23208#define HAVE_REINTERPRET_CAST
23209_ACEOF
23210
23211fi
23212
a848cd7e
SC
23213echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
23214echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
23215if test "${ac_cv_cxx_static_cast+set}" = set; then
23216 echo $ECHO_N "(cached) $ECHO_C" >&6
23217else
23218
23219
23220 ac_ext=cc
23221ac_cpp='$CXXCPP $CPPFLAGS'
23222ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23223ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23224ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23225
23226 cat >conftest.$ac_ext <<_ACEOF
23227/* confdefs.h. */
23228_ACEOF
23229cat confdefs.h >>conftest.$ac_ext
23230cat >>conftest.$ac_ext <<_ACEOF
23231/* end confdefs.h. */
23232#include <typeinfo>
23233class Base { public : Base () {} virtual void f () = 0; };
23234class Derived : public Base { public : Derived () {} virtual void f () {} };
23235int g (Derived&) { return 0; }
23236int
23237main ()
23238{
23239
23240Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
23241 ;
23242 return 0;
23243}
23244_ACEOF
23245rm -f conftest.$ac_objext
23246if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23247 (eval $ac_compile) 2>conftest.er1
a848cd7e 23248 ac_status=$?
ac1cb8d3
VS
23249 grep -v '^ *+' conftest.er1 >conftest.err
23250 rm -f conftest.er1
23251 cat conftest.err >&5
a848cd7e
SC
23252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23253 (exit $ac_status); } &&
c9a66001 23254 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23256 (eval $ac_try) 2>&5
23257 ac_status=$?
23258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23259 (exit $ac_status); }; } &&
23260 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23262 (eval $ac_try) 2>&5
23263 ac_status=$?
23264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23265 (exit $ac_status); }; }; then
23266 ac_cv_cxx_static_cast=yes
23267else
23268 echo "$as_me: failed program was:" >&5
23269sed 's/^/| /' conftest.$ac_ext >&5
23270
23271ac_cv_cxx_static_cast=no
23272fi
ac1cb8d3 23273rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
23274 ac_ext=cc
23275ac_cpp='$CXXCPP $CPPFLAGS'
23276ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23277ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23278ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23279
23280
23281fi
23282echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
23283echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
23284if test "$ac_cv_cxx_static_cast" = yes; then
23285
23286cat >>confdefs.h <<\_ACEOF
23287#define HAVE_STATIC_CAST
23288_ACEOF
23289
23290fi
23291
23292
3c28b7cb 23293if test "x$SUNCXX" = xyes; then
c92ad099 23294 CXXFLAGS="-features=tmplife $CXXFLAGS"
3c28b7cb
MW
23295fi
23296
9122d155 23297if test "x$SUNCC" = xyes; then
c92ad099 23298 CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
9122d155
VZ
23299fi
23300
0ad5d837 23301if test "x$SGICC" = "xyes"; then
c92ad099 23302 CFLAGS="-woff 3970 $CFLAGS"
0ad5d837
VZ
23303fi
23304if test "x$SGICXX" = "xyes"; then
c92ad099 23305 CXXFLAGS="-woff 3970 $CXXFLAGS"
0ad5d837
VZ
23306fi
23307
2eef8513 23308if test "x$HPCC" = "xyes"; then
c92ad099 23309 CFLAGS="+W 2011,2450 $CFLAGS"
2eef8513
VZ
23310fi
23311if test "x$HPCXX" = "xyes"; then
c92ad099 23312 CXXFLAGS="+W 2340 $CXXFLAGS"
2eef8513
VZ
23313fi
23314
23315if test "x$COMPAQCXX" = "xyes"; then
23316 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
23317fi
23318
f56c22b4 23319if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
f56c22b4
MW
23320 if test "$wxUSE_UNICODE" = "yes"; then
23321 std_string="std::wstring"
23322 char_type="wchar_t"
23323 else
23324 std_string="std::string"
23325 char_type="char"
23326 fi
23327
23328 echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
23329echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6
a848cd7e
SC
23330 cat >conftest.$ac_ext <<_ACEOF
23331/* confdefs.h. */
23332_ACEOF
23333cat confdefs.h >>conftest.$ac_ext
23334cat >>conftest.$ac_ext <<_ACEOF
23335/* end confdefs.h. */
23336#include <string>
a848cd7e
SC
23337int
23338main ()
23339{
f56c22b4 23340$std_string foo;
a848cd7e
SC
23341 ;
23342 return 0;
23343}
23344_ACEOF
23345rm -f conftest.$ac_objext
23346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23347 (eval $ac_compile) 2>conftest.er1
a848cd7e 23348 ac_status=$?
ac1cb8d3
VS
23349 grep -v '^ *+' conftest.er1 >conftest.err
23350 rm -f conftest.er1
23351 cat conftest.err >&5
a848cd7e
SC
23352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23353 (exit $ac_status); } &&
c9a66001 23354 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23356 (eval $ac_try) 2>&5
23357 ac_status=$?
23358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23359 (exit $ac_status); }; } &&
23360 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23362 (eval $ac_try) 2>&5
23363 ac_status=$?
23364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23365 (exit $ac_status); }; }; then
23366 echo "$as_me:$LINENO: result: yes" >&5
23367echo "${ECHO_T}yes" >&6
0a08f02a
MB
23368 cat >>confdefs.h <<\_ACEOF
23369#define HAVE_STD_WSTRING 1
23370_ACEOF
23371
a848cd7e
SC
23372else
23373 echo "$as_me: failed program was:" >&5
23374sed 's/^/| /' conftest.$ac_ext >&5
23375
23376echo "$as_me:$LINENO: result: no" >&5
23377echo "${ECHO_T}no" >&6
f56c22b4
MW
23378 echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
23379echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6
0a08f02a
MB
23380 cat >conftest.$ac_ext <<_ACEOF
23381/* confdefs.h. */
23382_ACEOF
23383cat confdefs.h >>conftest.$ac_ext
23384cat >>conftest.$ac_ext <<_ACEOF
23385/* end confdefs.h. */
23386
23387 #ifdef HAVE_WCHAR_H
23388 # ifdef __CYGWIN__
23389 # include <stddef.h>
23390 # endif
23391 # include <wchar.h>
23392 #endif
23393 #ifdef HAVE_STDLIB_H
23394 # include <stdlib.h>
23395 #endif
23396 #include <stdio.h>
23397 #include <string>
23398
23399int
23400main ()
23401{
f56c22b4
MW
23402std::basic_string<$char_type> foo;
23403 const $char_type* dummy = foo.c_str();
0a08f02a
MB
23404 ;
23405 return 0;
23406}
23407_ACEOF
23408rm -f conftest.$ac_objext
23409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23410 (eval $ac_compile) 2>conftest.er1
23411 ac_status=$?
23412 grep -v '^ *+' conftest.er1 >conftest.err
23413 rm -f conftest.er1
23414 cat conftest.err >&5
23415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23416 (exit $ac_status); } &&
c9a66001 23417 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0a08f02a
MB
23418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23419 (eval $ac_try) 2>&5
23420 ac_status=$?
23421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23422 (exit $ac_status); }; } &&
23423 { ac_try='test -s conftest.$ac_objext'
23424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23425 (eval $ac_try) 2>&5
23426 ac_status=$?
23427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23428 (exit $ac_status); }; }; then
23429 echo "$as_me:$LINENO: result: yes" >&5
23430echo "${ECHO_T}yes" >&6
23431else
23432 echo "$as_me: failed program was:" >&5
23433sed 's/^/| /' conftest.$ac_ext >&5
23434
23435echo "$as_me:$LINENO: result: no" >&5
23436echo "${ECHO_T}no" >&6
f56c22b4 23437 if test "$wxUSE_STL" = "yes"; then
4b9918c5
MW
23438 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
23439echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
23440 { (exit 1); exit 1; }; }
23441 elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
23442 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
23443echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
a848cd7e 23444 { (exit 1); exit 1; }; }
f56c22b4
MW
23445 else
23446 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
23447echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
23448 wxUSE_STD_STRING=no
23449 fi
23450
0a08f02a 23451
a848cd7e 23452fi
ac1cb8d3 23453rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 23454
0a08f02a
MB
23455fi
23456rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f56c22b4
MW
23457fi
23458
23459if test "$wxUSE_STD_IOSTREAM" = "yes"; then
f56c22b4
MW
23460 echo "$as_me:$LINENO: checking for std::istream" >&5
23461echo $ECHO_N "checking for std::istream... $ECHO_C" >&6
23462if test "${ac_cv_type_std__istream+set}" = set; then
23463 echo $ECHO_N "(cached) $ECHO_C" >&6
23464else
23465 cat >conftest.$ac_ext <<_ACEOF
23466/* confdefs.h. */
23467_ACEOF
23468cat confdefs.h >>conftest.$ac_ext
23469cat >>conftest.$ac_ext <<_ACEOF
23470/* end confdefs.h. */
23471#include <iostream>
23472
23473int
23474main ()
23475{
23476if ((std::istream *) 0)
23477 return 0;
23478if (sizeof (std::istream))
23479 return 0;
23480 ;
23481 return 0;
23482}
23483_ACEOF
23484rm -f conftest.$ac_objext
23485if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23486 (eval $ac_compile) 2>conftest.er1
23487 ac_status=$?
23488 grep -v '^ *+' conftest.er1 >conftest.err
23489 rm -f conftest.er1
23490 cat conftest.err >&5
23491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23492 (exit $ac_status); } &&
c9a66001 23493 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
23494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23495 (eval $ac_try) 2>&5
23496 ac_status=$?
23497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23498 (exit $ac_status); }; } &&
23499 { ac_try='test -s conftest.$ac_objext'
23500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23501 (eval $ac_try) 2>&5
23502 ac_status=$?
23503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23504 (exit $ac_status); }; }; then
23505 ac_cv_type_std__istream=yes
23506else
23507 echo "$as_me: failed program was:" >&5
23508sed 's/^/| /' conftest.$ac_ext >&5
23509
23510ac_cv_type_std__istream=no
23511fi
23512rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23513fi
23514echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
23515echo "${ECHO_T}$ac_cv_type_std__istream" >&6
23516if test $ac_cv_type_std__istream = yes; then
23517
23518cat >>confdefs.h <<_ACEOF
23519#define HAVE_STD__ISTREAM 1
23520_ACEOF
23521
23522
23523else
23524 wxUSE_STD_IOSTREAM=no
23525fi
23526echo "$as_me:$LINENO: checking for std::ostream" >&5
23527echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6
23528if test "${ac_cv_type_std__ostream+set}" = set; then
23529 echo $ECHO_N "(cached) $ECHO_C" >&6
23530else
23531 cat >conftest.$ac_ext <<_ACEOF
23532/* confdefs.h. */
23533_ACEOF
23534cat confdefs.h >>conftest.$ac_ext
23535cat >>conftest.$ac_ext <<_ACEOF
23536/* end confdefs.h. */
23537#include <iostream>
23538
23539int
23540main ()
23541{
23542if ((std::ostream *) 0)
23543 return 0;
23544if (sizeof (std::ostream))
23545 return 0;
23546 ;
23547 return 0;
23548}
23549_ACEOF
23550rm -f conftest.$ac_objext
23551if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23552 (eval $ac_compile) 2>conftest.er1
23553 ac_status=$?
23554 grep -v '^ *+' conftest.er1 >conftest.err
23555 rm -f conftest.er1
23556 cat conftest.err >&5
23557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23558 (exit $ac_status); } &&
c9a66001 23559 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
23560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23561 (eval $ac_try) 2>&5
23562 ac_status=$?
23563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23564 (exit $ac_status); }; } &&
23565 { ac_try='test -s conftest.$ac_objext'
23566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23567 (eval $ac_try) 2>&5
23568 ac_status=$?
23569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23570 (exit $ac_status); }; }; then
23571 ac_cv_type_std__ostream=yes
23572else
23573 echo "$as_me: failed program was:" >&5
23574sed 's/^/| /' conftest.$ac_ext >&5
23575
23576ac_cv_type_std__ostream=no
23577fi
23578rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23579fi
23580echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
23581echo "${ECHO_T}$ac_cv_type_std__ostream" >&6
23582if test $ac_cv_type_std__ostream = yes; then
23583
23584cat >>confdefs.h <<_ACEOF
23585#define HAVE_STD__OSTREAM 1
23586_ACEOF
23587
23588
23589else
23590 wxUSE_STD_IOSTREAM=no
23591fi
23592
23593
23594 if test "$wxUSE_STD_IOSTREAM" != "yes"; then
4b9918c5
MW
23595 if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
23596 { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
23597echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
23598 { (exit 1); exit 1; }; }
23599 else
23600 { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
f56c22b4 23601echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
4b9918c5 23602 fi
f56c22b4 23603 fi
0a08f02a
MB
23604fi
23605
23606if test "$wxUSE_STL" = "yes"; then
0a08f02a
MB
23607 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
23608echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
a848cd7e
SC
23609 cat >conftest.$ac_ext <<_ACEOF
23610/* confdefs.h. */
23611_ACEOF
23612cat confdefs.h >>conftest.$ac_ext
23613cat >>conftest.$ac_ext <<_ACEOF
23614/* end confdefs.h. */
23615#include <string>
0a08f02a
MB
23616 #include <functional>
23617 #include <algorithm>
23618 #include <vector>
23619 #include <list>
a848cd7e
SC
23620int
23621main ()
23622{
0a08f02a
MB
23623std::vector<int> moo;
23624 std::list<int> foo;
23625 std::vector<int>::iterator it =
23626 std::find_if(moo.begin(), moo.end(),
23627 std::bind2nd(std::less<int>(), 3));
a848cd7e
SC
23628 ;
23629 return 0;
23630}
23631_ACEOF
23632rm -f conftest.$ac_objext
23633if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23634 (eval $ac_compile) 2>conftest.er1
a848cd7e 23635 ac_status=$?
ac1cb8d3
VS
23636 grep -v '^ *+' conftest.er1 >conftest.err
23637 rm -f conftest.er1
23638 cat conftest.err >&5
a848cd7e
SC
23639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23640 (exit $ac_status); } &&
c9a66001 23641 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23643 (eval $ac_try) 2>&5
23644 ac_status=$?
23645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23646 (exit $ac_status); }; } &&
23647 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23649 (eval $ac_try) 2>&5
23650 ac_status=$?
23651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23652 (exit $ac_status); }; }; then
23653 echo "$as_me:$LINENO: result: yes" >&5
23654echo "${ECHO_T}yes" >&6
a848cd7e
SC
23655else
23656 echo "$as_me: failed program was:" >&5
23657sed 's/^/| /' conftest.$ac_ext >&5
23658
23659echo "$as_me:$LINENO: result: no" >&5
23660echo "${ECHO_T}no" >&6
0a08f02a
MB
23661 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
23662echo "$as_me: error: Basic STL functionality missing" >&2;}
23663 { (exit 1); exit 1; }; }
a848cd7e 23664fi
ac1cb8d3 23665rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23666
23667 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
23668echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
23669 cat >conftest.$ac_ext <<_ACEOF
23670/* confdefs.h. */
23671_ACEOF
23672cat confdefs.h >>conftest.$ac_ext
23673cat >>conftest.$ac_ext <<_ACEOF
23674/* end confdefs.h. */
23675#include <string>
23676int
23677main ()
23678{
23679std::string foo, bar;
23680 foo.compare(bar);
23681 foo.compare(1, 1, bar);
23682 foo.compare(1, 1, bar, 1, 1);
23683 foo.compare("");
23684 foo.compare(1, 1, "");
23685 foo.compare(1, 1, "", 2);
23686 ;
23687 return 0;
23688}
23689_ACEOF
23690rm -f conftest.$ac_objext
23691if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23692 (eval $ac_compile) 2>conftest.er1
a848cd7e 23693 ac_status=$?
ac1cb8d3
VS
23694 grep -v '^ *+' conftest.er1 >conftest.err
23695 rm -f conftest.er1
23696 cat conftest.err >&5
a848cd7e
SC
23697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23698 (exit $ac_status); } &&
c9a66001 23699 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23701 (eval $ac_try) 2>&5
23702 ac_status=$?
23703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23704 (exit $ac_status); }; } &&
23705 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23707 (eval $ac_try) 2>&5
23708 ac_status=$?
23709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23710 (exit $ac_status); }; }; then
23711 echo "$as_me:$LINENO: result: yes" >&5
23712echo "${ECHO_T}yes" >&6
23713 cat >>confdefs.h <<\_ACEOF
23714#define HAVE_STD_STRING_COMPARE 1
23715_ACEOF
23716
23717else
23718 echo "$as_me: failed program was:" >&5
23719sed 's/^/| /' conftest.$ac_ext >&5
23720
23721echo "$as_me:$LINENO: result: no" >&5
23722echo "${ECHO_T}no" >&6
23723fi
ac1cb8d3 23724rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23725
23726 if test "${ac_cv_header_hash_map+set}" = set; then
23727 echo "$as_me:$LINENO: checking for hash_map" >&5
23728echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
23729if test "${ac_cv_header_hash_map+set}" = set; then
23730 echo $ECHO_N "(cached) $ECHO_C" >&6
23731fi
23732echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
23733echo "${ECHO_T}$ac_cv_header_hash_map" >&6
23734else
23735 # Is the header compilable?
23736echo "$as_me:$LINENO: checking hash_map usability" >&5
23737echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
23738cat >conftest.$ac_ext <<_ACEOF
23739/* confdefs.h. */
23740_ACEOF
23741cat confdefs.h >>conftest.$ac_ext
23742cat >>conftest.$ac_ext <<_ACEOF
23743/* end confdefs.h. */
23744$ac_includes_default
23745#include <hash_map>
23746_ACEOF
23747rm -f conftest.$ac_objext
23748if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23749 (eval $ac_compile) 2>conftest.er1
bdcade0a 23750 ac_status=$?
ac1cb8d3
VS
23751 grep -v '^ *+' conftest.er1 >conftest.err
23752 rm -f conftest.er1
23753 cat conftest.err >&5
bdcade0a
MB
23754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23755 (exit $ac_status); } &&
c9a66001 23756 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23758 (eval $ac_try) 2>&5
23759 ac_status=$?
23760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23761 (exit $ac_status); }; } &&
23762 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23764 (eval $ac_try) 2>&5
23765 ac_status=$?
23766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23767 (exit $ac_status); }; }; then
23768 ac_header_compiler=yes
23769else
23770 echo "$as_me: failed program was:" >&5
23771sed 's/^/| /' conftest.$ac_ext >&5
23772
23773ac_header_compiler=no
23774fi
ac1cb8d3 23775rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23776echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23777echo "${ECHO_T}$ac_header_compiler" >&6
23778
23779# Is the header present?
23780echo "$as_me:$LINENO: checking hash_map presence" >&5
23781echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
23782cat >conftest.$ac_ext <<_ACEOF
23783/* confdefs.h. */
23784_ACEOF
23785cat confdefs.h >>conftest.$ac_ext
23786cat >>conftest.$ac_ext <<_ACEOF
23787/* end confdefs.h. */
23788#include <hash_map>
23789_ACEOF
23790if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23791 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23792 ac_status=$?
23793 grep -v '^ *+' conftest.er1 >conftest.err
23794 rm -f conftest.er1
23795 cat conftest.err >&5
23796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23797 (exit $ac_status); } >/dev/null; then
23798 if test -s conftest.err; then
23799 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 23800 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
23801 else
23802 ac_cpp_err=
23803 fi
23804else
23805 ac_cpp_err=yes
23806fi
23807if test -z "$ac_cpp_err"; then
23808 ac_header_preproc=yes
23809else
23810 echo "$as_me: failed program was:" >&5
23811sed 's/^/| /' conftest.$ac_ext >&5
23812
23813 ac_header_preproc=no
23814fi
23815rm -f conftest.err conftest.$ac_ext
23816echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23817echo "${ECHO_T}$ac_header_preproc" >&6
23818
23819# So? What about this header?
ac1cb8d3
VS
23820case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23821 yes:no: )
bdcade0a
MB
23822 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
23823echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23824 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
23825echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
23826 ac_header_preproc=yes
bdcade0a 23827 ;;
ac1cb8d3 23828 no:yes:* )
bdcade0a
MB
23829 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
23830echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23831 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
23832echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
23833 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
23834echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
23835 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
23836echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
23837 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
23838echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23839 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
23840echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
23841 (
23842 cat <<\_ASBOX
ac1cb8d3
VS
23843## ----------------------------------------- ##
23844## Report this to wx-dev@lists.wxwidgets.org ##
23845## ----------------------------------------- ##
bdcade0a
MB
23846_ASBOX
23847 ) |
23848 sed "s/^/$as_me: WARNING: /" >&2
23849 ;;
23850esac
23851echo "$as_me:$LINENO: checking for hash_map" >&5
23852echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
23853if test "${ac_cv_header_hash_map+set}" = set; then
23854 echo $ECHO_N "(cached) $ECHO_C" >&6
23855else
23856 ac_cv_header_hash_map=$ac_header_preproc
23857fi
23858echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
23859echo "${ECHO_T}$ac_cv_header_hash_map" >&6
23860
23861fi
23862if test $ac_cv_header_hash_map = yes; then
23863 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
23864echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
23865 cat >conftest.$ac_ext <<_ACEOF
23866/* confdefs.h. */
23867_ACEOF
23868cat confdefs.h >>conftest.$ac_ext
23869cat >>conftest.$ac_ext <<_ACEOF
23870/* end confdefs.h. */
23871#include <hash_map>
23872 #include <hash_set>
23873int
23874main ()
23875{
23876std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
23877 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
23878 ;
23879 return 0;
23880}
23881_ACEOF
23882rm -f conftest.$ac_objext
23883if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23884 (eval $ac_compile) 2>conftest.er1
bdcade0a 23885 ac_status=$?
ac1cb8d3
VS
23886 grep -v '^ *+' conftest.er1 >conftest.err
23887 rm -f conftest.er1
23888 cat conftest.err >&5
bdcade0a
MB
23889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23890 (exit $ac_status); } &&
c9a66001 23891 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23893 (eval $ac_try) 2>&5
23894 ac_status=$?
23895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23896 (exit $ac_status); }; } &&
23897 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23899 (eval $ac_try) 2>&5
23900 ac_status=$?
23901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23902 (exit $ac_status); }; }; then
23903 echo "$as_me:$LINENO: result: yes" >&5
23904echo "${ECHO_T}yes" >&6
23905 cat >>confdefs.h <<\_ACEOF
23906#define HAVE_HASH_MAP 1
23907_ACEOF
23908
23909 cat >>confdefs.h <<\_ACEOF
23910#define HAVE_STD_HASH_MAP 1
23911_ACEOF
23912
23913else
23914 echo "$as_me: failed program was:" >&5
23915sed 's/^/| /' conftest.$ac_ext >&5
23916
23917echo "$as_me:$LINENO: result: no" >&5
23918echo "${ECHO_T}no" >&6
23919fi
ac1cb8d3 23920rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23921
23922fi
23923
23924
23925
23926 if test "${ac_cv_header_ext_hash_map+set}" = set; then
23927 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
23928echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
23929if test "${ac_cv_header_ext_hash_map+set}" = set; then
23930 echo $ECHO_N "(cached) $ECHO_C" >&6
23931fi
23932echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
23933echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
23934else
23935 # Is the header compilable?
23936echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
23937echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
23938cat >conftest.$ac_ext <<_ACEOF
23939/* confdefs.h. */
23940_ACEOF
23941cat confdefs.h >>conftest.$ac_ext
23942cat >>conftest.$ac_ext <<_ACEOF
23943/* end confdefs.h. */
23944$ac_includes_default
23945#include <ext/hash_map>
23946_ACEOF
23947rm -f conftest.$ac_objext
23948if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23949 (eval $ac_compile) 2>conftest.er1
bdcade0a 23950 ac_status=$?
ac1cb8d3
VS
23951 grep -v '^ *+' conftest.er1 >conftest.err
23952 rm -f conftest.er1
23953 cat conftest.err >&5
bdcade0a
MB
23954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23955 (exit $ac_status); } &&
c9a66001 23956 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23958 (eval $ac_try) 2>&5
23959 ac_status=$?
23960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23961 (exit $ac_status); }; } &&
23962 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23964 (eval $ac_try) 2>&5
23965 ac_status=$?
23966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23967 (exit $ac_status); }; }; then
23968 ac_header_compiler=yes
23969else
23970 echo "$as_me: failed program was:" >&5
23971sed 's/^/| /' conftest.$ac_ext >&5
23972
23973ac_header_compiler=no
23974fi
ac1cb8d3 23975rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23976echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23977echo "${ECHO_T}$ac_header_compiler" >&6
23978
23979# Is the header present?
23980echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
23981echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
23982cat >conftest.$ac_ext <<_ACEOF
23983/* confdefs.h. */
23984_ACEOF
23985cat confdefs.h >>conftest.$ac_ext
23986cat >>conftest.$ac_ext <<_ACEOF
23987/* end confdefs.h. */
23988#include <ext/hash_map>
23989_ACEOF
23990if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23991 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23992 ac_status=$?
23993 grep -v '^ *+' conftest.er1 >conftest.err
23994 rm -f conftest.er1
23995 cat conftest.err >&5
23996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23997 (exit $ac_status); } >/dev/null; then
23998 if test -s conftest.err; then
23999 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 24000 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
24001 else
24002 ac_cpp_err=
24003 fi
24004else
24005 ac_cpp_err=yes
24006fi
24007if test -z "$ac_cpp_err"; then
24008 ac_header_preproc=yes
24009else
24010 echo "$as_me: failed program was:" >&5
24011sed 's/^/| /' conftest.$ac_ext >&5
24012
24013 ac_header_preproc=no
24014fi
24015rm -f conftest.err conftest.$ac_ext
24016echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24017echo "${ECHO_T}$ac_header_preproc" >&6
24018
24019# So? What about this header?
ac1cb8d3
VS
24020case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24021 yes:no: )
bdcade0a
MB
24022 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
24023echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24024 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
24025echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
24026 ac_header_preproc=yes
bdcade0a 24027 ;;
ac1cb8d3 24028 no:yes:* )
bdcade0a
MB
24029 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
24030echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24031 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
24032echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
24033 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
24034echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
24035 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
24036echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
24037 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
24038echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24039 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
24040echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
24041 (
24042 cat <<\_ASBOX
ac1cb8d3
VS
24043## ----------------------------------------- ##
24044## Report this to wx-dev@lists.wxwidgets.org ##
24045## ----------------------------------------- ##
bdcade0a
MB
24046_ASBOX
24047 ) |
24048 sed "s/^/$as_me: WARNING: /" >&2
24049 ;;
24050esac
24051echo "$as_me:$LINENO: checking for ext/hash_map" >&5
24052echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
24053if test "${ac_cv_header_ext_hash_map+set}" = set; then
24054 echo $ECHO_N "(cached) $ECHO_C" >&6
24055else
24056 ac_cv_header_ext_hash_map=$ac_header_preproc
24057fi
24058echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
24059echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
24060
24061fi
24062if test $ac_cv_header_ext_hash_map = yes; then
24063 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
24064echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
24065 cat >conftest.$ac_ext <<_ACEOF
24066/* confdefs.h. */
24067_ACEOF
24068cat confdefs.h >>conftest.$ac_ext
24069cat >>conftest.$ac_ext <<_ACEOF
24070/* end confdefs.h. */
24071#include <ext/hash_map>
24072 #include <ext/hash_set>
24073int
24074main ()
24075{
24076__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
24077 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
24078 ;
24079 return 0;
24080}
24081_ACEOF
24082rm -f conftest.$ac_objext
24083if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24084 (eval $ac_compile) 2>conftest.er1
bdcade0a 24085 ac_status=$?
ac1cb8d3
VS
24086 grep -v '^ *+' conftest.er1 >conftest.err
24087 rm -f conftest.er1
24088 cat conftest.err >&5
bdcade0a
MB
24089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24090 (exit $ac_status); } &&
c9a66001 24091 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24093 (eval $ac_try) 2>&5
24094 ac_status=$?
24095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24096 (exit $ac_status); }; } &&
24097 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
24098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24099 (eval $ac_try) 2>&5
24100 ac_status=$?
24101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24102 (exit $ac_status); }; }; then
24103 echo "$as_me:$LINENO: result: yes" >&5
24104echo "${ECHO_T}yes" >&6
24105 cat >>confdefs.h <<\_ACEOF
24106#define HAVE_EXT_HASH_MAP 1
24107_ACEOF
24108
24109 cat >>confdefs.h <<\_ACEOF
24110#define HAVE_GNU_CXX_HASH_MAP 1
24111_ACEOF
24112
24113else
24114 echo "$as_me: failed program was:" >&5
24115sed 's/^/| /' conftest.$ac_ext >&5
24116
24117echo "$as_me:$LINENO: result: no" >&5
24118echo "${ECHO_T}no" >&6
24119fi
ac1cb8d3 24120rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
24121
24122fi
24123
24124
a848cd7e
SC
24125fi
24126
24127
24128SEARCH_INCLUDE="\
24129 /usr/local/include \
24130 \
24131 /usr/Motif-2.1/include \
24132 /usr/Motif-1.2/include \
24133 /usr/include/Motif1.2 \
a848cd7e
SC
24134 \
24135 /usr/dt/include \
24136 /usr/openwin/include \
24137 \
24138 /usr/include/Xm \
24139 \
24140 /usr/X11R6/include \
24141 /usr/X11R6.4/include \
24142 /usr/X11R5/include \
24143 /usr/X11R4/include \
24144 \
24145 /usr/include/X11R6 \
24146 /usr/include/X11R5 \
24147 /usr/include/X11R4 \
24148 \
24149 /usr/local/X11R6/include \
24150 /usr/local/X11R5/include \
24151 /usr/local/X11R4/include \
24152 \
24153 /usr/local/include/X11R6 \
24154 /usr/local/include/X11R5 \
24155 /usr/local/include/X11R4 \
24156 \
24157 /usr/X11/include \
24158 /usr/include/X11 \
24159 /usr/local/X11/include \
24160 /usr/local/include/X11 \
24161 \
a848cd7e 24162 /usr/XFree86/include/X11 \
e051b34e
MW
24163 /usr/pkg/include \
24164 \
a848cd7e
SC
24165 /usr/openwin/share/include"
24166
6f9cf1e6 24167echo "$as_me:$LINENO: checking for libraries directory" >&5
0ad5d837 24168echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6
6f9cf1e6
MW
24169
24170case "${host}" in
24171 *-*-irix6* )
24172 if test "${wx_cv_std_libpath+set}" = set; then
0ad5d837
VZ
24173 echo $ECHO_N "(cached) $ECHO_C" >&6
24174else
24175
c687b303
VZ
24176 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
24177 for e in a so sl dylib dll.a; do
24178 libc="$d/libc.$e"
24179 if test -f $libc; then
24180 save_LIBS="$LIBS"
24181 LIBS="$libc"
24182 cat >conftest.$ac_ext <<_ACEOF
0ad5d837
VZ
24183int main() { return 0; }
24184_ACEOF
24185rm -f conftest.$ac_objext conftest$ac_exeext
24186if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24187 (eval $ac_link) 2>conftest.er1
24188 ac_status=$?
24189 grep -v '^ *+' conftest.er1 >conftest.err
24190 rm -f conftest.er1
24191 cat conftest.err >&5
24192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24193 (exit $ac_status); } &&
c9a66001 24194 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
24195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24196 (eval $ac_try) 2>&5
24197 ac_status=$?
24198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24199 (exit $ac_status); }; } &&
24200 { ac_try='test -s conftest$ac_exeext'
24201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24202 (eval $ac_try) 2>&5
24203 ac_status=$?
24204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24205 (exit $ac_status); }; }; then
24206 wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
24207else
24208 echo "$as_me: failed program was:" >&5
24209sed 's/^/| /' conftest.$ac_ext >&5
24210
24211fi
24212rm -f conftest.err conftest.$ac_objext \
24213 conftest$ac_exeext conftest.$ac_ext
c687b303
VZ
24214 LIBS="$save_LIBS"
24215 if test "x$wx_cv_std_libpath" != "x"; then
24216 break 2
24217 fi
24218 fi
24219 done
24220 done
24221 if test "x$wx_cv_std_libpath" = "x"; then
24222 wx_cv_std_libpath="lib"
0ad5d837 24223 fi
0ad5d837
VZ
24224
24225
24226fi
6f9cf1e6
MW
24227
24228 ;;
24229
24230 *-*-solaris2* )
24231 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
24232 wx_cv_std_libpath="lib/64"
24233 else
24234 wx_cv_std_libpath="lib"
24235 fi
24236 ;;
24237
24238 *-*-linux* )
24239 if test "$ac_cv_sizeof_void_p" = 8 -a \
24240 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
24241 wx_cv_std_libpath="lib64"
24242 else
24243 wx_cv_std_libpath="lib"
24244 fi
c687b303
VZ
24245 ;;
24246
24247 *)
24248 wx_cv_std_libpath="lib";
24249 ;;
24250esac
0ad5d837 24251
6f9cf1e6
MW
24252echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
24253echo "${ECHO_T}$wx_cv_std_libpath" >&6
24254
24255SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
a848cd7e 24256
3eca31dc
MW
24257if test "$build" != "$host" -a "$GCC" = yes; then
24258 if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
24259 cross_root=`dirname $cross_root`
24260 cross_root=`dirname $cross_root`
24261
24262 SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
24263 SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
5c60e845 24264 SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
3eca31dc
MW
24265
24266 if test -z "$PKG_CONFIG_PATH"; then
24267 PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
24268 export PKG_CONFIG_PATH
24269 fi
24270
24271 if test -z "$x_includes" -o "$x_includes" = NONE; then
24272
24273ac_find_includes=
24274for ac_dir in $SEARCH_INCLUDE /usr/include;
24275 do
24276 if test -f "$ac_dir/X11/Intrinsic.h"; then
24277 ac_find_includes=$ac_dir
24278 break
24279 fi
24280 done
24281
24282 x_includes=$ac_find_includes
24283 fi
24284 if test -z "$x_libraries" -o "$x_libraries" = NONE; then
24285
0ad5d837
VZ
24286 ac_find_libraries=
24287 for ac_dir in $SEARCH_LIB;
3eca31dc
MW
24288 do
24289 for ac_extension in a so sl dylib dll.a; do
24290 if test -f "$ac_dir/libXt.$ac_extension"; then
24291 ac_find_libraries=$ac_dir
24292 break 2
24293 fi
24294 done
24295 done
24296
24297 x_libraries=$ac_find_libraries
24298 fi
24299 fi
24300fi
24301
a848cd7e
SC
24302
24303cat >confcache <<\_ACEOF
24304# This file is a shell script that caches the results of configure
24305# tests run on this system so they can be shared between configure
24306# scripts and configure runs, see configure's option --config-cache.
24307# It is not useful on other systems. If it contains results you don't
24308# want to keep, you may remove or edit it.
24309#
24310# config.status only pays attention to the cache file if you give it
24311# the --recheck option to rerun configure.
24312#
24313# `ac_cv_env_foo' variables (set or unset) will be overridden when
24314# loading this file, other *unset* `ac_cv_foo' will be assigned the
24315# following values.
24316
24317_ACEOF
24318
24319# The following way of writing the cache mishandles newlines in values,
24320# but we know of no workaround that is simple, portable, and efficient.
24321# So, don't put newlines in cache variables' values.
24322# Ultrix sh set writes to stderr and can't be redirected directly,
24323# and sets the high bit in the cache file unless we assign to the vars.
24324{
24325 (set) 2>&1 |
24326 case `(ac_space=' '; set | grep ac_space) 2>&1` in
24327 *ac_space=\ *)
24328 # `set' does not quote correctly, so add quotes (double-quote
24329 # substitution turns \\\\ into \\, and sed turns \\ into \).
24330 sed -n \
ac1cb8d3
VS
24331 "s/'/'\\\\''/g;
24332 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
24333 ;;
24334 *)
24335 # `set' quotes correctly as required by POSIX, so do not add quotes.
24336 sed -n \
ac1cb8d3 24337 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
24338 ;;
24339 esac;
24340} |
24341 sed '
24342 t clear
24343 : clear
24344 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24345 t end
24346 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24347 : end' >>confcache
24348if diff $cache_file confcache >/dev/null 2>&1; then :; else
24349 if test -w $cache_file; then
24350 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24351 cat confcache >$cache_file
24352 else
24353 echo "not updating unwritable cache $cache_file"
24354 fi
24355fi
24356rm -f confcache
24357
24358if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
24359 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
24360echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
24361if test "${wx_cv_lib_glibc21+set}" = set; then
24362 echo $ECHO_N "(cached) $ECHO_C" >&6
24363else
24364
24365 cat >conftest.$ac_ext <<_ACEOF
24366/* confdefs.h. */
24367_ACEOF
24368cat confdefs.h >>conftest.$ac_ext
24369cat >>conftest.$ac_ext <<_ACEOF
24370/* end confdefs.h. */
24371#include <features.h>
24372int
24373main ()
24374{
24375
24376 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
04e525a0 24377 not glibc 2.1
a848cd7e
SC
24378 #endif
24379
24380 ;
24381 return 0;
24382}
24383_ACEOF
24384rm -f conftest.$ac_objext
24385if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24386 (eval $ac_compile) 2>conftest.er1
a848cd7e 24387 ac_status=$?
ac1cb8d3
VS
24388 grep -v '^ *+' conftest.er1 >conftest.err
24389 rm -f conftest.er1
24390 cat conftest.err >&5
a848cd7e
SC
24391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24392 (exit $ac_status); } &&
c9a66001 24393 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24395 (eval $ac_try) 2>&5
24396 ac_status=$?
24397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24398 (exit $ac_status); }; } &&
24399 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24401 (eval $ac_try) 2>&5
24402 ac_status=$?
24403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24404 (exit $ac_status); }; }; then
24405
24406 wx_cv_lib_glibc21=yes
24407
24408else
24409 echo "$as_me: failed program was:" >&5
24410sed 's/^/| /' conftest.$ac_ext >&5
24411
24412
24413 wx_cv_lib_glibc21=no
24414
24415
24416fi
ac1cb8d3 24417rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24418
24419fi
24420echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
24421echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
24422 if test "$wx_cv_lib_glibc21" = "yes"; then
24423 cat >>confdefs.h <<\_ACEOF
24424#define wxHAVE_GLIBC2 1
24425_ACEOF
24426
24427 fi
24428fi
24429
24430if test "x$wx_cv_lib_glibc21" = "xyes"; then
24431 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
24432 cat >>confdefs.h <<\_ACEOF
24433#define _GNU_SOURCE 1
24434_ACEOF
24435
24436 fi
24437fi
24438
5d7b7554
VZ
24439have_cos=0
24440have_floor=0
a848cd7e 24441
5d7b7554
VZ
24442for ac_func in cos
24443do
24444as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24445echo "$as_me:$LINENO: checking for $ac_func" >&5
24446echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24447if eval "test \"\${$as_ac_var+set}\" = set"; then
a848cd7e 24448 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 24449else
5d7b7554 24450 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
24451/* confdefs.h. */
24452_ACEOF
24453cat confdefs.h >>conftest.$ac_ext
24454cat >>conftest.$ac_ext <<_ACEOF
24455/* end confdefs.h. */
5d7b7554
VZ
24456/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24457 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24458#define $ac_func innocuous_$ac_func
24459
24460/* System header to define __stub macros and hopefully few prototypes,
24461 which can conflict with char $ac_func (); below.
24462 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24463 <limits.h> exists even on freestanding compilers. */
24464
24465#ifdef __STDC__
24466# include <limits.h>
24467#else
24468# include <assert.h>
24469#endif
24470
24471#undef $ac_func
24472
24473/* Override any gcc2 internal prototype to avoid an error. */
24474#ifdef __cplusplus
24475extern "C"
24476{
24477#endif
24478/* We use char because int might match the return type of a gcc2
24479 builtin and then its argument prototype would still apply. */
24480char $ac_func ();
24481/* The GNU C library defines this for functions which it implements
24482 to always fail with ENOSYS. Some functions are actually named
24483 something starting with __ and the normal name is an alias. */
24484#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24485choke me
24486#else
24487char (*f) () = $ac_func;
24488#endif
24489#ifdef __cplusplus
24490}
24491#endif
24492
24493int
24494main ()
24495{
24496return f != $ac_func;
24497 ;
24498 return 0;
24499}
a848cd7e 24500_ACEOF
5d7b7554
VZ
24501rm -f conftest.$ac_objext conftest$ac_exeext
24502if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24503 (eval $ac_link) 2>conftest.er1
a848cd7e 24504 ac_status=$?
ac1cb8d3
VS
24505 grep -v '^ *+' conftest.er1 >conftest.err
24506 rm -f conftest.er1
24507 cat conftest.err >&5
a848cd7e
SC
24508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24509 (exit $ac_status); } &&
c9a66001 24510 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24512 (eval $ac_try) 2>&5
24513 ac_status=$?
24514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24515 (exit $ac_status); }; } &&
5d7b7554 24516 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24518 (eval $ac_try) 2>&5
24519 ac_status=$?
24520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24521 (exit $ac_status); }; }; then
5d7b7554 24522 eval "$as_ac_var=yes"
a848cd7e
SC
24523else
24524 echo "$as_me: failed program was:" >&5
24525sed 's/^/| /' conftest.$ac_ext >&5
24526
5d7b7554 24527eval "$as_ac_var=no"
a848cd7e 24528fi
5d7b7554
VZ
24529rm -f conftest.err conftest.$ac_objext \
24530 conftest$ac_exeext conftest.$ac_ext
a848cd7e 24531fi
5d7b7554
VZ
24532echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24533echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24534if test `eval echo '${'$as_ac_var'}'` = yes; then
24535 cat >>confdefs.h <<_ACEOF
24536#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24537_ACEOF
24538 have_cos=1
a848cd7e 24539fi
5d7b7554 24540done
a848cd7e 24541
ab0f0edd 24542
5d7b7554 24543for ac_func in floor
a848cd7e
SC
24544do
24545as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24546echo "$as_me:$LINENO: checking for $ac_func" >&5
24547echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24548if eval "test \"\${$as_ac_var+set}\" = set"; then
24549 echo $ECHO_N "(cached) $ECHO_C" >&6
24550else
24551 cat >conftest.$ac_ext <<_ACEOF
24552/* confdefs.h. */
24553_ACEOF
24554cat confdefs.h >>conftest.$ac_ext
24555cat >>conftest.$ac_ext <<_ACEOF
24556/* end confdefs.h. */
ac1cb8d3
VS
24557/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24558 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24559#define $ac_func innocuous_$ac_func
24560
a848cd7e
SC
24561/* System header to define __stub macros and hopefully few prototypes,
24562 which can conflict with char $ac_func (); below.
24563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24564 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24565
a848cd7e
SC
24566#ifdef __STDC__
24567# include <limits.h>
24568#else
24569# include <assert.h>
24570#endif
ac1cb8d3
VS
24571
24572#undef $ac_func
24573
a848cd7e
SC
24574/* Override any gcc2 internal prototype to avoid an error. */
24575#ifdef __cplusplus
24576extern "C"
24577{
24578#endif
24579/* We use char because int might match the return type of a gcc2
24580 builtin and then its argument prototype would still apply. */
24581char $ac_func ();
24582/* The GNU C library defines this for functions which it implements
24583 to always fail with ENOSYS. Some functions are actually named
24584 something starting with __ and the normal name is an alias. */
24585#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24586choke me
24587#else
24588char (*f) () = $ac_func;
24589#endif
24590#ifdef __cplusplus
24591}
24592#endif
24593
24594int
24595main ()
24596{
24597return f != $ac_func;
24598 ;
24599 return 0;
24600}
24601_ACEOF
24602rm -f conftest.$ac_objext conftest$ac_exeext
24603if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24604 (eval $ac_link) 2>conftest.er1
a848cd7e 24605 ac_status=$?
ac1cb8d3
VS
24606 grep -v '^ *+' conftest.er1 >conftest.err
24607 rm -f conftest.er1
24608 cat conftest.err >&5
a848cd7e
SC
24609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24610 (exit $ac_status); } &&
c9a66001 24611 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
24612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24613 (eval $ac_try) 2>&5
24614 ac_status=$?
24615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24616 (exit $ac_status); }; } &&
24617 { ac_try='test -s conftest$ac_exeext'
24618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24619 (eval $ac_try) 2>&5
24620 ac_status=$?
24621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24622 (exit $ac_status); }; }; then
24623 eval "$as_ac_var=yes"
24624else
24625 echo "$as_me: failed program was:" >&5
24626sed 's/^/| /' conftest.$ac_ext >&5
24627
24628eval "$as_ac_var=no"
24629fi
24630rm -f conftest.err conftest.$ac_objext \
24631 conftest$ac_exeext conftest.$ac_ext
24632fi
24633echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24634echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24635if test `eval echo '${'$as_ac_var'}'` = yes; then
24636 cat >>confdefs.h <<_ACEOF
24637#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24638_ACEOF
24639 have_floor=1
24640fi
24641done
24642
24643echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
24644echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
24645if test "$have_cos" = 1 -a "$have_floor" = 1; then
24646 echo "$as_me:$LINENO: result: yes" >&5
24647echo "${ECHO_T}yes" >&6
24648else
24649 echo "$as_me:$LINENO: result: no" >&5
24650echo "${ECHO_T}no" >&6
24651 LIBS="$LIBS -lm"
24652 # use different functions to avoid configure caching
24653 have_sin=0
24654 have_ceil=0
24655
24656for ac_func in sin
24657do
24658as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24659echo "$as_me:$LINENO: checking for $ac_func" >&5
24660echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24661if eval "test \"\${$as_ac_var+set}\" = set"; then
24662 echo $ECHO_N "(cached) $ECHO_C" >&6
24663else
24664 cat >conftest.$ac_ext <<_ACEOF
24665/* confdefs.h. */
24666_ACEOF
24667cat confdefs.h >>conftest.$ac_ext
24668cat >>conftest.$ac_ext <<_ACEOF
24669/* end confdefs.h. */
24670/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24671 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24672#define $ac_func innocuous_$ac_func
24673
24674/* System header to define __stub macros and hopefully few prototypes,
24675 which can conflict with char $ac_func (); below.
24676 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24677 <limits.h> exists even on freestanding compilers. */
24678
24679#ifdef __STDC__
24680# include <limits.h>
24681#else
24682# include <assert.h>
24683#endif
24684
24685#undef $ac_func
24686
24687/* Override any gcc2 internal prototype to avoid an error. */
24688#ifdef __cplusplus
24689extern "C"
24690{
24691#endif
24692/* We use char because int might match the return type of a gcc2
24693 builtin and then its argument prototype would still apply. */
24694char $ac_func ();
24695/* The GNU C library defines this for functions which it implements
24696 to always fail with ENOSYS. Some functions are actually named
24697 something starting with __ and the normal name is an alias. */
24698#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24699choke me
24700#else
24701char (*f) () = $ac_func;
24702#endif
24703#ifdef __cplusplus
24704}
24705#endif
24706
24707int
24708main ()
24709{
24710return f != $ac_func;
24711 ;
24712 return 0;
24713}
24714_ACEOF
24715rm -f conftest.$ac_objext conftest$ac_exeext
24716if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24717 (eval $ac_link) 2>conftest.er1
24718 ac_status=$?
24719 grep -v '^ *+' conftest.er1 >conftest.err
24720 rm -f conftest.er1
24721 cat conftest.err >&5
24722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24723 (exit $ac_status); } &&
c9a66001 24724 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
24725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24726 (eval $ac_try) 2>&5
24727 ac_status=$?
24728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24729 (exit $ac_status); }; } &&
24730 { ac_try='test -s conftest$ac_exeext'
24731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24732 (eval $ac_try) 2>&5
24733 ac_status=$?
24734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24735 (exit $ac_status); }; }; then
24736 eval "$as_ac_var=yes"
24737else
24738 echo "$as_me: failed program was:" >&5
24739sed 's/^/| /' conftest.$ac_ext >&5
24740
24741eval "$as_ac_var=no"
24742fi
24743rm -f conftest.err conftest.$ac_objext \
24744 conftest$ac_exeext conftest.$ac_ext
24745fi
24746echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24747echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24748if test `eval echo '${'$as_ac_var'}'` = yes; then
24749 cat >>confdefs.h <<_ACEOF
24750#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24751_ACEOF
24752 have_sin=1
24753fi
24754done
24755
24756
24757for ac_func in ceil
24758do
24759as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24760echo "$as_me:$LINENO: checking for $ac_func" >&5
24761echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24762if eval "test \"\${$as_ac_var+set}\" = set"; then
24763 echo $ECHO_N "(cached) $ECHO_C" >&6
24764else
24765 cat >conftest.$ac_ext <<_ACEOF
24766/* confdefs.h. */
24767_ACEOF
24768cat confdefs.h >>conftest.$ac_ext
24769cat >>conftest.$ac_ext <<_ACEOF
24770/* end confdefs.h. */
24771/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24773#define $ac_func innocuous_$ac_func
24774
24775/* System header to define __stub macros and hopefully few prototypes,
24776 which can conflict with char $ac_func (); below.
24777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24778 <limits.h> exists even on freestanding compilers. */
24779
24780#ifdef __STDC__
24781# include <limits.h>
24782#else
24783# include <assert.h>
24784#endif
24785
24786#undef $ac_func
24787
24788/* Override any gcc2 internal prototype to avoid an error. */
24789#ifdef __cplusplus
24790extern "C"
24791{
24792#endif
24793/* We use char because int might match the return type of a gcc2
24794 builtin and then its argument prototype would still apply. */
24795char $ac_func ();
24796/* The GNU C library defines this for functions which it implements
24797 to always fail with ENOSYS. Some functions are actually named
24798 something starting with __ and the normal name is an alias. */
24799#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24800choke me
24801#else
24802char (*f) () = $ac_func;
24803#endif
24804#ifdef __cplusplus
24805}
24806#endif
24807
24808int
24809main ()
24810{
24811return f != $ac_func;
24812 ;
24813 return 0;
24814}
24815_ACEOF
24816rm -f conftest.$ac_objext conftest$ac_exeext
24817if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24818 (eval $ac_link) 2>conftest.er1
24819 ac_status=$?
24820 grep -v '^ *+' conftest.er1 >conftest.err
24821 rm -f conftest.er1
24822 cat conftest.err >&5
24823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24824 (exit $ac_status); } &&
c9a66001 24825 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
24826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24827 (eval $ac_try) 2>&5
24828 ac_status=$?
24829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24830 (exit $ac_status); }; } &&
24831 { ac_try='test -s conftest$ac_exeext'
24832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24833 (eval $ac_try) 2>&5
24834 ac_status=$?
24835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24836 (exit $ac_status); }; }; then
24837 eval "$as_ac_var=yes"
24838else
24839 echo "$as_me: failed program was:" >&5
24840sed 's/^/| /' conftest.$ac_ext >&5
24841
24842eval "$as_ac_var=no"
24843fi
24844rm -f conftest.err conftest.$ac_objext \
24845 conftest$ac_exeext conftest.$ac_ext
24846fi
24847echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24848echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24849if test `eval echo '${'$as_ac_var'}'` = yes; then
24850 cat >>confdefs.h <<_ACEOF
24851#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24852_ACEOF
24853 have_ceil=1
24854fi
24855done
24856
24857 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
24858echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
24859 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
24860 echo "$as_me:$LINENO: result: yes" >&5
24861echo "${ECHO_T}yes" >&6
24862 else
24863 echo "$as_me:$LINENO: result: no" >&5
24864echo "${ECHO_T}no" >&6
24865 # not sure we should warn the user, crash, etc.
24866 fi
24867fi
24868
24869
24870
24871if test "$wxUSE_REGEX" != "no"; then
24872 cat >>confdefs.h <<\_ACEOF
24873#define wxUSE_REGEX 1
24874_ACEOF
24875
24876
24877 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
24878 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
24879echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
24880 wxUSE_REGEX=builtin
24881 fi
24882
24883 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
24884 if test "${ac_cv_header_regex_h+set}" = set; then
24885 echo "$as_me:$LINENO: checking for regex.h" >&5
24886echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
24887if test "${ac_cv_header_regex_h+set}" = set; then
24888 echo $ECHO_N "(cached) $ECHO_C" >&6
24889fi
24890echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
24891echo "${ECHO_T}$ac_cv_header_regex_h" >&6
24892else
24893 # Is the header compilable?
24894echo "$as_me:$LINENO: checking regex.h usability" >&5
24895echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
24896cat >conftest.$ac_ext <<_ACEOF
24897/* confdefs.h. */
24898_ACEOF
24899cat confdefs.h >>conftest.$ac_ext
24900cat >>conftest.$ac_ext <<_ACEOF
24901/* end confdefs.h. */
24902$ac_includes_default
24903#include <regex.h>
24904_ACEOF
24905rm -f conftest.$ac_objext
24906if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24907 (eval $ac_compile) 2>conftest.er1
24908 ac_status=$?
24909 grep -v '^ *+' conftest.er1 >conftest.err
24910 rm -f conftest.er1
24911 cat conftest.err >&5
24912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24913 (exit $ac_status); } &&
c9a66001 24914 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
24915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24916 (eval $ac_try) 2>&5
24917 ac_status=$?
24918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24919 (exit $ac_status); }; } &&
24920 { ac_try='test -s conftest.$ac_objext'
24921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24922 (eval $ac_try) 2>&5
24923 ac_status=$?
24924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24925 (exit $ac_status); }; }; then
24926 ac_header_compiler=yes
24927else
24928 echo "$as_me: failed program was:" >&5
24929sed 's/^/| /' conftest.$ac_ext >&5
24930
24931ac_header_compiler=no
24932fi
24933rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24934echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24935echo "${ECHO_T}$ac_header_compiler" >&6
24936
24937# Is the header present?
24938echo "$as_me:$LINENO: checking regex.h presence" >&5
24939echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
24940cat >conftest.$ac_ext <<_ACEOF
24941/* confdefs.h. */
24942_ACEOF
24943cat confdefs.h >>conftest.$ac_ext
24944cat >>conftest.$ac_ext <<_ACEOF
24945/* end confdefs.h. */
24946#include <regex.h>
24947_ACEOF
24948if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24949 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24950 ac_status=$?
24951 grep -v '^ *+' conftest.er1 >conftest.err
24952 rm -f conftest.er1
24953 cat conftest.err >&5
24954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24955 (exit $ac_status); } >/dev/null; then
24956 if test -s conftest.err; then
24957 ac_cpp_err=$ac_cxx_preproc_warn_flag
24958 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24959 else
24960 ac_cpp_err=
24961 fi
24962else
24963 ac_cpp_err=yes
24964fi
24965if test -z "$ac_cpp_err"; then
24966 ac_header_preproc=yes
24967else
24968 echo "$as_me: failed program was:" >&5
24969sed 's/^/| /' conftest.$ac_ext >&5
24970
24971 ac_header_preproc=no
24972fi
24973rm -f conftest.err conftest.$ac_ext
24974echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24975echo "${ECHO_T}$ac_header_preproc" >&6
24976
24977# So? What about this header?
24978case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24979 yes:no: )
24980 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
24981echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24982 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
24983echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
24984 ac_header_preproc=yes
24985 ;;
24986 no:yes:* )
24987 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
24988echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
24989 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
24990echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
24991 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
24992echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
24993 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
24994echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
24995 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
24996echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
24997 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
24998echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
24999 (
25000 cat <<\_ASBOX
25001## ----------------------------------------- ##
25002## Report this to wx-dev@lists.wxwidgets.org ##
25003## ----------------------------------------- ##
25004_ASBOX
25005 ) |
25006 sed "s/^/$as_me: WARNING: /" >&2
25007 ;;
25008esac
25009echo "$as_me:$LINENO: checking for regex.h" >&5
25010echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
25011if test "${ac_cv_header_regex_h+set}" = set; then
25012 echo $ECHO_N "(cached) $ECHO_C" >&6
25013else
25014 ac_cv_header_regex_h=$ac_header_preproc
25015fi
25016echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
25017echo "${ECHO_T}$ac_cv_header_regex_h" >&6
25018
25019fi
25020if test $ac_cv_header_regex_h = yes; then
25021
25022
25023for ac_func in regcomp re_search
25024do
25025as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25026echo "$as_me:$LINENO: checking for $ac_func" >&5
25027echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25028if eval "test \"\${$as_ac_var+set}\" = set"; then
25029 echo $ECHO_N "(cached) $ECHO_C" >&6
25030else
25031 cat >conftest.$ac_ext <<_ACEOF
25032/* confdefs.h. */
25033_ACEOF
25034cat confdefs.h >>conftest.$ac_ext
25035cat >>conftest.$ac_ext <<_ACEOF
25036/* end confdefs.h. */
25037/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25038 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25039#define $ac_func innocuous_$ac_func
25040
25041/* System header to define __stub macros and hopefully few prototypes,
25042 which can conflict with char $ac_func (); below.
25043 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25044 <limits.h> exists even on freestanding compilers. */
25045
25046#ifdef __STDC__
25047# include <limits.h>
25048#else
25049# include <assert.h>
25050#endif
25051
25052#undef $ac_func
25053
25054/* Override any gcc2 internal prototype to avoid an error. */
25055#ifdef __cplusplus
25056extern "C"
25057{
25058#endif
25059/* We use char because int might match the return type of a gcc2
25060 builtin and then its argument prototype would still apply. */
25061char $ac_func ();
25062/* The GNU C library defines this for functions which it implements
25063 to always fail with ENOSYS. Some functions are actually named
25064 something starting with __ and the normal name is an alias. */
25065#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25066choke me
25067#else
25068char (*f) () = $ac_func;
25069#endif
25070#ifdef __cplusplus
25071}
25072#endif
25073
25074int
25075main ()
25076{
25077return f != $ac_func;
25078 ;
25079 return 0;
25080}
25081_ACEOF
25082rm -f conftest.$ac_objext conftest$ac_exeext
25083if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25084 (eval $ac_link) 2>conftest.er1
25085 ac_status=$?
25086 grep -v '^ *+' conftest.er1 >conftest.err
25087 rm -f conftest.er1
25088 cat conftest.err >&5
25089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25090 (exit $ac_status); } &&
c9a66001 25091 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25093 (eval $ac_try) 2>&5
25094 ac_status=$?
25095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25096 (exit $ac_status); }; } &&
25097 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25099 (eval $ac_try) 2>&5
25100 ac_status=$?
25101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25102 (exit $ac_status); }; }; then
25103 eval "$as_ac_var=yes"
25104else
25105 echo "$as_me: failed program was:" >&5
25106sed 's/^/| /' conftest.$ac_ext >&5
25107
25108eval "$as_ac_var=no"
25109fi
ac1cb8d3
VS
25110rm -f conftest.err conftest.$ac_objext \
25111 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25112fi
25113echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25114echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25115if test `eval echo '${'$as_ac_var'}'` = yes; then
25116 cat >>confdefs.h <<_ACEOF
25117#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25118_ACEOF
25119
25120fi
25121done
25122
25123fi
25124
25125
25126
25127 if test "x$ac_cv_func_regcomp" != "xyes"; then
25128 if test "$wxUSE_REGEX" = "sys" ; then
25129 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
25130echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
25131 { (exit 1); exit 1; }; }
25132 else
25133 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
25134echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
25135 wxUSE_REGEX=builtin
25136 fi
25137 else
25138 wxUSE_REGEX=sys
25139 cat >>confdefs.h <<\_ACEOF
25140#define WX_NO_REGEX_ADVANCED 1
25141_ACEOF
25142
25143 fi
25144 fi
25145fi
25146
25147
25148ZLIB_LINK=
25149if test "$wxUSE_ZLIB" != "no" ; then
25150 cat >>confdefs.h <<\_ACEOF
25151#define wxUSE_ZLIB 1
25152_ACEOF
25153
25154
25155 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
25156 if test "$USE_DARWIN" = 1; then
25157 system_zlib_h_ok="yes"
25158 else
25159 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
25160echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
25161if test "${ac_cv_header_zlib_h+set}" = set; then
25162 echo $ECHO_N "(cached) $ECHO_C" >&6
25163else
25164 if test "$cross_compiling" = yes; then
25165 unset ac_cv_header_zlib_h
25166
25167else
25168 cat >conftest.$ac_ext <<_ACEOF
25169/* confdefs.h. */
25170_ACEOF
25171cat confdefs.h >>conftest.$ac_ext
25172cat >>conftest.$ac_ext <<_ACEOF
25173/* end confdefs.h. */
25174
25175 #include <zlib.h>
25176 #include <stdio.h>
25177
25178 int main()
25179 {
25180 FILE *f=fopen("conftestval", "w");
25181 if (!f) exit(1);
25182 fprintf(f, "%s",
25183 ZLIB_VERSION[0] == '1' &&
25184 (ZLIB_VERSION[2] > '1' ||
25185 (ZLIB_VERSION[2] == '1' &&
25186 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
25187 exit(0);
25188 }
25189
25190_ACEOF
25191rm -f conftest$ac_exeext
25192if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25193 (eval $ac_link) 2>&5
25194 ac_status=$?
25195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25196 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25198 (eval $ac_try) 2>&5
25199 ac_status=$?
25200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25201 (exit $ac_status); }; }; then
25202 ac_cv_header_zlib_h=`cat conftestval`
25203else
25204 echo "$as_me: program exited with status $ac_status" >&5
25205echo "$as_me: failed program was:" >&5
25206sed 's/^/| /' conftest.$ac_ext >&5
25207
25208( exit $ac_status )
25209ac_cv_header_zlib_h=no
25210fi
ac1cb8d3 25211rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25212fi
25213
25214fi
25215echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25216echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25217 if test "${ac_cv_header_zlib_h+set}" = set; then
25218 echo "$as_me:$LINENO: checking for zlib.h" >&5
25219echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
25220if test "${ac_cv_header_zlib_h+set}" = set; then
25221 echo $ECHO_N "(cached) $ECHO_C" >&6
25222fi
25223echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25224echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25225else
25226 # Is the header compilable?
25227echo "$as_me:$LINENO: checking zlib.h usability" >&5
25228echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
25229cat >conftest.$ac_ext <<_ACEOF
25230/* confdefs.h. */
25231_ACEOF
25232cat confdefs.h >>conftest.$ac_ext
25233cat >>conftest.$ac_ext <<_ACEOF
25234/* end confdefs.h. */
25235$ac_includes_default
25236#include <zlib.h>
25237_ACEOF
25238rm -f conftest.$ac_objext
25239if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25240 (eval $ac_compile) 2>conftest.er1
a848cd7e 25241 ac_status=$?
ac1cb8d3
VS
25242 grep -v '^ *+' conftest.er1 >conftest.err
25243 rm -f conftest.er1
25244 cat conftest.err >&5
a848cd7e
SC
25245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25246 (exit $ac_status); } &&
c9a66001 25247 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25249 (eval $ac_try) 2>&5
25250 ac_status=$?
25251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25252 (exit $ac_status); }; } &&
25253 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25255 (eval $ac_try) 2>&5
25256 ac_status=$?
25257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25258 (exit $ac_status); }; }; then
25259 ac_header_compiler=yes
25260else
25261 echo "$as_me: failed program was:" >&5
25262sed 's/^/| /' conftest.$ac_ext >&5
25263
25264ac_header_compiler=no
25265fi
ac1cb8d3 25266rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25267echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25268echo "${ECHO_T}$ac_header_compiler" >&6
25269
25270# Is the header present?
25271echo "$as_me:$LINENO: checking zlib.h presence" >&5
25272echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
25273cat >conftest.$ac_ext <<_ACEOF
25274/* confdefs.h. */
25275_ACEOF
25276cat confdefs.h >>conftest.$ac_ext
25277cat >>conftest.$ac_ext <<_ACEOF
25278/* end confdefs.h. */
25279#include <zlib.h>
25280_ACEOF
25281if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25282 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25283 ac_status=$?
25284 grep -v '^ *+' conftest.er1 >conftest.err
25285 rm -f conftest.er1
25286 cat conftest.err >&5
25287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25288 (exit $ac_status); } >/dev/null; then
25289 if test -s conftest.err; then
5d7b7554
VZ
25290 ac_cpp_err=$ac_cxx_preproc_warn_flag
25291 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
25292 else
25293 ac_cpp_err=
25294 fi
25295else
25296 ac_cpp_err=yes
25297fi
25298if test -z "$ac_cpp_err"; then
25299 ac_header_preproc=yes
25300else
25301 echo "$as_me: failed program was:" >&5
25302sed 's/^/| /' conftest.$ac_ext >&5
25303
25304 ac_header_preproc=no
25305fi
25306rm -f conftest.err conftest.$ac_ext
25307echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25308echo "${ECHO_T}$ac_header_preproc" >&6
25309
25310# So? What about this header?
5d7b7554 25311case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 25312 yes:no: )
a848cd7e
SC
25313 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
25314echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25315 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
25316echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
25317 ac_header_preproc=yes
a848cd7e 25318 ;;
ac1cb8d3 25319 no:yes:* )
a848cd7e
SC
25320 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
25321echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25322 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
25323echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
25324 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
25325echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
25326 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
25327echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25328 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
25329echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25330 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
25331echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25332 (
25333 cat <<\_ASBOX
ac1cb8d3
VS
25334## ----------------------------------------- ##
25335## Report this to wx-dev@lists.wxwidgets.org ##
25336## ----------------------------------------- ##
a848cd7e
SC
25337_ASBOX
25338 ) |
25339 sed "s/^/$as_me: WARNING: /" >&2
25340 ;;
25341esac
25342echo "$as_me:$LINENO: checking for zlib.h" >&5
25343echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
25344if test "${ac_cv_header_zlib_h+set}" = set; then
25345 echo $ECHO_N "(cached) $ECHO_C" >&6
25346else
25347 ac_cv_header_zlib_h=$ac_header_preproc
25348fi
25349echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25350echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25351
25352fi
25353
25354
25355
25356 system_zlib_h_ok=$ac_cv_header_zlib_h
25357 fi
25358
25359 if test "$system_zlib_h_ok" = "yes"; then
25360 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
25361echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
25362if test "${ac_cv_lib_z_deflate+set}" = set; then
25363 echo $ECHO_N "(cached) $ECHO_C" >&6
25364else
25365 ac_check_lib_save_LIBS=$LIBS
25366LIBS="-lz $LIBS"
25367cat >conftest.$ac_ext <<_ACEOF
25368/* confdefs.h. */
25369_ACEOF
25370cat confdefs.h >>conftest.$ac_ext
25371cat >>conftest.$ac_ext <<_ACEOF
25372/* end confdefs.h. */
25373
25374/* Override any gcc2 internal prototype to avoid an error. */
25375#ifdef __cplusplus
25376extern "C"
25377#endif
25378/* We use char because int might match the return type of a gcc2
25379 builtin and then its argument prototype would still apply. */
25380char deflate ();
25381int
25382main ()
25383{
25384deflate ();
25385 ;
25386 return 0;
25387}
25388_ACEOF
25389rm -f conftest.$ac_objext conftest$ac_exeext
25390if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25391 (eval $ac_link) 2>conftest.er1
a848cd7e 25392 ac_status=$?
ac1cb8d3
VS
25393 grep -v '^ *+' conftest.er1 >conftest.err
25394 rm -f conftest.er1
25395 cat conftest.err >&5
a848cd7e
SC
25396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25397 (exit $ac_status); } &&
c9a66001 25398 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25400 (eval $ac_try) 2>&5
25401 ac_status=$?
25402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25403 (exit $ac_status); }; } &&
25404 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25406 (eval $ac_try) 2>&5
25407 ac_status=$?
25408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25409 (exit $ac_status); }; }; then
25410 ac_cv_lib_z_deflate=yes
25411else
25412 echo "$as_me: failed program was:" >&5
25413sed 's/^/| /' conftest.$ac_ext >&5
25414
25415ac_cv_lib_z_deflate=no
25416fi
ac1cb8d3
VS
25417rm -f conftest.err conftest.$ac_objext \
25418 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25419LIBS=$ac_check_lib_save_LIBS
25420fi
25421echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
25422echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
25423if test $ac_cv_lib_z_deflate = yes; then
25424 ZLIB_LINK=" -lz"
25425fi
25426
25427 fi
25428
25429 if test "x$ZLIB_LINK" = "x" ; then
25430 if test "$wxUSE_ZLIB" = "sys" ; then
25431 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
25432echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
25433 { (exit 1); exit 1; }; }
25434 else
25435 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
25436echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
25437 wxUSE_ZLIB=builtin
25438 fi
25439 else
25440 wxUSE_ZLIB=sys
25441 fi
25442 fi
25443fi
25444
25445
25446PNG_LINK=
25447if test "$wxUSE_LIBPNG" != "no" ; then
25448 cat >>confdefs.h <<\_ACEOF
25449#define wxUSE_LIBPNG 1
25450_ACEOF
25451
25452
25453 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
25454 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
25455echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
25456 wxUSE_LIBPNG=sys
25457 fi
25458
25459 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
25460 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
25461echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
25462 wxUSE_LIBPNG=builtin
25463 fi
25464
25465 if test "$wxUSE_MGL" != 1 ; then
25466 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
25467 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
25468echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
25469if test "${ac_cv_header_png_h+set}" = set; then
25470 echo $ECHO_N "(cached) $ECHO_C" >&6
25471else
25472 if test "$cross_compiling" = yes; then
25473 unset ac_cv_header_png_h
25474
25475else
25476 cat >conftest.$ac_ext <<_ACEOF
25477/* confdefs.h. */
25478_ACEOF
25479cat confdefs.h >>conftest.$ac_ext
25480cat >>conftest.$ac_ext <<_ACEOF
25481/* end confdefs.h. */
25482
25483 #include <png.h>
25484 #include <stdio.h>
25485
25486 int main()
25487 {
25488 FILE *f=fopen("conftestval", "w");
25489 if (!f) exit(1);
25490 fprintf(f, "%s",
25491 PNG_LIBPNG_VER > 90 ? "yes" : "no");
25492 exit(0);
25493 }
25494
25495_ACEOF
25496rm -f conftest$ac_exeext
25497if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25498 (eval $ac_link) 2>&5
25499 ac_status=$?
25500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25501 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25503 (eval $ac_try) 2>&5
25504 ac_status=$?
25505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25506 (exit $ac_status); }; }; then
25507 ac_cv_header_png_h=`cat conftestval`
25508else
25509 echo "$as_me: program exited with status $ac_status" >&5
25510echo "$as_me: failed program was:" >&5
25511sed 's/^/| /' conftest.$ac_ext >&5
25512
25513( exit $ac_status )
25514ac_cv_header_png_h=no
25515fi
ac1cb8d3 25516rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25517fi
25518
25519fi
25520echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25521echo "${ECHO_T}$ac_cv_header_png_h" >&6
25522 if test "${ac_cv_header_png_h+set}" = set; then
25523 echo "$as_me:$LINENO: checking for png.h" >&5
25524echo $ECHO_N "checking for png.h... $ECHO_C" >&6
25525if test "${ac_cv_header_png_h+set}" = set; then
25526 echo $ECHO_N "(cached) $ECHO_C" >&6
25527fi
25528echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25529echo "${ECHO_T}$ac_cv_header_png_h" >&6
25530else
25531 # Is the header compilable?
25532echo "$as_me:$LINENO: checking png.h usability" >&5
25533echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
25534cat >conftest.$ac_ext <<_ACEOF
25535/* confdefs.h. */
25536_ACEOF
25537cat confdefs.h >>conftest.$ac_ext
25538cat >>conftest.$ac_ext <<_ACEOF
25539/* end confdefs.h. */
25540$ac_includes_default
25541#include <png.h>
25542_ACEOF
25543rm -f conftest.$ac_objext
25544if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25545 (eval $ac_compile) 2>conftest.er1
a848cd7e 25546 ac_status=$?
ac1cb8d3
VS
25547 grep -v '^ *+' conftest.er1 >conftest.err
25548 rm -f conftest.er1
25549 cat conftest.err >&5
a848cd7e
SC
25550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25551 (exit $ac_status); } &&
c9a66001 25552 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25554 (eval $ac_try) 2>&5
25555 ac_status=$?
25556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25557 (exit $ac_status); }; } &&
25558 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25560 (eval $ac_try) 2>&5
25561 ac_status=$?
25562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25563 (exit $ac_status); }; }; then
25564 ac_header_compiler=yes
25565else
25566 echo "$as_me: failed program was:" >&5
25567sed 's/^/| /' conftest.$ac_ext >&5
25568
25569ac_header_compiler=no
25570fi
ac1cb8d3 25571rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25572echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25573echo "${ECHO_T}$ac_header_compiler" >&6
25574
25575# Is the header present?
25576echo "$as_me:$LINENO: checking png.h presence" >&5
25577echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
25578cat >conftest.$ac_ext <<_ACEOF
25579/* confdefs.h. */
25580_ACEOF
25581cat confdefs.h >>conftest.$ac_ext
25582cat >>conftest.$ac_ext <<_ACEOF
25583/* end confdefs.h. */
25584#include <png.h>
25585_ACEOF
25586if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25587 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25588 ac_status=$?
25589 grep -v '^ *+' conftest.er1 >conftest.err
25590 rm -f conftest.er1
25591 cat conftest.err >&5
25592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25593 (exit $ac_status); } >/dev/null; then
25594 if test -s conftest.err; then
5d7b7554
VZ
25595 ac_cpp_err=$ac_cxx_preproc_warn_flag
25596 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
25597 else
25598 ac_cpp_err=
25599 fi
25600else
25601 ac_cpp_err=yes
25602fi
25603if test -z "$ac_cpp_err"; then
25604 ac_header_preproc=yes
25605else
25606 echo "$as_me: failed program was:" >&5
25607sed 's/^/| /' conftest.$ac_ext >&5
25608
25609 ac_header_preproc=no
25610fi
25611rm -f conftest.err conftest.$ac_ext
25612echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25613echo "${ECHO_T}$ac_header_preproc" >&6
25614
25615# So? What about this header?
5d7b7554 25616case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 25617 yes:no: )
a848cd7e
SC
25618 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
25619echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25620 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
25621echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
25622 ac_header_preproc=yes
a848cd7e 25623 ;;
ac1cb8d3 25624 no:yes:* )
a848cd7e
SC
25625 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
25626echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25627 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
25628echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
25629 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
25630echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
25631 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
25632echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25633 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
25634echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25635 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
25636echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25637 (
25638 cat <<\_ASBOX
ac1cb8d3
VS
25639## ----------------------------------------- ##
25640## Report this to wx-dev@lists.wxwidgets.org ##
25641## ----------------------------------------- ##
a848cd7e
SC
25642_ASBOX
25643 ) |
25644 sed "s/^/$as_me: WARNING: /" >&2
25645 ;;
25646esac
25647echo "$as_me:$LINENO: checking for png.h" >&5
25648echo $ECHO_N "checking for png.h... $ECHO_C" >&6
25649if test "${ac_cv_header_png_h+set}" = set; then
25650 echo $ECHO_N "(cached) $ECHO_C" >&6
25651else
25652 ac_cv_header_png_h=$ac_header_preproc
25653fi
25654echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25655echo "${ECHO_T}$ac_cv_header_png_h" >&6
25656
25657fi
25658
25659
25660
25661 if test "$ac_cv_header_png_h" = "yes"; then
25662 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
25663echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
25664if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
25665 echo $ECHO_N "(cached) $ECHO_C" >&6
25666else
25667 ac_check_lib_save_LIBS=$LIBS
25668LIBS="-lpng -lz -lm $LIBS"
25669cat >conftest.$ac_ext <<_ACEOF
25670/* confdefs.h. */
25671_ACEOF
25672cat confdefs.h >>conftest.$ac_ext
25673cat >>conftest.$ac_ext <<_ACEOF
25674/* end confdefs.h. */
25675
25676/* Override any gcc2 internal prototype to avoid an error. */
25677#ifdef __cplusplus
25678extern "C"
25679#endif
25680/* We use char because int might match the return type of a gcc2
25681 builtin and then its argument prototype would still apply. */
25682char png_check_sig ();
25683int
25684main ()
25685{
25686png_check_sig ();
25687 ;
25688 return 0;
25689}
25690_ACEOF
25691rm -f conftest.$ac_objext conftest$ac_exeext
25692if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25693 (eval $ac_link) 2>conftest.er1
a848cd7e 25694 ac_status=$?
ac1cb8d3
VS
25695 grep -v '^ *+' conftest.er1 >conftest.err
25696 rm -f conftest.er1
25697 cat conftest.err >&5
a848cd7e
SC
25698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25699 (exit $ac_status); } &&
c9a66001 25700 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25702 (eval $ac_try) 2>&5
25703 ac_status=$?
25704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25705 (exit $ac_status); }; } &&
25706 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25708 (eval $ac_try) 2>&5
25709 ac_status=$?
25710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25711 (exit $ac_status); }; }; then
25712 ac_cv_lib_png_png_check_sig=yes
25713else
25714 echo "$as_me: failed program was:" >&5
25715sed 's/^/| /' conftest.$ac_ext >&5
25716
25717ac_cv_lib_png_png_check_sig=no
25718fi
ac1cb8d3
VS
25719rm -f conftest.err conftest.$ac_objext \
25720 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25721LIBS=$ac_check_lib_save_LIBS
25722fi
25723echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
25724echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
25725if test $ac_cv_lib_png_png_check_sig = yes; then
25726 PNG_LINK=" -lpng -lz"
25727fi
25728
25729 fi
25730
25731 if test "x$PNG_LINK" = "x" ; then
25732 if test "$wxUSE_LIBPNG" = "sys" ; then
25733 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
25734echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
25735 { (exit 1); exit 1; }; }
25736 else
25737 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
25738echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
25739 wxUSE_LIBPNG=builtin
25740 fi
25741 else
25742 wxUSE_LIBPNG=sys
25743 fi
25744 fi
25745 fi
25746
25747 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
25748fi
25749
25750
25751JPEG_LINK=
25752if test "$wxUSE_LIBJPEG" != "no" ; then
25753 cat >>confdefs.h <<\_ACEOF
25754#define wxUSE_LIBJPEG 1
25755_ACEOF
25756
25757
25758 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
25759 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
25760echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
25761 wxUSE_LIBJPEG=sys
25762 fi
25763
25764 if test "$wxUSE_MGL" != 1 ; then
25765 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
25766 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
25767echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
25768 if test "${ac_cv_header_jpeglib_h+set}" = set; then
25769 echo $ECHO_N "(cached) $ECHO_C" >&6
25770else
25771 cat >conftest.$ac_ext <<_ACEOF
25772/* confdefs.h. */
25773_ACEOF
25774cat confdefs.h >>conftest.$ac_ext
25775cat >>conftest.$ac_ext <<_ACEOF
25776/* end confdefs.h. */
25777
25778 #undef HAVE_STDLIB_H
25779 #include <stdio.h>
25780 #include <jpeglib.h>
25781
25782int
25783main ()
25784{
25785
25786
25787 ;
25788 return 0;
25789}
25790_ACEOF
25791rm -f conftest.$ac_objext
25792if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25793 (eval $ac_compile) 2>conftest.er1
a848cd7e 25794 ac_status=$?
ac1cb8d3
VS
25795 grep -v '^ *+' conftest.er1 >conftest.err
25796 rm -f conftest.er1
25797 cat conftest.err >&5
a848cd7e
SC
25798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25799 (exit $ac_status); } &&
c9a66001 25800 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25802 (eval $ac_try) 2>&5
25803 ac_status=$?
25804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25805 (exit $ac_status); }; } &&
25806 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25808 (eval $ac_try) 2>&5
25809 ac_status=$?
25810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25811 (exit $ac_status); }; }; then
25812 ac_cv_header_jpeglib_h=yes
25813else
25814 echo "$as_me: failed program was:" >&5
25815sed 's/^/| /' conftest.$ac_ext >&5
25816
25817ac_cv_header_jpeglib_h=no
25818
25819fi
ac1cb8d3 25820rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25821
25822fi
25823
25824 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
25825echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
25826
25827 if test "$ac_cv_header_jpeglib_h" = "yes"; then
25828 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
25829echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
25830if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
25831 echo $ECHO_N "(cached) $ECHO_C" >&6
25832else
25833 ac_check_lib_save_LIBS=$LIBS
25834LIBS="-ljpeg $LIBS"
25835cat >conftest.$ac_ext <<_ACEOF
25836/* confdefs.h. */
25837_ACEOF
25838cat confdefs.h >>conftest.$ac_ext
25839cat >>conftest.$ac_ext <<_ACEOF
25840/* end confdefs.h. */
25841
25842/* Override any gcc2 internal prototype to avoid an error. */
25843#ifdef __cplusplus
25844extern "C"
25845#endif
25846/* We use char because int might match the return type of a gcc2
25847 builtin and then its argument prototype would still apply. */
25848char jpeg_read_header ();
25849int
25850main ()
25851{
25852jpeg_read_header ();
25853 ;
25854 return 0;
25855}
25856_ACEOF
25857rm -f conftest.$ac_objext conftest$ac_exeext
25858if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25859 (eval $ac_link) 2>conftest.er1
a848cd7e 25860 ac_status=$?
ac1cb8d3
VS
25861 grep -v '^ *+' conftest.er1 >conftest.err
25862 rm -f conftest.er1
25863 cat conftest.err >&5
a848cd7e
SC
25864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25865 (exit $ac_status); } &&
c9a66001 25866 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25868 (eval $ac_try) 2>&5
25869 ac_status=$?
25870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25871 (exit $ac_status); }; } &&
25872 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25874 (eval $ac_try) 2>&5
25875 ac_status=$?
25876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25877 (exit $ac_status); }; }; then
25878 ac_cv_lib_jpeg_jpeg_read_header=yes
25879else
25880 echo "$as_me: failed program was:" >&5
25881sed 's/^/| /' conftest.$ac_ext >&5
25882
25883ac_cv_lib_jpeg_jpeg_read_header=no
25884fi
ac1cb8d3
VS
25885rm -f conftest.err conftest.$ac_objext \
25886 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25887LIBS=$ac_check_lib_save_LIBS
25888fi
25889echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
25890echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
25891if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
25892 JPEG_LINK=" -ljpeg"
25893fi
25894
25895 fi
25896
25897 if test "x$JPEG_LINK" = "x" ; then
25898 if test "$wxUSE_LIBJPEG" = "sys" ; then
25899 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
25900echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
25901 { (exit 1); exit 1; }; }
25902 else
25903 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
25904echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
25905 wxUSE_LIBJPEG=builtin
25906 fi
25907 else
25908 wxUSE_LIBJPEG=sys
25909 fi
25910 fi
25911 fi
25912fi
25913
25914
25915TIFF_LINK=
25916TIFF_PREREQ_LINKS=-lm
25917if test "$wxUSE_LIBTIFF" != "no" ; then
25918 cat >>confdefs.h <<\_ACEOF
25919#define wxUSE_LIBTIFF 1
25920_ACEOF
25921
25922
25923 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
25924 if test "$wxUSE_LIBJPEG" = "sys"; then
25925 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
25926 fi
25927 if test "$wxUSE_ZLIB" = "sys"; then
25928 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
25929 fi
25930 if test "${ac_cv_header_tiffio_h+set}" = set; then
25931 echo "$as_me:$LINENO: checking for tiffio.h" >&5
25932echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
25933if test "${ac_cv_header_tiffio_h+set}" = set; then
25934 echo $ECHO_N "(cached) $ECHO_C" >&6
25935fi
25936echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
25937echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
25938else
25939 # Is the header compilable?
25940echo "$as_me:$LINENO: checking tiffio.h usability" >&5
25941echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
25942cat >conftest.$ac_ext <<_ACEOF
25943/* confdefs.h. */
25944_ACEOF
25945cat confdefs.h >>conftest.$ac_ext
25946cat >>conftest.$ac_ext <<_ACEOF
25947/* end confdefs.h. */
25948$ac_includes_default
25949#include <tiffio.h>
25950_ACEOF
25951rm -f conftest.$ac_objext
25952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25953 (eval $ac_compile) 2>conftest.er1
a848cd7e 25954 ac_status=$?
ac1cb8d3
VS
25955 grep -v '^ *+' conftest.er1 >conftest.err
25956 rm -f conftest.er1
25957 cat conftest.err >&5
a848cd7e
SC
25958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25959 (exit $ac_status); } &&
c9a66001 25960 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25962 (eval $ac_try) 2>&5
25963 ac_status=$?
25964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25965 (exit $ac_status); }; } &&
25966 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25968 (eval $ac_try) 2>&5
25969 ac_status=$?
25970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25971 (exit $ac_status); }; }; then
25972 ac_header_compiler=yes
25973else
25974 echo "$as_me: failed program was:" >&5
25975sed 's/^/| /' conftest.$ac_ext >&5
25976
25977ac_header_compiler=no
25978fi
ac1cb8d3 25979rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25980echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25981echo "${ECHO_T}$ac_header_compiler" >&6
25982
25983# Is the header present?
25984echo "$as_me:$LINENO: checking tiffio.h presence" >&5
25985echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
25986cat >conftest.$ac_ext <<_ACEOF
25987/* confdefs.h. */
25988_ACEOF
25989cat confdefs.h >>conftest.$ac_ext
25990cat >>conftest.$ac_ext <<_ACEOF
25991/* end confdefs.h. */
25992#include <tiffio.h>
25993_ACEOF
25994if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25995 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25996 ac_status=$?
25997 grep -v '^ *+' conftest.er1 >conftest.err
25998 rm -f conftest.er1
25999 cat conftest.err >&5
26000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26001 (exit $ac_status); } >/dev/null; then
26002 if test -s conftest.err; then
5d7b7554
VZ
26003 ac_cpp_err=$ac_cxx_preproc_warn_flag
26004 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26005 else
26006 ac_cpp_err=
26007 fi
26008else
26009 ac_cpp_err=yes
26010fi
26011if test -z "$ac_cpp_err"; then
26012 ac_header_preproc=yes
26013else
26014 echo "$as_me: failed program was:" >&5
26015sed 's/^/| /' conftest.$ac_ext >&5
26016
26017 ac_header_preproc=no
26018fi
26019rm -f conftest.err conftest.$ac_ext
26020echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26021echo "${ECHO_T}$ac_header_preproc" >&6
26022
26023# So? What about this header?
5d7b7554 26024case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26025 yes:no: )
a848cd7e
SC
26026 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
26027echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26028 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
26029echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
26030 ac_header_preproc=yes
a848cd7e 26031 ;;
ac1cb8d3 26032 no:yes:* )
a848cd7e
SC
26033 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
26034echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26035 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
26036echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
26037 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
26038echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
26039 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
26040echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26041 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
26042echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26043 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
26044echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26045 (
26046 cat <<\_ASBOX
ac1cb8d3
VS
26047## ----------------------------------------- ##
26048## Report this to wx-dev@lists.wxwidgets.org ##
26049## ----------------------------------------- ##
a848cd7e
SC
26050_ASBOX
26051 ) |
26052 sed "s/^/$as_me: WARNING: /" >&2
26053 ;;
26054esac
26055echo "$as_me:$LINENO: checking for tiffio.h" >&5
26056echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
26057if test "${ac_cv_header_tiffio_h+set}" = set; then
26058 echo $ECHO_N "(cached) $ECHO_C" >&6
26059else
26060 ac_cv_header_tiffio_h=$ac_header_preproc
26061fi
26062echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
26063echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
26064
26065fi
26066if test $ac_cv_header_tiffio_h = yes; then
26067
26068 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
26069echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
26070if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
26071 echo $ECHO_N "(cached) $ECHO_C" >&6
26072else
26073 ac_check_lib_save_LIBS=$LIBS
26074LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
26075cat >conftest.$ac_ext <<_ACEOF
26076/* confdefs.h. */
26077_ACEOF
26078cat confdefs.h >>conftest.$ac_ext
26079cat >>conftest.$ac_ext <<_ACEOF
26080/* end confdefs.h. */
26081
26082/* Override any gcc2 internal prototype to avoid an error. */
26083#ifdef __cplusplus
26084extern "C"
26085#endif
26086/* We use char because int might match the return type of a gcc2
26087 builtin and then its argument prototype would still apply. */
26088char TIFFError ();
26089int
26090main ()
26091{
26092TIFFError ();
26093 ;
26094 return 0;
26095}
26096_ACEOF
26097rm -f conftest.$ac_objext conftest$ac_exeext
26098if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26099 (eval $ac_link) 2>conftest.er1
a848cd7e 26100 ac_status=$?
ac1cb8d3
VS
26101 grep -v '^ *+' conftest.er1 >conftest.err
26102 rm -f conftest.er1
26103 cat conftest.err >&5
a848cd7e
SC
26104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26105 (exit $ac_status); } &&
c9a66001 26106 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26108 (eval $ac_try) 2>&5
26109 ac_status=$?
26110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26111 (exit $ac_status); }; } &&
26112 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26114 (eval $ac_try) 2>&5
26115 ac_status=$?
26116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26117 (exit $ac_status); }; }; then
26118 ac_cv_lib_tiff_TIFFError=yes
26119else
26120 echo "$as_me: failed program was:" >&5
26121sed 's/^/| /' conftest.$ac_ext >&5
26122
26123ac_cv_lib_tiff_TIFFError=no
26124fi
ac1cb8d3
VS
26125rm -f conftest.err conftest.$ac_objext \
26126 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26127LIBS=$ac_check_lib_save_LIBS
26128fi
26129echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
26130echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
26131if test $ac_cv_lib_tiff_TIFFError = yes; then
26132 TIFF_LINK=" -ltiff"
26133fi
26134
26135
26136
26137fi
26138
26139
26140
26141 if test "x$TIFF_LINK" = "x" ; then
26142 if test "$wxUSE_LIBTIFF" = "sys" ; then
26143 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
26144echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
26145 { (exit 1); exit 1; }; }
26146 else
26147 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
26148echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
26149 wxUSE_LIBTIFF=builtin
26150 fi
26151 else
26152 wxUSE_LIBTIFF=sys
26153 fi
26154 fi
26155fi
26156
26157
47a7e797
MW
26158if test "$wxUSE_WCHAR_T" != "yes"; then
26159 if test "$wxUSE_EXPAT" != "no"; then
26160 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
26161echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
26162 wxUSE_EXPAT=no
26163 fi
26164 if test "$wxUSE_XML" != "no"; then
26165 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
26166echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
26167 wxUSE_XML=no
26168 fi
26169fi
26170
a848cd7e
SC
26171if test "$wxUSE_EXPAT" != "no"; then
26172 wxUSE_XML=yes
26173 cat >>confdefs.h <<\_ACEOF
26174#define wxUSE_EXPAT 1
26175_ACEOF
26176
26177 cat >>confdefs.h <<\_ACEOF
26178#define wxUSE_XML 1
26179_ACEOF
26180
26181
26182 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
26183 if test "${ac_cv_header_expat_h+set}" = set; then
26184 echo "$as_me:$LINENO: checking for expat.h" >&5
26185echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
26186if test "${ac_cv_header_expat_h+set}" = set; then
26187 echo $ECHO_N "(cached) $ECHO_C" >&6
26188fi
26189echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
26190echo "${ECHO_T}$ac_cv_header_expat_h" >&6
26191else
26192 # Is the header compilable?
26193echo "$as_me:$LINENO: checking expat.h usability" >&5
26194echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
26195cat >conftest.$ac_ext <<_ACEOF
26196/* confdefs.h. */
26197_ACEOF
26198cat confdefs.h >>conftest.$ac_ext
26199cat >>conftest.$ac_ext <<_ACEOF
26200/* end confdefs.h. */
26201$ac_includes_default
26202#include <expat.h>
26203_ACEOF
26204rm -f conftest.$ac_objext
26205if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26206 (eval $ac_compile) 2>conftest.er1
a848cd7e 26207 ac_status=$?
ac1cb8d3
VS
26208 grep -v '^ *+' conftest.er1 >conftest.err
26209 rm -f conftest.er1
26210 cat conftest.err >&5
a848cd7e
SC
26211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26212 (exit $ac_status); } &&
c9a66001 26213 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26215 (eval $ac_try) 2>&5
26216 ac_status=$?
26217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26218 (exit $ac_status); }; } &&
26219 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26221 (eval $ac_try) 2>&5
26222 ac_status=$?
26223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26224 (exit $ac_status); }; }; then
26225 ac_header_compiler=yes
26226else
26227 echo "$as_me: failed program was:" >&5
26228sed 's/^/| /' conftest.$ac_ext >&5
26229
26230ac_header_compiler=no
26231fi
ac1cb8d3 26232rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26233echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26234echo "${ECHO_T}$ac_header_compiler" >&6
26235
26236# Is the header present?
26237echo "$as_me:$LINENO: checking expat.h presence" >&5
26238echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
26239cat >conftest.$ac_ext <<_ACEOF
26240/* confdefs.h. */
26241_ACEOF
26242cat confdefs.h >>conftest.$ac_ext
26243cat >>conftest.$ac_ext <<_ACEOF
26244/* end confdefs.h. */
26245#include <expat.h>
26246_ACEOF
26247if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26248 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26249 ac_status=$?
26250 grep -v '^ *+' conftest.er1 >conftest.err
26251 rm -f conftest.er1
26252 cat conftest.err >&5
26253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26254 (exit $ac_status); } >/dev/null; then
26255 if test -s conftest.err; then
5d7b7554
VZ
26256 ac_cpp_err=$ac_cxx_preproc_warn_flag
26257 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26258 else
26259 ac_cpp_err=
26260 fi
26261else
26262 ac_cpp_err=yes
26263fi
26264if test -z "$ac_cpp_err"; then
26265 ac_header_preproc=yes
26266else
26267 echo "$as_me: failed program was:" >&5
26268sed 's/^/| /' conftest.$ac_ext >&5
26269
26270 ac_header_preproc=no
26271fi
26272rm -f conftest.err conftest.$ac_ext
26273echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26274echo "${ECHO_T}$ac_header_preproc" >&6
26275
26276# So? What about this header?
5d7b7554 26277case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26278 yes:no: )
a848cd7e
SC
26279 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
26280echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26281 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
26282echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
26283 ac_header_preproc=yes
a848cd7e 26284 ;;
ac1cb8d3 26285 no:yes:* )
a848cd7e
SC
26286 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
26287echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26288 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
26289echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
26290 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
26291echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
26292 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
26293echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26294 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
26295echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26296 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
26297echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26298 (
26299 cat <<\_ASBOX
ac1cb8d3
VS
26300## ----------------------------------------- ##
26301## Report this to wx-dev@lists.wxwidgets.org ##
26302## ----------------------------------------- ##
a848cd7e
SC
26303_ASBOX
26304 ) |
26305 sed "s/^/$as_me: WARNING: /" >&2
26306 ;;
26307esac
26308echo "$as_me:$LINENO: checking for expat.h" >&5
26309echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
26310if test "${ac_cv_header_expat_h+set}" = set; then
26311 echo $ECHO_N "(cached) $ECHO_C" >&6
26312else
26313 ac_cv_header_expat_h=$ac_header_preproc
26314fi
26315echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
26316echo "${ECHO_T}$ac_cv_header_expat_h" >&6
26317
26318fi
26319if test $ac_cv_header_expat_h = yes; then
26320 found_expat_h=1
26321fi
26322
26323
26324 if test "x$found_expat_h" = "x1"; then
26325 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
26326echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
26327if test "${wx_cv_expat_is_not_broken+set}" = set; then
26328 echo $ECHO_N "(cached) $ECHO_C" >&6
26329else
26330
a848cd7e
SC
26331 cat >conftest.$ac_ext <<_ACEOF
26332/* confdefs.h. */
26333_ACEOF
26334cat confdefs.h >>conftest.$ac_ext
26335cat >>conftest.$ac_ext <<_ACEOF
26336/* end confdefs.h. */
26337#include <expat.h>
26338int
26339main ()
26340{
26341
26342 ;
26343 return 0;
26344}
26345_ACEOF
26346rm -f conftest.$ac_objext
26347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26348 (eval $ac_compile) 2>conftest.er1
a848cd7e 26349 ac_status=$?
ac1cb8d3
VS
26350 grep -v '^ *+' conftest.er1 >conftest.err
26351 rm -f conftest.er1
26352 cat conftest.err >&5
a848cd7e
SC
26353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26354 (exit $ac_status); } &&
c9a66001 26355 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26357 (eval $ac_try) 2>&5
26358 ac_status=$?
26359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26360 (exit $ac_status); }; } &&
26361 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26363 (eval $ac_try) 2>&5
26364 ac_status=$?
26365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26366 (exit $ac_status); }; }; then
26367 wx_cv_expat_is_not_broken=yes
26368else
26369 echo "$as_me: failed program was:" >&5
26370sed 's/^/| /' conftest.$ac_ext >&5
26371
26372wx_cv_expat_is_not_broken=no
26373
26374fi
ac1cb8d3 26375rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26376
26377
26378fi
26379echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
26380echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
26381 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
26382 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
26383echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
26384if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
26385 echo $ECHO_N "(cached) $ECHO_C" >&6
26386else
26387 ac_check_lib_save_LIBS=$LIBS
26388LIBS="-lexpat $LIBS"
26389cat >conftest.$ac_ext <<_ACEOF
26390/* confdefs.h. */
26391_ACEOF
26392cat confdefs.h >>conftest.$ac_ext
26393cat >>conftest.$ac_ext <<_ACEOF
26394/* end confdefs.h. */
26395
26396/* Override any gcc2 internal prototype to avoid an error. */
26397#ifdef __cplusplus
26398extern "C"
26399#endif
26400/* We use char because int might match the return type of a gcc2
26401 builtin and then its argument prototype would still apply. */
26402char XML_ParserCreate ();
26403int
26404main ()
26405{
26406XML_ParserCreate ();
26407 ;
26408 return 0;
26409}
26410_ACEOF
26411rm -f conftest.$ac_objext conftest$ac_exeext
26412if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26413 (eval $ac_link) 2>conftest.er1
a848cd7e 26414 ac_status=$?
ac1cb8d3
VS
26415 grep -v '^ *+' conftest.er1 >conftest.err
26416 rm -f conftest.er1
26417 cat conftest.err >&5
a848cd7e
SC
26418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26419 (exit $ac_status); } &&
c9a66001 26420 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26422 (eval $ac_try) 2>&5
26423 ac_status=$?
26424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26425 (exit $ac_status); }; } &&
26426 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26428 (eval $ac_try) 2>&5
26429 ac_status=$?
26430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26431 (exit $ac_status); }; }; then
26432 ac_cv_lib_expat_XML_ParserCreate=yes
26433else
26434 echo "$as_me: failed program was:" >&5
26435sed 's/^/| /' conftest.$ac_ext >&5
26436
26437ac_cv_lib_expat_XML_ParserCreate=no
26438fi
ac1cb8d3
VS
26439rm -f conftest.err conftest.$ac_objext \
26440 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26441LIBS=$ac_check_lib_save_LIBS
26442fi
26443echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
26444echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
26445if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
26446 EXPAT_LINK=" -lexpat"
26447fi
26448
26449 fi
26450 fi
26451 if test "x$EXPAT_LINK" = "x" ; then
26452 if test "$wxUSE_EXPAT" = "sys" ; then
26453 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
26454echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
26455 { (exit 1); exit 1; }; }
26456 else
26457 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
26458echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
26459 wxUSE_EXPAT=builtin
26460 fi
26461 else
26462 wxUSE_EXPAT=sys
26463 fi
26464 fi
26465 if test "$wxUSE_EXPAT" = "builtin" ; then
26466
26467
26468subdirs="$subdirs src/expat"
26469
26470 fi
26471fi
26472
26473
26474
26475if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
26476 if test "${ac_cv_header_mspack_h+set}" = set; then
26477 echo "$as_me:$LINENO: checking for mspack.h" >&5
26478echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
26479if test "${ac_cv_header_mspack_h+set}" = set; then
26480 echo $ECHO_N "(cached) $ECHO_C" >&6
26481fi
26482echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
26483echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
26484else
26485 # Is the header compilable?
26486echo "$as_me:$LINENO: checking mspack.h usability" >&5
26487echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
26488cat >conftest.$ac_ext <<_ACEOF
26489/* confdefs.h. */
26490_ACEOF
26491cat confdefs.h >>conftest.$ac_ext
26492cat >>conftest.$ac_ext <<_ACEOF
26493/* end confdefs.h. */
26494$ac_includes_default
26495#include <mspack.h>
26496_ACEOF
26497rm -f conftest.$ac_objext
26498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26499 (eval $ac_compile) 2>conftest.er1
a848cd7e 26500 ac_status=$?
ac1cb8d3
VS
26501 grep -v '^ *+' conftest.er1 >conftest.err
26502 rm -f conftest.er1
26503 cat conftest.err >&5
a848cd7e
SC
26504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26505 (exit $ac_status); } &&
c9a66001 26506 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26508 (eval $ac_try) 2>&5
26509 ac_status=$?
26510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26511 (exit $ac_status); }; } &&
26512 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26514 (eval $ac_try) 2>&5
26515 ac_status=$?
26516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26517 (exit $ac_status); }; }; then
26518 ac_header_compiler=yes
26519else
26520 echo "$as_me: failed program was:" >&5
26521sed 's/^/| /' conftest.$ac_ext >&5
26522
26523ac_header_compiler=no
26524fi
ac1cb8d3 26525rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26526echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26527echo "${ECHO_T}$ac_header_compiler" >&6
26528
26529# Is the header present?
26530echo "$as_me:$LINENO: checking mspack.h presence" >&5
26531echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
26532cat >conftest.$ac_ext <<_ACEOF
26533/* confdefs.h. */
26534_ACEOF
26535cat confdefs.h >>conftest.$ac_ext
26536cat >>conftest.$ac_ext <<_ACEOF
26537/* end confdefs.h. */
26538#include <mspack.h>
26539_ACEOF
26540if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26541 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26542 ac_status=$?
26543 grep -v '^ *+' conftest.er1 >conftest.err
26544 rm -f conftest.er1
26545 cat conftest.err >&5
26546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26547 (exit $ac_status); } >/dev/null; then
26548 if test -s conftest.err; then
5d7b7554
VZ
26549 ac_cpp_err=$ac_cxx_preproc_warn_flag
26550 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26551 else
26552 ac_cpp_err=
26553 fi
26554else
26555 ac_cpp_err=yes
26556fi
26557if test -z "$ac_cpp_err"; then
26558 ac_header_preproc=yes
26559else
26560 echo "$as_me: failed program was:" >&5
26561sed 's/^/| /' conftest.$ac_ext >&5
26562
26563 ac_header_preproc=no
26564fi
26565rm -f conftest.err conftest.$ac_ext
26566echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26567echo "${ECHO_T}$ac_header_preproc" >&6
26568
26569# So? What about this header?
5d7b7554 26570case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26571 yes:no: )
a848cd7e
SC
26572 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
26573echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26574 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
26575echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
26576 ac_header_preproc=yes
a848cd7e 26577 ;;
ac1cb8d3 26578 no:yes:* )
a848cd7e
SC
26579 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
26580echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26581 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
26582echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
26583 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
26584echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
26585 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
26586echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26587 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
26588echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26589 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
26590echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26591 (
26592 cat <<\_ASBOX
ac1cb8d3
VS
26593## ----------------------------------------- ##
26594## Report this to wx-dev@lists.wxwidgets.org ##
26595## ----------------------------------------- ##
a848cd7e
SC
26596_ASBOX
26597 ) |
26598 sed "s/^/$as_me: WARNING: /" >&2
26599 ;;
26600esac
26601echo "$as_me:$LINENO: checking for mspack.h" >&5
26602echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
26603if test "${ac_cv_header_mspack_h+set}" = set; then
26604 echo $ECHO_N "(cached) $ECHO_C" >&6
26605else
26606 ac_cv_header_mspack_h=$ac_header_preproc
26607fi
26608echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
26609echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
26610
26611fi
26612if test $ac_cv_header_mspack_h = yes; then
26613 found_mspack_h=1
26614fi
26615
26616
26617 if test "x$found_mspack_h" = "x1"; then
26618 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
26619echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
26620if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
26621 echo $ECHO_N "(cached) $ECHO_C" >&6
26622else
26623 ac_check_lib_save_LIBS=$LIBS
26624LIBS="-lmspack $LIBS"
26625cat >conftest.$ac_ext <<_ACEOF
26626/* confdefs.h. */
26627_ACEOF
26628cat confdefs.h >>conftest.$ac_ext
26629cat >>conftest.$ac_ext <<_ACEOF
26630/* end confdefs.h. */
26631
26632/* Override any gcc2 internal prototype to avoid an error. */
26633#ifdef __cplusplus
26634extern "C"
26635#endif
26636/* We use char because int might match the return type of a gcc2
26637 builtin and then its argument prototype would still apply. */
26638char mspack_create_chm_decompressor ();
26639int
26640main ()
26641{
26642mspack_create_chm_decompressor ();
26643 ;
26644 return 0;
26645}
26646_ACEOF
26647rm -f conftest.$ac_objext conftest$ac_exeext
26648if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26649 (eval $ac_link) 2>conftest.er1
a848cd7e 26650 ac_status=$?
ac1cb8d3
VS
26651 grep -v '^ *+' conftest.er1 >conftest.err
26652 rm -f conftest.er1
26653 cat conftest.err >&5
a848cd7e
SC
26654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26655 (exit $ac_status); } &&
c9a66001 26656 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26658 (eval $ac_try) 2>&5
26659 ac_status=$?
26660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26661 (exit $ac_status); }; } &&
26662 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26664 (eval $ac_try) 2>&5
26665 ac_status=$?
26666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26667 (exit $ac_status); }; }; then
26668 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
26669else
26670 echo "$as_me: failed program was:" >&5
26671sed 's/^/| /' conftest.$ac_ext >&5
26672
26673ac_cv_lib_mspack_mspack_create_chm_decompressor=no
26674fi
ac1cb8d3
VS
26675rm -f conftest.err conftest.$ac_objext \
26676 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26677LIBS=$ac_check_lib_save_LIBS
26678fi
26679echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
26680echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
26681if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
26682 MSPACK_LINK=" -lmspack"
26683fi
26684
26685 fi
26686 if test "x$MSPACK_LINK" = "x" ; then
26687 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
26688 fi
26689fi
26690
26691if test "$wxUSE_LIBMSPACK" != "no"; then
26692 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
26693#define wxUSE_LIBMSPACK 1
26694_ACEOF
26695
a848cd7e
SC
26696fi
26697
26698
26699
26700AFMINSTALL=
26701WIN32INSTALL=
26702
26703TOOLKIT=
26704TOOLKIT_INCLUDE=
26705WIDGET_SET=
26706
26707if test "$USE_WIN32" = 1 ; then
26708
26709for ac_header in w32api.h
26710do
26711as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26712if eval "test \"\${$as_ac_Header+set}\" = set"; then
26713 echo "$as_me:$LINENO: checking for $ac_header" >&5
26714echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26715if eval "test \"\${$as_ac_Header+set}\" = set"; then
26716 echo $ECHO_N "(cached) $ECHO_C" >&6
26717fi
26718echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26719echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26720else
26721 # Is the header compilable?
26722echo "$as_me:$LINENO: checking $ac_header usability" >&5
26723echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26724cat >conftest.$ac_ext <<_ACEOF
26725/* confdefs.h. */
26726_ACEOF
26727cat confdefs.h >>conftest.$ac_ext
26728cat >>conftest.$ac_ext <<_ACEOF
26729/* end confdefs.h. */
26730$ac_includes_default
26731#include <$ac_header>
26732_ACEOF
26733rm -f conftest.$ac_objext
26734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26735 (eval $ac_compile) 2>conftest.er1
a848cd7e 26736 ac_status=$?
ac1cb8d3
VS
26737 grep -v '^ *+' conftest.er1 >conftest.err
26738 rm -f conftest.er1
26739 cat conftest.err >&5
a848cd7e
SC
26740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26741 (exit $ac_status); } &&
c9a66001 26742 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26744 (eval $ac_try) 2>&5
26745 ac_status=$?
26746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26747 (exit $ac_status); }; } &&
26748 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26750 (eval $ac_try) 2>&5
26751 ac_status=$?
26752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26753 (exit $ac_status); }; }; then
26754 ac_header_compiler=yes
26755else
26756 echo "$as_me: failed program was:" >&5
26757sed 's/^/| /' conftest.$ac_ext >&5
26758
26759ac_header_compiler=no
26760fi
ac1cb8d3 26761rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26762echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26763echo "${ECHO_T}$ac_header_compiler" >&6
26764
26765# Is the header present?
26766echo "$as_me:$LINENO: checking $ac_header presence" >&5
26767echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26768cat >conftest.$ac_ext <<_ACEOF
26769/* confdefs.h. */
26770_ACEOF
26771cat confdefs.h >>conftest.$ac_ext
26772cat >>conftest.$ac_ext <<_ACEOF
26773/* end confdefs.h. */
26774#include <$ac_header>
26775_ACEOF
26776if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26777 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26778 ac_status=$?
26779 grep -v '^ *+' conftest.er1 >conftest.err
26780 rm -f conftest.er1
26781 cat conftest.err >&5
26782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26783 (exit $ac_status); } >/dev/null; then
26784 if test -s conftest.err; then
5d7b7554
VZ
26785 ac_cpp_err=$ac_cxx_preproc_warn_flag
26786 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26787 else
26788 ac_cpp_err=
26789 fi
26790else
26791 ac_cpp_err=yes
26792fi
26793if test -z "$ac_cpp_err"; then
26794 ac_header_preproc=yes
26795else
26796 echo "$as_me: failed program was:" >&5
26797sed 's/^/| /' conftest.$ac_ext >&5
26798
26799 ac_header_preproc=no
26800fi
26801rm -f conftest.err conftest.$ac_ext
26802echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26803echo "${ECHO_T}$ac_header_preproc" >&6
26804
26805# So? What about this header?
5d7b7554 26806case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26807 yes:no: )
a848cd7e
SC
26808 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26809echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26810 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26811echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26812 ac_header_preproc=yes
a848cd7e 26813 ;;
ac1cb8d3 26814 no:yes:* )
a848cd7e
SC
26815 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26816echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26817 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26818echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26819 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26820echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26821 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26822echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26823 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26824echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26825 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26826echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26827 (
26828 cat <<\_ASBOX
ac1cb8d3
VS
26829## ----------------------------------------- ##
26830## Report this to wx-dev@lists.wxwidgets.org ##
26831## ----------------------------------------- ##
a848cd7e
SC
26832_ASBOX
26833 ) |
26834 sed "s/^/$as_me: WARNING: /" >&2
26835 ;;
26836esac
26837echo "$as_me:$LINENO: checking for $ac_header" >&5
26838echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26839if eval "test \"\${$as_ac_Header+set}\" = set"; then
26840 echo $ECHO_N "(cached) $ECHO_C" >&6
26841else
ac1cb8d3 26842 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
26843fi
26844echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26845echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26846
26847fi
26848if test `eval echo '${'$as_ac_Header'}'` = yes; then
26849 cat >>confdefs.h <<_ACEOF
26850#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26851_ACEOF
26852
26853fi
26854
26855done
26856
26857 if test "${ac_cv_header_windows_h+set}" = set; then
26858 echo "$as_me:$LINENO: checking for windows.h" >&5
26859echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
26860if test "${ac_cv_header_windows_h+set}" = set; then
26861 echo $ECHO_N "(cached) $ECHO_C" >&6
26862fi
26863echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
26864echo "${ECHO_T}$ac_cv_header_windows_h" >&6
26865else
26866 # Is the header compilable?
26867echo "$as_me:$LINENO: checking windows.h usability" >&5
26868echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
26869cat >conftest.$ac_ext <<_ACEOF
26870/* confdefs.h. */
26871_ACEOF
26872cat confdefs.h >>conftest.$ac_ext
26873cat >>conftest.$ac_ext <<_ACEOF
26874/* end confdefs.h. */
26875$ac_includes_default
26876#include <windows.h>
26877_ACEOF
26878rm -f conftest.$ac_objext
26879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26880 (eval $ac_compile) 2>conftest.er1
a848cd7e 26881 ac_status=$?
ac1cb8d3
VS
26882 grep -v '^ *+' conftest.er1 >conftest.err
26883 rm -f conftest.er1
26884 cat conftest.err >&5
a848cd7e
SC
26885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26886 (exit $ac_status); } &&
c9a66001 26887 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26889 (eval $ac_try) 2>&5
26890 ac_status=$?
26891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26892 (exit $ac_status); }; } &&
26893 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26895 (eval $ac_try) 2>&5
26896 ac_status=$?
26897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26898 (exit $ac_status); }; }; then
26899 ac_header_compiler=yes
26900else
26901 echo "$as_me: failed program was:" >&5
26902sed 's/^/| /' conftest.$ac_ext >&5
26903
26904ac_header_compiler=no
26905fi
ac1cb8d3 26906rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26907echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26908echo "${ECHO_T}$ac_header_compiler" >&6
26909
26910# Is the header present?
26911echo "$as_me:$LINENO: checking windows.h presence" >&5
26912echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
26913cat >conftest.$ac_ext <<_ACEOF
26914/* confdefs.h. */
26915_ACEOF
26916cat confdefs.h >>conftest.$ac_ext
26917cat >>conftest.$ac_ext <<_ACEOF
26918/* end confdefs.h. */
26919#include <windows.h>
26920_ACEOF
26921if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26922 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26923 ac_status=$?
26924 grep -v '^ *+' conftest.er1 >conftest.err
26925 rm -f conftest.er1
26926 cat conftest.err >&5
26927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26928 (exit $ac_status); } >/dev/null; then
26929 if test -s conftest.err; then
5d7b7554
VZ
26930 ac_cpp_err=$ac_cxx_preproc_warn_flag
26931 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26932 else
26933 ac_cpp_err=
26934 fi
26935else
26936 ac_cpp_err=yes
26937fi
26938if test -z "$ac_cpp_err"; then
26939 ac_header_preproc=yes
26940else
26941 echo "$as_me: failed program was:" >&5
26942sed 's/^/| /' conftest.$ac_ext >&5
26943
26944 ac_header_preproc=no
26945fi
26946rm -f conftest.err conftest.$ac_ext
26947echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26948echo "${ECHO_T}$ac_header_preproc" >&6
26949
26950# So? What about this header?
5d7b7554 26951case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26952 yes:no: )
a848cd7e
SC
26953 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
26954echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26955 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
26956echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
26957 ac_header_preproc=yes
a848cd7e 26958 ;;
ac1cb8d3 26959 no:yes:* )
a848cd7e
SC
26960 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
26961echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26962 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
26963echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
26964 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
26965echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
26966 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
26967echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26968 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
26969echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26970 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
26971echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26972 (
26973 cat <<\_ASBOX
ac1cb8d3
VS
26974## ----------------------------------------- ##
26975## Report this to wx-dev@lists.wxwidgets.org ##
26976## ----------------------------------------- ##
a848cd7e
SC
26977_ASBOX
26978 ) |
26979 sed "s/^/$as_me: WARNING: /" >&2
26980 ;;
26981esac
26982echo "$as_me:$LINENO: checking for windows.h" >&5
26983echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
26984if test "${ac_cv_header_windows_h+set}" = set; then
26985 echo $ECHO_N "(cached) $ECHO_C" >&6
26986else
26987 ac_cv_header_windows_h=$ac_header_preproc
26988fi
26989echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
26990echo "${ECHO_T}$ac_cv_header_windows_h" >&6
26991
26992fi
26993if test $ac_cv_header_windows_h = yes; then
26994 :
26995else
26996
26997 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
26998echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
26999 { (exit 1); exit 1; }; }
27000
27001fi
27002
27003
27004
27005 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
27006
27007 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
27008 LIBS="$LIBS -loleacc"
27009 fi
27010
27011 case "${host}" in
27012 *-*-cygwin* )
27013 LIBS="$LIBS -lkernel32 -luser32"
a848cd7e
SC
27014 esac
27015
27016 if test "$wxUSE_ODBC" = "sys" ; then
27017 wxUSE_ODBC = "yes"
27018 fi
27019 if test "$wxUSE_ODBC" = "yes" ; then
27020 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
27021 cat >>confdefs.h <<\_ACEOF
27022#define wxUSE_ODBC 1
27023_ACEOF
27024
27025 fi
27026
370d2fd7 27027 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
a848cd7e
SC
27028 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
27029
004ee6da 27030 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
370d2fd7 27031
a848cd7e
SC
27032 WIN32INSTALL=win32install
27033fi
27034
27035if test "$wxUSE_GUI" = "yes"; then
27036 USE_GUI=1
27037
27038 GUI_TK_LIBRARY=
27039
27040 WXGTK12=
27041 WXGTK127=
27042 WXGTK20=
27043 WXGPE=
27044
207bc66c
RN
27045 if test "$wxUSE_COCOA" = 1 ; then
27046 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
27047 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
27048echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
27049 wxUSE_PRINTING_ARCHITECTURE=no
27050 fi
27051 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
27052 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
27053echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
27054 wxUSE_DRAG_AND_DROP=no
27055 fi
27056 if test "$wxUSE_DRAGIMAGE" = "yes"; then
27057 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
27058echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
27059 wxUSE_DRAGIMAGE=no
27060 fi
27061 fi
27062
a848cd7e
SC
27063 if test "$wxUSE_MSW" = 1 ; then
27064 TOOLKIT=MSW
27065 GUIDIST=MSW_DIST
27066
ceec2216 27067 case "${host}" in
a848cd7e
SC
27068 *-*-mingw32* )
27069 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
27070 esac
27071 fi
27072
27073 if test "$wxUSE_GTK" = 1; then
5d7b7554
VZ
27074 ac_ext=c
27075ac_cpp='$CPP $CPPFLAGS'
27076ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27077ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27078ac_compiler_gnu=$ac_cv_c_compiler_gnu
27079
27080
a848cd7e
SC
27081 echo "$as_me:$LINENO: checking for GTK+ version" >&5
27082echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
27083
27084 gtk_version_cached=1
27085 if test "${wx_cv_lib_gtk+set}" = set; then
27086 echo $ECHO_N "(cached) $ECHO_C" >&6
27087else
27088
27089 gtk_version_cached=0
27090 echo "$as_me:$LINENO: result: " >&5
27091echo "${ECHO_T}" >&6
27092
27093 GTK_MODULES=
27094 if test "$wxUSE_THREADS" = "yes"; then
27095 GTK_MODULES=gthread
27096 fi
27097
f597b41c 27098 wx_cv_lib_gtk=
5001df0d
MW
27099 if test "x$wxGTK_VERSION" != "x1"
27100 then
27101 case "${host}" in
27102 *-*-solaris2* )
27103 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
5ff751d6 27104 enable_gtktest=no
5001df0d
MW
27105 fi
27106 esac
27107
a848cd7e
SC
27108 # Check whether --enable-gtktest or --disable-gtktest was given.
27109if test "${enable_gtktest+set}" = set; then
27110 enableval="$enable_gtktest"
27111
27112else
27113 enable_gtktest=yes
27114fi;
27115
27116 pkg_config_args=gtk+-2.0
27117 for module in . $GTK_MODULES
27118 do
27119 case "$module" in
27120 gthread)
27121 pkg_config_args="$pkg_config_args gthread-2.0"
27122 ;;
27123 esac
27124 done
27125
27126 no_gtk=""
27127
27128 # Extract the first word of "pkg-config", so it can be a program name with args.
27129set dummy pkg-config; ac_word=$2
27130echo "$as_me:$LINENO: checking for $ac_word" >&5
27131echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27132if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27133 echo $ECHO_N "(cached) $ECHO_C" >&6
27134else
27135 case $PKG_CONFIG in
27136 [\\/]* | ?:[\\/]*)
27137 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27138 ;;
27139 *)
27140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27141for as_dir in $PATH
27142do
27143 IFS=$as_save_IFS
27144 test -z "$as_dir" && as_dir=.
27145 for ac_exec_ext in '' $ac_executable_extensions; do
27146 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27147 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27149 break 2
27150 fi
27151done
27152done
27153
27154 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27155 ;;
27156esac
27157fi
27158PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27159
27160if test -n "$PKG_CONFIG"; then
27161 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27162echo "${ECHO_T}$PKG_CONFIG" >&6
27163else
27164 echo "$as_me:$LINENO: result: no" >&5
27165echo "${ECHO_T}no" >&6
27166fi
27167
27168
27169 if test x$PKG_CONFIG != xno ; then
27170 if pkg-config --atleast-pkgconfig-version 0.7 ; then
27171 :
27172 else
c2218763 27173 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
27174 no_gtk=yes
27175 PKG_CONFIG=no
27176 fi
27177 else
27178 no_gtk=yes
27179 fi
27180
27181 min_gtk_version=2.0.0
27182 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
27183echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
27184
27185 if test x$PKG_CONFIG != xno ; then
27186 ## don't try to run the test against uninstalled libtool libs
27187 if $PKG_CONFIG --uninstalled $pkg_config_args; then
27188 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
27189 enable_gtktest=no
27190 fi
27191
27192 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
27193 :
27194 else
27195 no_gtk=yes
27196 fi
27197 fi
27198
27199 if test x"$no_gtk" = x ; then
27200 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
27201 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
27202 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27203 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
27204 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27205 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
27206 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27207 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
27208 if test "x$enable_gtktest" = "xyes" ; then
27209 ac_save_CFLAGS="$CFLAGS"
27210 ac_save_LIBS="$LIBS"
27211 CFLAGS="$CFLAGS $GTK_CFLAGS"
27212 LIBS="$GTK_LIBS $LIBS"
27213 rm -f conf.gtktest
27214 if test "$cross_compiling" = yes; then
27215 echo $ac_n "cross compiling; assumed OK... $ac_c"
27216else
27217 cat >conftest.$ac_ext <<_ACEOF
27218/* confdefs.h. */
27219_ACEOF
27220cat confdefs.h >>conftest.$ac_ext
27221cat >>conftest.$ac_ext <<_ACEOF
27222/* end confdefs.h. */
27223
27224#include <gtk/gtk.h>
27225#include <stdio.h>
27226#include <stdlib.h>
27227
27228int
27229main ()
27230{
27231 int major, minor, micro;
27232 char *tmp_version;
27233
27234 system ("touch conf.gtktest");
27235
27236 /* HP/UX 9 (%@#!) writes to sscanf strings */
27237 tmp_version = g_strdup("$min_gtk_version");
27238 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
27239 printf("%s, bad version string\n", "$min_gtk_version");
27240 exit(1);
27241 }
27242
27243 if ((gtk_major_version != $gtk_config_major_version) ||
27244 (gtk_minor_version != $gtk_config_minor_version) ||
27245 (gtk_micro_version != $gtk_config_micro_version))
27246 {
27247 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
27248 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
27249 gtk_major_version, gtk_minor_version, gtk_micro_version);
27250 printf ("*** was found! If pkg-config was correct, then it is best\n");
27251 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
27252 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
27253 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
27254 printf("*** required on your system.\n");
27255 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
27256 printf("*** to point to the correct configuration files\n");
27257 }
27258 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
27259 (gtk_minor_version != GTK_MINOR_VERSION) ||
27260 (gtk_micro_version != GTK_MICRO_VERSION))
27261 {
27262 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
27263 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
27264 printf("*** library (version %d.%d.%d)\n",
27265 gtk_major_version, gtk_minor_version, gtk_micro_version);
27266 }
27267 else
27268 {
27269 if ((gtk_major_version > major) ||
27270 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
27271 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
27272 {
27273 return 0;
27274 }
27275 else
27276 {
27277 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
27278 gtk_major_version, gtk_minor_version, gtk_micro_version);
27279 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
27280 major, minor, micro);
27281 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
27282 printf("***\n");
27283 printf("*** If you have already installed a sufficiently new version, this error\n");
27284 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
27285 printf("*** being found. The easiest way to fix this is to remove the old version\n");
27286 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
27287 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
27288 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27289 printf("*** so that the correct libraries are found at run-time))\n");
27290 }
27291 }
27292 return 1;
27293}
27294
27295_ACEOF
27296rm -f conftest$ac_exeext
27297if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27298 (eval $ac_link) 2>&5
27299 ac_status=$?
27300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27301 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27303 (eval $ac_try) 2>&5
27304 ac_status=$?
27305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27306 (exit $ac_status); }; }; then
27307 :
27308else
27309 echo "$as_me: program exited with status $ac_status" >&5
27310echo "$as_me: failed program was:" >&5
27311sed 's/^/| /' conftest.$ac_ext >&5
27312
27313( exit $ac_status )
27314no_gtk=yes
27315fi
ac1cb8d3 27316rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27317fi
27318 CFLAGS="$ac_save_CFLAGS"
27319 LIBS="$ac_save_LIBS"
27320 fi
27321 fi
27322 if test "x$no_gtk" = x ; then
27323 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
27324echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
27325 wx_cv_lib_gtk=2.0
27326 else
27327 echo "$as_me:$LINENO: result: no" >&5
27328echo "${ECHO_T}no" >&6
27329 if test "$PKG_CONFIG" = "no" ; then
27330 echo "*** A new enough version of pkg-config was not found."
27331 echo "*** See http://pkgconfig.sourceforge.net"
27332 else
27333 if test -f conf.gtktest ; then
27334 :
27335 else
27336 echo "*** Could not run GTK+ test program, checking why..."
27337 ac_save_CFLAGS="$CFLAGS"
27338 ac_save_LIBS="$LIBS"
27339 CFLAGS="$CFLAGS $GTK_CFLAGS"
27340 LIBS="$LIBS $GTK_LIBS"
27341 cat >conftest.$ac_ext <<_ACEOF
27342/* confdefs.h. */
27343_ACEOF
27344cat confdefs.h >>conftest.$ac_ext
27345cat >>conftest.$ac_ext <<_ACEOF
27346/* end confdefs.h. */
27347
27348#include <gtk/gtk.h>
27349#include <stdio.h>
27350
27351int
27352main ()
27353{
27354 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
27355 ;
27356 return 0;
27357}
27358_ACEOF
27359rm -f conftest.$ac_objext conftest$ac_exeext
27360if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27361 (eval $ac_link) 2>conftest.er1
a848cd7e 27362 ac_status=$?
ac1cb8d3
VS
27363 grep -v '^ *+' conftest.er1 >conftest.err
27364 rm -f conftest.er1
27365 cat conftest.err >&5
a848cd7e
SC
27366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27367 (exit $ac_status); } &&
c9a66001 27368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27370 (eval $ac_try) 2>&5
27371 ac_status=$?
27372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27373 (exit $ac_status); }; } &&
27374 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27376 (eval $ac_try) 2>&5
27377 ac_status=$?
27378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27379 (exit $ac_status); }; }; then
27380 echo "*** The test program compiled, but did not run. This usually means"
27381 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
27382 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
27383 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
27384 echo "*** to the installed location Also, make sure you have run ldconfig if that"
27385 echo "*** is required on your system"
27386 echo "***"
27387 echo "*** If you have an old version installed, it is best to remove it, although"
27388 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
27389else
27390 echo "$as_me: failed program was:" >&5
27391sed 's/^/| /' conftest.$ac_ext >&5
27392
27393 echo "*** The test program failed to compile or link. See the file config.log for the"
27394 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
27395fi
ac1cb8d3
VS
27396rm -f conftest.err conftest.$ac_objext \
27397 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27398 CFLAGS="$ac_save_CFLAGS"
27399 LIBS="$ac_save_LIBS"
27400 fi
27401 fi
27402 GTK_CFLAGS=""
27403 GTK_LIBS=""
27404 :
27405 fi
27406
27407
27408 rm -f conf.gtktest
27409
5001df0d
MW
27410
27411 case "${host}" in
27412 *-*-solaris2* )
27413 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
27414 GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'`
27415 GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'`
27416 fi
27417 if test "$wxUSE_SHARED" != "yes"; then
27418 GTK_LIBS="$GTK_LIBS -lX11"
27419 fi
27420 esac
f597b41c
MW
27421 fi
27422
f34ca037
MW
27423 if test -z "$wx_cv_lib_gtk"; then
27424 if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
a848cd7e
SC
27425
27426# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
27427if test "${with_gtk_prefix+set}" = set; then
27428 withval="$with_gtk_prefix"
27429 gtk_config_prefix="$withval"
27430else
27431 gtk_config_prefix=""
27432fi;
27433
27434# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
27435if test "${with_gtk_exec_prefix+set}" = set; then
27436 withval="$with_gtk_exec_prefix"
27437 gtk_config_exec_prefix="$withval"
27438else
27439 gtk_config_exec_prefix=""
27440fi;
27441# Check whether --enable-gtktest or --disable-gtktest was given.
27442if test "${enable_gtktest+set}" = set; then
27443 enableval="$enable_gtktest"
27444
27445else
27446 enable_gtktest=yes
27447fi;
27448
27449 for module in . $GTK_MODULES
27450 do
27451 case "$module" in
27452 gthread)
27453 gtk_config_args="$gtk_config_args gthread"
27454 ;;
27455 esac
27456 done
27457
27458 if test x$gtk_config_exec_prefix != x ; then
27459 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
27460 if test x${GTK_CONFIG+set} != xset ; then
27461 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
27462 fi
27463 fi
27464 if test x$gtk_config_prefix != x ; then
27465 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
27466 if test x${GTK_CONFIG+set} != xset ; then
27467 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
27468 fi
27469 fi
27470
27471 # Extract the first word of "gtk-config", so it can be a program name with args.
27472set dummy gtk-config; ac_word=$2
27473echo "$as_me:$LINENO: checking for $ac_word" >&5
27474echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27475if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
27476 echo $ECHO_N "(cached) $ECHO_C" >&6
27477else
27478 case $GTK_CONFIG in
27479 [\\/]* | ?:[\\/]*)
27480 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
27481 ;;
27482 *)
27483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27484for as_dir in $PATH
27485do
27486 IFS=$as_save_IFS
27487 test -z "$as_dir" && as_dir=.
27488 for ac_exec_ext in '' $ac_executable_extensions; do
27489 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27490 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27492 break 2
27493 fi
27494done
27495done
27496
27497 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
27498 ;;
27499esac
27500fi
27501GTK_CONFIG=$ac_cv_path_GTK_CONFIG
27502
27503if test -n "$GTK_CONFIG"; then
27504 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
27505echo "${ECHO_T}$GTK_CONFIG" >&6
27506else
27507 echo "$as_me:$LINENO: result: no" >&5
27508echo "${ECHO_T}no" >&6
27509fi
27510
27511 min_gtk_version=1.2.7
27512 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
27513echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
27514 no_gtk=""
27515 if test "$GTK_CONFIG" = "no" ; then
27516 no_gtk=yes
27517 else
27518 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
27519 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
27520 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
27521 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
27522 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
27523 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
27524 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
27525 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
27526 if test "x$enable_gtktest" = "xyes" ; then
27527 ac_save_CFLAGS="$CFLAGS"
27528 ac_save_LIBS="$LIBS"
27529 CFLAGS="$CFLAGS $GTK_CFLAGS"
27530 LIBS="$GTK_LIBS $LIBS"
27531 rm -f conf.gtktest
27532 if test "$cross_compiling" = yes; then
27533 echo $ac_n "cross compiling; assumed OK... $ac_c"
27534else
27535 cat >conftest.$ac_ext <<_ACEOF
27536/* confdefs.h. */
27537_ACEOF
27538cat confdefs.h >>conftest.$ac_ext
27539cat >>conftest.$ac_ext <<_ACEOF
27540/* end confdefs.h. */
27541
27542#include <gtk/gtk.h>
27543#include <stdio.h>
27544#include <stdlib.h>
27545
27546int
27547main ()
27548{
27549 int major, minor, micro;
27550 char *tmp_version;
27551
27552 system ("touch conf.gtktest");
27553
27554 /* HP/UX 9 (%@#!) writes to sscanf strings */
27555 tmp_version = g_strdup("$min_gtk_version");
27556 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
27557 printf("%s, bad version string\n", "$min_gtk_version");
27558 exit(1);
27559 }
27560
27561 if ((gtk_major_version != $gtk_config_major_version) ||
27562 (gtk_minor_version != $gtk_config_minor_version) ||
27563 (gtk_micro_version != $gtk_config_micro_version))
27564 {
27565 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
27566 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
27567 gtk_major_version, gtk_minor_version, gtk_micro_version);
27568 printf ("*** was found! If gtk-config was correct, then it is best\n");
27569 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
27570 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
27571 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
27572 printf("*** required on your system.\n");
27573 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
27574 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
27575 printf("*** before re-running configure\n");
27576 }
27577#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
27578 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
27579 (gtk_minor_version != GTK_MINOR_VERSION) ||
27580 (gtk_micro_version != GTK_MICRO_VERSION))
27581 {
27582 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
27583 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
27584 printf("*** library (version %d.%d.%d)\n",
27585 gtk_major_version, gtk_minor_version, gtk_micro_version);
27586 }
27587#endif /* defined (GTK_MAJOR_VERSION) ... */
27588 else
27589 {
27590 if ((gtk_major_version > major) ||
27591 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
27592 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
27593 {
27594 return 0;
27595 }
27596 else
27597 {
27598 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
27599 gtk_major_version, gtk_minor_version, gtk_micro_version);
27600 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
27601 major, minor, micro);
27602 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
27603 printf("***\n");
27604 printf("*** If you have already installed a sufficiently new version, this error\n");
27605 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
27606 printf("*** being found. The easiest way to fix this is to remove the old version\n");
27607 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
27608 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
27609 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27610 printf("*** so that the correct libraries are found at run-time))\n");
27611 }
27612 }
27613 return 1;
27614}
27615
27616_ACEOF
27617rm -f conftest$ac_exeext
27618if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27619 (eval $ac_link) 2>&5
27620 ac_status=$?
27621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27622 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27624 (eval $ac_try) 2>&5
27625 ac_status=$?
27626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27627 (exit $ac_status); }; }; then
27628 :
27629else
27630 echo "$as_me: program exited with status $ac_status" >&5
27631echo "$as_me: failed program was:" >&5
27632sed 's/^/| /' conftest.$ac_ext >&5
27633
27634( exit $ac_status )
27635no_gtk=yes
27636fi
ac1cb8d3 27637rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27638fi
27639 CFLAGS="$ac_save_CFLAGS"
27640 LIBS="$ac_save_LIBS"
27641 fi
27642 fi
27643 if test "x$no_gtk" = x ; then
27644 echo "$as_me:$LINENO: result: yes" >&5
27645echo "${ECHO_T}yes" >&6
27646 wx_cv_lib_gtk=1.2.7
27647 else
27648 echo "$as_me:$LINENO: result: no" >&5
27649echo "${ECHO_T}no" >&6
27650 if test "$GTK_CONFIG" = "no" ; then
27651 echo "*** The gtk-config script installed by GTK could not be found"
27652 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
27653 echo "*** your path, or set the GTK_CONFIG environment variable to the"
27654 echo "*** full path to gtk-config."
27655 else
27656 if test -f conf.gtktest ; then
27657 :
27658 else
27659 echo "*** Could not run GTK test program, checking why..."
27660 CFLAGS="$CFLAGS $GTK_CFLAGS"
27661 LIBS="$LIBS $GTK_LIBS"
27662 cat >conftest.$ac_ext <<_ACEOF
27663/* confdefs.h. */
27664_ACEOF
27665cat confdefs.h >>conftest.$ac_ext
27666cat >>conftest.$ac_ext <<_ACEOF
27667/* end confdefs.h. */
27668
27669#include <gtk/gtk.h>
27670#include <stdio.h>
27671
27672int
27673main ()
27674{
27675 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
27676 ;
27677 return 0;
27678}
27679_ACEOF
27680rm -f conftest.$ac_objext conftest$ac_exeext
27681if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27682 (eval $ac_link) 2>conftest.er1
a848cd7e 27683 ac_status=$?
ac1cb8d3
VS
27684 grep -v '^ *+' conftest.er1 >conftest.err
27685 rm -f conftest.er1
27686 cat conftest.err >&5
a848cd7e
SC
27687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27688 (exit $ac_status); } &&
c9a66001 27689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27691 (eval $ac_try) 2>&5
27692 ac_status=$?
27693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27694 (exit $ac_status); }; } &&
27695 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27697 (eval $ac_try) 2>&5
27698 ac_status=$?
27699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27700 (exit $ac_status); }; }; then
27701 echo "*** The test program compiled, but did not run. This usually means"
27702 echo "*** that the run-time linker is not finding GTK or finding the wrong"
27703 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
27704 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
27705 echo "*** to the installed location Also, make sure you have run ldconfig if that"
27706 echo "*** is required on your system"
27707 echo "***"
27708 echo "*** If you have an old version installed, it is best to remove it, although"
27709 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
27710 echo "***"
27711 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
27712 echo "*** came with the system with the command"
27713 echo "***"
27714 echo "*** rpm --erase --nodeps gtk gtk-devel"
27715else
27716 echo "$as_me: failed program was:" >&5
27717sed 's/^/| /' conftest.$ac_ext >&5
27718
27719 echo "*** The test program failed to compile or link. See the file config.log for the"
27720 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
27721 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
27722 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
27723fi
ac1cb8d3
VS
27724rm -f conftest.err conftest.$ac_objext \
27725 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27726 CFLAGS="$ac_save_CFLAGS"
27727 LIBS="$ac_save_LIBS"
27728 fi
27729 fi
27730 GTK_CFLAGS=""
27731 GTK_LIBS=""
27732 :
27733 fi
27734
27735
27736 rm -f conf.gtktest
27737
27738
f34ca037 27739 if test -z "$wx_cv_lib_gtk"; then
a848cd7e
SC
27740
27741# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
27742if test "${with_gtk_prefix+set}" = set; then
27743 withval="$with_gtk_prefix"
27744 gtk_config_prefix="$withval"
27745else
27746 gtk_config_prefix=""
27747fi;
27748
27749# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
27750if test "${with_gtk_exec_prefix+set}" = set; then
27751 withval="$with_gtk_exec_prefix"
27752 gtk_config_exec_prefix="$withval"
27753else
27754 gtk_config_exec_prefix=""
27755fi;
27756# Check whether --enable-gtktest or --disable-gtktest was given.
27757if test "${enable_gtktest+set}" = set; then
27758 enableval="$enable_gtktest"
27759
27760else
27761 enable_gtktest=yes
27762fi;
27763
27764 for module in . $GTK_MODULES
27765 do
27766 case "$module" in
27767 gthread)
27768 gtk_config_args="$gtk_config_args gthread"
27769 ;;
27770 esac
27771 done
27772
27773 if test x$gtk_config_exec_prefix != x ; then
27774 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
27775 if test x${GTK_CONFIG+set} != xset ; then
27776 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
27777 fi
27778 fi
27779 if test x$gtk_config_prefix != x ; then
27780 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
27781 if test x${GTK_CONFIG+set} != xset ; then
27782 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
27783 fi
27784 fi
27785
27786 # Extract the first word of "gtk-config", so it can be a program name with args.
27787set dummy gtk-config; ac_word=$2
27788echo "$as_me:$LINENO: checking for $ac_word" >&5
27789echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27790if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
27791 echo $ECHO_N "(cached) $ECHO_C" >&6
27792else
27793 case $GTK_CONFIG in
27794 [\\/]* | ?:[\\/]*)
27795 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
27796 ;;
27797 *)
27798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27799for as_dir in $PATH
27800do
27801 IFS=$as_save_IFS
27802 test -z "$as_dir" && as_dir=.
27803 for ac_exec_ext in '' $ac_executable_extensions; do
27804 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27805 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27807 break 2
27808 fi
27809done
27810done
27811
27812 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
27813 ;;
27814esac
27815fi
27816GTK_CONFIG=$ac_cv_path_GTK_CONFIG
27817
27818if test -n "$GTK_CONFIG"; then
27819 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
27820echo "${ECHO_T}$GTK_CONFIG" >&6
27821else
27822 echo "$as_me:$LINENO: result: no" >&5
27823echo "${ECHO_T}no" >&6
27824fi
27825
27826 min_gtk_version=1.2.3
27827 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
27828echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
27829 no_gtk=""
27830 if test "$GTK_CONFIG" = "no" ; then
27831 no_gtk=yes
27832 else
27833 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
27834 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
27835 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
27836 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
27837 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
27838 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
27839 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
27840 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
27841 if test "x$enable_gtktest" = "xyes" ; then
27842 ac_save_CFLAGS="$CFLAGS"
27843 ac_save_LIBS="$LIBS"
27844 CFLAGS="$CFLAGS $GTK_CFLAGS"
27845 LIBS="$GTK_LIBS $LIBS"
27846 rm -f conf.gtktest
27847 if test "$cross_compiling" = yes; then
27848 echo $ac_n "cross compiling; assumed OK... $ac_c"
27849else
27850 cat >conftest.$ac_ext <<_ACEOF
27851/* confdefs.h. */
27852_ACEOF
27853cat confdefs.h >>conftest.$ac_ext
27854cat >>conftest.$ac_ext <<_ACEOF
27855/* end confdefs.h. */
27856
27857#include <gtk/gtk.h>
27858#include <stdio.h>
27859#include <stdlib.h>
27860
27861int
27862main ()
27863{
27864 int major, minor, micro;
27865 char *tmp_version;
27866
27867 system ("touch conf.gtktest");
27868
27869 /* HP/UX 9 (%@#!) writes to sscanf strings */
27870 tmp_version = g_strdup("$min_gtk_version");
27871 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
27872 printf("%s, bad version string\n", "$min_gtk_version");
27873 exit(1);
27874 }
27875
27876 if ((gtk_major_version != $gtk_config_major_version) ||
27877 (gtk_minor_version != $gtk_config_minor_version) ||
27878 (gtk_micro_version != $gtk_config_micro_version))
27879 {
27880 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
27881 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
27882 gtk_major_version, gtk_minor_version, gtk_micro_version);
27883 printf ("*** was found! If gtk-config was correct, then it is best\n");
27884 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
27885 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
27886 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
27887 printf("*** required on your system.\n");
27888 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
27889 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
27890 printf("*** before re-running configure\n");
27891 }
27892#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
27893 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
27894 (gtk_minor_version != GTK_MINOR_VERSION) ||
27895 (gtk_micro_version != GTK_MICRO_VERSION))
27896 {
27897 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
27898 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
27899 printf("*** library (version %d.%d.%d)\n",
27900 gtk_major_version, gtk_minor_version, gtk_micro_version);
27901 }
27902#endif /* defined (GTK_MAJOR_VERSION) ... */
27903 else
27904 {
27905 if ((gtk_major_version > major) ||
27906 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
27907 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
27908 {
27909 return 0;
27910 }
27911 else
27912 {
27913 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
27914 gtk_major_version, gtk_minor_version, gtk_micro_version);
27915 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
27916 major, minor, micro);
27917 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
27918 printf("***\n");
27919 printf("*** If you have already installed a sufficiently new version, this error\n");
27920 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
27921 printf("*** being found. The easiest way to fix this is to remove the old version\n");
27922 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
27923 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
27924 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27925 printf("*** so that the correct libraries are found at run-time))\n");
27926 }
27927 }
27928 return 1;
27929}
27930
27931_ACEOF
27932rm -f conftest$ac_exeext
27933if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27934 (eval $ac_link) 2>&5
27935 ac_status=$?
27936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27937 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27939 (eval $ac_try) 2>&5
27940 ac_status=$?
27941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27942 (exit $ac_status); }; }; then
27943 :
27944else
27945 echo "$as_me: program exited with status $ac_status" >&5
27946echo "$as_me: failed program was:" >&5
27947sed 's/^/| /' conftest.$ac_ext >&5
27948
27949( exit $ac_status )
27950no_gtk=yes
27951fi
ac1cb8d3 27952rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27953fi
27954 CFLAGS="$ac_save_CFLAGS"
27955 LIBS="$ac_save_LIBS"
27956 fi
27957 fi
27958 if test "x$no_gtk" = x ; then
27959 echo "$as_me:$LINENO: result: yes" >&5
27960echo "${ECHO_T}yes" >&6
27961 wx_cv_lib_gtk=1.2.3
27962 else
27963 echo "$as_me:$LINENO: result: no" >&5
27964echo "${ECHO_T}no" >&6
27965 if test "$GTK_CONFIG" = "no" ; then
27966 echo "*** The gtk-config script installed by GTK could not be found"
27967 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
27968 echo "*** your path, or set the GTK_CONFIG environment variable to the"
27969 echo "*** full path to gtk-config."
27970 else
27971 if test -f conf.gtktest ; then
27972 :
27973 else
27974 echo "*** Could not run GTK test program, checking why..."
27975 CFLAGS="$CFLAGS $GTK_CFLAGS"
27976 LIBS="$LIBS $GTK_LIBS"
27977 cat >conftest.$ac_ext <<_ACEOF
27978/* confdefs.h. */
27979_ACEOF
27980cat confdefs.h >>conftest.$ac_ext
27981cat >>conftest.$ac_ext <<_ACEOF
27982/* end confdefs.h. */
27983
27984#include <gtk/gtk.h>
27985#include <stdio.h>
27986
27987int
27988main ()
27989{
27990 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
27991 ;
27992 return 0;
27993}
27994_ACEOF
27995rm -f conftest.$ac_objext conftest$ac_exeext
27996if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27997 (eval $ac_link) 2>conftest.er1
a848cd7e 27998 ac_status=$?
ac1cb8d3
VS
27999 grep -v '^ *+' conftest.er1 >conftest.err
28000 rm -f conftest.er1
28001 cat conftest.err >&5
a848cd7e
SC
28002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28003 (exit $ac_status); } &&
c9a66001 28004 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28006 (eval $ac_try) 2>&5
28007 ac_status=$?
28008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28009 (exit $ac_status); }; } &&
28010 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28012 (eval $ac_try) 2>&5
28013 ac_status=$?
28014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28015 (exit $ac_status); }; }; then
28016 echo "*** The test program compiled, but did not run. This usually means"
28017 echo "*** that the run-time linker is not finding GTK or finding the wrong"
28018 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
28019 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28020 echo "*** to the installed location Also, make sure you have run ldconfig if that"
28021 echo "*** is required on your system"
28022 echo "***"
28023 echo "*** If you have an old version installed, it is best to remove it, although"
28024 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28025 echo "***"
28026 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
28027 echo "*** came with the system with the command"
28028 echo "***"
28029 echo "*** rpm --erase --nodeps gtk gtk-devel"
28030else
28031 echo "$as_me: failed program was:" >&5
28032sed 's/^/| /' conftest.$ac_ext >&5
28033
28034 echo "*** The test program failed to compile or link. See the file config.log for the"
28035 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
28036 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
28037 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
28038fi
ac1cb8d3
VS
28039rm -f conftest.err conftest.$ac_objext \
28040 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28041 CFLAGS="$ac_save_CFLAGS"
28042 LIBS="$ac_save_LIBS"
28043 fi
28044 fi
28045 GTK_CFLAGS=""
28046 GTK_LIBS=""
28047 :
28048 fi
28049
28050
28051 rm -f conf.gtktest
28052
f34ca037 28053 fi
a848cd7e
SC
28054 fi
28055 fi
28056
28057 if test -z "$wx_cv_lib_gtk"; then
28058 wx_cv_lib_gtk=none
28059 else
28060 wx_cv_cflags_gtk=$GTK_CFLAGS
d2822091 28061 wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
a848cd7e
SC
28062 fi
28063
28064
28065fi
28066
28067
28068 if test "$gtk_version_cached" = 1; then
28069 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
28070echo "${ECHO_T}$wx_cv_lib_gtk" >&6
28071 fi
28072
28073 case "$wx_cv_lib_gtk" in
28074 2.0) WXGTK20=1
28075 TOOLKIT_VERSION=2
28076 ;;
28077 1.2.7) WXGTK127=1
28078 WXGTK12=1
28079 ;;
28080 1.2.3) WXGTK12=1
28081 ;;
28082 *) { { echo "$as_me:$LINENO: error:
f597b41c
MW
28083The development files for GTK+ were not found. For GTK+ 2, please
28084ensure that pkg-config is in the path and that gtk+-2.0.pc is
28085installed. For GTK+ 1.2 please check that gtk-config is in the path,
28086and that the version is 1.2.3 or above. Also check that the
28087libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
28088--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
28089 " >&5
28090echo "$as_me: error:
f597b41c
MW
28091The development files for GTK+ were not found. For GTK+ 2, please
28092ensure that pkg-config is in the path and that gtk+-2.0.pc is
28093installed. For GTK+ 1.2 please check that gtk-config is in the path,
28094and that the version is 1.2.3 or above. Also check that the
28095libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
28096--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
28097 " >&2;}
28098 { (exit 1); exit 1; }; }
28099 ;;
28100 esac
28101
28102 if test "$WXGTK20" = 1; then
6954625c 28103 save_CFLAGS="$CFLAGS"
304205f1 28104 save_LIBS="$LIBS"
6954625c 28105 CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
abc736fd 28106 LIBS="$LIBS $wx_cv_libs_gtk"
304205f1 28107
d12aef51
VZ
28108 echo "$as_me:$LINENO: checking if gtk_icon_size_lookup is missing" >&5
28109echo $ECHO_N "checking if gtk_icon_size_lookup is missing... $ECHO_C" >&6
28110 cat >conftest.$ac_ext <<_ACEOF
304205f1
VS
28111/* confdefs.h. */
28112_ACEOF
28113cat confdefs.h >>conftest.$ac_ext
28114cat >>conftest.$ac_ext <<_ACEOF
28115/* end confdefs.h. */
304205f1 28116
d12aef51 28117 #include <gtk/gtk.h>
304205f1 28118
d12aef51
VZ
28119int
28120main ()
28121{
304205f1 28122
d12aef51 28123 void *f = gtk_icon_size_lookup;
abc736fd
MW
28124
28125 ;
28126 return 0;
28127}
28128_ACEOF
28129rm -f conftest.$ac_objext
28130if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28131 (eval $ac_compile) 2>conftest.er1
28132 ac_status=$?
28133 grep -v '^ *+' conftest.er1 >conftest.err
28134 rm -f conftest.er1
28135 cat conftest.err >&5
28136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28137 (exit $ac_status); } &&
c9a66001 28138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
abc736fd
MW
28139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28140 (eval $ac_try) 2>&5
28141 ac_status=$?
28142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28143 (exit $ac_status); }; } &&
28144 { ac_try='test -s conftest.$ac_objext'
28145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28146 (eval $ac_try) 2>&5
28147 ac_status=$?
28148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28149 (exit $ac_status); }; }; then
28150
28151 echo "$as_me:$LINENO: result: no" >&5
28152echo "${ECHO_T}no" >&6
28153
28154else
28155 echo "$as_me: failed program was:" >&5
28156sed 's/^/| /' conftest.$ac_ext >&5
28157
28158
28159 cat >>confdefs.h <<\_ACEOF
28160#define NEED_GTK_ICON_SIZE_LOOKUP 1
28161_ACEOF
28162
28163 echo "$as_me:$LINENO: result: yes" >&5
28164echo "${ECHO_T}yes" >&6
28165
28166fi
28167rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28168
e9263684
VZ
28169 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
28170echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6
28171 cat >conftest.$ac_ext <<_ACEOF
28172/* confdefs.h. */
28173_ACEOF
28174cat confdefs.h >>conftest.$ac_ext
28175cat >>conftest.$ac_ext <<_ACEOF
28176/* end confdefs.h. */
28177
28178 #include <gtk/gtk.h>
28179
28180int
28181main ()
28182{
28183
28184 #if !GTK_CHECK_VERSION(2,6,0)
28185 Not GTK+ 2.6
28186 #endif
28187
28188 ;
28189 return 0;
28190}
28191_ACEOF
28192rm -f conftest.$ac_objext
28193if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28194 (eval $ac_compile) 2>conftest.er1
28195 ac_status=$?
28196 grep -v '^ *+' conftest.er1 >conftest.err
28197 rm -f conftest.er1
28198 cat conftest.err >&5
28199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28200 (exit $ac_status); } &&
c9a66001 28201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
e9263684
VZ
28202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28203 (eval $ac_try) 2>&5
28204 ac_status=$?
28205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28206 (exit $ac_status); }; } &&
28207 { ac_try='test -s conftest.$ac_objext'
28208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28209 (eval $ac_try) 2>&5
28210 ac_status=$?
28211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28212 (exit $ac_status); }; }; then
28213
28214 cat >>confdefs.h <<\_ACEOF
28215#define __WXGTK26__ 1
28216_ACEOF
28217
28218 cat >>confdefs.h <<\_ACEOF
28219#define __WXGTK24__ 1
28220_ACEOF
28221
28222 echo "$as_me:$LINENO: result: yes" >&5
28223echo "${ECHO_T}yes" >&6
28224 ac_wxgtk26=1
28225
28226else
28227 echo "$as_me: failed program was:" >&5
28228sed 's/^/| /' conftest.$ac_ext >&5
28229
28230
28231 echo "$as_me:$LINENO: result: no" >&5
28232echo "${ECHO_T}no" >&6
28233 ac_wxgtk26=0
28234
28235fi
28236rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28237
28238 if test "$ac_wxgtk26" = 0; then
9755e73b
VS
28239 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
28240echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
28241 cat >conftest.$ac_ext <<_ACEOF
28242/* confdefs.h. */
28243_ACEOF
28244cat confdefs.h >>conftest.$ac_ext
28245cat >>conftest.$ac_ext <<_ACEOF
28246/* end confdefs.h. */
28247
28248 #include <gtk/gtk.h>
28249
28250int
28251main ()
28252{
28253
28254 #if !GTK_CHECK_VERSION(2,4,0)
04e525a0 28255 Not GTK+ 2.4
9755e73b
VS
28256 #endif
28257
28258 ;
28259 return 0;
28260}
28261_ACEOF
28262rm -f conftest.$ac_objext
28263if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28264 (eval $ac_compile) 2>conftest.er1
28265 ac_status=$?
28266 grep -v '^ *+' conftest.er1 >conftest.err
28267 rm -f conftest.er1
28268 cat conftest.err >&5
28269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28270 (exit $ac_status); } &&
c9a66001 28271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9755e73b
VS
28272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28273 (eval $ac_try) 2>&5
28274 ac_status=$?
28275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28276 (exit $ac_status); }; } &&
28277 { ac_try='test -s conftest.$ac_objext'
28278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28279 (eval $ac_try) 2>&5
28280 ac_status=$?
28281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28282 (exit $ac_status); }; }; then
28283
28284 cat >>confdefs.h <<\_ACEOF
28285#define __WXGTK24__ 1
28286_ACEOF
28287
28288 echo "$as_me:$LINENO: result: yes" >&5
28289echo "${ECHO_T}yes" >&6
28290
28291else
28292 echo "$as_me: failed program was:" >&5
28293sed 's/^/| /' conftest.$ac_ext >&5
28294
28295
28296 echo "$as_me:$LINENO: result: no" >&5
28297echo "${ECHO_T}no" >&6
28298
28299fi
28300rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e9263684 28301 fi
9755e73b 28302
6954625c 28303 CFLAGS="$save_CFLAGS"
304205f1 28304 LIBS="$save_LIBS"
a848cd7e
SC
28305 else
28306 if test "$wxUSE_UNICODE" = "yes"; then
28307 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
28308echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
28309 wxUSE_UNICODE=no
28310 fi
28311 fi
28312
e56f4f9e
VZ
28313 ac_ext=cc
28314ac_cpp='$CXXCPP $CPPFLAGS'
28315ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28316ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28317ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28318
28319
a848cd7e
SC
28320 if test "$USE_DARWIN" != 1; then
28321
28322for ac_func in poll
28323do
28324as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28325echo "$as_me:$LINENO: checking for $ac_func" >&5
28326echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28327if eval "test \"\${$as_ac_var+set}\" = set"; then
28328 echo $ECHO_N "(cached) $ECHO_C" >&6
28329else
28330 cat >conftest.$ac_ext <<_ACEOF
28331/* confdefs.h. */
28332_ACEOF
28333cat confdefs.h >>conftest.$ac_ext
28334cat >>conftest.$ac_ext <<_ACEOF
28335/* end confdefs.h. */
ac1cb8d3
VS
28336/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28337 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28338#define $ac_func innocuous_$ac_func
28339
a848cd7e
SC
28340/* System header to define __stub macros and hopefully few prototypes,
28341 which can conflict with char $ac_func (); below.
28342 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28343 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28344
a848cd7e
SC
28345#ifdef __STDC__
28346# include <limits.h>
28347#else
28348# include <assert.h>
28349#endif
ac1cb8d3
VS
28350
28351#undef $ac_func
28352
a848cd7e
SC
28353/* Override any gcc2 internal prototype to avoid an error. */
28354#ifdef __cplusplus
28355extern "C"
28356{
28357#endif
28358/* We use char because int might match the return type of a gcc2
28359 builtin and then its argument prototype would still apply. */
28360char $ac_func ();
28361/* The GNU C library defines this for functions which it implements
28362 to always fail with ENOSYS. Some functions are actually named
28363 something starting with __ and the normal name is an alias. */
28364#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28365choke me
28366#else
28367char (*f) () = $ac_func;
28368#endif
28369#ifdef __cplusplus
28370}
28371#endif
28372
28373int
28374main ()
28375{
28376return f != $ac_func;
28377 ;
28378 return 0;
28379}
28380_ACEOF
28381rm -f conftest.$ac_objext conftest$ac_exeext
28382if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28383 (eval $ac_link) 2>conftest.er1
a848cd7e 28384 ac_status=$?
ac1cb8d3
VS
28385 grep -v '^ *+' conftest.er1 >conftest.err
28386 rm -f conftest.er1
28387 cat conftest.err >&5
a848cd7e
SC
28388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28389 (exit $ac_status); } &&
c9a66001 28390 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28392 (eval $ac_try) 2>&5
28393 ac_status=$?
28394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28395 (exit $ac_status); }; } &&
28396 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28398 (eval $ac_try) 2>&5
28399 ac_status=$?
28400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28401 (exit $ac_status); }; }; then
28402 eval "$as_ac_var=yes"
28403else
28404 echo "$as_me: failed program was:" >&5
28405sed 's/^/| /' conftest.$ac_ext >&5
28406
28407eval "$as_ac_var=no"
28408fi
ac1cb8d3
VS
28409rm -f conftest.err conftest.$ac_objext \
28410 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28411fi
28412echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28413echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28414if test `eval echo '${'$as_ac_var'}'` = yes; then
28415 cat >>confdefs.h <<_ACEOF
28416#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28417_ACEOF
28418
28419fi
28420done
28421
28422 fi
28423
28424 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
28425 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
28426
28427 AFMINSTALL=afminstall
28428 TOOLKIT=GTK
28429 GUIDIST=GTK_DIST
28430
28431 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
28432echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
28433if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
28434 echo $ECHO_N "(cached) $ECHO_C" >&6
28435else
28436 ac_check_lib_save_LIBS=$LIBS
28437LIBS="-lgdk $LIBS"
28438cat >conftest.$ac_ext <<_ACEOF
28439/* confdefs.h. */
28440_ACEOF
28441cat confdefs.h >>conftest.$ac_ext
28442cat >>conftest.$ac_ext <<_ACEOF
28443/* end confdefs.h. */
28444
28445/* Override any gcc2 internal prototype to avoid an error. */
28446#ifdef __cplusplus
28447extern "C"
28448#endif
28449/* We use char because int might match the return type of a gcc2
28450 builtin and then its argument prototype would still apply. */
28451char gdk_im_open ();
28452int
28453main ()
28454{
28455gdk_im_open ();
28456 ;
28457 return 0;
28458}
28459_ACEOF
28460rm -f conftest.$ac_objext conftest$ac_exeext
28461if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28462 (eval $ac_link) 2>conftest.er1
a848cd7e 28463 ac_status=$?
ac1cb8d3
VS
28464 grep -v '^ *+' conftest.er1 >conftest.err
28465 rm -f conftest.er1
28466 cat conftest.err >&5
a848cd7e
SC
28467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28468 (exit $ac_status); } &&
c9a66001 28469 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28471 (eval $ac_try) 2>&5
28472 ac_status=$?
28473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28474 (exit $ac_status); }; } &&
28475 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28477 (eval $ac_try) 2>&5
28478 ac_status=$?
28479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28480 (exit $ac_status); }; }; then
28481 ac_cv_lib_gdk_gdk_im_open=yes
28482else
28483 echo "$as_me: failed program was:" >&5
28484sed 's/^/| /' conftest.$ac_ext >&5
28485
28486ac_cv_lib_gdk_gdk_im_open=no
28487fi
ac1cb8d3
VS
28488rm -f conftest.err conftest.$ac_objext \
28489 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28490LIBS=$ac_check_lib_save_LIBS
28491fi
28492echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
28493echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
28494if test $ac_cv_lib_gdk_gdk_im_open = yes; then
28495 cat >>confdefs.h <<\_ACEOF
28496#define HAVE_XIM 1
28497_ACEOF
28498
28499fi
28500
28501
28502
28503 if test "$wxUSE_GPE" = "yes"; then
28504 echo "$as_me:$LINENO: checking for gpewidget library" >&5
28505echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
28506
0ad5d837
VZ
28507 ac_find_libraries=
28508 for ac_dir in $SEARCH_LIB;
a848cd7e 28509 do
3eca31dc 28510 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
28511 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
28512 ac_find_libraries=$ac_dir
28513 break 2
28514 fi
28515 done
28516 done
28517
28518 if test "$ac_find_libraries" != "" ; then
28519
0ad5d837 28520 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
28521 ac_path_to_link=""
28522 else
0ad5d837
VZ
28523 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
28524 result=$?
28525 if test $result = 0; then
28526 ac_path_to_link=""
28527 else
28528 ac_path_to_link=" -L$ac_find_libraries"
28529 fi
a848cd7e
SC
28530 fi
28531
28532 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
28533 WXGPE=1
0ad5d837
VZ
28534 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
28535echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
28536 else
28537 echo "$as_me:$LINENO: result: not found" >&5
28538echo "${ECHO_T}not found" >&6
28539 fi
28540
28541 fi
28542 fi
28543
28544 if test "$wxUSE_MGL" = 1; then
28545 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
28546echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
28547 if test "x$MGL_ROOT" = x ; then
28548 echo "$as_me:$LINENO: result: not found" >&5
28549echo "${ECHO_T}not found" >&6
28550 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
28551echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
28552 { (exit 1); exit 1; }; }
28553 else
28554 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
28555echo "${ECHO_T}$MGL_ROOT" >&6
28556 fi
28557
28558 echo "$as_me:$LINENO: checking for libmgl location" >&5
28559echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
28560 case "${host}" in
28561 *-*-linux* )
28562 if test "x$wxUSE_SHARED" = xyes ; then
28563 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
28564 else
28565 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
28566 fi
28567 ;;
28568 *-pc-msdosdjgpp )
28569 mgl_os_candidates="dos32/dj2"
28570 ;;
28571 *)
28572 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
28573echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
28574 { (exit 1); exit 1; }; }
28575 esac
28576
28577 mgl_lib_type=""
28578 mgl_os=""
28579
28580 for mgl_os_i in $mgl_os_candidates ; do
28581 if test "x$mgl_os" = x ; then
28582 if test "$wxUSE_DEBUG_FLAG" = yes ; then
28583 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
28584 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
28585 mgl_lib_type=debug
28586 mgl_os=$mgl_os_i
28587 fi
28588 fi
28589 if test "x$mgl_lib_type" = x ; then
28590 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
28591 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
28592 mgl_lib_type=release
28593 mgl_os=$mgl_os_i
28594 fi
28595 fi
28596 fi
28597 done
28598
28599 if test "x$mgl_os" = x ; then
28600 echo "$as_me:$LINENO: result: not found" >&5
28601echo "${ECHO_T}not found" >&6
28602 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
28603echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
28604 { (exit 1); exit 1; }; }
28605 fi
28606 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
28607echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
28608
28609 wxUSE_UNIVERSAL="yes"
28610
28611 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
28612 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
28613
28614 AFMINSTALL=afminstall
28615 TOOLKIT=MGL
28616 GUIDIST=MGL_DIST
28617 fi
28618
28619 if test "$wxUSE_MICROWIN" = 1; then
28620 echo "$as_me:$LINENO: checking for MicroWindows" >&5
28621echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
28622 if test "x$MICROWINDOWS" = x ; then
28623 echo "$as_me:$LINENO: result: not found" >&5
28624echo "${ECHO_T}not found" >&6
28625 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
28626echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
28627 { (exit 1); exit 1; }; }
28628 else
28629 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
28630echo "${ECHO_T}$MICROWINDOWS" >&6
28631 fi
28632
28633 if test -f $MICROWINDOWS/lib/libmwin.a; then
28634 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
28635echo "${ECHO_T}MicroWindows' libraries found." >&6
28636 else
28637 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
28638echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
28639 { (exit 1); exit 1; }; }
28640 fi
28641
28642 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
28643 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
28644
28645 wxUSE_UNIVERSAL="yes"
28646
28647 AFMINSTALL=afminstall
28648 TOOLKIT=MICROWIN
28649 GUIDIST=MICROWIN_DIST
28650
28651 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
28652 fi
28653
74b84332 28654 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
c9a66001
VZ
28655
28656if test "x$ac_path_x_has_been_run" != xyes; then
28657 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
28658echo $ECHO_N "checking for X... $ECHO_C" >&6
28659
c9a66001 28660ac_path_x_has_been_run=yes
a848cd7e
SC
28661
28662# Check whether --with-x or --without-x was given.
28663if test "${with_x+set}" = set; then
28664 withval="$with_x"
28665
28666fi;
28667# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
28668if test "x$with_x" = xno; then
28669 # The user explicitly disabled X.
28670 have_x=disabled
28671else
28672 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
28673 # Both variables are already set.
28674 have_x=yes
28675 else
28676 if test "${ac_cv_have_x+set}" = set; then
28677 echo $ECHO_N "(cached) $ECHO_C" >&6
28678else
28679 # One or both of the vars are not set, and there is no cached value.
28680ac_x_includes=no ac_x_libraries=no
28681rm -fr conftest.dir
28682if mkdir conftest.dir; then
28683 cd conftest.dir
28684 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
28685 cat >Imakefile <<'_ACEOF'
28686acfindx:
28687 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
28688_ACEOF
28689 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
28690 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
28691 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
28692 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
28693 for ac_extension in a so sl; do
28694 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
28695 test -f $ac_im_libdir/libX11.$ac_extension; then
28696 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
28697 fi
28698 done
28699 # Screen out bogus values from the imake configuration. They are
28700 # bogus both because they are the default anyway, and because
28701 # using them would break gcc on systems where it needs fixed includes.
28702 case $ac_im_incroot in
28703 /usr/include) ;;
28704 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
28705 esac
28706 case $ac_im_usrlibdir in
28707 /usr/lib | /lib) ;;
28708 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
28709 esac
28710 fi
28711 cd ..
28712 rm -fr conftest.dir
28713fi
28714
28715# Standard set of common directories for X headers.
28716# Check X11 before X11Rn because it is often a symlink to the current release.
28717ac_x_header_dirs='
28718/usr/X11/include
28719/usr/X11R6/include
28720/usr/X11R5/include
28721/usr/X11R4/include
28722
28723/usr/include/X11
28724/usr/include/X11R6
28725/usr/include/X11R5
28726/usr/include/X11R4
28727
28728/usr/local/X11/include
28729/usr/local/X11R6/include
28730/usr/local/X11R5/include
28731/usr/local/X11R4/include
28732
28733/usr/local/include/X11
28734/usr/local/include/X11R6
28735/usr/local/include/X11R5
28736/usr/local/include/X11R4
28737
28738/usr/X386/include
28739/usr/x386/include
28740/usr/XFree86/include/X11
28741
28742/usr/include
28743/usr/local/include
28744/usr/unsupported/include
28745/usr/athena/include
28746/usr/local/x11r5/include
28747/usr/lpp/Xamples/include
28748
28749/usr/openwin/include
28750/usr/openwin/share/include'
28751
28752if test "$ac_x_includes" = no; then
c9a66001 28753 # Guess where to find include files, by looking for a specified header file.
a848cd7e
SC
28754 # First, try using that file with no special directory specified.
28755 cat >conftest.$ac_ext <<_ACEOF
28756/* confdefs.h. */
28757_ACEOF
28758cat confdefs.h >>conftest.$ac_ext
28759cat >>conftest.$ac_ext <<_ACEOF
28760/* end confdefs.h. */
c2e9ada4 28761#include <X11/Xlib.h>
a848cd7e
SC
28762_ACEOF
28763if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28764 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28765 ac_status=$?
28766 grep -v '^ *+' conftest.er1 >conftest.err
28767 rm -f conftest.er1
28768 cat conftest.err >&5
28769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28770 (exit $ac_status); } >/dev/null; then
28771 if test -s conftest.err; then
5d7b7554
VZ
28772 ac_cpp_err=$ac_cxx_preproc_warn_flag
28773 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
28774 else
28775 ac_cpp_err=
28776 fi
28777else
28778 ac_cpp_err=yes
28779fi
28780if test -z "$ac_cpp_err"; then
28781 # We can compile using X headers with no special include directory.
28782ac_x_includes=
28783else
28784 echo "$as_me: failed program was:" >&5
28785sed 's/^/| /' conftest.$ac_ext >&5
28786
28787 for ac_dir in $ac_x_header_dirs; do
c2e9ada4 28788 if test -r "$ac_dir/X11/Xlib.h"; then
a848cd7e
SC
28789 ac_x_includes=$ac_dir
28790 break
28791 fi
28792done
28793fi
28794rm -f conftest.err conftest.$ac_ext
28795fi # $ac_x_includes = no
28796
28797if test "$ac_x_libraries" = no; then
28798 # Check for the libraries.
28799 # See if we find them without any special options.
28800 # Don't add to $LIBS permanently.
28801 ac_save_LIBS=$LIBS
c2e9ada4 28802 LIBS="-lX11 $LIBS"
a848cd7e
SC
28803 cat >conftest.$ac_ext <<_ACEOF
28804/* confdefs.h. */
28805_ACEOF
28806cat confdefs.h >>conftest.$ac_ext
28807cat >>conftest.$ac_ext <<_ACEOF
28808/* end confdefs.h. */
c2e9ada4 28809#include <X11/Xlib.h>
a848cd7e
SC
28810int
28811main ()
28812{
c2e9ada4 28813XrmInitialize ()
a848cd7e
SC
28814 ;
28815 return 0;
28816}
28817_ACEOF
28818rm -f conftest.$ac_objext conftest$ac_exeext
28819if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28820 (eval $ac_link) 2>conftest.er1
a848cd7e 28821 ac_status=$?
ac1cb8d3
VS
28822 grep -v '^ *+' conftest.er1 >conftest.err
28823 rm -f conftest.er1
28824 cat conftest.err >&5
a848cd7e
SC
28825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28826 (exit $ac_status); } &&
c9a66001 28827 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28829 (eval $ac_try) 2>&5
28830 ac_status=$?
28831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28832 (exit $ac_status); }; } &&
28833 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28835 (eval $ac_try) 2>&5
28836 ac_status=$?
28837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28838 (exit $ac_status); }; }; then
28839 LIBS=$ac_save_LIBS
28840# We can link X programs with no special library path.
28841ac_x_libraries=
28842else
28843 echo "$as_me: failed program was:" >&5
28844sed 's/^/| /' conftest.$ac_ext >&5
28845
28846LIBS=$ac_save_LIBS
28847for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
28848do
28849 # Don't even attempt the hair of trying to link an X program!
28850 for ac_extension in a so sl; do
c2e9ada4 28851 if test -r $ac_dir/libX11.$ac_extension; then
a848cd7e
SC
28852 ac_x_libraries=$ac_dir
28853 break 2
28854 fi
28855 done
28856done
28857fi
ac1cb8d3
VS
28858rm -f conftest.err conftest.$ac_objext \
28859 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28860fi # $ac_x_libraries = no
28861
28862if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
28863 # Didn't find X anywhere. Cache the known absence of X.
28864 ac_cv_have_x="have_x=no"
28865else
28866 # Record where we found X for the cache.
28867 ac_cv_have_x="have_x=yes \
ac1cb8d3 28868 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
28869fi
28870fi
28871
28872 fi
28873 eval "$ac_cv_have_x"
28874fi # $with_x != no
28875
28876if test "$have_x" != yes; then
28877 echo "$as_me:$LINENO: result: $have_x" >&5
28878echo "${ECHO_T}$have_x" >&6
28879 no_x=yes
28880else
28881 # If each of the values was on the command line, it overrides each guess.
28882 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
28883 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
28884 # Update the cache value to reflect the command line values.
28885 ac_cv_have_x="have_x=yes \
28886 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
c9a66001
VZ
28887 # It might be that x_includes is empty (headers are found in the
28888 # standard search path. Then output the corresponding message
28889 ac_out_x_includes=$x_includes
28890 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
28891 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
28892echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
a848cd7e
SC
28893fi
28894
c9a66001 28895fi
a848cd7e
SC
28896if test "$no_x" = yes; then
28897 # Not all programs may use this symbol, but it does not hurt to define it.
28898
28899cat >>confdefs.h <<\_ACEOF
28900#define X_DISPLAY_MISSING 1
28901_ACEOF
28902
28903 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
28904else
28905 if test -n "$x_includes"; then
28906 X_CFLAGS="$X_CFLAGS -I$x_includes"
28907 fi
28908
28909 # It would also be nice to do this for all -L options, not just this one.
28910 if test -n "$x_libraries"; then
28911 X_LIBS="$X_LIBS -L$x_libraries"
28912 # For Solaris; some versions of Sun CC require a space after -R and
28913 # others require no space. Words are not sufficient . . . .
28914 case `(uname -sr) 2>/dev/null` in
28915 "SunOS 5"*)
28916 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
28917echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
28918 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
28919 cat >conftest.$ac_ext <<_ACEOF
28920/* confdefs.h. */
28921_ACEOF
28922cat confdefs.h >>conftest.$ac_ext
28923cat >>conftest.$ac_ext <<_ACEOF
28924/* end confdefs.h. */
28925
28926int
28927main ()
28928{
28929
28930 ;
28931 return 0;
28932}
28933_ACEOF
28934rm -f conftest.$ac_objext conftest$ac_exeext
28935if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28936 (eval $ac_link) 2>conftest.er1
a848cd7e 28937 ac_status=$?
ac1cb8d3
VS
28938 grep -v '^ *+' conftest.er1 >conftest.err
28939 rm -f conftest.er1
28940 cat conftest.err >&5
a848cd7e
SC
28941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28942 (exit $ac_status); } &&
c9a66001 28943 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28945 (eval $ac_try) 2>&5
28946 ac_status=$?
28947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28948 (exit $ac_status); }; } &&
28949 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28951 (eval $ac_try) 2>&5
28952 ac_status=$?
28953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28954 (exit $ac_status); }; }; then
28955 ac_R_nospace=yes
28956else
28957 echo "$as_me: failed program was:" >&5
28958sed 's/^/| /' conftest.$ac_ext >&5
28959
28960ac_R_nospace=no
28961fi
ac1cb8d3
VS
28962rm -f conftest.err conftest.$ac_objext \
28963 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28964 if test $ac_R_nospace = yes; then
28965 echo "$as_me:$LINENO: result: no" >&5
28966echo "${ECHO_T}no" >&6
28967 X_LIBS="$X_LIBS -R$x_libraries"
28968 else
28969 LIBS="$ac_xsave_LIBS -R $x_libraries"
28970 cat >conftest.$ac_ext <<_ACEOF
28971/* confdefs.h. */
28972_ACEOF
28973cat confdefs.h >>conftest.$ac_ext
28974cat >>conftest.$ac_ext <<_ACEOF
28975/* end confdefs.h. */
28976
28977int
28978main ()
28979{
28980
28981 ;
28982 return 0;
28983}
28984_ACEOF
28985rm -f conftest.$ac_objext conftest$ac_exeext
28986if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28987 (eval $ac_link) 2>conftest.er1
a848cd7e 28988 ac_status=$?
ac1cb8d3
VS
28989 grep -v '^ *+' conftest.er1 >conftest.err
28990 rm -f conftest.er1
28991 cat conftest.err >&5
a848cd7e
SC
28992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28993 (exit $ac_status); } &&
c9a66001 28994 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28996 (eval $ac_try) 2>&5
28997 ac_status=$?
28998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28999 (exit $ac_status); }; } &&
29000 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29002 (eval $ac_try) 2>&5
29003 ac_status=$?
29004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29005 (exit $ac_status); }; }; then
29006 ac_R_space=yes
29007else
29008 echo "$as_me: failed program was:" >&5
29009sed 's/^/| /' conftest.$ac_ext >&5
29010
29011ac_R_space=no
29012fi
ac1cb8d3
VS
29013rm -f conftest.err conftest.$ac_objext \
29014 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29015 if test $ac_R_space = yes; then
29016 echo "$as_me:$LINENO: result: yes" >&5
29017echo "${ECHO_T}yes" >&6
29018 X_LIBS="$X_LIBS -R $x_libraries"
29019 else
29020 echo "$as_me:$LINENO: result: neither works" >&5
29021echo "${ECHO_T}neither works" >&6
29022 fi
29023 fi
29024 LIBS=$ac_xsave_LIBS
29025 esac
29026 fi
29027
29028 # Check for system-dependent libraries X programs must link with.
29029 # Do this before checking for the system-independent R6 libraries
29030 # (-lICE), since we may need -lsocket or whatever for X linking.
29031
29032 if test "$ISC" = yes; then
29033 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29034 else
29035 # Martyn Johnson says this is needed for Ultrix, if the X
29036 # libraries were built with DECnet support. And Karl Berry says
29037 # the Alpha needs dnet_stub (dnet does not exist).
29038 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
29039 cat >conftest.$ac_ext <<_ACEOF
29040/* confdefs.h. */
29041_ACEOF
29042cat confdefs.h >>conftest.$ac_ext
29043cat >>conftest.$ac_ext <<_ACEOF
29044/* end confdefs.h. */
29045
29046/* Override any gcc2 internal prototype to avoid an error. */
29047#ifdef __cplusplus
29048extern "C"
29049#endif
29050/* We use char because int might match the return type of a gcc2
29051 builtin and then its argument prototype would still apply. */
29052char XOpenDisplay ();
29053int
29054main ()
29055{
29056XOpenDisplay ();
29057 ;
29058 return 0;
29059}
29060_ACEOF
29061rm -f conftest.$ac_objext conftest$ac_exeext
29062if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29063 (eval $ac_link) 2>conftest.er1
a848cd7e 29064 ac_status=$?
ac1cb8d3
VS
29065 grep -v '^ *+' conftest.er1 >conftest.err
29066 rm -f conftest.er1
29067 cat conftest.err >&5
a848cd7e
SC
29068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29069 (exit $ac_status); } &&
c9a66001 29070 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29072 (eval $ac_try) 2>&5
29073 ac_status=$?
29074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29075 (exit $ac_status); }; } &&
29076 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29078 (eval $ac_try) 2>&5
29079 ac_status=$?
29080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29081 (exit $ac_status); }; }; then
29082 :
29083else
29084 echo "$as_me: failed program was:" >&5
29085sed 's/^/| /' conftest.$ac_ext >&5
29086
29087echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29088echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
29089if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29090 echo $ECHO_N "(cached) $ECHO_C" >&6
29091else
29092 ac_check_lib_save_LIBS=$LIBS
29093LIBS="-ldnet $LIBS"
29094cat >conftest.$ac_ext <<_ACEOF
29095/* confdefs.h. */
29096_ACEOF
29097cat confdefs.h >>conftest.$ac_ext
29098cat >>conftest.$ac_ext <<_ACEOF
29099/* end confdefs.h. */
29100
29101/* Override any gcc2 internal prototype to avoid an error. */
29102#ifdef __cplusplus
29103extern "C"
29104#endif
29105/* We use char because int might match the return type of a gcc2
29106 builtin and then its argument prototype would still apply. */
29107char dnet_ntoa ();
29108int
29109main ()
29110{
29111dnet_ntoa ();
29112 ;
29113 return 0;
29114}
29115_ACEOF
29116rm -f conftest.$ac_objext conftest$ac_exeext
29117if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29118 (eval $ac_link) 2>conftest.er1
a848cd7e 29119 ac_status=$?
ac1cb8d3
VS
29120 grep -v '^ *+' conftest.er1 >conftest.err
29121 rm -f conftest.er1
29122 cat conftest.err >&5
a848cd7e
SC
29123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29124 (exit $ac_status); } &&
c9a66001 29125 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29127 (eval $ac_try) 2>&5
29128 ac_status=$?
29129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29130 (exit $ac_status); }; } &&
29131 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29133 (eval $ac_try) 2>&5
29134 ac_status=$?
29135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29136 (exit $ac_status); }; }; then
29137 ac_cv_lib_dnet_dnet_ntoa=yes
29138else
29139 echo "$as_me: failed program was:" >&5
29140sed 's/^/| /' conftest.$ac_ext >&5
29141
29142ac_cv_lib_dnet_dnet_ntoa=no
29143fi
ac1cb8d3
VS
29144rm -f conftest.err conftest.$ac_objext \
29145 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29146LIBS=$ac_check_lib_save_LIBS
29147fi
29148echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
29149echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
29150if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
29151 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
29152fi
29153
29154 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
29155 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
29156echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
29157if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
29158 echo $ECHO_N "(cached) $ECHO_C" >&6
29159else
29160 ac_check_lib_save_LIBS=$LIBS
29161LIBS="-ldnet_stub $LIBS"
29162cat >conftest.$ac_ext <<_ACEOF
29163/* confdefs.h. */
29164_ACEOF
29165cat confdefs.h >>conftest.$ac_ext
29166cat >>conftest.$ac_ext <<_ACEOF
29167/* end confdefs.h. */
29168
29169/* Override any gcc2 internal prototype to avoid an error. */
29170#ifdef __cplusplus
29171extern "C"
29172#endif
29173/* We use char because int might match the return type of a gcc2
29174 builtin and then its argument prototype would still apply. */
29175char dnet_ntoa ();
29176int
29177main ()
29178{
29179dnet_ntoa ();
29180 ;
29181 return 0;
29182}
29183_ACEOF
29184rm -f conftest.$ac_objext conftest$ac_exeext
29185if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29186 (eval $ac_link) 2>conftest.er1
a848cd7e 29187 ac_status=$?
ac1cb8d3
VS
29188 grep -v '^ *+' conftest.er1 >conftest.err
29189 rm -f conftest.er1
29190 cat conftest.err >&5
a848cd7e
SC
29191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29192 (exit $ac_status); } &&
c9a66001 29193 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29195 (eval $ac_try) 2>&5
29196 ac_status=$?
29197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29198 (exit $ac_status); }; } &&
29199 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29201 (eval $ac_try) 2>&5
29202 ac_status=$?
29203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29204 (exit $ac_status); }; }; then
29205 ac_cv_lib_dnet_stub_dnet_ntoa=yes
29206else
29207 echo "$as_me: failed program was:" >&5
29208sed 's/^/| /' conftest.$ac_ext >&5
29209
29210ac_cv_lib_dnet_stub_dnet_ntoa=no
29211fi
ac1cb8d3
VS
29212rm -f conftest.err conftest.$ac_objext \
29213 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29214LIBS=$ac_check_lib_save_LIBS
29215fi
29216echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
29217echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
29218if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
29219 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
29220fi
29221
29222 fi
29223fi
ac1cb8d3
VS
29224rm -f conftest.err conftest.$ac_objext \
29225 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29226 LIBS="$ac_xsave_LIBS"
29227
29228 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
29229 # to get the SysV transport functions.
29230 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
29231 # needs -lnsl.
29232 # The nsl library prevents programs from opening the X display
29233 # on Irix 5.2, according to T.E. Dickey.
29234 # The functions gethostbyname, getservbyname, and inet_addr are
29235 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
29236 echo "$as_me:$LINENO: checking for gethostbyname" >&5
29237echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
29238if test "${ac_cv_func_gethostbyname+set}" = set; then
29239 echo $ECHO_N "(cached) $ECHO_C" >&6
29240else
29241 cat >conftest.$ac_ext <<_ACEOF
29242/* confdefs.h. */
29243_ACEOF
29244cat confdefs.h >>conftest.$ac_ext
29245cat >>conftest.$ac_ext <<_ACEOF
29246/* end confdefs.h. */
ac1cb8d3
VS
29247/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
29248 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29249#define gethostbyname innocuous_gethostbyname
29250
a848cd7e
SC
29251/* System header to define __stub macros and hopefully few prototypes,
29252 which can conflict with char gethostbyname (); below.
29253 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29254 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29255
a848cd7e
SC
29256#ifdef __STDC__
29257# include <limits.h>
29258#else
29259# include <assert.h>
29260#endif
ac1cb8d3
VS
29261
29262#undef gethostbyname
29263
a848cd7e
SC
29264/* Override any gcc2 internal prototype to avoid an error. */
29265#ifdef __cplusplus
29266extern "C"
29267{
29268#endif
29269/* We use char because int might match the return type of a gcc2
29270 builtin and then its argument prototype would still apply. */
29271char gethostbyname ();
29272/* The GNU C library defines this for functions which it implements
29273 to always fail with ENOSYS. Some functions are actually named
29274 something starting with __ and the normal name is an alias. */
29275#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
29276choke me
29277#else
29278char (*f) () = gethostbyname;
29279#endif
29280#ifdef __cplusplus
29281}
29282#endif
29283
29284int
29285main ()
29286{
29287return f != gethostbyname;
29288 ;
29289 return 0;
29290}
29291_ACEOF
29292rm -f conftest.$ac_objext conftest$ac_exeext
29293if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29294 (eval $ac_link) 2>conftest.er1
a848cd7e 29295 ac_status=$?
ac1cb8d3
VS
29296 grep -v '^ *+' conftest.er1 >conftest.err
29297 rm -f conftest.er1
29298 cat conftest.err >&5
a848cd7e
SC
29299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29300 (exit $ac_status); } &&
c9a66001 29301 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29303 (eval $ac_try) 2>&5
29304 ac_status=$?
29305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29306 (exit $ac_status); }; } &&
29307 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29309 (eval $ac_try) 2>&5
29310 ac_status=$?
29311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29312 (exit $ac_status); }; }; then
29313 ac_cv_func_gethostbyname=yes
29314else
29315 echo "$as_me: failed program was:" >&5
29316sed 's/^/| /' conftest.$ac_ext >&5
29317
29318ac_cv_func_gethostbyname=no
29319fi
ac1cb8d3
VS
29320rm -f conftest.err conftest.$ac_objext \
29321 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29322fi
29323echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
29324echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
29325
29326 if test $ac_cv_func_gethostbyname = no; then
29327 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
29328echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
29329if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
29330 echo $ECHO_N "(cached) $ECHO_C" >&6
29331else
29332 ac_check_lib_save_LIBS=$LIBS
29333LIBS="-lnsl $LIBS"
29334cat >conftest.$ac_ext <<_ACEOF
29335/* confdefs.h. */
29336_ACEOF
29337cat confdefs.h >>conftest.$ac_ext
29338cat >>conftest.$ac_ext <<_ACEOF
29339/* end confdefs.h. */
29340
29341/* Override any gcc2 internal prototype to avoid an error. */
29342#ifdef __cplusplus
29343extern "C"
29344#endif
29345/* We use char because int might match the return type of a gcc2
29346 builtin and then its argument prototype would still apply. */
29347char gethostbyname ();
29348int
29349main ()
29350{
29351gethostbyname ();
29352 ;
29353 return 0;
29354}
29355_ACEOF
29356rm -f conftest.$ac_objext conftest$ac_exeext
29357if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
29358 (eval $ac_link) 2>conftest.er1
29359 ac_status=$?
29360 grep -v '^ *+' conftest.er1 >conftest.err
29361 rm -f conftest.er1
29362 cat conftest.err >&5
29363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29364 (exit $ac_status); } &&
c9a66001 29365 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29367 (eval $ac_try) 2>&5
29368 ac_status=$?
29369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29370 (exit $ac_status); }; } &&
29371 { ac_try='test -s conftest$ac_exeext'
29372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29373 (eval $ac_try) 2>&5
29374 ac_status=$?
29375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29376 (exit $ac_status); }; }; then
29377 ac_cv_lib_nsl_gethostbyname=yes
29378else
29379 echo "$as_me: failed program was:" >&5
29380sed 's/^/| /' conftest.$ac_ext >&5
29381
29382ac_cv_lib_nsl_gethostbyname=no
29383fi
29384rm -f conftest.err conftest.$ac_objext \
29385 conftest$ac_exeext conftest.$ac_ext
29386LIBS=$ac_check_lib_save_LIBS
29387fi
29388echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
29389echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
29390if test $ac_cv_lib_nsl_gethostbyname = yes; then
29391 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
29392fi
29393
29394 if test $ac_cv_lib_nsl_gethostbyname = no; then
29395 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
29396echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
29397if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
29398 echo $ECHO_N "(cached) $ECHO_C" >&6
29399else
29400 ac_check_lib_save_LIBS=$LIBS
29401LIBS="-lbsd $LIBS"
29402cat >conftest.$ac_ext <<_ACEOF
29403/* confdefs.h. */
29404_ACEOF
29405cat confdefs.h >>conftest.$ac_ext
29406cat >>conftest.$ac_ext <<_ACEOF
29407/* end confdefs.h. */
29408
29409/* Override any gcc2 internal prototype to avoid an error. */
29410#ifdef __cplusplus
29411extern "C"
29412#endif
29413/* We use char because int might match the return type of a gcc2
29414 builtin and then its argument prototype would still apply. */
29415char gethostbyname ();
29416int
29417main ()
29418{
29419gethostbyname ();
29420 ;
29421 return 0;
29422}
29423_ACEOF
29424rm -f conftest.$ac_objext conftest$ac_exeext
29425if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29426 (eval $ac_link) 2>conftest.er1
a848cd7e 29427 ac_status=$?
ac1cb8d3
VS
29428 grep -v '^ *+' conftest.er1 >conftest.err
29429 rm -f conftest.er1
29430 cat conftest.err >&5
a848cd7e
SC
29431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29432 (exit $ac_status); } &&
c9a66001 29433 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
29434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29435 (eval $ac_try) 2>&5
29436 ac_status=$?
29437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
29438 (exit $ac_status); }; } &&
29439 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29441 (eval $ac_try) 2>&5
29442 ac_status=$?
29443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29444 (exit $ac_status); }; }; then
29445 ac_cv_lib_bsd_gethostbyname=yes
29446else
29447 echo "$as_me: failed program was:" >&5
29448sed 's/^/| /' conftest.$ac_ext >&5
29449
29450ac_cv_lib_bsd_gethostbyname=no
29451fi
ac1cb8d3
VS
29452rm -f conftest.err conftest.$ac_objext \
29453 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29454LIBS=$ac_check_lib_save_LIBS
29455fi
29456echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
29457echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
29458if test $ac_cv_lib_bsd_gethostbyname = yes; then
29459 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
29460fi
29461
29462 fi
29463 fi
29464
29465 # lieder@skyler.mavd.honeywell.com says without -lsocket,
29466 # socket/setsockopt and other routines are undefined under SCO ODT
29467 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
29468 # on later versions), says Simon Leinen: it contains gethostby*
29469 # variants that don't use the name server (or something). -lsocket
29470 # must be given before -lnsl if both are needed. We assume that
29471 # if connect needs -lnsl, so does gethostbyname.
29472 echo "$as_me:$LINENO: checking for connect" >&5
29473echo $ECHO_N "checking for connect... $ECHO_C" >&6
29474if test "${ac_cv_func_connect+set}" = set; then
29475 echo $ECHO_N "(cached) $ECHO_C" >&6
29476else
29477 cat >conftest.$ac_ext <<_ACEOF
29478/* confdefs.h. */
29479_ACEOF
29480cat confdefs.h >>conftest.$ac_ext
29481cat >>conftest.$ac_ext <<_ACEOF
29482/* end confdefs.h. */
ac1cb8d3
VS
29483/* Define connect to an innocuous variant, in case <limits.h> declares connect.
29484 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29485#define connect innocuous_connect
29486
a848cd7e
SC
29487/* System header to define __stub macros and hopefully few prototypes,
29488 which can conflict with char connect (); below.
29489 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29490 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29491
a848cd7e
SC
29492#ifdef __STDC__
29493# include <limits.h>
29494#else
29495# include <assert.h>
29496#endif
ac1cb8d3
VS
29497
29498#undef connect
29499
a848cd7e
SC
29500/* Override any gcc2 internal prototype to avoid an error. */
29501#ifdef __cplusplus
29502extern "C"
29503{
29504#endif
29505/* We use char because int might match the return type of a gcc2
29506 builtin and then its argument prototype would still apply. */
29507char connect ();
29508/* The GNU C library defines this for functions which it implements
29509 to always fail with ENOSYS. Some functions are actually named
29510 something starting with __ and the normal name is an alias. */
29511#if defined (__stub_connect) || defined (__stub___connect)
29512choke me
29513#else
29514char (*f) () = connect;
29515#endif
29516#ifdef __cplusplus
29517}
29518#endif
29519
29520int
29521main ()
29522{
29523return f != connect;
29524 ;
29525 return 0;
29526}
29527_ACEOF
29528rm -f conftest.$ac_objext conftest$ac_exeext
29529if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29530 (eval $ac_link) 2>conftest.er1
a848cd7e 29531 ac_status=$?
ac1cb8d3
VS
29532 grep -v '^ *+' conftest.er1 >conftest.err
29533 rm -f conftest.er1
29534 cat conftest.err >&5
a848cd7e
SC
29535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29536 (exit $ac_status); } &&
c9a66001 29537 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29539 (eval $ac_try) 2>&5
29540 ac_status=$?
29541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29542 (exit $ac_status); }; } &&
29543 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29545 (eval $ac_try) 2>&5
29546 ac_status=$?
29547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29548 (exit $ac_status); }; }; then
29549 ac_cv_func_connect=yes
29550else
29551 echo "$as_me: failed program was:" >&5
29552sed 's/^/| /' conftest.$ac_ext >&5
29553
29554ac_cv_func_connect=no
29555fi
ac1cb8d3
VS
29556rm -f conftest.err conftest.$ac_objext \
29557 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29558fi
29559echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
29560echo "${ECHO_T}$ac_cv_func_connect" >&6
29561
29562 if test $ac_cv_func_connect = no; then
29563 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
29564echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
29565if test "${ac_cv_lib_socket_connect+set}" = set; then
29566 echo $ECHO_N "(cached) $ECHO_C" >&6
29567else
29568 ac_check_lib_save_LIBS=$LIBS
29569LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
29570cat >conftest.$ac_ext <<_ACEOF
29571/* confdefs.h. */
29572_ACEOF
29573cat confdefs.h >>conftest.$ac_ext
29574cat >>conftest.$ac_ext <<_ACEOF
29575/* end confdefs.h. */
29576
29577/* Override any gcc2 internal prototype to avoid an error. */
29578#ifdef __cplusplus
29579extern "C"
29580#endif
29581/* We use char because int might match the return type of a gcc2
29582 builtin and then its argument prototype would still apply. */
29583char connect ();
29584int
29585main ()
29586{
29587connect ();
29588 ;
29589 return 0;
29590}
29591_ACEOF
29592rm -f conftest.$ac_objext conftest$ac_exeext
29593if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29594 (eval $ac_link) 2>conftest.er1
a848cd7e 29595 ac_status=$?
ac1cb8d3
VS
29596 grep -v '^ *+' conftest.er1 >conftest.err
29597 rm -f conftest.er1
29598 cat conftest.err >&5
a848cd7e
SC
29599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29600 (exit $ac_status); } &&
c9a66001 29601 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29603 (eval $ac_try) 2>&5
29604 ac_status=$?
29605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29606 (exit $ac_status); }; } &&
29607 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29609 (eval $ac_try) 2>&5
29610 ac_status=$?
29611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29612 (exit $ac_status); }; }; then
29613 ac_cv_lib_socket_connect=yes
29614else
29615 echo "$as_me: failed program was:" >&5
29616sed 's/^/| /' conftest.$ac_ext >&5
29617
29618ac_cv_lib_socket_connect=no
29619fi
ac1cb8d3
VS
29620rm -f conftest.err conftest.$ac_objext \
29621 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29622LIBS=$ac_check_lib_save_LIBS
29623fi
29624echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
29625echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
29626if test $ac_cv_lib_socket_connect = yes; then
29627 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
29628fi
29629
29630 fi
29631
29632 # Guillermo Gomez says -lposix is necessary on A/UX.
29633 echo "$as_me:$LINENO: checking for remove" >&5
29634echo $ECHO_N "checking for remove... $ECHO_C" >&6
29635if test "${ac_cv_func_remove+set}" = set; then
29636 echo $ECHO_N "(cached) $ECHO_C" >&6
29637else
29638 cat >conftest.$ac_ext <<_ACEOF
29639/* confdefs.h. */
29640_ACEOF
29641cat confdefs.h >>conftest.$ac_ext
29642cat >>conftest.$ac_ext <<_ACEOF
29643/* end confdefs.h. */
ac1cb8d3
VS
29644/* Define remove to an innocuous variant, in case <limits.h> declares remove.
29645 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29646#define remove innocuous_remove
29647
a848cd7e
SC
29648/* System header to define __stub macros and hopefully few prototypes,
29649 which can conflict with char remove (); below.
29650 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29651 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29652
a848cd7e
SC
29653#ifdef __STDC__
29654# include <limits.h>
29655#else
29656# include <assert.h>
29657#endif
ac1cb8d3
VS
29658
29659#undef remove
29660
a848cd7e
SC
29661/* Override any gcc2 internal prototype to avoid an error. */
29662#ifdef __cplusplus
29663extern "C"
29664{
29665#endif
29666/* We use char because int might match the return type of a gcc2
29667 builtin and then its argument prototype would still apply. */
29668char remove ();
29669/* The GNU C library defines this for functions which it implements
29670 to always fail with ENOSYS. Some functions are actually named
29671 something starting with __ and the normal name is an alias. */
29672#if defined (__stub_remove) || defined (__stub___remove)
29673choke me
29674#else
29675char (*f) () = remove;
29676#endif
29677#ifdef __cplusplus
29678}
29679#endif
29680
29681int
29682main ()
29683{
29684return f != remove;
29685 ;
29686 return 0;
29687}
29688_ACEOF
29689rm -f conftest.$ac_objext conftest$ac_exeext
29690if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29691 (eval $ac_link) 2>conftest.er1
a848cd7e 29692 ac_status=$?
ac1cb8d3
VS
29693 grep -v '^ *+' conftest.er1 >conftest.err
29694 rm -f conftest.er1
29695 cat conftest.err >&5
a848cd7e
SC
29696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29697 (exit $ac_status); } &&
c9a66001 29698 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29700 (eval $ac_try) 2>&5
29701 ac_status=$?
29702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29703 (exit $ac_status); }; } &&
29704 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29706 (eval $ac_try) 2>&5
29707 ac_status=$?
29708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29709 (exit $ac_status); }; }; then
29710 ac_cv_func_remove=yes
29711else
29712 echo "$as_me: failed program was:" >&5
29713sed 's/^/| /' conftest.$ac_ext >&5
29714
29715ac_cv_func_remove=no
29716fi
ac1cb8d3
VS
29717rm -f conftest.err conftest.$ac_objext \
29718 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29719fi
29720echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
29721echo "${ECHO_T}$ac_cv_func_remove" >&6
29722
29723 if test $ac_cv_func_remove = no; then
29724 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
29725echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
29726if test "${ac_cv_lib_posix_remove+set}" = set; then
29727 echo $ECHO_N "(cached) $ECHO_C" >&6
29728else
29729 ac_check_lib_save_LIBS=$LIBS
29730LIBS="-lposix $LIBS"
29731cat >conftest.$ac_ext <<_ACEOF
29732/* confdefs.h. */
29733_ACEOF
29734cat confdefs.h >>conftest.$ac_ext
29735cat >>conftest.$ac_ext <<_ACEOF
29736/* end confdefs.h. */
29737
29738/* Override any gcc2 internal prototype to avoid an error. */
29739#ifdef __cplusplus
29740extern "C"
29741#endif
29742/* We use char because int might match the return type of a gcc2
29743 builtin and then its argument prototype would still apply. */
29744char remove ();
29745int
29746main ()
29747{
29748remove ();
29749 ;
29750 return 0;
29751}
29752_ACEOF
29753rm -f conftest.$ac_objext conftest$ac_exeext
29754if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29755 (eval $ac_link) 2>conftest.er1
a848cd7e 29756 ac_status=$?
ac1cb8d3
VS
29757 grep -v '^ *+' conftest.er1 >conftest.err
29758 rm -f conftest.er1
29759 cat conftest.err >&5
a848cd7e
SC
29760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29761 (exit $ac_status); } &&
c9a66001 29762 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29764 (eval $ac_try) 2>&5
29765 ac_status=$?
29766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29767 (exit $ac_status); }; } &&
29768 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29770 (eval $ac_try) 2>&5
29771 ac_status=$?
29772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29773 (exit $ac_status); }; }; then
29774 ac_cv_lib_posix_remove=yes
29775else
29776 echo "$as_me: failed program was:" >&5
29777sed 's/^/| /' conftest.$ac_ext >&5
29778
29779ac_cv_lib_posix_remove=no
29780fi
ac1cb8d3
VS
29781rm -f conftest.err conftest.$ac_objext \
29782 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29783LIBS=$ac_check_lib_save_LIBS
29784fi
29785echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
29786echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
29787if test $ac_cv_lib_posix_remove = yes; then
29788 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
29789fi
29790
29791 fi
29792
29793 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
29794 echo "$as_me:$LINENO: checking for shmat" >&5
29795echo $ECHO_N "checking for shmat... $ECHO_C" >&6
29796if test "${ac_cv_func_shmat+set}" = set; then
29797 echo $ECHO_N "(cached) $ECHO_C" >&6
29798else
29799 cat >conftest.$ac_ext <<_ACEOF
29800/* confdefs.h. */
29801_ACEOF
29802cat confdefs.h >>conftest.$ac_ext
29803cat >>conftest.$ac_ext <<_ACEOF
29804/* end confdefs.h. */
ac1cb8d3
VS
29805/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
29806 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29807#define shmat innocuous_shmat
29808
a848cd7e
SC
29809/* System header to define __stub macros and hopefully few prototypes,
29810 which can conflict with char shmat (); below.
29811 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29812 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29813
a848cd7e
SC
29814#ifdef __STDC__
29815# include <limits.h>
29816#else
29817# include <assert.h>
29818#endif
ac1cb8d3
VS
29819
29820#undef shmat
29821
a848cd7e
SC
29822/* Override any gcc2 internal prototype to avoid an error. */
29823#ifdef __cplusplus
29824extern "C"
29825{
29826#endif
29827/* We use char because int might match the return type of a gcc2
29828 builtin and then its argument prototype would still apply. */
29829char shmat ();
29830/* The GNU C library defines this for functions which it implements
29831 to always fail with ENOSYS. Some functions are actually named
29832 something starting with __ and the normal name is an alias. */
29833#if defined (__stub_shmat) || defined (__stub___shmat)
29834choke me
29835#else
29836char (*f) () = shmat;
29837#endif
29838#ifdef __cplusplus
29839}
29840#endif
29841
29842int
29843main ()
29844{
29845return f != shmat;
29846 ;
29847 return 0;
29848}
29849_ACEOF
29850rm -f conftest.$ac_objext conftest$ac_exeext
29851if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29852 (eval $ac_link) 2>conftest.er1
a848cd7e 29853 ac_status=$?
ac1cb8d3
VS
29854 grep -v '^ *+' conftest.er1 >conftest.err
29855 rm -f conftest.er1
29856 cat conftest.err >&5
a848cd7e
SC
29857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29858 (exit $ac_status); } &&
c9a66001 29859 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29861 (eval $ac_try) 2>&5
29862 ac_status=$?
29863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29864 (exit $ac_status); }; } &&
29865 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29867 (eval $ac_try) 2>&5
29868 ac_status=$?
29869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29870 (exit $ac_status); }; }; then
29871 ac_cv_func_shmat=yes
29872else
29873 echo "$as_me: failed program was:" >&5
29874sed 's/^/| /' conftest.$ac_ext >&5
29875
29876ac_cv_func_shmat=no
29877fi
ac1cb8d3
VS
29878rm -f conftest.err conftest.$ac_objext \
29879 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29880fi
29881echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
29882echo "${ECHO_T}$ac_cv_func_shmat" >&6
29883
29884 if test $ac_cv_func_shmat = no; then
29885 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
29886echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
29887if test "${ac_cv_lib_ipc_shmat+set}" = set; then
29888 echo $ECHO_N "(cached) $ECHO_C" >&6
29889else
29890 ac_check_lib_save_LIBS=$LIBS
29891LIBS="-lipc $LIBS"
29892cat >conftest.$ac_ext <<_ACEOF
29893/* confdefs.h. */
29894_ACEOF
29895cat confdefs.h >>conftest.$ac_ext
29896cat >>conftest.$ac_ext <<_ACEOF
29897/* end confdefs.h. */
29898
29899/* Override any gcc2 internal prototype to avoid an error. */
29900#ifdef __cplusplus
29901extern "C"
29902#endif
29903/* We use char because int might match the return type of a gcc2
29904 builtin and then its argument prototype would still apply. */
29905char shmat ();
29906int
29907main ()
29908{
29909shmat ();
29910 ;
29911 return 0;
29912}
29913_ACEOF
29914rm -f conftest.$ac_objext conftest$ac_exeext
29915if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29916 (eval $ac_link) 2>conftest.er1
a848cd7e 29917 ac_status=$?
ac1cb8d3
VS
29918 grep -v '^ *+' conftest.er1 >conftest.err
29919 rm -f conftest.er1
29920 cat conftest.err >&5
a848cd7e
SC
29921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29922 (exit $ac_status); } &&
c9a66001 29923 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29925 (eval $ac_try) 2>&5
29926 ac_status=$?
29927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29928 (exit $ac_status); }; } &&
29929 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29931 (eval $ac_try) 2>&5
29932 ac_status=$?
29933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29934 (exit $ac_status); }; }; then
29935 ac_cv_lib_ipc_shmat=yes
29936else
29937 echo "$as_me: failed program was:" >&5
29938sed 's/^/| /' conftest.$ac_ext >&5
29939
29940ac_cv_lib_ipc_shmat=no
29941fi
ac1cb8d3
VS
29942rm -f conftest.err conftest.$ac_objext \
29943 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29944LIBS=$ac_check_lib_save_LIBS
29945fi
29946echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
29947echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
29948if test $ac_cv_lib_ipc_shmat = yes; then
29949 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
29950fi
29951
29952 fi
29953 fi
29954
29955 # Check for libraries that X11R6 Xt/Xaw programs need.
29956 ac_save_LDFLAGS=$LDFLAGS
29957 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
29958 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
29959 # check for ICE first), but we must link in the order -lSM -lICE or
29960 # we get undefined symbols. So assume we have SM if we have ICE.
29961 # These have to be linked with before -lX11, unlike the other
29962 # libraries we check for below, so use a different variable.
29963 # John Interrante, Karl Berry
29964 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
29965echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
29966if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
29967 echo $ECHO_N "(cached) $ECHO_C" >&6
29968else
29969 ac_check_lib_save_LIBS=$LIBS
29970LIBS="-lICE $X_EXTRA_LIBS $LIBS"
29971cat >conftest.$ac_ext <<_ACEOF
29972/* confdefs.h. */
29973_ACEOF
29974cat confdefs.h >>conftest.$ac_ext
29975cat >>conftest.$ac_ext <<_ACEOF
29976/* end confdefs.h. */
29977
29978/* Override any gcc2 internal prototype to avoid an error. */
29979#ifdef __cplusplus
29980extern "C"
29981#endif
29982/* We use char because int might match the return type of a gcc2
29983 builtin and then its argument prototype would still apply. */
29984char IceConnectionNumber ();
29985int
29986main ()
29987{
29988IceConnectionNumber ();
29989 ;
29990 return 0;
29991}
29992_ACEOF
29993rm -f conftest.$ac_objext conftest$ac_exeext
29994if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29995 (eval $ac_link) 2>conftest.er1
a848cd7e 29996 ac_status=$?
ac1cb8d3
VS
29997 grep -v '^ *+' conftest.er1 >conftest.err
29998 rm -f conftest.er1
29999 cat conftest.err >&5
a848cd7e
SC
30000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30001 (exit $ac_status); } &&
c9a66001 30002 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30004 (eval $ac_try) 2>&5
30005 ac_status=$?
30006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30007 (exit $ac_status); }; } &&
30008 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30010 (eval $ac_try) 2>&5
30011 ac_status=$?
30012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30013 (exit $ac_status); }; }; then
30014 ac_cv_lib_ICE_IceConnectionNumber=yes
30015else
30016 echo "$as_me: failed program was:" >&5
30017sed 's/^/| /' conftest.$ac_ext >&5
30018
30019ac_cv_lib_ICE_IceConnectionNumber=no
30020fi
ac1cb8d3
VS
30021rm -f conftest.err conftest.$ac_objext \
30022 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30023LIBS=$ac_check_lib_save_LIBS
30024fi
30025echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30026echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
30027if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30028 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30029fi
30030
30031 LDFLAGS=$ac_save_LDFLAGS
30032
30033fi
30034
30035
30036 if test "$no_x" = "yes"; then
89d90d6d
VZ
30037 { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
30038echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
30039 { (exit 1); exit 1; }; }
a848cd7e
SC
30040 fi
30041
74b84332
VS
30042 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
30043 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
30044 AFMINSTALL=afminstall
30045 COMPILED_X_PROGRAM=0
30046
74b84332
VS
30047 fi
30048
30049 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
30050 if test "$wxUSE_NANOX" = "yes"; then
30051 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
30052echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
30053 if test "x$MICROWIN" = x ; then
30054 echo "$as_me:$LINENO: result: not found" >&5
30055echo "${ECHO_T}not found" >&6
30056 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
30057echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
30058 { (exit 1); exit 1; }; }
30059 else
30060 echo "$as_me:$LINENO: result: $MICROWIN" >&5
30061echo "${ECHO_T}$MICROWIN" >&6
30062 cat >>confdefs.h <<\_ACEOF
30063#define wxUSE_NANOX 1
30064_ACEOF
30065
30066 fi
30067 fi
30068
30069 if test "$wxUSE_UNICODE" = "yes"; then
30070
a848cd7e 30071
3ecd9f92
MW
30072if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
30073 if test -n "$ac_tool_prefix"; then
30074 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
30075set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
a848cd7e
SC
30076echo "$as_me:$LINENO: checking for $ac_word" >&5
30077echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30078if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
30079 echo $ECHO_N "(cached) $ECHO_C" >&6
30080else
30081 case $PKG_CONFIG in
30082 [\\/]* | ?:[\\/]*)
30083 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
30084 ;;
30085 *)
30086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30087for as_dir in $PATH
30088do
30089 IFS=$as_save_IFS
30090 test -z "$as_dir" && as_dir=.
30091 for ac_exec_ext in '' $ac_executable_extensions; do
30092 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30093 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30095 break 2
30096 fi
30097done
30098done
30099
a848cd7e
SC
30100 ;;
30101esac
30102fi
30103PKG_CONFIG=$ac_cv_path_PKG_CONFIG
30104
30105if test -n "$PKG_CONFIG"; then
30106 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
30107echo "${ECHO_T}$PKG_CONFIG" >&6
30108else
30109 echo "$as_me:$LINENO: result: no" >&5
30110echo "${ECHO_T}no" >&6
30111fi
30112
3ecd9f92
MW
30113fi
30114if test -z "$ac_cv_path_PKG_CONFIG"; then
30115 ac_pt_PKG_CONFIG=$PKG_CONFIG
30116 # Extract the first word of "pkg-config", so it can be a program name with args.
a848cd7e
SC
30117set dummy pkg-config; ac_word=$2
30118echo "$as_me:$LINENO: checking for $ac_word" >&5
30119echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3ecd9f92 30120if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
a848cd7e
SC
30121 echo $ECHO_N "(cached) $ECHO_C" >&6
30122else
3ecd9f92 30123 case $ac_pt_PKG_CONFIG in
a848cd7e 30124 [\\/]* | ?:[\\/]*)
3ecd9f92 30125 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
a848cd7e
SC
30126 ;;
30127 *)
30128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30129for as_dir in $PATH
30130do
30131 IFS=$as_save_IFS
30132 test -z "$as_dir" && as_dir=.
30133 for ac_exec_ext in '' $ac_executable_extensions; do
30134 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3ecd9f92 30135 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
a848cd7e
SC
30136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30137 break 2
30138 fi
30139done
30140done
30141
a848cd7e
SC
30142 ;;
30143esac
30144fi
3ecd9f92 30145ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
a848cd7e 30146
3ecd9f92
MW
30147if test -n "$ac_pt_PKG_CONFIG"; then
30148 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
30149echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
a848cd7e
SC
30150else
30151 echo "$as_me:$LINENO: result: no" >&5
30152echo "${ECHO_T}no" >&6
30153fi
30154
3ecd9f92
MW
30155 PKG_CONFIG=$ac_pt_PKG_CONFIG
30156else
30157 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
30158fi
a848cd7e 30159
3ecd9f92
MW
30160fi
30161if test -n "$PKG_CONFIG"; then
30162 _pkg_min_version=0.9.0
30163 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
30164echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
30165 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
30166 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 30167echo "${ECHO_T}yes" >&6
3ecd9f92
MW
30168 else
30169 echo "$as_me:$LINENO: result: no" >&5
30170echo "${ECHO_T}no" >&6
30171 PKG_CONFIG=""
30172 fi
30173
30174fi
30175
30176pkg_failed=no
30177echo "$as_me:$LINENO: checking for PANGOX" >&5
30178echo $ECHO_N "checking for PANGOX... $ECHO_C" >&6
a848cd7e 30179
3ecd9f92
MW
30180if test -n "$PKG_CONFIG"; then
30181 if test -n "$PANGOX_CFLAGS"; then
30182 pkg_cv_PANGOX_CFLAGS="$PANGOX_CFLAGS"
30183 else
30184 if test -n "$PKG_CONFIG" && \
30185 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
30186 ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
30187 ac_status=$?
30188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30189 (exit $ac_status); }; then
30190 pkg_cv_PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox" 2>/dev/null`
30191else
30192 pkg_failed=yes
30193fi
30194 fi
30195else
30196 pkg_failed=untried
30197fi
30198if test -n "$PKG_CONFIG"; then
30199 if test -n "$PANGOX_LIBS"; then
30200 pkg_cv_PANGOX_LIBS="$PANGOX_LIBS"
30201 else
30202 if test -n "$PKG_CONFIG" && \
30203 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
30204 ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
30205 ac_status=$?
30206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30207 (exit $ac_status); }; then
30208 pkg_cv_PANGOX_LIBS=`$PKG_CONFIG --libs "pangox" 2>/dev/null`
30209else
30210 pkg_failed=yes
30211fi
30212 fi
30213else
30214 pkg_failed=untried
30215fi
30216
30217
30218
30219if test $pkg_failed = yes; then
30220
30221if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30222 _pkg_short_errors_supported=yes
30223else
30224 _pkg_short_errors_supported=no
30225fi
30226 if test $_pkg_short_errors_supported = yes; then
30227 PANGOX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangox"`
30228 else
30229 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
a848cd7e 30230 fi
3ecd9f92
MW
30231 # Put the nasty error message in config.log where it belongs
30232 echo "$PANGOX_PKG_ERRORS" >&5
a848cd7e
SC
30233
30234
3ecd9f92
MW
30235 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
30236echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
30237 { (exit 1); exit 1; }; }
a848cd7e 30238
a848cd7e 30239
3ecd9f92 30240elif test $pkg_failed = untried; then
a848cd7e 30241
3ecd9f92
MW
30242 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
30243echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
30244 { (exit 1); exit 1; }; }
30245
30246
30247else
30248 PANGOX_CFLAGS=$pkg_cv_PANGOX_CFLAGS
30249 PANGOX_LIBS=$pkg_cv_PANGOX_LIBS
30250 echo "$as_me:$LINENO: result: yes" >&5
30251echo "${ECHO_T}yes" >&6
30252
30253 CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
30254 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
30255
30256fi
30257
30258pkg_failed=no
30259echo "$as_me:$LINENO: checking for PANGOFT2" >&5
30260echo $ECHO_N "checking for PANGOFT2... $ECHO_C" >&6
30261
30262if test -n "$PKG_CONFIG"; then
30263 if test -n "$PANGOFT2_CFLAGS"; then
30264 pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS"
30265 else
30266 if test -n "$PKG_CONFIG" && \
30267 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
30268 ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
30269 ac_status=$?
30270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30271 (exit $ac_status); }; then
30272 pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
30273else
30274 pkg_failed=yes
30275fi
30276 fi
30277else
30278 pkg_failed=untried
30279fi
30280if test -n "$PKG_CONFIG"; then
30281 if test -n "$PANGOFT2_LIBS"; then
30282 pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS"
30283 else
30284 if test -n "$PKG_CONFIG" && \
30285 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
30286 ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
30287 ac_status=$?
30288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30289 (exit $ac_status); }; then
30290 pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
30291else
30292 pkg_failed=yes
30293fi
30294 fi
30295else
30296 pkg_failed=untried
30297fi
30298
30299
30300
30301if test $pkg_failed = yes; then
30302
30303if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30304 _pkg_short_errors_supported=yes
30305else
30306 _pkg_short_errors_supported=no
30307fi
30308 if test $_pkg_short_errors_supported = yes; then
30309 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2"`
30310 else
30311 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
30312 fi
30313 # Put the nasty error message in config.log where it belongs
30314 echo "$PANGOFT2_PKG_ERRORS" >&5
a848cd7e 30315
a848cd7e
SC
30316
30317 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
30318echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
30319 wxUSE_PRINTING_ARCHITECTURE="no"
30320
30321
3ecd9f92 30322elif test $pkg_failed = untried; then
a848cd7e 30323
3ecd9f92
MW
30324 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
30325echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
30326 wxUSE_PRINTING_ARCHITECTURE="no"
a848cd7e 30327
a848cd7e 30328
a848cd7e 30329else
3ecd9f92
MW
30330 PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS
30331 PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS
30332 echo "$as_me:$LINENO: result: yes" >&5
30333echo "${ECHO_T}yes" >&6
30334
30335 CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
30336 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
a848cd7e 30337
a848cd7e 30338fi
3ecd9f92
MW
30339
30340pkg_failed=no
30341echo "$as_me:$LINENO: checking for PANGOXFT" >&5
30342echo $ECHO_N "checking for PANGOXFT... $ECHO_C" >&6
a848cd7e
SC
30343
30344if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
30345 if test -n "$PANGOXFT_CFLAGS"; then
30346 pkg_cv_PANGOXFT_CFLAGS="$PANGOXFT_CFLAGS"
30347 else
30348 if test -n "$PKG_CONFIG" && \
30349 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
30350 ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
30351 ac_status=$?
30352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30353 (exit $ac_status); }; then
30354 pkg_cv_PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null`
a848cd7e 30355else
3ecd9f92
MW
30356 pkg_failed=yes
30357fi
30358 fi
30359else
30360 pkg_failed=untried
30361fi
30362if test -n "$PKG_CONFIG"; then
30363 if test -n "$PANGOXFT_LIBS"; then
30364 pkg_cv_PANGOXFT_LIBS="$PANGOXFT_LIBS"
30365 else
30366 if test -n "$PKG_CONFIG" && \
30367 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
30368 ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
30369 ac_status=$?
30370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30371 (exit $ac_status); }; then
30372 pkg_cv_PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null`
30373else
30374 pkg_failed=yes
30375fi
30376 fi
30377else
30378 pkg_failed=untried
a848cd7e
SC
30379fi
30380
a848cd7e 30381
a848cd7e 30382
3ecd9f92 30383if test $pkg_failed = yes; then
a848cd7e 30384
3ecd9f92
MW
30385if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30386 _pkg_short_errors_supported=yes
30387else
30388 _pkg_short_errors_supported=no
30389fi
30390 if test $_pkg_short_errors_supported = yes; then
30391 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoxft"`
30392 else
30393 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
a848cd7e 30394 fi
3ecd9f92
MW
30395 # Put the nasty error message in config.log where it belongs
30396 echo "$PANGOXFT_PKG_ERRORS" >&5
a848cd7e
SC
30397
30398
3ecd9f92
MW
30399 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
30400echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
30401
a848cd7e 30402
3ecd9f92 30403elif test $pkg_failed = untried; then
a848cd7e 30404
3ecd9f92
MW
30405 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
30406echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
30407
30408
30409else
30410 PANGOXFT_CFLAGS=$pkg_cv_PANGOXFT_CFLAGS
30411 PANGOXFT_LIBS=$pkg_cv_PANGOXFT_LIBS
30412 echo "$as_me:$LINENO: result: yes" >&5
30413echo "${ECHO_T}yes" >&6
a848cd7e 30414
4ae1af05
MB
30415 cat >>confdefs.h <<\_ACEOF
30416#define HAVE_PANGO_XFT 1
30417_ACEOF
30418
c92ad099 30419 CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
a848cd7e
SC
30420 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
30421
3ecd9f92 30422fi
e56f4f9e 30423 save_CXXFLAGS="$CXXFLAGS"
304205f1 30424 save_LIBS="$LIBS"
e56f4f9e 30425 CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
304205f1
VS
30426 LIBS="$LIBS $PANGOX_LIBS"
30427
30428for ac_func in pango_font_family_is_monospace
30429do
30430as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30431echo "$as_me:$LINENO: checking for $ac_func" >&5
30432echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30433if eval "test \"\${$as_ac_var+set}\" = set"; then
30434 echo $ECHO_N "(cached) $ECHO_C" >&6
30435else
30436 cat >conftest.$ac_ext <<_ACEOF
30437/* confdefs.h. */
30438_ACEOF
30439cat confdefs.h >>conftest.$ac_ext
30440cat >>conftest.$ac_ext <<_ACEOF
30441/* end confdefs.h. */
30442/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30443 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30444#define $ac_func innocuous_$ac_func
30445
30446/* System header to define __stub macros and hopefully few prototypes,
30447 which can conflict with char $ac_func (); below.
30448 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30449 <limits.h> exists even on freestanding compilers. */
30450
30451#ifdef __STDC__
30452# include <limits.h>
30453#else
30454# include <assert.h>
30455#endif
30456
30457#undef $ac_func
30458
30459/* Override any gcc2 internal prototype to avoid an error. */
30460#ifdef __cplusplus
30461extern "C"
30462{
30463#endif
30464/* We use char because int might match the return type of a gcc2
30465 builtin and then its argument prototype would still apply. */
30466char $ac_func ();
30467/* The GNU C library defines this for functions which it implements
30468 to always fail with ENOSYS. Some functions are actually named
30469 something starting with __ and the normal name is an alias. */
30470#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30471choke me
30472#else
30473char (*f) () = $ac_func;
30474#endif
30475#ifdef __cplusplus
30476}
30477#endif
30478
30479int
30480main ()
30481{
30482return f != $ac_func;
30483 ;
30484 return 0;
30485}
30486_ACEOF
30487rm -f conftest.$ac_objext conftest$ac_exeext
30488if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30489 (eval $ac_link) 2>conftest.er1
30490 ac_status=$?
30491 grep -v '^ *+' conftest.er1 >conftest.err
30492 rm -f conftest.er1
30493 cat conftest.err >&5
30494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30495 (exit $ac_status); } &&
c9a66001 30496 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
304205f1
VS
30497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30498 (eval $ac_try) 2>&5
30499 ac_status=$?
30500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30501 (exit $ac_status); }; } &&
30502 { ac_try='test -s conftest$ac_exeext'
30503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30504 (eval $ac_try) 2>&5
30505 ac_status=$?
30506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30507 (exit $ac_status); }; }; then
30508 eval "$as_ac_var=yes"
30509else
30510 echo "$as_me: failed program was:" >&5
30511sed 's/^/| /' conftest.$ac_ext >&5
30512
30513eval "$as_ac_var=no"
30514fi
30515rm -f conftest.err conftest.$ac_objext \
30516 conftest$ac_exeext conftest.$ac_ext
30517fi
30518echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30519echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30520if test `eval echo '${'$as_ac_var'}'` = yes; then
30521 cat >>confdefs.h <<_ACEOF
30522#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30523_ACEOF
30524
30525fi
30526done
30527
e56f4f9e 30528 CXXFLAGS="$save_CXXFLAGS"
304205f1 30529 LIBS="$save_LIBS"
a848cd7e
SC
30530 fi
30531
30532 wxUSE_UNIVERSAL="yes"
30533
30534 if test "$wxUSE_NANOX" = "yes"; then
30535 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
30536 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"
30537 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
30538 else
30539 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
30540 fi
30541
a848cd7e
SC
30542 TOOLKIT=X11
30543 GUIDIST=X11_DIST
30544 fi
30545
30546 if test "$wxUSE_MOTIF" = 1; then
0a08f02a
MB
30547 if test "$wxUSE_UNICODE" = "yes"; then
30548 { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
30549echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
30550 { (exit 1); exit 1; }; }
30551 fi
30552
74b84332
VS
30553 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
30554echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 30555
74b84332
VS
30556ac_find_includes=
30557for ac_dir in $SEARCH_INCLUDE /usr/include;
30558 do
30559 if test -f "$ac_dir/Xm/Xm.h"; then
30560 ac_find_includes=$ac_dir
30561 break
30562 fi
30563 done
a848cd7e 30564
74b84332
VS
30565 if test "$ac_find_includes" != "" ; then
30566 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
30567echo "${ECHO_T}found in $ac_find_includes" >&6
30568
30569 if test "x$ac_find_includes" = "x/usr/include"; then
30570 ac_path_to_include=""
30571 else
30572 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
30573 result=$?
30574 if test $result = 0; then
30575 ac_path_to_include=""
30576 else
30577 ac_path_to_include=" -I$ac_find_includes"
30578 fi
a848cd7e
SC
30579 fi
30580
74b84332
VS
30581 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
30582 else
e56f4f9e
VZ
30583 save_CXXFLAGS=$CXXFLAGS
30584 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
e051b34e 30585
74b84332 30586 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
30587/* confdefs.h. */
30588_ACEOF
30589cat confdefs.h >>conftest.$ac_ext
30590cat >>conftest.$ac_ext <<_ACEOF
30591/* end confdefs.h. */
30592
74b84332
VS
30593 #include <Xm/Xm.h>
30594
a848cd7e
SC
30595int
30596main ()
30597{
30598
74b84332
VS
30599 int version;
30600 version = xmUseVersion;
30601
a848cd7e
SC
30602 ;
30603 return 0;
30604}
30605_ACEOF
74b84332
VS
30606rm -f conftest.$ac_objext
30607if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30608 (eval $ac_compile) 2>conftest.er1
a848cd7e 30609 ac_status=$?
ac1cb8d3
VS
30610 grep -v '^ *+' conftest.er1 >conftest.err
30611 rm -f conftest.er1
30612 cat conftest.err >&5
a848cd7e
SC
30613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30614 (exit $ac_status); } &&
c9a66001 30615 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30617 (eval $ac_try) 2>&5
30618 ac_status=$?
30619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30620 (exit $ac_status); }; } &&
74b84332 30621 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30623 (eval $ac_try) 2>&5
30624 ac_status=$?
30625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30626 (exit $ac_status); }; }; then
74b84332
VS
30627
30628 echo "$as_me:$LINENO: result: found in default search path" >&5
30629echo "${ECHO_T}found in default search path" >&6
30630 COMPILED_X_PROGRAM=1
30631
a848cd7e
SC
30632else
30633 echo "$as_me: failed program was:" >&5
30634sed 's/^/| /' conftest.$ac_ext >&5
30635
a848cd7e 30636
74b84332
VS
30637 echo "$as_me:$LINENO: result: no" >&5
30638echo "${ECHO_T}no" >&6
e051b34e
MW
30639 { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
30640echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
74b84332 30641 { (exit 1); exit 1; }; }
a848cd7e 30642
a848cd7e 30643
a848cd7e 30644fi
74b84332 30645rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e051b34e 30646
e56f4f9e 30647 CXXFLAGS=$save_CXXFLAGS
74b84332
VS
30648 fi
30649
0ad5d837
VZ
30650
30651 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
74b84332
VS
30652echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
30653
0ad5d837
VZ
30654 ac_find_libraries=
30655 for ac_dir in $SEARCH_LIB;
74b84332 30656 do
3eca31dc 30657 for ac_extension in a so sl dylib dll.a; do
74b84332
VS
30658 if test -f "$ac_dir/libXm.$ac_extension"; then
30659 ac_find_libraries=$ac_dir
30660 break 2
a848cd7e 30661 fi
74b84332
VS
30662 done
30663 done
a848cd7e 30664
0ad5d837
VZ
30665
30666 if test "x$ac_find_libraries" != "x" ; then
30667 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
30668echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e 30669
74b84332 30670
0ad5d837 30671 if test "$ac_find_libraries" = "default location"; then
74b84332 30672 ac_path_to_link=""
a848cd7e 30673 else
0ad5d837
VZ
30674 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
30675 result=$?
30676 if test $result = 0; then
30677 ac_path_to_link=""
30678 else
30679 ac_path_to_link=" -L$ac_find_libraries"
30680 fi
74b84332
VS
30681 fi
30682
0ad5d837
VZ
30683 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
30684 else
e56f4f9e
VZ
30685 save_CXXFLAGS=$CXXFLAGS
30686 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
6f9cf1e6
MW
30687 save_LIBS="$LIBS"
30688 LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
74b84332 30689
0ad5d837 30690 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
30691/* confdefs.h. */
30692_ACEOF
30693cat confdefs.h >>conftest.$ac_ext
30694cat >>conftest.$ac_ext <<_ACEOF
30695/* end confdefs.h. */
30696
0ad5d837 30697 #include <Xm/Xm.h>
74b84332 30698
a848cd7e
SC
30699int
30700main ()
30701{
74b84332 30702
0ad5d837
VZ
30703 int version;
30704 version = xmUseVersion;
74b84332 30705
a848cd7e
SC
30706 ;
30707 return 0;
30708}
30709_ACEOF
0ad5d837
VZ
30710rm -f conftest.$ac_objext conftest$ac_exeext
30711if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30712 (eval $ac_link) 2>conftest.er1
a848cd7e 30713 ac_status=$?
ac1cb8d3
VS
30714 grep -v '^ *+' conftest.er1 >conftest.err
30715 rm -f conftest.er1
30716 cat conftest.err >&5
a848cd7e
SC
30717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30718 (exit $ac_status); } &&
c9a66001 30719 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30721 (eval $ac_try) 2>&5
30722 ac_status=$?
30723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30724 (exit $ac_status); }; } &&
0ad5d837 30725 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30727 (eval $ac_try) 2>&5
30728 ac_status=$?
30729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30730 (exit $ac_status); }; }; then
74b84332 30731
0ad5d837 30732 echo "$as_me:$LINENO: result: found in default search path" >&5
74b84332 30733echo "${ECHO_T}found in default search path" >&6
0ad5d837 30734 COMPILED_X_PROGRAM=1
74b84332 30735
a848cd7e
SC
30736else
30737 echo "$as_me: failed program was:" >&5
30738sed 's/^/| /' conftest.$ac_ext >&5
30739
74b84332 30740
6f9cf1e6 30741 echo "$as_me:$LINENO: result: no" >&5
74b84332 30742echo "${ECHO_T}no" >&6
6f9cf1e6 30743 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
74b84332
VS
30744echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
30745 { (exit 1); exit 1; }; }
30746
30747
30748fi
0ad5d837
VZ
30749rm -f conftest.err conftest.$ac_objext \
30750 conftest$ac_exeext conftest.$ac_ext
74b84332 30751
e56f4f9e 30752 CXXFLAGS=$save_CXXFLAGS
6f9cf1e6 30753 LIBS="$save_LIBS"
74b84332
VS
30754 fi
30755
30756 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
30757echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
30758 libp_link=""
30759 libsm_ice_link=""
30760 libs_found=0
30761 for libp in "" " -lXp"; do
30762 if test "$libs_found" = "0"; then
30763 for libsm_ice in "" " -lSM -lICE"; do
30764 if test "$libs_found" = "0"; then
30765 save_LIBS="$LIBS"
30766 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
e56f4f9e
VZ
30767 save_CXXFLAGS=$CXXFLAGS
30768 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
74b84332
VS
30769
30770 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
30771/* confdefs.h. */
30772_ACEOF
30773cat confdefs.h >>conftest.$ac_ext
30774cat >>conftest.$ac_ext <<_ACEOF
30775/* end confdefs.h. */
30776
74b84332
VS
30777 #include <Xm/Xm.h>
30778 #include <Xm/List.h>
30779
a848cd7e
SC
30780int
30781main ()
30782{
74b84332
VS
30783
30784 XmString string = NULL;
30785 Widget w = NULL;
30786 int position = 0;
30787 XmListAddItem(w, string, position);
30788
a848cd7e
SC
30789 ;
30790 return 0;
30791}
30792_ACEOF
30793rm -f conftest.$ac_objext conftest$ac_exeext
30794if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30795 (eval $ac_link) 2>conftest.er1
a848cd7e 30796 ac_status=$?
ac1cb8d3
VS
30797 grep -v '^ *+' conftest.er1 >conftest.err
30798 rm -f conftest.er1
30799 cat conftest.err >&5
a848cd7e
SC
30800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30801 (exit $ac_status); } &&
c9a66001 30802 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30804 (eval $ac_try) 2>&5
30805 ac_status=$?
30806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30807 (exit $ac_status); }; } &&
30808 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30810 (eval $ac_try) 2>&5
30811 ac_status=$?
30812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30813 (exit $ac_status); }; }; then
30814
30815 libp_link="$libp"
30816 libsm_ice_link="$libsm_ice"
30817 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
30818echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
30819 libs_found=1
30820
30821else
30822 echo "$as_me: failed program was:" >&5
30823sed 's/^/| /' conftest.$ac_ext >&5
30824
30825
30826
30827fi
ac1cb8d3
VS
30828rm -f conftest.err conftest.$ac_objext \
30829 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30830
30831 LIBS="$save_LIBS"
e56f4f9e 30832 CXXFLAGS=$save_CXXFLAGS
a848cd7e
SC
30833 fi
30834 done
30835 fi
30836 done
30837
30838 if test "$libs_found" = "0"; then
30839 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
30840echo "${ECHO_T}can't find the right libraries" >&6
30841 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
30842echo "$as_me: error: can't link a simple motif program" >&2;}
30843 { (exit 1); exit 1; }; }
30844 fi
30845
62fa8b3a
MW
30846 echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
30847echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6
30848if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
30849 echo $ECHO_N "(cached) $ECHO_C" >&6
30850else
30851 ac_check_lib_save_LIBS=$LIBS
30852LIBS="-lSgm $LIBS"
30853cat >conftest.$ac_ext <<_ACEOF
30854/* confdefs.h. */
30855_ACEOF
30856cat confdefs.h >>conftest.$ac_ext
30857cat >>conftest.$ac_ext <<_ACEOF
30858/* end confdefs.h. */
30859
30860/* Override any gcc2 internal prototype to avoid an error. */
30861#ifdef __cplusplus
30862extern "C"
30863#endif
30864/* We use char because int might match the return type of a gcc2
30865 builtin and then its argument prototype would still apply. */
30866char SgCreateList ();
30867int
30868main ()
30869{
30870SgCreateList ();
30871 ;
30872 return 0;
30873}
30874_ACEOF
30875rm -f conftest.$ac_objext conftest$ac_exeext
30876if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30877 (eval $ac_link) 2>conftest.er1
30878 ac_status=$?
30879 grep -v '^ *+' conftest.er1 >conftest.err
30880 rm -f conftest.er1
30881 cat conftest.err >&5
30882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30883 (exit $ac_status); } &&
c9a66001 30884 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
30885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30886 (eval $ac_try) 2>&5
30887 ac_status=$?
30888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30889 (exit $ac_status); }; } &&
30890 { ac_try='test -s conftest$ac_exeext'
30891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30892 (eval $ac_try) 2>&5
30893 ac_status=$?
30894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30895 (exit $ac_status); }; }; then
30896 ac_cv_lib_Sgm_SgCreateList=yes
30897else
30898 echo "$as_me: failed program was:" >&5
30899sed 's/^/| /' conftest.$ac_ext >&5
30900
30901ac_cv_lib_Sgm_SgCreateList=no
30902fi
30903rm -f conftest.err conftest.$ac_objext \
30904 conftest$ac_exeext conftest.$ac_ext
30905LIBS=$ac_check_lib_save_LIBS
30906fi
30907echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
30908echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6
30909if test $ac_cv_lib_Sgm_SgCreateList = yes; then
30910 libsgm_link=" -lSgm"
30911fi
30912
30913
e56f4f9e
VZ
30914 save_CXXFLAGS=$CXXFLAGS
30915 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
0ad5d837 30916
a848cd7e
SC
30917 echo "$as_me:$LINENO: checking for Motif 2" >&5
30918echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
0ad5d837
VZ
30919if test "${wx_cv_lib_motif2+set}" = set; then
30920 echo $ECHO_N "(cached) $ECHO_C" >&6
30921else
30922 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
30923/* confdefs.h. */
30924_ACEOF
30925cat confdefs.h >>conftest.$ac_ext
30926cat >>conftest.$ac_ext <<_ACEOF
30927/* end confdefs.h. */
30928
0ad5d837 30929 #include <Xm/Xm.h>
a848cd7e
SC
30930
30931int
30932main ()
30933{
30934
0ad5d837
VZ
30935 #if XmVersion < 2000
30936 Not Motif 2
30937 #endif
a848cd7e
SC
30938
30939 ;
30940 return 0;
30941}
30942_ACEOF
30943rm -f conftest.$ac_objext
30944if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30945 (eval $ac_compile) 2>conftest.er1
a848cd7e 30946 ac_status=$?
ac1cb8d3
VS
30947 grep -v '^ *+' conftest.er1 >conftest.err
30948 rm -f conftest.er1
30949 cat conftest.err >&5
a848cd7e
SC
30950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30951 (exit $ac_status); } &&
c9a66001 30952 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30954 (eval $ac_try) 2>&5
30955 ac_status=$?
30956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30957 (exit $ac_status); }; } &&
30958 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30960 (eval $ac_try) 2>&5
30961 ac_status=$?
30962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30963 (exit $ac_status); }; }; then
0ad5d837 30964 wx_cv_lib_motif2="yes"
a848cd7e
SC
30965else
30966 echo "$as_me: failed program was:" >&5
30967sed 's/^/| /' conftest.$ac_ext >&5
30968
0ad5d837
VZ
30969wx_cv_lib_motif2="no"
30970fi
30971rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30972fi
30973echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
30974echo "${ECHO_T}$wx_cv_lib_motif2" >&6
30975 if test "$wx_cv_lib_motif2" = "yes"; then
30976 cat >>confdefs.h <<\_ACEOF
30977#define __WXMOTIF20__ 1
30978_ACEOF
a848cd7e 30979
0ad5d837
VZ
30980 else
30981 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
30982#define __WXMOTIF20__ 0
30983_ACEOF
30984
0ad5d837 30985 fi
2113bc77
MW
30986
30987 echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
30988echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6
0ad5d837
VZ
30989if test "${wx_cv_lib_lesstif+set}" = set; then
30990 echo $ECHO_N "(cached) $ECHO_C" >&6
30991else
30992 cat >conftest.$ac_ext <<_ACEOF
2113bc77
MW
30993/* confdefs.h. */
30994_ACEOF
30995cat confdefs.h >>conftest.$ac_ext
30996cat >>conftest.$ac_ext <<_ACEOF
30997/* end confdefs.h. */
30998
0ad5d837 30999 #include <Xm/Xm.h>
2113bc77
MW
31000
31001int
31002main ()
31003{
31004
0ad5d837
VZ
31005 #if !defined(LesstifVersion) || LesstifVersion <= 0
31006 Not Lesstif
31007 #endif
2113bc77
MW
31008
31009 ;
31010 return 0;
31011}
31012_ACEOF
31013rm -f conftest.$ac_objext
31014if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31015 (eval $ac_compile) 2>conftest.er1
31016 ac_status=$?
31017 grep -v '^ *+' conftest.er1 >conftest.err
31018 rm -f conftest.er1
31019 cat conftest.err >&5
31020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31021 (exit $ac_status); } &&
c9a66001 31022 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2113bc77
MW
31023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31024 (eval $ac_try) 2>&5
31025 ac_status=$?
31026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31027 (exit $ac_status); }; } &&
31028 { ac_try='test -s conftest.$ac_objext'
31029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31030 (eval $ac_try) 2>&5
31031 ac_status=$?
31032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31033 (exit $ac_status); }; }; then
0ad5d837 31034 wx_cv_lib_lesstif="yes"
2113bc77
MW
31035else
31036 echo "$as_me: failed program was:" >&5
31037sed 's/^/| /' conftest.$ac_ext >&5
31038
0ad5d837
VZ
31039wx_cv_lib_lesstif="no"
31040fi
31041rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2113bc77 31042
0ad5d837
VZ
31043fi
31044echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
31045echo "${ECHO_T}$wx_cv_lib_lesstif" >&6
31046 if test "$wx_cv_lib_lesstif" = "yes"; then
31047 cat >>confdefs.h <<\_ACEOF
31048#define __WXLESSTIF__ 1
31049_ACEOF
31050
31051 else
31052 cat >>confdefs.h <<\_ACEOF
2113bc77
MW
31053#define __WXLESSTIF__ 0
31054_ACEOF
31055
0ad5d837 31056 fi
2113bc77 31057
e56f4f9e 31058 CXXFLAGS=$save_CXXFLAGS
a848cd7e 31059
62fa8b3a 31060 GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
31061 TOOLKIT=MOTIF
31062 GUIDIST=MOTIF_DIST
31063 fi
31064
74b84332 31065 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
31066 if test "$wxUSE_LIBXPM" = "sys"; then
31067 echo "$as_me:$LINENO: checking for Xpm library" >&5
31068echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
31069
0ad5d837
VZ
31070 ac_find_libraries=
31071 for ac_dir in $SEARCH_LIB;
a848cd7e 31072 do
3eca31dc 31073 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
31074 if test -f "$ac_dir/libXpm.$ac_extension"; then
31075 ac_find_libraries=$ac_dir
31076 break 2
31077 fi
31078 done
31079 done
31080
31081 if test "$ac_find_libraries" != "" ; then
31082
0ad5d837 31083 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31084 ac_path_to_link=""
31085 else
0ad5d837
VZ
31086 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
31087 result=$?
31088 if test $result = 0; then
31089 ac_path_to_link=""
31090 else
31091 ac_path_to_link=" -L$ac_find_libraries"
31092 fi
a848cd7e
SC
31093 fi
31094
31095 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
0ad5d837
VZ
31096 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
31097echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
31098
31099 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
31100echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
31101if test "${wx_cv_x11_xpm_h+set}" = set; then
31102 echo $ECHO_N "(cached) $ECHO_C" >&6
31103else
31104
e56f4f9e
VZ
31105 save_CXXFLAGS=$CXXFLAGS
31106 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
a848cd7e
SC
31107
31108 cat >conftest.$ac_ext <<_ACEOF
31109/* confdefs.h. */
31110_ACEOF
31111cat confdefs.h >>conftest.$ac_ext
31112cat >>conftest.$ac_ext <<_ACEOF
31113/* end confdefs.h. */
31114
31115 #include <X11/xpm.h>
31116
31117int
31118main ()
31119{
31120
31121 int version;
31122 version = XpmLibraryVersion();
31123
31124 ;
31125 return 0;
31126}
31127_ACEOF
31128rm -f conftest.$ac_objext
31129if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31130 (eval $ac_compile) 2>conftest.er1
a848cd7e 31131 ac_status=$?
ac1cb8d3
VS
31132 grep -v '^ *+' conftest.er1 >conftest.err
31133 rm -f conftest.er1
31134 cat conftest.err >&5
a848cd7e
SC
31135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31136 (exit $ac_status); } &&
c9a66001 31137 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31139 (eval $ac_try) 2>&5
31140 ac_status=$?
31141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31142 (exit $ac_status); }; } &&
31143 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31145 (eval $ac_try) 2>&5
31146 ac_status=$?
31147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31148 (exit $ac_status); }; }; then
31149 wx_cv_x11_xpm_h=yes
31150else
31151 echo "$as_me: failed program was:" >&5
31152sed 's/^/| /' conftest.$ac_ext >&5
31153
31154wx_cv_x11_xpm_h=no
31155
31156fi
ac1cb8d3 31157rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 31158
e56f4f9e 31159 CXXFLAGS=$save_CXXFLAGS
a848cd7e
SC
31160
31161
31162fi
31163echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
31164echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
31165
31166 if test $wx_cv_x11_xpm_h = "yes"; then
31167 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
31168 cat >>confdefs.h <<\_ACEOF
31169#define wxHAVE_LIB_XPM 1
31170_ACEOF
31171
31172 else
31173 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
31174echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
31175 fi
31176 fi
31177
31178 fi
31179
31180 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
31181echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
31182if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
31183 echo $ECHO_N "(cached) $ECHO_C" >&6
31184else
31185 ac_check_lib_save_LIBS=$LIBS
31186LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
31187cat >conftest.$ac_ext <<_ACEOF
31188/* confdefs.h. */
31189_ACEOF
31190cat confdefs.h >>conftest.$ac_ext
31191cat >>conftest.$ac_ext <<_ACEOF
31192/* end confdefs.h. */
31193
31194/* Override any gcc2 internal prototype to avoid an error. */
31195#ifdef __cplusplus
31196extern "C"
31197#endif
31198/* We use char because int might match the return type of a gcc2
31199 builtin and then its argument prototype would still apply. */
31200char XShapeQueryExtension ();
31201int
31202main ()
31203{
31204XShapeQueryExtension ();
31205 ;
31206 return 0;
31207}
31208_ACEOF
31209rm -f conftest.$ac_objext conftest$ac_exeext
31210if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31211 (eval $ac_link) 2>conftest.er1
a848cd7e 31212 ac_status=$?
ac1cb8d3
VS
31213 grep -v '^ *+' conftest.er1 >conftest.err
31214 rm -f conftest.er1
31215 cat conftest.err >&5
a848cd7e
SC
31216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31217 (exit $ac_status); } &&
c9a66001 31218 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31220 (eval $ac_try) 2>&5
31221 ac_status=$?
31222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31223 (exit $ac_status); }; } &&
31224 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31226 (eval $ac_try) 2>&5
31227 ac_status=$?
31228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31229 (exit $ac_status); }; }; then
31230 ac_cv_lib_Xext_XShapeQueryExtension=yes
31231else
31232 echo "$as_me: failed program was:" >&5
31233sed 's/^/| /' conftest.$ac_ext >&5
31234
31235ac_cv_lib_Xext_XShapeQueryExtension=no
31236fi
ac1cb8d3
VS
31237rm -f conftest.err conftest.$ac_objext \
31238 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31239LIBS=$ac_check_lib_save_LIBS
31240fi
31241echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
31242echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
31243if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
31244
31245 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
31246 wxHAVE_XEXT_LIB=1
31247
31248fi
31249
31250
31251 if test "$wxHAVE_XEXT_LIB" = 1; then
e56f4f9e
VZ
31252 save_CXXFLAGS="$CXXFLAGS"
31253 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
a848cd7e
SC
31254
31255 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
31256echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
31257 cat >conftest.$ac_ext <<_ACEOF
31258/* confdefs.h. */
31259_ACEOF
31260cat confdefs.h >>conftest.$ac_ext
31261cat >>conftest.$ac_ext <<_ACEOF
31262/* end confdefs.h. */
31263
31264 #include <X11/Xlib.h>
31265 #include <X11/extensions/shape.h>
31266
31267int
31268main ()
31269{
31270
31271 int dummy1, dummy2;
31272 XShapeQueryExtension((Display*)NULL,
31273 (int*)NULL, (int*)NULL);
31274
31275 ;
31276 return 0;
31277}
31278_ACEOF
31279rm -f conftest.$ac_objext
31280if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31281 (eval $ac_compile) 2>conftest.er1
a848cd7e 31282 ac_status=$?
ac1cb8d3
VS
31283 grep -v '^ *+' conftest.er1 >conftest.err
31284 rm -f conftest.er1
31285 cat conftest.err >&5
a848cd7e
SC
31286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31287 (exit $ac_status); } &&
c9a66001 31288 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31290 (eval $ac_try) 2>&5
31291 ac_status=$?
31292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31293 (exit $ac_status); }; } &&
31294 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31296 (eval $ac_try) 2>&5
31297 ac_status=$?
31298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31299 (exit $ac_status); }; }; then
31300
31301 cat >>confdefs.h <<\_ACEOF
31302#define HAVE_XSHAPE 1
31303_ACEOF
31304
31305 echo "$as_me:$LINENO: result: found" >&5
31306echo "${ECHO_T}found" >&6
31307
31308else
31309 echo "$as_me: failed program was:" >&5
31310sed 's/^/| /' conftest.$ac_ext >&5
31311
31312
31313 echo "$as_me:$LINENO: result: not found" >&5
31314echo "${ECHO_T}not found" >&6
31315
31316fi
ac1cb8d3 31317rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e56f4f9e 31318 CXXFLAGS="$save_CXXFLAGS"
a848cd7e
SC
31319
31320 fi
31321 fi
31322
31323 if test "$wxUSE_MAC" = 1; then
31324 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
31325echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
31326 if test "$GCC" = yes; then
31327 echo "$as_me:$LINENO: result: gcc" >&5
31328echo "${ECHO_T}gcc" >&6
31329 CPPFLAGS_PASCAL="-fpascal-strings"
31330 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
31331 echo "$as_me:$LINENO: result: xlc" >&5
31332echo "${ECHO_T}xlc" >&6
31333 CPPFLAGS_PASCAL="-qmacpstr"
31334 else
31335 echo "$as_me:$LINENO: result: none" >&5
31336echo "${ECHO_T}none" >&6
31337 fi
31338
1e9e8aba 31339 if test "x$wxUSE_UNIX" = "xyes"; then
c92ad099 31340 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS"
1e9e8aba 31341 else
c92ad099 31342 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS"
1e9e8aba 31343 fi
a848cd7e 31344
a848cd7e
SC
31345 TOOLKIT=MAC
31346 GUIDIST=MACX_DIST
dd21ced8 31347 WXBASEPORT="_carbon"
a848cd7e
SC
31348 fi
31349
31350 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
31351 TOOLKIT=COCOA
31352 GUIDIST=COCOA_DIST
31353 fi
31354
31355 if test "$wxUSE_PM" = 1; then
31356 TOOLKIT=PM
de59c161
RD
31357 GUIDIST=PM_DIST
31358 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
31359echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
31360if test "${wx_cv_spbcdata+set}" = set; then
31361 echo $ECHO_N "(cached) $ECHO_C" >&6
31362else
31363
31364 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
31365/* confdefs.h. */
31366_ACEOF
31367cat confdefs.h >>conftest.$ac_ext
31368cat >>conftest.$ac_ext <<_ACEOF
31369/* end confdefs.h. */
31370
31371 #define INCL_PM
31372 #include <os2.h>
31373
31374int
31375main ()
31376{
31377
31378 SPBCDATA test;
31379
31380 ;
31381 return 0;
31382}
31383_ACEOF
31384rm -f conftest.$ac_objext
31385if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31386 (eval $ac_compile) 2>conftest.er1
de59c161 31387 ac_status=$?
ac1cb8d3
VS
31388 grep -v '^ *+' conftest.er1 >conftest.err
31389 rm -f conftest.er1
31390 cat conftest.err >&5
de59c161
RD
31391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31392 (exit $ac_status); } &&
c9a66001 31393 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31395 (eval $ac_try) 2>&5
31396 ac_status=$?
31397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31398 (exit $ac_status); }; } &&
31399 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
31400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31401 (eval $ac_try) 2>&5
31402 ac_status=$?
31403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31404 (exit $ac_status); }; }; then
31405 wx_cv_spbcdata=yes
31406else
31407 echo "$as_me: failed program was:" >&5
31408sed 's/^/| /' conftest.$ac_ext >&5
31409
31410wx_cv_spbcdata=no
31411
31412fi
ac1cb8d3 31413rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
31414
31415
31416fi
31417echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
31418echo "${ECHO_T}$wx_cv_spbcdata" >&6
31419
31420 if test $wx_cv_spbcdata = "yes"; then
31421 cat >>confdefs.h <<\_ACEOF
31422#define HAVE_SPBCDATA 1
31423_ACEOF
31424
31425 fi
a848cd7e
SC
31426 fi
31427
31428 if test "$TOOLKIT" = "PM" ; then
31429 TOOLKIT_DIR="os2"
31430 else
31431 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
31432 fi
31433
a848cd7e 31434 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
31435 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
31436 WIDGET_SET=univ
a848cd7e
SC
31437 fi
31438
31439 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
31440 DISTDIR="wx\$(TOOLKIT)"
31441else
31442 USE_GUI=0
31443
31444 TOOLKIT_DIR="base"
31445
31446 if test "$USE_WIN32" = 1 ; then
a848cd7e 31447 TOOLKIT="MSW"
a848cd7e
SC
31448 fi
31449
a848cd7e
SC
31450 GUIDIST="BASE_DIST"
31451 DISTDIR="wxBase"
31452fi
31453
31454
d12aef51
VZ
31455if test "$wxUSE_GUI" = "yes"; then
31456 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
31457
31458for ac_header in X11/Xlib.h
31459do
31460as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31461if eval "test \"\${$as_ac_Header+set}\" = set"; then
31462 echo "$as_me:$LINENO: checking for $ac_header" >&5
31463echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31464if eval "test \"\${$as_ac_Header+set}\" = set"; then
31465 echo $ECHO_N "(cached) $ECHO_C" >&6
31466fi
31467echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31468echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31469else
31470 # Is the header compilable?
31471echo "$as_me:$LINENO: checking $ac_header usability" >&5
31472echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31473cat >conftest.$ac_ext <<_ACEOF
31474/* confdefs.h. */
31475_ACEOF
31476cat confdefs.h >>conftest.$ac_ext
31477cat >>conftest.$ac_ext <<_ACEOF
31478/* end confdefs.h. */
31479$ac_includes_default
31480#include <$ac_header>
31481_ACEOF
31482rm -f conftest.$ac_objext
31483if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31484 (eval $ac_compile) 2>conftest.er1
31485 ac_status=$?
31486 grep -v '^ *+' conftest.er1 >conftest.err
31487 rm -f conftest.er1
31488 cat conftest.err >&5
31489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31490 (exit $ac_status); } &&
c9a66001 31491 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
31492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31493 (eval $ac_try) 2>&5
31494 ac_status=$?
31495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31496 (exit $ac_status); }; } &&
31497 { ac_try='test -s conftest.$ac_objext'
31498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31499 (eval $ac_try) 2>&5
31500 ac_status=$?
31501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31502 (exit $ac_status); }; }; then
31503 ac_header_compiler=yes
31504else
31505 echo "$as_me: failed program was:" >&5
31506sed 's/^/| /' conftest.$ac_ext >&5
31507
31508ac_header_compiler=no
31509fi
31510rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31511echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31512echo "${ECHO_T}$ac_header_compiler" >&6
31513
31514# Is the header present?
31515echo "$as_me:$LINENO: checking $ac_header presence" >&5
31516echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31517cat >conftest.$ac_ext <<_ACEOF
31518/* confdefs.h. */
31519_ACEOF
31520cat confdefs.h >>conftest.$ac_ext
31521cat >>conftest.$ac_ext <<_ACEOF
31522/* end confdefs.h. */
31523#include <$ac_header>
31524_ACEOF
31525if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31526 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31527 ac_status=$?
31528 grep -v '^ *+' conftest.er1 >conftest.err
31529 rm -f conftest.er1
31530 cat conftest.err >&5
31531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31532 (exit $ac_status); } >/dev/null; then
31533 if test -s conftest.err; then
5d7b7554
VZ
31534 ac_cpp_err=$ac_cxx_preproc_warn_flag
31535 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
d12aef51
VZ
31536 else
31537 ac_cpp_err=
31538 fi
31539else
31540 ac_cpp_err=yes
31541fi
31542if test -z "$ac_cpp_err"; then
31543 ac_header_preproc=yes
31544else
31545 echo "$as_me: failed program was:" >&5
31546sed 's/^/| /' conftest.$ac_ext >&5
31547
31548 ac_header_preproc=no
31549fi
31550rm -f conftest.err conftest.$ac_ext
31551echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31552echo "${ECHO_T}$ac_header_preproc" >&6
31553
31554# So? What about this header?
5d7b7554 31555case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
d12aef51
VZ
31556 yes:no: )
31557 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31558echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31559 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31560echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31561 ac_header_preproc=yes
31562 ;;
31563 no:yes:* )
31564 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31565echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31566 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31567echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31568 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31569echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31570 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31571echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31573echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31574 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31575echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31576 (
31577 cat <<\_ASBOX
31578## ----------------------------------------- ##
31579## Report this to wx-dev@lists.wxwidgets.org ##
31580## ----------------------------------------- ##
31581_ASBOX
31582 ) |
31583 sed "s/^/$as_me: WARNING: /" >&2
31584 ;;
31585esac
31586echo "$as_me:$LINENO: checking for $ac_header" >&5
31587echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31588if eval "test \"\${$as_ac_Header+set}\" = set"; then
31589 echo $ECHO_N "(cached) $ECHO_C" >&6
31590else
31591 eval "$as_ac_Header=\$ac_header_preproc"
31592fi
31593echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31594echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31595
31596fi
31597if test `eval echo '${'$as_ac_Header'}'` = yes; then
31598 cat >>confdefs.h <<_ACEOF
31599#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31600_ACEOF
31601
31602fi
31603
31604done
31605
31606
31607for ac_header in X11/XKBlib.h
31608do
31609as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31610echo "$as_me:$LINENO: checking for $ac_header" >&5
31611echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31612if eval "test \"\${$as_ac_Header+set}\" = set"; then
31613 echo $ECHO_N "(cached) $ECHO_C" >&6
31614else
31615 cat >conftest.$ac_ext <<_ACEOF
31616/* confdefs.h. */
31617_ACEOF
31618cat confdefs.h >>conftest.$ac_ext
31619cat >>conftest.$ac_ext <<_ACEOF
31620/* end confdefs.h. */
31621
31622 #if HAVE_X11_XLIB_H
31623 #include <X11/Xlib.h>
31624 #endif
31625
31626
31627#include <$ac_header>
31628_ACEOF
31629rm -f conftest.$ac_objext
31630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31631 (eval $ac_compile) 2>conftest.er1
31632 ac_status=$?
31633 grep -v '^ *+' conftest.er1 >conftest.err
31634 rm -f conftest.er1
31635 cat conftest.err >&5
31636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31637 (exit $ac_status); } &&
c9a66001 31638 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
31639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31640 (eval $ac_try) 2>&5
31641 ac_status=$?
31642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31643 (exit $ac_status); }; } &&
31644 { ac_try='test -s conftest.$ac_objext'
31645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31646 (eval $ac_try) 2>&5
31647 ac_status=$?
31648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31649 (exit $ac_status); }; }; then
31650 eval "$as_ac_Header=yes"
31651else
31652 echo "$as_me: failed program was:" >&5
31653sed 's/^/| /' conftest.$ac_ext >&5
31654
31655eval "$as_ac_Header=no"
31656fi
31657rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31658fi
31659echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31660echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31661if test `eval echo '${'$as_ac_Header'}'` = yes; then
31662 cat >>confdefs.h <<_ACEOF
31663#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31664_ACEOF
31665
31666fi
31667
31668done
31669
31670 fi
31671fi
31672
a848cd7e
SC
31673
31674
31675IODBC_C_SRC=""
31676
31677
31678if test "$TOOLKIT" != "MSW" ; then
31679
31680 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
31681
31682 if test "${ac_cv_header_sql_h+set}" = set; then
31683 echo "$as_me:$LINENO: checking for sql.h" >&5
31684echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
31685if test "${ac_cv_header_sql_h+set}" = set; then
31686 echo $ECHO_N "(cached) $ECHO_C" >&6
31687fi
31688echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
31689echo "${ECHO_T}$ac_cv_header_sql_h" >&6
31690else
31691 # Is the header compilable?
31692echo "$as_me:$LINENO: checking sql.h usability" >&5
31693echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
31694cat >conftest.$ac_ext <<_ACEOF
31695/* confdefs.h. */
31696_ACEOF
31697cat confdefs.h >>conftest.$ac_ext
31698cat >>conftest.$ac_ext <<_ACEOF
31699/* end confdefs.h. */
31700$ac_includes_default
31701#include <sql.h>
31702_ACEOF
31703rm -f conftest.$ac_objext
31704if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31705 (eval $ac_compile) 2>conftest.er1
a848cd7e 31706 ac_status=$?
ac1cb8d3
VS
31707 grep -v '^ *+' conftest.er1 >conftest.err
31708 rm -f conftest.er1
31709 cat conftest.err >&5
a848cd7e
SC
31710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31711 (exit $ac_status); } &&
c9a66001 31712 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31714 (eval $ac_try) 2>&5
31715 ac_status=$?
31716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31717 (exit $ac_status); }; } &&
31718 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31720 (eval $ac_try) 2>&5
31721 ac_status=$?
31722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31723 (exit $ac_status); }; }; then
31724 ac_header_compiler=yes
31725else
31726 echo "$as_me: failed program was:" >&5
31727sed 's/^/| /' conftest.$ac_ext >&5
31728
31729ac_header_compiler=no
31730fi
ac1cb8d3 31731rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31732echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31733echo "${ECHO_T}$ac_header_compiler" >&6
31734
31735# Is the header present?
31736echo "$as_me:$LINENO: checking sql.h presence" >&5
31737echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
31738cat >conftest.$ac_ext <<_ACEOF
31739/* confdefs.h. */
31740_ACEOF
31741cat confdefs.h >>conftest.$ac_ext
31742cat >>conftest.$ac_ext <<_ACEOF
31743/* end confdefs.h. */
31744#include <sql.h>
31745_ACEOF
31746if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31747 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31748 ac_status=$?
31749 grep -v '^ *+' conftest.er1 >conftest.err
31750 rm -f conftest.er1
31751 cat conftest.err >&5
31752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31753 (exit $ac_status); } >/dev/null; then
31754 if test -s conftest.err; then
5d7b7554
VZ
31755 ac_cpp_err=$ac_cxx_preproc_warn_flag
31756 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
31757 else
31758 ac_cpp_err=
31759 fi
31760else
31761 ac_cpp_err=yes
31762fi
31763if test -z "$ac_cpp_err"; then
31764 ac_header_preproc=yes
31765else
31766 echo "$as_me: failed program was:" >&5
31767sed 's/^/| /' conftest.$ac_ext >&5
31768
31769 ac_header_preproc=no
31770fi
31771rm -f conftest.err conftest.$ac_ext
31772echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31773echo "${ECHO_T}$ac_header_preproc" >&6
31774
31775# So? What about this header?
5d7b7554 31776case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 31777 yes:no: )
a848cd7e
SC
31778 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
31779echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
31780 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
31781echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
31782 ac_header_preproc=yes
a848cd7e 31783 ;;
ac1cb8d3 31784 no:yes:* )
a848cd7e
SC
31785 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
31786echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
31787 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
31788echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
31789 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
31790echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
31791 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
31792echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
31793 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
31794echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
31795 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
31796echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
31797 (
31798 cat <<\_ASBOX
ac1cb8d3
VS
31799## ----------------------------------------- ##
31800## Report this to wx-dev@lists.wxwidgets.org ##
31801## ----------------------------------------- ##
a848cd7e
SC
31802_ASBOX
31803 ) |
31804 sed "s/^/$as_me: WARNING: /" >&2
31805 ;;
31806esac
31807echo "$as_me:$LINENO: checking for sql.h" >&5
31808echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
31809if test "${ac_cv_header_sql_h+set}" = set; then
31810 echo $ECHO_N "(cached) $ECHO_C" >&6
31811else
31812 ac_cv_header_sql_h=$ac_header_preproc
31813fi
31814echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
31815echo "${ECHO_T}$ac_cv_header_sql_h" >&6
31816
31817fi
31818if test $ac_cv_header_sql_h = yes; then
31819 found_sql_h=1
31820fi
31821
31822
31823 if test "x$found_sql_h" = "x1" ; then
31824 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
31825echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
31826if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
31827 echo $ECHO_N "(cached) $ECHO_C" >&6
31828else
31829 ac_check_lib_save_LIBS=$LIBS
31830LIBS="-liodbc $LIBS"
31831cat >conftest.$ac_ext <<_ACEOF
31832/* confdefs.h. */
31833_ACEOF
31834cat confdefs.h >>conftest.$ac_ext
31835cat >>conftest.$ac_ext <<_ACEOF
31836/* end confdefs.h. */
31837
31838/* Override any gcc2 internal prototype to avoid an error. */
31839#ifdef __cplusplus
31840extern "C"
31841#endif
31842/* We use char because int might match the return type of a gcc2
31843 builtin and then its argument prototype would still apply. */
31844char SQLAllocEnv ();
31845int
31846main ()
31847{
31848SQLAllocEnv ();
31849 ;
31850 return 0;
31851}
31852_ACEOF
31853rm -f conftest.$ac_objext conftest$ac_exeext
31854if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31855 (eval $ac_link) 2>conftest.er1
a848cd7e 31856 ac_status=$?
ac1cb8d3
VS
31857 grep -v '^ *+' conftest.er1 >conftest.err
31858 rm -f conftest.er1
31859 cat conftest.err >&5
a848cd7e
SC
31860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31861 (exit $ac_status); } &&
c9a66001 31862 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31864 (eval $ac_try) 2>&5
31865 ac_status=$?
31866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31867 (exit $ac_status); }; } &&
31868 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31870 (eval $ac_try) 2>&5
31871 ac_status=$?
31872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31873 (exit $ac_status); }; }; then
31874 ac_cv_lib_iodbc_SQLAllocEnv=yes
31875else
31876 echo "$as_me: failed program was:" >&5
31877sed 's/^/| /' conftest.$ac_ext >&5
31878
31879ac_cv_lib_iodbc_SQLAllocEnv=no
31880fi
ac1cb8d3
VS
31881rm -f conftest.err conftest.$ac_objext \
31882 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31883LIBS=$ac_check_lib_save_LIBS
31884fi
31885echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
31886echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
31887if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
31888 ODBC_LINK=" -liodbc"
31889else
31890
31891 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
31892echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
31893if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
31894 echo $ECHO_N "(cached) $ECHO_C" >&6
31895else
31896 ac_check_lib_save_LIBS=$LIBS
31897LIBS="-lunixodbc $LIBS"
31898cat >conftest.$ac_ext <<_ACEOF
31899/* confdefs.h. */
31900_ACEOF
31901cat confdefs.h >>conftest.$ac_ext
31902cat >>conftest.$ac_ext <<_ACEOF
31903/* end confdefs.h. */
31904
31905/* Override any gcc2 internal prototype to avoid an error. */
31906#ifdef __cplusplus
31907extern "C"
31908#endif
31909/* We use char because int might match the return type of a gcc2
31910 builtin and then its argument prototype would still apply. */
31911char SQLAllocEnv ();
31912int
31913main ()
31914{
31915SQLAllocEnv ();
31916 ;
31917 return 0;
31918}
31919_ACEOF
31920rm -f conftest.$ac_objext conftest$ac_exeext
31921if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31922 (eval $ac_link) 2>conftest.er1
a848cd7e 31923 ac_status=$?
ac1cb8d3
VS
31924 grep -v '^ *+' conftest.er1 >conftest.err
31925 rm -f conftest.er1
31926 cat conftest.err >&5
a848cd7e
SC
31927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31928 (exit $ac_status); } &&
c9a66001 31929 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31931 (eval $ac_try) 2>&5
31932 ac_status=$?
31933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31934 (exit $ac_status); }; } &&
31935 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31937 (eval $ac_try) 2>&5
31938 ac_status=$?
31939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31940 (exit $ac_status); }; }; then
31941 ac_cv_lib_unixodbc_SQLAllocEnv=yes
31942else
31943 echo "$as_me: failed program was:" >&5
31944sed 's/^/| /' conftest.$ac_ext >&5
31945
31946ac_cv_lib_unixodbc_SQLAllocEnv=no
31947fi
ac1cb8d3
VS
31948rm -f conftest.err conftest.$ac_objext \
31949 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31950LIBS=$ac_check_lib_save_LIBS
31951fi
31952echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
31953echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
31954if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
31955 ODBC_LINK=" -lunixodbc"
31956else
31957
31958 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
31959echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
31960if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
31961 echo $ECHO_N "(cached) $ECHO_C" >&6
31962else
31963 ac_check_lib_save_LIBS=$LIBS
31964LIBS="-lodbc $LIBS"
31965cat >conftest.$ac_ext <<_ACEOF
31966/* confdefs.h. */
31967_ACEOF
31968cat confdefs.h >>conftest.$ac_ext
31969cat >>conftest.$ac_ext <<_ACEOF
31970/* end confdefs.h. */
31971
31972/* Override any gcc2 internal prototype to avoid an error. */
31973#ifdef __cplusplus
31974extern "C"
31975#endif
31976/* We use char because int might match the return type of a gcc2
31977 builtin and then its argument prototype would still apply. */
31978char SQLAllocEnv ();
31979int
31980main ()
31981{
31982SQLAllocEnv ();
31983 ;
31984 return 0;
31985}
31986_ACEOF
31987rm -f conftest.$ac_objext conftest$ac_exeext
31988if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31989 (eval $ac_link) 2>conftest.er1
a848cd7e 31990 ac_status=$?
ac1cb8d3
VS
31991 grep -v '^ *+' conftest.er1 >conftest.err
31992 rm -f conftest.er1
31993 cat conftest.err >&5
a848cd7e
SC
31994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31995 (exit $ac_status); } &&
c9a66001 31996 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31998 (eval $ac_try) 2>&5
31999 ac_status=$?
32000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32001 (exit $ac_status); }; } &&
32002 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32004 (eval $ac_try) 2>&5
32005 ac_status=$?
32006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32007 (exit $ac_status); }; }; then
32008 ac_cv_lib_odbc_SQLAllocEnv=yes
32009else
32010 echo "$as_me: failed program was:" >&5
32011sed 's/^/| /' conftest.$ac_ext >&5
32012
32013ac_cv_lib_odbc_SQLAllocEnv=no
32014fi
ac1cb8d3
VS
32015rm -f conftest.err conftest.$ac_objext \
32016 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32017LIBS=$ac_check_lib_save_LIBS
32018fi
32019echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
32020echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
32021if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
32022 ODBC_LINK=" -lodbc"
32023fi
32024
32025
32026fi
32027
32028
32029fi
32030
32031 fi
32032 if test "x$ODBC_LINK" = "x" ; then
32033 if test "$wxUSE_ODBC" = "sys" ; then
32034 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
32035echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
32036 { (exit 1); exit 1; }; }
32037 else
32038 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
32039echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
32040 wxUSE_ODBC=builtin
32041 fi
32042 else
32043 wxUSE_ODBC=sys
32044 fi
32045 fi
a848cd7e 32046
2da0c077
RD
32047 if test "$wxUSE_ODBC" = "builtin" ; then
32048 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
32049#define wxUSE_BUILTIN_IODBC 1
32050_ACEOF
32051
a848cd7e
SC
32052 fi
32053fi
32054
2da0c077
RD
32055if test "$wxUSE_ODBC" != "no" ; then
32056 cat >>confdefs.h <<\_ACEOF
32057#define wxUSE_ODBC 1
32058_ACEOF
32059
32060 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
32061
5ff751d6 32062 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_IODBC_"
2da0c077 32063fi
a848cd7e 32064
01cb68df 32065
a848cd7e 32066if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 32067 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
32068 echo "$as_me:$LINENO: checking for Xinerama" >&5
32069echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
32070
0ad5d837
VZ
32071 ac_find_libraries=
32072 for ac_dir in $SEARCH_LIB;
32073 do
32074 for ac_extension in a so sl dylib dll.a; do
32075 if test -f "$ac_dir/libXinerama.$ac_extension"; then
32076 ac_find_libraries=$ac_dir
32077 break 2
32078 fi
32079 done
32080 done
32081
a848cd7e
SC
32082 if test "$ac_find_libraries" != "" ; then
32083
0ad5d837 32084 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
32085 ac_path_to_link=""
32086 else
0ad5d837
VZ
32087 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32088 result=$?
32089 if test $result = 0; then
32090 ac_path_to_link=""
32091 else
32092 ac_path_to_link=" -L$ac_find_libraries"
32093 fi
a848cd7e
SC
32094 fi
32095
32096 if test "$ac_path_to_link" != " -L/usr/lib" ; then
32097 LDFLAGS="$LDFLAGS $ac_path_to_link"
32098 fi
32099 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
32100 echo "$as_me:$LINENO: result: yes" >&5
32101echo "${ECHO_T}yes" >&6
32102
32103 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
32104echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
32105
0ad5d837
VZ
32106 ac_find_libraries=
32107 for ac_dir in $SEARCH_LIB;
a848cd7e 32108 do
3eca31dc 32109 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
32110 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
32111 ac_find_libraries=$ac_dir
32112 break 2
32113 fi
32114 done
32115 done
32116
32117 if test "$ac_find_libraries" != "" ; then
32118 echo "$as_me:$LINENO: result: yes" >&5
32119echo "${ECHO_T}yes" >&6
32120
32121for ac_header in X11/extensions/xf86vmode.h
32122do
32123as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32124echo "$as_me:$LINENO: checking for $ac_header" >&5
32125echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32126if eval "test \"\${$as_ac_Header+set}\" = set"; then
32127 echo $ECHO_N "(cached) $ECHO_C" >&6
32128else
32129 cat >conftest.$ac_ext <<_ACEOF
32130/* confdefs.h. */
32131_ACEOF
32132cat confdefs.h >>conftest.$ac_ext
32133cat >>conftest.$ac_ext <<_ACEOF
32134/* end confdefs.h. */
32135
32136 #if HAVE_X11_XLIB_H
32137 #include <X11/Xlib.h>
32138 #endif
32139
32140
32141#include <$ac_header>
32142_ACEOF
32143rm -f conftest.$ac_objext
32144if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32145 (eval $ac_compile) 2>conftest.er1
a848cd7e 32146 ac_status=$?
ac1cb8d3
VS
32147 grep -v '^ *+' conftest.er1 >conftest.err
32148 rm -f conftest.er1
32149 cat conftest.err >&5
a848cd7e
SC
32150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32151 (exit $ac_status); } &&
c9a66001 32152 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32154 (eval $ac_try) 2>&5
32155 ac_status=$?
32156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32157 (exit $ac_status); }; } &&
32158 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32160 (eval $ac_try) 2>&5
32161 ac_status=$?
32162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32163 (exit $ac_status); }; }; then
32164 eval "$as_ac_Header=yes"
32165else
32166 echo "$as_me: failed program was:" >&5
32167sed 's/^/| /' conftest.$ac_ext >&5
32168
32169eval "$as_ac_Header=no"
32170fi
ac1cb8d3 32171rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32172fi
32173echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32174echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32175if test `eval echo '${'$as_ac_Header'}'` = yes; then
32176 cat >>confdefs.h <<_ACEOF
32177#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32178_ACEOF
32179
32180 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
32181
32182fi
32183
32184done
32185
32186 else
32187 echo "$as_me:$LINENO: result: no" >&5
32188echo "${ECHO_T}no" >&6
32189 fi
32190
32191 else
32192 echo "$as_me:$LINENO: result: no" >&5
32193echo "${ECHO_T}no" >&6
dcc1b6ad
VS
32194 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
32195echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
32196 wxUSE_DISPLAY="no"
32197 fi
01cb68df
RG
32198 elif test "$wxUSE_MSW" = 1; then
32199
e5efa97e 32200for ac_header in ddraw.h
01cb68df
RG
32201do
32202as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 32203echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
32204echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32205if eval "test \"\${$as_ac_Header+set}\" = set"; then
32206 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 32207else
5294a27e 32208 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
32209/* confdefs.h. */
32210_ACEOF
32211cat confdefs.h >>conftest.$ac_ext
32212cat >>conftest.$ac_ext <<_ACEOF
32213/* end confdefs.h. */
5294a27e
VZ
32214#include <windows.h>
32215
01cb68df
RG
32216#include <$ac_header>
32217_ACEOF
32218rm -f conftest.$ac_objext
32219if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32220 (eval $ac_compile) 2>conftest.er1
01cb68df 32221 ac_status=$?
ac1cb8d3
VS
32222 grep -v '^ *+' conftest.er1 >conftest.err
32223 rm -f conftest.er1
32224 cat conftest.err >&5
01cb68df
RG
32225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32226 (exit $ac_status); } &&
c9a66001 32227 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32229 (eval $ac_try) 2>&5
32230 ac_status=$?
32231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32232 (exit $ac_status); }; } &&
32233 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
32234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32235 (eval $ac_try) 2>&5
32236 ac_status=$?
32237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32238 (exit $ac_status); }; }; then
5294a27e 32239 eval "$as_ac_Header=yes"
01cb68df
RG
32240else
32241 echo "$as_me: failed program was:" >&5
32242sed 's/^/| /' conftest.$ac_ext >&5
32243
5294a27e 32244eval "$as_ac_Header=no"
01cb68df 32245fi
ac1cb8d3 32246rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
32247fi
32248echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32249echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
32250if test `eval echo '${'$as_ac_Header'}'` = yes; then
32251 cat >>confdefs.h <<_ACEOF
32252#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32253_ACEOF
32254
01cb68df
RG
32255fi
32256
32257done
32258
a848cd7e
SC
32259 fi
32260fi
32261
32262
32263USE_OPENGL=0
32264if test "$wxUSE_OPENGL" = "yes"; then
32265 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
32266 OPENGL_LIBS="-framework OpenGL -framework AGL"
32267 elif test "$wxUSE_MSW" = 1; then
32268 OPENGL_LIBS="-lopengl32 -lglu32"
32269 else
32270
32271
32272ac_find_includes=
32273for ac_dir in $SEARCH_INCLUDE /usr/include;
32274 do
32275 if test -f "$ac_dir/GL/gl.h"; then
32276 ac_find_includes=$ac_dir
32277 break
32278 fi
32279 done
32280
32281 if test "$ac_find_includes" != "" ; then
32282 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
32283echo "${ECHO_T}found in $ac_find_includes" >&6
32284
32285 if test "x$ac_find_includes" = "x/usr/include"; then
32286 ac_path_to_include=""
32287 else
32288 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
32289 result=$?
32290 if test $result = 0; then
32291 ac_path_to_include=""
32292 else
32293 ac_path_to_include=" -I$ac_find_includes"
32294 fi
32295 fi
32296
c92ad099 32297 CPPFLAGS="$ac_path_to_include $CPPFLAGS"
a848cd7e
SC
32298 fi
32299
32300 if test "${ac_cv_header_GL_gl_h+set}" = set; then
32301 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
32302echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
32303if test "${ac_cv_header_GL_gl_h+set}" = set; then
32304 echo $ECHO_N "(cached) $ECHO_C" >&6
32305fi
32306echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
32307echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
32308else
32309 # Is the header compilable?
32310echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
32311echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
32312cat >conftest.$ac_ext <<_ACEOF
32313/* confdefs.h. */
32314_ACEOF
32315cat confdefs.h >>conftest.$ac_ext
32316cat >>conftest.$ac_ext <<_ACEOF
32317/* end confdefs.h. */
32318$ac_includes_default
32319#include <GL/gl.h>
32320_ACEOF
32321rm -f conftest.$ac_objext
32322if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32323 (eval $ac_compile) 2>conftest.er1
a848cd7e 32324 ac_status=$?
ac1cb8d3
VS
32325 grep -v '^ *+' conftest.er1 >conftest.err
32326 rm -f conftest.er1
32327 cat conftest.err >&5
a848cd7e
SC
32328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32329 (exit $ac_status); } &&
c9a66001 32330 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32332 (eval $ac_try) 2>&5
32333 ac_status=$?
32334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32335 (exit $ac_status); }; } &&
32336 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32338 (eval $ac_try) 2>&5
32339 ac_status=$?
32340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32341 (exit $ac_status); }; }; then
32342 ac_header_compiler=yes
32343else
32344 echo "$as_me: failed program was:" >&5
32345sed 's/^/| /' conftest.$ac_ext >&5
32346
32347ac_header_compiler=no
32348fi
ac1cb8d3 32349rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32350echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32351echo "${ECHO_T}$ac_header_compiler" >&6
32352
32353# Is the header present?
32354echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
32355echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
32356cat >conftest.$ac_ext <<_ACEOF
32357/* confdefs.h. */
32358_ACEOF
32359cat confdefs.h >>conftest.$ac_ext
32360cat >>conftest.$ac_ext <<_ACEOF
32361/* end confdefs.h. */
32362#include <GL/gl.h>
32363_ACEOF
32364if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32365 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32366 ac_status=$?
32367 grep -v '^ *+' conftest.er1 >conftest.err
32368 rm -f conftest.er1
32369 cat conftest.err >&5
32370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32371 (exit $ac_status); } >/dev/null; then
32372 if test -s conftest.err; then
5d7b7554
VZ
32373 ac_cpp_err=$ac_cxx_preproc_warn_flag
32374 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
32375 else
32376 ac_cpp_err=
32377 fi
32378else
32379 ac_cpp_err=yes
32380fi
32381if test -z "$ac_cpp_err"; then
32382 ac_header_preproc=yes
32383else
32384 echo "$as_me: failed program was:" >&5
32385sed 's/^/| /' conftest.$ac_ext >&5
32386
32387 ac_header_preproc=no
32388fi
32389rm -f conftest.err conftest.$ac_ext
32390echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32391echo "${ECHO_T}$ac_header_preproc" >&6
32392
32393# So? What about this header?
5d7b7554 32394case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 32395 yes:no: )
a848cd7e
SC
32396 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
32397echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
32398 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
32399echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
32400 ac_header_preproc=yes
a848cd7e 32401 ;;
ac1cb8d3 32402 no:yes:* )
a848cd7e
SC
32403 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
32404echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
32405 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
32406echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
32407 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
32408echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
32409 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
32410echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
32411 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
32412echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
32413 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
32414echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
32415 (
32416 cat <<\_ASBOX
ac1cb8d3
VS
32417## ----------------------------------------- ##
32418## Report this to wx-dev@lists.wxwidgets.org ##
32419## ----------------------------------------- ##
a848cd7e
SC
32420_ASBOX
32421 ) |
32422 sed "s/^/$as_me: WARNING: /" >&2
32423 ;;
32424esac
32425echo "$as_me:$LINENO: checking for GL/gl.h" >&5
32426echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
32427if test "${ac_cv_header_GL_gl_h+set}" = set; then
32428 echo $ECHO_N "(cached) $ECHO_C" >&6
32429else
32430 ac_cv_header_GL_gl_h=$ac_header_preproc
32431fi
32432echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
32433echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
32434
32435fi
32436if test $ac_cv_header_GL_gl_h = yes; then
32437
32438 found_gl=0
32439
32440 echo "$as_me:$LINENO: checking for -lGL" >&5
32441echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
32442
0ad5d837
VZ
32443 ac_find_libraries=
32444 for ac_dir in $SEARCH_LIB;
a848cd7e 32445 do
3eca31dc 32446 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
32447 if test -f "$ac_dir/libGL.$ac_extension"; then
32448 ac_find_libraries=$ac_dir
32449 break 2
32450 fi
32451 done
32452 done
32453
32454 if test "$ac_find_libraries" != "" ; then
69120ee4
VZ
32455 echo "$as_me:$LINENO: result: yes" >&5
32456echo "${ECHO_T}yes" >&6
32457
a848cd7e 32458
0ad5d837 32459 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
32460 ac_path_to_link=""
32461 else
0ad5d837
VZ
32462 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32463 result=$?
32464 if test $result = 0; then
32465 ac_path_to_link=""
32466 else
32467 ac_path_to_link=" -L$ac_find_libraries"
32468 fi
a848cd7e
SC
32469 fi
32470
32471 if test "$ac_path_to_link" != " -L/usr/lib" ; then
32472 LDFLAGS_GL="$ac_path_to_link"
32473 fi
32474
69120ee4
VZ
32475 echo "$as_me:$LINENO: checking for -lGLU" >&5
32476echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
a848cd7e 32477
0ad5d837
VZ
32478 ac_find_libraries=
32479 for ac_dir in $SEARCH_LIB;
32480 do
32481 for ac_extension in a so sl dylib dll.a; do
32482 if test -f "$ac_dir/libGLU.$ac_extension"; then
32483 ac_find_libraries=$ac_dir
32484 break 2
32485 fi
32486 done
32487 done
32488
a848cd7e
SC
32489 if test "$ac_find_libraries" != "" ; then
32490
0ad5d837 32491 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
32492 ac_path_to_link=""
32493 else
0ad5d837
VZ
32494 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32495 result=$?
32496 if test $result = 0; then
32497 ac_path_to_link=""
32498 else
32499 ac_path_to_link=" -L$ac_find_libraries"
32500 fi
a848cd7e
SC
32501 fi
32502
32503 if test "$ac_path_to_link" != " -L/usr/lib" -a \
32504 "$ac_path_to_link" != "$LDFLAGS_GL"; then
32505 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
32506 fi
32507
32508 found_gl=1
32509 OPENGL_LIBS="-lGL -lGLU"
32510 echo "$as_me:$LINENO: result: yes" >&5
32511echo "${ECHO_T}yes" >&6
69120ee4
VZ
32512 else
32513 echo "$as_me:$LINENO: result: no" >&5
32514echo "${ECHO_T}no" >&6
a848cd7e 32515 fi
69120ee4
VZ
32516 else
32517 echo "$as_me:$LINENO: result: no" >&5
32518echo "${ECHO_T}no" >&6
a848cd7e
SC
32519 fi
32520
32521 if test "$found_gl" != 1; then
a848cd7e
SC
32522 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
32523echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
32524
0ad5d837
VZ
32525 ac_find_libraries=
32526 for ac_dir in $SEARCH_LIB;
a848cd7e 32527 do
3eca31dc 32528 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
32529 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
32530 ac_find_libraries=$ac_dir
32531 break 2
32532 fi
32533 done
32534 done
32535
32536 if test "$ac_find_libraries" != "" ; then
32537
0ad5d837 32538 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
32539 ac_path_to_link=""
32540 else
0ad5d837
VZ
32541 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32542 result=$?
32543 if test $result = 0; then
32544 ac_path_to_link=""
32545 else
32546 ac_path_to_link=" -L$ac_find_libraries"
32547 fi
a848cd7e
SC
32548 fi
32549
32550 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
32551 OPENGL_LIBS="-lMesaGL -lMesaGLU"
32552 echo "$as_me:$LINENO: result: yes" >&5
32553echo "${ECHO_T}yes" >&6
32554 else
32555 echo "$as_me:$LINENO: result: no" >&5
32556echo "${ECHO_T}no" >&6
32557 fi
32558 fi
32559
32560fi
32561
32562
32563
32564 if test "x$OPENGL_LIBS" = "x"; then
32565 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
32566echo "$as_me: error: OpenGL libraries not available" >&2;}
32567 { (exit 1); exit 1; }; }
32568 fi
32569 fi
32570
32571 if test "$wxUSE_OPENGL" = "yes"; then
32572 USE_OPENGL=1
32573 cat >>confdefs.h <<\_ACEOF
32574#define wxUSE_OPENGL 1
32575_ACEOF
32576
32577 cat >>confdefs.h <<\_ACEOF
32578#define wxUSE_GLCANVAS 1
32579_ACEOF
32580
32581 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
32582 fi
32583fi
32584
a848cd7e
SC
32585
32586if test -n "$TOOLKIT" ; then
32587 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
32588fi
32589
a848cd7e
SC
32590
32591
32592if test "$wxUSE_SHARED" = "yes"; then
32593 case "${host}" in
32594 *-pc-msdosdjgpp )
32595 wxUSE_SHARED=no
32596 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
32597echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
32598 ;;
32599 esac
32600fi
32601
a848cd7e 32602if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
32603
32604
32605 found_versioning=no
32606
32607
32608 if test $found_versioning = no ; then
32609 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
32610echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
32611if test "${wx_cv_version_script+set}" = set; then
32612 echo $ECHO_N "(cached) $ECHO_C" >&6
32613else
32614
32615 echo "VER_1 { *; };" >conftest.sym
32616 echo "int main() { return 0; }" >conftest.cpp
32617
32618 if { ac_try='
32619 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
32620 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
32621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32622 (eval $ac_try) 2>&5
32623 ac_status=$?
32624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32625 (exit $ac_status); }; } ; then
32626 if test -s conftest.stderr ; then
32627 wx_cv_version_script=no
32628 else
32629 wx_cv_version_script=yes
32630 fi
32631 else
32632 wx_cv_version_script=no
32633 fi
e5d4b470
MW
32634
32635 if test $wx_cv_version_script = yes
32636 then
32637 echo "struct B { virtual ~B() { } }; \
32638 struct D : public B { }; \
32639 void F() { D d; }" > conftest.cpp
32640
32641 if { ac_try='
32642 $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
32643 -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
32644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32645 (eval $ac_try) 2>&5
32646 ac_status=$?
32647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32648 (exit $ac_status); }; } &&
32649 { ac_try='
32650 $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
32651 -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
32652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32653 (eval $ac_try) 2>&5
32654 ac_status=$?
32655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32656 (exit $ac_status); }; }
32657 then
32658 if { ac_try='
32659 $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
32660 -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
32661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32662 (eval $ac_try) 2>&5
32663 ac_status=$?
32664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32665 (exit $ac_status); }; }
32666 then
32667 wx_cv_version_script=yes
32668 else
32669 wx_cv_version_script=no
32670 fi
32671 fi
32672 fi
32673
a848cd7e 32674 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
e5d4b470 32675 rm -f conftest1.output conftest2.output conftest3.output
a848cd7e
SC
32676
32677fi
32678echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
32679echo "${ECHO_T}$wx_cv_version_script" >&6
32680 if test $wx_cv_version_script = yes ; then
32681 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
32682 fi
32683 fi
32684
32685
32686 case "${host}" in
32687 *-*-linux* | *-*-gnu* )
32688 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 32689 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
6ebeb4c7 32690 ;;
a848cd7e
SC
32691
32692 *-*-solaris2* )
32693 if test "$GCC" = yes ; then
c92ad099 32694 CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
a848cd7e
SC
32695
32696 saveLdflags="$LDFLAGS"
32697 LDFLAGS="$saveLdflags -Wl,-rpath,/"
32698 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
32699echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
32700 cat >conftest.$ac_ext <<_ACEOF
32701/* confdefs.h. */
32702_ACEOF
32703cat confdefs.h >>conftest.$ac_ext
32704cat >>conftest.$ac_ext <<_ACEOF
32705/* end confdefs.h. */
32706
32707int
32708main ()
32709{
32710
32711 ;
32712 return 0;
32713}
32714_ACEOF
32715rm -f conftest.$ac_objext conftest$ac_exeext
32716if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32717 (eval $ac_link) 2>conftest.er1
a848cd7e 32718 ac_status=$?
ac1cb8d3
VS
32719 grep -v '^ *+' conftest.er1 >conftest.err
32720 rm -f conftest.er1
32721 cat conftest.err >&5
a848cd7e
SC
32722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32723 (exit $ac_status); } &&
c9a66001 32724 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32726 (eval $ac_try) 2>&5
32727 ac_status=$?
32728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32729 (exit $ac_status); }; } &&
32730 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32732 (eval $ac_try) 2>&5
32733 ac_status=$?
32734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32735 (exit $ac_status); }; }; then
32736
32737 echo "$as_me:$LINENO: result: yes" >&5
32738echo "${ECHO_T}yes" >&6
32739 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 32740 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
32741
32742else
32743 echo "$as_me: failed program was:" >&5
32744sed 's/^/| /' conftest.$ac_ext >&5
32745
32746
32747 echo "$as_me:$LINENO: result: no" >&5
32748echo "${ECHO_T}no" >&6
32749 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
32750echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
32751 LDFLAGS="$saveLdflags -Wl,-R,/"
32752 cat >conftest.$ac_ext <<_ACEOF
32753/* confdefs.h. */
32754_ACEOF
32755cat confdefs.h >>conftest.$ac_ext
32756cat >>conftest.$ac_ext <<_ACEOF
32757/* end confdefs.h. */
32758
32759int
32760main ()
32761{
32762
32763 ;
32764 return 0;
32765}
32766_ACEOF
32767rm -f conftest.$ac_objext conftest$ac_exeext
32768if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32769 (eval $ac_link) 2>conftest.er1
a848cd7e 32770 ac_status=$?
ac1cb8d3
VS
32771 grep -v '^ *+' conftest.er1 >conftest.err
32772 rm -f conftest.er1
32773 cat conftest.err >&5
a848cd7e
SC
32774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32775 (exit $ac_status); } &&
c9a66001 32776 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32778 (eval $ac_try) 2>&5
32779 ac_status=$?
32780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32781 (exit $ac_status); }; } &&
32782 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32784 (eval $ac_try) 2>&5
32785 ac_status=$?
32786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32787 (exit $ac_status); }; }; then
32788
ffa0583f 32789 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 32790echo "${ECHO_T}yes" >&6
ffa0583f
RL
32791 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
32792 WXCONFIG_RPATH="-Wl,-R,\$libdir"
32793
a848cd7e
SC
32794else
32795 echo "$as_me: failed program was:" >&5
32796sed 's/^/| /' conftest.$ac_ext >&5
32797
32798
32799 echo "$as_me:$LINENO: result: no" >&5
32800echo "${ECHO_T}no" >&6
32801
32802fi
ac1cb8d3
VS
32803rm -f conftest.err conftest.$ac_objext \
32804 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32805
32806fi
ac1cb8d3
VS
32807rm -f conftest.err conftest.$ac_objext \
32808 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32809 LDFLAGS="$saveLdflags"
32810 else
a848cd7e 32811 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 32812 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
32813 fi
32814 ;;
32815
cfda0ea8 32816 *-*-darwin* )
0caebc27
MW
32817 install_name_tool=`which install_name_tool`
32818 if test "$install_name_tool" -a -x "$install_name_tool"; then
32819 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
32820 cat <<EOF >change-install-names
a848cd7e
SC
32821#!/bin/sh
32822libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
32823inst_cmd="install_name_tool "
32824for i in \${libnames} ; do
32825 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
32826done
32827\${inst_cmd} \${3}
32828EOF
0caebc27
MW
32829 chmod +x change-install-names
32830 fi
a848cd7e
SC
32831 ;;
32832
32833 *-*-cygwin* | *-*-mingw32* )
5ff751d6
VZ
32834 WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
32835 ;;
a848cd7e 32836
81f90336
MW
32837 *-*-hpux* )
32838 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
32839 WXCONFIG_RPATH="-Wl,+b,\$libdir"
5ff751d6 32840 ;;
81f90336 32841
a848cd7e 32842 esac
ceec2216 32843
ffa0583f
RL
32844 if test $wxUSE_RPATH = "no"; then
32845 SAMPLES_RPATH_FLAG=''
32846 SAMPLES_RPATH_POSTLINK=''
32847 WXCONFIG_RPATH=''
32848 fi
32849
32850 SHARED=1
32851
32852else
32853
ceec2216
RL
32854 config_linkage_component="-static"
32855 SHARED=0
ffa0583f 32856
ceec2216 32857fi
a848cd7e 32858
a848cd7e 32859
ceec2216
RL
32860UNICODE=0
32861lib_unicode_suffix=
32862WX_CHARTYPE="ansi"
32863if test "$wxUSE_UNICODE" = "yes"; then
32864 lib_unicode_suffix=u
32865 WX_CHARTYPE="unicode"
32866 UNICODE=1
a848cd7e
SC
32867fi
32868
ceec2216
RL
32869lib_debug_suffix=
32870WX_DEBUGTYPE="release"
32871DEBUG_FLAG=0
32872if test "$wxUSE_DEBUG_FLAG" = "yes"; then
32873 lib_debug_suffix=d
32874 WX_DEBUGTYPE="debug"
32875 DEBUG_FLAG=1
32876fi
a848cd7e 32877
ceec2216
RL
32878WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
32879WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 32880
ceec2216
RL
32881DEBUG_INFO=0
32882if test "$wxUSE_DEBUG_INFO" = "yes"; then
32883 DEBUG_INFO=1
32884fi
a848cd7e 32885
ceec2216 32886WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 32887
ceec2216 32888TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 32889
ceec2216 32890TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 32891
ceec2216
RL
32892if test "$cross_compiling" = "yes"; then
32893 HOST_SUFFIX="-$host_alias"
32894 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
32895 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
32896fi
32897
dd21ced8 32898WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
abc736fd
MW
32899if test "${TOOLKIT_DIR}" = "os2"; then
32900 WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
32901else
32902 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
32903fi
ceec2216
RL
32904
32905
32906
1d1af5ea
DE
32907if test "$wxUSE_COCOA" = 1; then
32908
32909
32910 ac_ext=c
32911ac_cpp='$CPP $CPPFLAGS'
32912ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32913ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32914ac_compiler_gnu=$ac_cv_c_compiler_gnu
32915
32916ac_ext=m
32917
32918 echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
32919echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
32920 cat >conftest.$ac_ext <<_ACEOF
32921/* confdefs.h. */
32922_ACEOF
32923cat confdefs.h >>conftest.$ac_ext
32924cat >>conftest.$ac_ext <<_ACEOF
32925/* end confdefs.h. */
32926#include <AppKit/NSEvent.h>
32927#include <CoreFoundation/CoreFoundation.h>
32928
32929int
32930main ()
32931{
32932
32933 ;
32934 return 0;
32935}
32936_ACEOF
32937rm -f conftest.$ac_objext
32938if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32939 (eval $ac_compile) 2>conftest.er1
32940 ac_status=$?
32941 grep -v '^ *+' conftest.er1 >conftest.err
32942 rm -f conftest.er1
32943 cat conftest.err >&5
32944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32945 (exit $ac_status); } &&
c9a66001 32946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
32947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32948 (eval $ac_try) 2>&5
32949 ac_status=$?
32950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32951 (exit $ac_status); }; } &&
32952 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
32958 echo "$as_me:$LINENO: result: no" >&5
32959echo "${ECHO_T}no" >&6
32960else
32961 echo "$as_me: failed program was:" >&5
32962sed 's/^/| /' conftest.$ac_ext >&5
32963
32964echo "$as_me:$LINENO: result: yes" >&5
32965echo "${ECHO_T}yes" >&6
32966 echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
32967echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
32968 cat >conftest.$ac_ext <<_ACEOF
32969/* confdefs.h. */
32970_ACEOF
32971cat confdefs.h >>conftest.$ac_ext
32972cat >>conftest.$ac_ext <<_ACEOF
32973/* end confdefs.h. */
32974#define __Point__ 1
32975#include <AppKit/NSEvent.h>
32976#include <CoreFoundation/CoreFoundation.h>
32977
32978int
32979main ()
32980{
32981
32982 ;
32983 return 0;
32984}
32985_ACEOF
32986rm -f conftest.$ac_objext
32987if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32988 (eval $ac_compile) 2>conftest.er1
32989 ac_status=$?
32990 grep -v '^ *+' conftest.er1 >conftest.err
32991 rm -f conftest.er1
32992 cat conftest.err >&5
32993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32994 (exit $ac_status); } &&
c9a66001 32995 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
32996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32997 (eval $ac_try) 2>&5
32998 ac_status=$?
32999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33000 (exit $ac_status); }; } &&
33001 { ac_try='test -s conftest.$ac_objext'
33002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33003 (eval $ac_try) 2>&5
33004 ac_status=$?
33005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33006 (exit $ac_status); }; }; then
33007 echo "$as_me:$LINENO: result: yes" >&5
33008echo "${ECHO_T}yes" >&6
33009 cat >>confdefs.h <<\_ACEOF
33010#define __Point__ 1
33011_ACEOF
33012
33013
33014else
33015 echo "$as_me: failed program was:" >&5
33016sed 's/^/| /' conftest.$ac_ext >&5
33017
33018{ { echo "$as_me:$LINENO: error: no
33019See \`config.log' for more details." >&5
33020echo "$as_me: error: no
33021See \`config.log' for more details." >&2;}
33022 { (exit 1); exit 1; }; }
33023
33024fi
33025rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33026
33027fi
33028rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
33029 ac_ext=cc
33030ac_cpp='$CXXCPP $CPPFLAGS'
33031ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33032ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33033ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1d1af5ea
DE
33034
33035fi
33036
a848cd7e 33037if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
33038 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
33039 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 33040
a848cd7e 33041 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
33042
33043 # Extract the first word of "Rez", so it can be a program name with args.
33044set dummy Rez; ac_word=$2
33045echo "$as_me:$LINENO: checking for $ac_word" >&5
33046echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 33047if test "${ac_cv_prog_REZ+set}" = set; then
a848cd7e
SC
33048 echo $ECHO_N "(cached) $ECHO_C" >&6
33049else
8ced02f6
DE
33050 if test -n "$REZ"; then
33051 ac_cv_prog_REZ="$REZ" # Let the user override the test.
a848cd7e
SC
33052else
33053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33054for as_dir in $PATH
33055do
33056 IFS=$as_save_IFS
33057 test -z "$as_dir" && as_dir=.
33058 for ac_exec_ext in '' $ac_executable_extensions; do
33059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 33060 ac_cv_prog_REZ="Rez"
a848cd7e
SC
33061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33062 break 2
33063 fi
33064done
33065done
33066
8ced02f6 33067 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
a848cd7e
SC
33068fi
33069fi
8ced02f6
DE
33070REZ=$ac_cv_prog_REZ
33071if test -n "$REZ"; then
33072 echo "$as_me:$LINENO: result: $REZ" >&5
33073echo "${ECHO_T}$REZ" >&6
a848cd7e
SC
33074else
33075 echo "$as_me:$LINENO: result: no" >&5
33076echo "${ECHO_T}no" >&6
33077fi
33078
33079 # Extract the first word of "DeRez", so it can be a program name with args.
33080set dummy DeRez; ac_word=$2
33081echo "$as_me:$LINENO: checking for $ac_word" >&5
33082echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33083if test "${ac_cv_prog_DEREZ+set}" = set; then
33084 echo $ECHO_N "(cached) $ECHO_C" >&6
33085else
33086 if test -n "$DEREZ"; then
33087 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
33088else
33089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33090for as_dir in $PATH
33091do
33092 IFS=$as_save_IFS
33093 test -z "$as_dir" && as_dir=.
33094 for ac_exec_ext in '' $ac_executable_extensions; do
33095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33096 ac_cv_prog_DEREZ="DeRez"
33097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33098 break 2
33099 fi
33100done
33101done
33102
33103 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
33104fi
33105fi
33106DEREZ=$ac_cv_prog_DEREZ
33107if test -n "$DEREZ"; then
33108 echo "$as_me:$LINENO: result: $DEREZ" >&5
33109echo "${ECHO_T}$DEREZ" >&6
33110else
33111 echo "$as_me:$LINENO: result: no" >&5
33112echo "${ECHO_T}no" >&6
33113fi
33114
33115 # Extract the first word of "SetFile", so it can be a program name with args.
33116set dummy SetFile; ac_word=$2
33117echo "$as_me:$LINENO: checking for $ac_word" >&5
33118echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33119if test "${ac_cv_prog_SETFILE+set}" = set; then
33120 echo $ECHO_N "(cached) $ECHO_C" >&6
33121else
33122 if test -n "$SETFILE"; then
33123 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
33124else
33125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33126for as_dir in $PATH
33127do
33128 IFS=$as_save_IFS
33129 test -z "$as_dir" && as_dir=.
33130 for ac_exec_ext in '' $ac_executable_extensions; do
33131 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33132 ac_cv_prog_SETFILE="SetFile"
33133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33134 break 2
33135 fi
33136done
33137done
33138
33139 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
33140fi
33141fi
33142SETFILE=$ac_cv_prog_SETFILE
33143if test -n "$SETFILE"; then
33144 echo "$as_me:$LINENO: result: $SETFILE" >&5
33145echo "${ECHO_T}$SETFILE" >&6
33146else
33147 echo "$as_me:$LINENO: result: no" >&5
33148echo "${ECHO_T}no" >&6
33149fi
33150
33151
33152 MACSETFILE="\$(SETFILE)"
33153
33154 if test "$wxUSE_MAC" = 1; then
8ced02f6 33155 POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
004ee6da
RL
33156 RESCOMP="$REZ"
33157 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e 33158 else
004ee6da
RL
33159 POSTLINK_COMMAND="echo -n | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
33160 RESCOMP="echo -n \| $REZ"
33161 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
a848cd7e 33162 fi
004ee6da 33163
a848cd7e 33164else
ffa0583f 33165 MACSETFILE="@true"
a848cd7e 33166
8ced02f6 33167 if test "$wxUSE_PM" = 1; then
004ee6da
RL
33168 RESCOMP="emxbind"
33169 WXCONFIG_RESFLAGS="-ep"
33170
33171 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
a848cd7e 33172 else
8ced02f6 33173 POSTLINK_COMMAND="@true"
a848cd7e 33174 fi
004ee6da 33175
a848cd7e
SC
33176fi
33177
33178
33179
33180echo "$as_me:$LINENO: checking for mode_t" >&5
33181echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
33182if test "${ac_cv_type_mode_t+set}" = set; then
33183 echo $ECHO_N "(cached) $ECHO_C" >&6
33184else
33185 cat >conftest.$ac_ext <<_ACEOF
33186/* confdefs.h. */
33187_ACEOF
33188cat confdefs.h >>conftest.$ac_ext
33189cat >>conftest.$ac_ext <<_ACEOF
33190/* end confdefs.h. */
33191$ac_includes_default
33192int
33193main ()
33194{
33195if ((mode_t *) 0)
33196 return 0;
33197if (sizeof (mode_t))
33198 return 0;
33199 ;
33200 return 0;
33201}
33202_ACEOF
33203rm -f conftest.$ac_objext
33204if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33205 (eval $ac_compile) 2>conftest.er1
a848cd7e 33206 ac_status=$?
ac1cb8d3
VS
33207 grep -v '^ *+' conftest.er1 >conftest.err
33208 rm -f conftest.er1
33209 cat conftest.err >&5
a848cd7e
SC
33210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33211 (exit $ac_status); } &&
c9a66001 33212 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33214 (eval $ac_try) 2>&5
33215 ac_status=$?
33216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33217 (exit $ac_status); }; } &&
33218 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33220 (eval $ac_try) 2>&5
33221 ac_status=$?
33222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33223 (exit $ac_status); }; }; then
33224 ac_cv_type_mode_t=yes
33225else
33226 echo "$as_me: failed program was:" >&5
33227sed 's/^/| /' conftest.$ac_ext >&5
33228
33229ac_cv_type_mode_t=no
33230fi
ac1cb8d3 33231rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33232fi
33233echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33234echo "${ECHO_T}$ac_cv_type_mode_t" >&6
33235if test $ac_cv_type_mode_t = yes; then
33236 :
33237else
33238
33239cat >>confdefs.h <<_ACEOF
33240#define mode_t int
33241_ACEOF
33242
33243fi
33244
33245echo "$as_me:$LINENO: checking for off_t" >&5
33246echo $ECHO_N "checking for off_t... $ECHO_C" >&6
33247if test "${ac_cv_type_off_t+set}" = set; then
33248 echo $ECHO_N "(cached) $ECHO_C" >&6
33249else
33250 cat >conftest.$ac_ext <<_ACEOF
33251/* confdefs.h. */
33252_ACEOF
33253cat confdefs.h >>conftest.$ac_ext
33254cat >>conftest.$ac_ext <<_ACEOF
33255/* end confdefs.h. */
33256$ac_includes_default
33257int
33258main ()
33259{
33260if ((off_t *) 0)
33261 return 0;
33262if (sizeof (off_t))
33263 return 0;
33264 ;
33265 return 0;
33266}
33267_ACEOF
33268rm -f conftest.$ac_objext
33269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33270 (eval $ac_compile) 2>conftest.er1
a848cd7e 33271 ac_status=$?
ac1cb8d3
VS
33272 grep -v '^ *+' conftest.er1 >conftest.err
33273 rm -f conftest.er1
33274 cat conftest.err >&5
a848cd7e
SC
33275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33276 (exit $ac_status); } &&
c9a66001 33277 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33279 (eval $ac_try) 2>&5
33280 ac_status=$?
33281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33282 (exit $ac_status); }; } &&
33283 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33285 (eval $ac_try) 2>&5
33286 ac_status=$?
33287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33288 (exit $ac_status); }; }; then
33289 ac_cv_type_off_t=yes
33290else
33291 echo "$as_me: failed program was:" >&5
33292sed 's/^/| /' conftest.$ac_ext >&5
33293
33294ac_cv_type_off_t=no
33295fi
ac1cb8d3 33296rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33297fi
33298echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33299echo "${ECHO_T}$ac_cv_type_off_t" >&6
33300if test $ac_cv_type_off_t = yes; then
33301 :
33302else
33303
33304cat >>confdefs.h <<_ACEOF
33305#define off_t long
33306_ACEOF
33307
33308fi
33309
33310echo "$as_me:$LINENO: checking for pid_t" >&5
33311echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
33312if test "${ac_cv_type_pid_t+set}" = set; then
33313 echo $ECHO_N "(cached) $ECHO_C" >&6
33314else
33315 cat >conftest.$ac_ext <<_ACEOF
33316/* confdefs.h. */
33317_ACEOF
33318cat confdefs.h >>conftest.$ac_ext
33319cat >>conftest.$ac_ext <<_ACEOF
33320/* end confdefs.h. */
33321$ac_includes_default
33322int
33323main ()
33324{
33325if ((pid_t *) 0)
33326 return 0;
33327if (sizeof (pid_t))
33328 return 0;
33329 ;
33330 return 0;
33331}
33332_ACEOF
33333rm -f conftest.$ac_objext
33334if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33335 (eval $ac_compile) 2>conftest.er1
a848cd7e 33336 ac_status=$?
ac1cb8d3
VS
33337 grep -v '^ *+' conftest.er1 >conftest.err
33338 rm -f conftest.er1
33339 cat conftest.err >&5
a848cd7e
SC
33340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33341 (exit $ac_status); } &&
c9a66001 33342 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33344 (eval $ac_try) 2>&5
33345 ac_status=$?
33346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33347 (exit $ac_status); }; } &&
33348 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33350 (eval $ac_try) 2>&5
33351 ac_status=$?
33352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33353 (exit $ac_status); }; }; then
33354 ac_cv_type_pid_t=yes
33355else
33356 echo "$as_me: failed program was:" >&5
33357sed 's/^/| /' conftest.$ac_ext >&5
33358
33359ac_cv_type_pid_t=no
33360fi
ac1cb8d3 33361rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33362fi
33363echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33364echo "${ECHO_T}$ac_cv_type_pid_t" >&6
33365if test $ac_cv_type_pid_t = yes; then
33366 :
33367else
33368
33369cat >>confdefs.h <<_ACEOF
33370#define pid_t int
33371_ACEOF
33372
33373fi
33374
33375echo "$as_me:$LINENO: checking for size_t" >&5
33376echo $ECHO_N "checking for size_t... $ECHO_C" >&6
33377if test "${ac_cv_type_size_t+set}" = set; then
33378 echo $ECHO_N "(cached) $ECHO_C" >&6
33379else
33380 cat >conftest.$ac_ext <<_ACEOF
33381/* confdefs.h. */
33382_ACEOF
33383cat confdefs.h >>conftest.$ac_ext
33384cat >>conftest.$ac_ext <<_ACEOF
33385/* end confdefs.h. */
33386$ac_includes_default
33387int
33388main ()
33389{
33390if ((size_t *) 0)
33391 return 0;
33392if (sizeof (size_t))
33393 return 0;
33394 ;
33395 return 0;
33396}
33397_ACEOF
33398rm -f conftest.$ac_objext
33399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33400 (eval $ac_compile) 2>conftest.er1
a848cd7e 33401 ac_status=$?
ac1cb8d3
VS
33402 grep -v '^ *+' conftest.er1 >conftest.err
33403 rm -f conftest.er1
33404 cat conftest.err >&5
a848cd7e
SC
33405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33406 (exit $ac_status); } &&
c9a66001 33407 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33409 (eval $ac_try) 2>&5
33410 ac_status=$?
33411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33412 (exit $ac_status); }; } &&
33413 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33415 (eval $ac_try) 2>&5
33416 ac_status=$?
33417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33418 (exit $ac_status); }; }; then
33419 ac_cv_type_size_t=yes
33420else
33421 echo "$as_me: failed program was:" >&5
33422sed 's/^/| /' conftest.$ac_ext >&5
33423
33424ac_cv_type_size_t=no
33425fi
ac1cb8d3 33426rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33427fi
33428echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33429echo "${ECHO_T}$ac_cv_type_size_t" >&6
33430if test $ac_cv_type_size_t = yes; then
33431 :
33432else
33433
33434cat >>confdefs.h <<_ACEOF
33435#define size_t unsigned
33436_ACEOF
33437
33438fi
33439
33440echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33441echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
33442if test "${ac_cv_type_uid_t+set}" = set; then
33443 echo $ECHO_N "(cached) $ECHO_C" >&6
33444else
33445 cat >conftest.$ac_ext <<_ACEOF
33446/* confdefs.h. */
33447_ACEOF
33448cat confdefs.h >>conftest.$ac_ext
33449cat >>conftest.$ac_ext <<_ACEOF
33450/* end confdefs.h. */
33451#include <sys/types.h>
33452
33453_ACEOF
33454if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33455 $EGREP "uid_t" >/dev/null 2>&1; then
33456 ac_cv_type_uid_t=yes
33457else
33458 ac_cv_type_uid_t=no
33459fi
33460rm -f conftest*
33461
33462fi
33463echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33464echo "${ECHO_T}$ac_cv_type_uid_t" >&6
33465if test $ac_cv_type_uid_t = no; then
33466
33467cat >>confdefs.h <<\_ACEOF
33468#define uid_t int
33469_ACEOF
33470
33471
33472cat >>confdefs.h <<\_ACEOF
33473#define gid_t int
33474_ACEOF
33475
33476fi
33477
33478
d51253e8
RL
33479echo "$as_me:$LINENO: checking for ssize_t" >&5
33480echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
33481if test "${ac_cv_type_ssize_t+set}" = set; then
33482 echo $ECHO_N "(cached) $ECHO_C" >&6
33483else
33484 cat >conftest.$ac_ext <<_ACEOF
33485/* confdefs.h. */
33486_ACEOF
33487cat confdefs.h >>conftest.$ac_ext
33488cat >>conftest.$ac_ext <<_ACEOF
33489/* end confdefs.h. */
33490$ac_includes_default
33491int
33492main ()
33493{
33494if ((ssize_t *) 0)
33495 return 0;
33496if (sizeof (ssize_t))
33497 return 0;
33498 ;
33499 return 0;
33500}
33501_ACEOF
33502rm -f conftest.$ac_objext
33503if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33504 (eval $ac_compile) 2>conftest.er1
33505 ac_status=$?
33506 grep -v '^ *+' conftest.er1 >conftest.err
33507 rm -f conftest.er1
33508 cat conftest.err >&5
33509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33510 (exit $ac_status); } &&
c9a66001 33511 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d51253e8
RL
33512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33513 (eval $ac_try) 2>&5
33514 ac_status=$?
33515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33516 (exit $ac_status); }; } &&
33517 { ac_try='test -s conftest.$ac_objext'
33518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33519 (eval $ac_try) 2>&5
33520 ac_status=$?
33521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33522 (exit $ac_status); }; }; then
33523 ac_cv_type_ssize_t=yes
33524else
33525 echo "$as_me: failed program was:" >&5
33526sed 's/^/| /' conftest.$ac_ext >&5
33527
33528ac_cv_type_ssize_t=no
33529fi
33530rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33531fi
33532echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
33533echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
33534if test $ac_cv_type_ssize_t = yes; then
33535
33536cat >>confdefs.h <<_ACEOF
33537#define HAVE_SSIZE_T 1
33538_ACEOF
33539
33540
33541fi
33542
33543
a848cd7e
SC
33544echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
33545echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
33546if test "${wx_cv_size_t_is_uint+set}" = set; then
33547 echo $ECHO_N "(cached) $ECHO_C" >&6
33548else
33549
33550 cat >conftest.$ac_ext <<_ACEOF
33551/* confdefs.h. */
33552_ACEOF
33553cat confdefs.h >>conftest.$ac_ext
33554cat >>conftest.$ac_ext <<_ACEOF
33555/* end confdefs.h. */
33556#include <stddef.h>
33557int
33558main ()
33559{
33560
33561 return 0; }
33562
33563 struct Foo { void foo(size_t); void foo(unsigned int); };
33564
33565 int bar() {
33566
33567 ;
33568 return 0;
33569}
33570_ACEOF
33571rm -f conftest.$ac_objext
33572if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33573 (eval $ac_compile) 2>conftest.er1
a848cd7e 33574 ac_status=$?
ac1cb8d3
VS
33575 grep -v '^ *+' conftest.er1 >conftest.err
33576 rm -f conftest.er1
33577 cat conftest.err >&5
a848cd7e
SC
33578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33579 (exit $ac_status); } &&
c9a66001 33580 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33582 (eval $ac_try) 2>&5
33583 ac_status=$?
33584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33585 (exit $ac_status); }; } &&
33586 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33588 (eval $ac_try) 2>&5
33589 ac_status=$?
33590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33591 (exit $ac_status); }; }; then
33592 wx_cv_size_t_is_uint=no
33593else
33594 echo "$as_me: failed program was:" >&5
33595sed 's/^/| /' conftest.$ac_ext >&5
33596
33597wx_cv_size_t_is_uint=yes
33598
33599fi
ac1cb8d3 33600rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33601
33602
33603fi
33604echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
33605echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
33606
33607if test "$wx_cv_size_t_is_uint" = "yes"; then
33608 cat >>confdefs.h <<\_ACEOF
33609#define wxSIZE_T_IS_UINT 1
33610_ACEOF
33611
33612else
33613 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
33614echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
33615if test "${wx_cv_size_t_is_ulong+set}" = set; then
33616 echo $ECHO_N "(cached) $ECHO_C" >&6
33617else
33618 cat >conftest.$ac_ext <<_ACEOF
33619/* confdefs.h. */
33620_ACEOF
33621cat confdefs.h >>conftest.$ac_ext
33622cat >>conftest.$ac_ext <<_ACEOF
33623/* end confdefs.h. */
33624#include <stddef.h>
33625int
33626main ()
33627{
33628
33629 return 0; }
33630
33631 struct Foo { void foo(size_t); void foo(unsigned long); };
33632
33633 int bar() {
33634
33635 ;
33636 return 0;
33637}
33638_ACEOF
33639rm -f conftest.$ac_objext
33640if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33641 (eval $ac_compile) 2>conftest.er1
a848cd7e 33642 ac_status=$?
ac1cb8d3
VS
33643 grep -v '^ *+' conftest.er1 >conftest.err
33644 rm -f conftest.er1
33645 cat conftest.err >&5
a848cd7e
SC
33646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33647 (exit $ac_status); } &&
c9a66001 33648 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33650 (eval $ac_try) 2>&5
33651 ac_status=$?
33652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33653 (exit $ac_status); }; } &&
33654 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33656 (eval $ac_try) 2>&5
33657 ac_status=$?
33658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33659 (exit $ac_status); }; }; then
33660 wx_cv_size_t_is_ulong=no
33661else
33662 echo "$as_me: failed program was:" >&5
33663sed 's/^/| /' conftest.$ac_ext >&5
33664
33665wx_cv_size_t_is_ulong=yes
33666
33667fi
ac1cb8d3 33668rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33669
33670fi
33671echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
33672echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
33673
33674 if test "$wx_cv_size_t_is_ulong" = "yes"; then
33675 cat >>confdefs.h <<\_ACEOF
33676#define wxSIZE_T_IS_ULONG 1
33677_ACEOF
33678
33679 fi
33680fi
33681
a848cd7e
SC
33682
33683echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
33684echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
33685if test "${wx_cv_struct_pw_gecos+set}" = set; then
33686 echo $ECHO_N "(cached) $ECHO_C" >&6
33687else
33688
33689 cat >conftest.$ac_ext <<_ACEOF
33690/* confdefs.h. */
33691_ACEOF
33692cat confdefs.h >>conftest.$ac_ext
33693cat >>conftest.$ac_ext <<_ACEOF
33694/* end confdefs.h. */
33695#include <pwd.h>
33696int
33697main ()
33698{
33699
33700 char *p;
33701 struct passwd *pw;
33702 p = pw->pw_gecos;
33703
33704 ;
33705 return 0;
33706}
33707_ACEOF
33708rm -f conftest.$ac_objext
33709if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33710 (eval $ac_compile) 2>conftest.er1
a848cd7e 33711 ac_status=$?
ac1cb8d3
VS
33712 grep -v '^ *+' conftest.er1 >conftest.err
33713 rm -f conftest.er1
33714 cat conftest.err >&5
a848cd7e
SC
33715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33716 (exit $ac_status); } &&
c9a66001 33717 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33719 (eval $ac_try) 2>&5
33720 ac_status=$?
33721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33722 (exit $ac_status); }; } &&
33723 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33725 (eval $ac_try) 2>&5
33726 ac_status=$?
33727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33728 (exit $ac_status); }; }; then
33729
33730 wx_cv_struct_pw_gecos=yes
33731
33732else
33733 echo "$as_me: failed program was:" >&5
33734sed 's/^/| /' conftest.$ac_ext >&5
33735
33736
33737 wx_cv_struct_pw_gecos=no
33738
33739
33740fi
ac1cb8d3 33741rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33742
33743
33744fi
33745echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
33746echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
33747
33748if test "$wx_cv_struct_pw_gecos" = "yes"; then
33749 cat >>confdefs.h <<\_ACEOF
33750#define HAVE_PW_GECOS 1
33751_ACEOF
33752
33753fi
33754
33755
47a7e797 33756if test "$wxUSE_WCHAR_T" = "yes"; then
a848cd7e
SC
33757 cat >>confdefs.h <<\_ACEOF
33758#define wxUSE_WCHAR_T 1
33759_ACEOF
33760
33761
33762 WCSLEN_FOUND=0
33763 WCHAR_LINK=
33764
33765for ac_func in wcslen
33766do
33767as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33768echo "$as_me:$LINENO: checking for $ac_func" >&5
33769echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33770if eval "test \"\${$as_ac_var+set}\" = set"; then
33771 echo $ECHO_N "(cached) $ECHO_C" >&6
33772else
33773 cat >conftest.$ac_ext <<_ACEOF
33774/* confdefs.h. */
33775_ACEOF
33776cat confdefs.h >>conftest.$ac_ext
33777cat >>conftest.$ac_ext <<_ACEOF
33778/* end confdefs.h. */
ac1cb8d3
VS
33779/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33780 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33781#define $ac_func innocuous_$ac_func
33782
a848cd7e
SC
33783/* System header to define __stub macros and hopefully few prototypes,
33784 which can conflict with char $ac_func (); below.
33785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33786 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33787
a848cd7e
SC
33788#ifdef __STDC__
33789# include <limits.h>
33790#else
33791# include <assert.h>
33792#endif
ac1cb8d3
VS
33793
33794#undef $ac_func
33795
a848cd7e
SC
33796/* Override any gcc2 internal prototype to avoid an error. */
33797#ifdef __cplusplus
33798extern "C"
33799{
33800#endif
33801/* We use char because int might match the return type of a gcc2
33802 builtin and then its argument prototype would still apply. */
33803char $ac_func ();
33804/* The GNU C library defines this for functions which it implements
33805 to always fail with ENOSYS. Some functions are actually named
33806 something starting with __ and the normal name is an alias. */
33807#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33808choke me
33809#else
33810char (*f) () = $ac_func;
33811#endif
33812#ifdef __cplusplus
33813}
33814#endif
33815
33816int
33817main ()
33818{
33819return f != $ac_func;
33820 ;
33821 return 0;
33822}
33823_ACEOF
33824rm -f conftest.$ac_objext conftest$ac_exeext
33825if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33826 (eval $ac_link) 2>conftest.er1
a848cd7e 33827 ac_status=$?
ac1cb8d3
VS
33828 grep -v '^ *+' conftest.er1 >conftest.err
33829 rm -f conftest.er1
33830 cat conftest.err >&5
a848cd7e
SC
33831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33832 (exit $ac_status); } &&
c9a66001 33833 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33835 (eval $ac_try) 2>&5
33836 ac_status=$?
33837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33838 (exit $ac_status); }; } &&
33839 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33841 (eval $ac_try) 2>&5
33842 ac_status=$?
33843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33844 (exit $ac_status); }; }; then
33845 eval "$as_ac_var=yes"
33846else
33847 echo "$as_me: failed program was:" >&5
33848sed 's/^/| /' conftest.$ac_ext >&5
33849
33850eval "$as_ac_var=no"
33851fi
ac1cb8d3
VS
33852rm -f conftest.err conftest.$ac_objext \
33853 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33854fi
33855echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33856echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33857if test `eval echo '${'$as_ac_var'}'` = yes; then
33858 cat >>confdefs.h <<_ACEOF
33859#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33860_ACEOF
33861 WCSLEN_FOUND=1
33862fi
33863done
33864
33865
33866 if test "$WCSLEN_FOUND" = 0; then
33867 if test "$TOOLKIT" = "MSW"; then
33868 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
33869echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
33870if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
33871 echo $ECHO_N "(cached) $ECHO_C" >&6
33872else
33873 ac_check_lib_save_LIBS=$LIBS
33874LIBS="-lmsvcrt $LIBS"
33875cat >conftest.$ac_ext <<_ACEOF
33876/* confdefs.h. */
33877_ACEOF
33878cat confdefs.h >>conftest.$ac_ext
33879cat >>conftest.$ac_ext <<_ACEOF
33880/* end confdefs.h. */
33881
33882/* Override any gcc2 internal prototype to avoid an error. */
33883#ifdef __cplusplus
33884extern "C"
33885#endif
33886/* We use char because int might match the return type of a gcc2
33887 builtin and then its argument prototype would still apply. */
33888char wcslen ();
33889int
33890main ()
33891{
33892wcslen ();
33893 ;
33894 return 0;
33895}
33896_ACEOF
33897rm -f conftest.$ac_objext conftest$ac_exeext
33898if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33899 (eval $ac_link) 2>conftest.er1
a848cd7e 33900 ac_status=$?
ac1cb8d3
VS
33901 grep -v '^ *+' conftest.er1 >conftest.err
33902 rm -f conftest.er1
33903 cat conftest.err >&5
a848cd7e
SC
33904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33905 (exit $ac_status); } &&
c9a66001 33906 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33908 (eval $ac_try) 2>&5
33909 ac_status=$?
33910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33911 (exit $ac_status); }; } &&
33912 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33914 (eval $ac_try) 2>&5
33915 ac_status=$?
33916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33917 (exit $ac_status); }; }; then
33918 ac_cv_lib_msvcrt_wcslen=yes
33919else
33920 echo "$as_me: failed program was:" >&5
33921sed 's/^/| /' conftest.$ac_ext >&5
33922
33923ac_cv_lib_msvcrt_wcslen=no
33924fi
ac1cb8d3
VS
33925rm -f conftest.err conftest.$ac_objext \
33926 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33927LIBS=$ac_check_lib_save_LIBS
33928fi
33929echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
33930echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
33931if test $ac_cv_lib_msvcrt_wcslen = yes; then
33932 WCHAR_OK=1
33933fi
33934
33935 else
33936 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
33937echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
33938if test "${ac_cv_lib_w_wcslen+set}" = set; then
33939 echo $ECHO_N "(cached) $ECHO_C" >&6
33940else
33941 ac_check_lib_save_LIBS=$LIBS
33942LIBS="-lw $LIBS"
33943cat >conftest.$ac_ext <<_ACEOF
33944/* confdefs.h. */
33945_ACEOF
33946cat confdefs.h >>conftest.$ac_ext
33947cat >>conftest.$ac_ext <<_ACEOF
33948/* end confdefs.h. */
33949
33950/* Override any gcc2 internal prototype to avoid an error. */
33951#ifdef __cplusplus
33952extern "C"
33953#endif
33954/* We use char because int might match the return type of a gcc2
33955 builtin and then its argument prototype would still apply. */
33956char wcslen ();
33957int
33958main ()
33959{
33960wcslen ();
33961 ;
33962 return 0;
33963}
33964_ACEOF
33965rm -f conftest.$ac_objext conftest$ac_exeext
33966if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33967 (eval $ac_link) 2>conftest.er1
a848cd7e 33968 ac_status=$?
ac1cb8d3
VS
33969 grep -v '^ *+' conftest.er1 >conftest.err
33970 rm -f conftest.er1
33971 cat conftest.err >&5
a848cd7e
SC
33972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33973 (exit $ac_status); } &&
c9a66001 33974 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33976 (eval $ac_try) 2>&5
33977 ac_status=$?
33978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33979 (exit $ac_status); }; } &&
33980 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33982 (eval $ac_try) 2>&5
33983 ac_status=$?
33984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33985 (exit $ac_status); }; }; then
33986 ac_cv_lib_w_wcslen=yes
33987else
33988 echo "$as_me: failed program was:" >&5
33989sed 's/^/| /' conftest.$ac_ext >&5
33990
33991ac_cv_lib_w_wcslen=no
33992fi
ac1cb8d3
VS
33993rm -f conftest.err conftest.$ac_objext \
33994 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33995LIBS=$ac_check_lib_save_LIBS
33996fi
33997echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
33998echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
33999if test $ac_cv_lib_w_wcslen = yes; then
34000
34001 WCHAR_LINK=" -lw"
34002 WCSLEN_FOUND=1
34003
34004fi
34005
34006 fi
34007 fi
34008
34009 if test "$WCSLEN_FOUND" = 1; then
34010 cat >>confdefs.h <<\_ACEOF
34011#define HAVE_WCSLEN 1
34012_ACEOF
34013
34014 fi
34015
efdf6afe 34016 if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
c92ad099 34017 CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
473276a9
VS
34018 fi
34019
efdf6afe
VZ
34020 echo "$as_me:$LINENO: checking for mbstate_t" >&5
34021echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
34022if test "${ac_cv_type_mbstate_t+set}" = set; then
34023 echo $ECHO_N "(cached) $ECHO_C" >&6
34024else
34025 cat >conftest.$ac_ext <<_ACEOF
34026/* confdefs.h. */
34027_ACEOF
34028cat confdefs.h >>conftest.$ac_ext
34029cat >>conftest.$ac_ext <<_ACEOF
34030/* end confdefs.h. */
34031#include <wchar.h>
34032
34033int
34034main ()
34035{
34036if ((mbstate_t *) 0)
34037 return 0;
34038if (sizeof (mbstate_t))
34039 return 0;
34040 ;
34041 return 0;
34042}
34043_ACEOF
34044rm -f conftest.$ac_objext
34045if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34046 (eval $ac_compile) 2>conftest.er1
34047 ac_status=$?
34048 grep -v '^ *+' conftest.er1 >conftest.err
34049 rm -f conftest.er1
34050 cat conftest.err >&5
34051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34052 (exit $ac_status); } &&
c9a66001 34053 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
efdf6afe
VZ
34054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34055 (eval $ac_try) 2>&5
34056 ac_status=$?
34057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34058 (exit $ac_status); }; } &&
34059 { ac_try='test -s conftest.$ac_objext'
34060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34061 (eval $ac_try) 2>&5
34062 ac_status=$?
34063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34064 (exit $ac_status); }; }; then
34065 ac_cv_type_mbstate_t=yes
34066else
34067 echo "$as_me: failed program was:" >&5
34068sed 's/^/| /' conftest.$ac_ext >&5
34069
34070ac_cv_type_mbstate_t=no
34071fi
34072rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34073fi
34074echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
34075echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
34076if test $ac_cv_type_mbstate_t = yes; then
34077
34078cat >>confdefs.h <<_ACEOF
34079#define HAVE_MBSTATE_T 1
34080_ACEOF
34081
a848cd7e
SC
34082
34083for ac_func in wcsrtombs
34084do
34085as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34086echo "$as_me:$LINENO: checking for $ac_func" >&5
34087echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34088if eval "test \"\${$as_ac_var+set}\" = set"; then
34089 echo $ECHO_N "(cached) $ECHO_C" >&6
34090else
34091 cat >conftest.$ac_ext <<_ACEOF
34092/* confdefs.h. */
34093_ACEOF
34094cat confdefs.h >>conftest.$ac_ext
34095cat >>conftest.$ac_ext <<_ACEOF
34096/* end confdefs.h. */
ac1cb8d3
VS
34097/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34098 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34099#define $ac_func innocuous_$ac_func
34100
a848cd7e
SC
34101/* System header to define __stub macros and hopefully few prototypes,
34102 which can conflict with char $ac_func (); below.
34103 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34104 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34105
a848cd7e
SC
34106#ifdef __STDC__
34107# include <limits.h>
34108#else
34109# include <assert.h>
34110#endif
ac1cb8d3
VS
34111
34112#undef $ac_func
34113
a848cd7e
SC
34114/* Override any gcc2 internal prototype to avoid an error. */
34115#ifdef __cplusplus
34116extern "C"
34117{
34118#endif
34119/* We use char because int might match the return type of a gcc2
34120 builtin and then its argument prototype would still apply. */
34121char $ac_func ();
34122/* The GNU C library defines this for functions which it implements
34123 to always fail with ENOSYS. Some functions are actually named
34124 something starting with __ and the normal name is an alias. */
34125#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34126choke me
34127#else
34128char (*f) () = $ac_func;
34129#endif
34130#ifdef __cplusplus
34131}
34132#endif
34133
34134int
34135main ()
34136{
34137return f != $ac_func;
34138 ;
34139 return 0;
34140}
34141_ACEOF
34142rm -f conftest.$ac_objext conftest$ac_exeext
34143if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34144 (eval $ac_link) 2>conftest.er1
a848cd7e 34145 ac_status=$?
ac1cb8d3
VS
34146 grep -v '^ *+' conftest.er1 >conftest.err
34147 rm -f conftest.er1
34148 cat conftest.err >&5
a848cd7e
SC
34149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34150 (exit $ac_status); } &&
c9a66001 34151 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34153 (eval $ac_try) 2>&5
34154 ac_status=$?
34155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34156 (exit $ac_status); }; } &&
34157 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34159 (eval $ac_try) 2>&5
34160 ac_status=$?
34161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34162 (exit $ac_status); }; }; then
34163 eval "$as_ac_var=yes"
34164else
34165 echo "$as_me: failed program was:" >&5
34166sed 's/^/| /' conftest.$ac_ext >&5
34167
34168eval "$as_ac_var=no"
34169fi
ac1cb8d3
VS
34170rm -f conftest.err conftest.$ac_objext \
34171 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34172fi
34173echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34174echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34175if test `eval echo '${'$as_ac_var'}'` = yes; then
34176 cat >>confdefs.h <<_ACEOF
34177#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34178_ACEOF
34179
34180fi
34181done
34182
efdf6afe
VZ
34183fi
34184
a848cd7e
SC
34185else
34186 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
34187echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
34188fi
34189
a848cd7e 34190
4a767dd5
VZ
34191
34192for ac_func in snprintf vsnprintf
a848cd7e
SC
34193do
34194as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34195echo "$as_me:$LINENO: checking for $ac_func" >&5
34196echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34197if eval "test \"\${$as_ac_var+set}\" = set"; then
34198 echo $ECHO_N "(cached) $ECHO_C" >&6
34199else
34200 cat >conftest.$ac_ext <<_ACEOF
34201/* confdefs.h. */
34202_ACEOF
34203cat confdefs.h >>conftest.$ac_ext
34204cat >>conftest.$ac_ext <<_ACEOF
34205/* end confdefs.h. */
ac1cb8d3
VS
34206/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34207 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34208#define $ac_func innocuous_$ac_func
34209
a848cd7e
SC
34210/* System header to define __stub macros and hopefully few prototypes,
34211 which can conflict with char $ac_func (); below.
34212 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34213 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34214
a848cd7e
SC
34215#ifdef __STDC__
34216# include <limits.h>
34217#else
34218# include <assert.h>
34219#endif
ac1cb8d3
VS
34220
34221#undef $ac_func
34222
a848cd7e
SC
34223/* Override any gcc2 internal prototype to avoid an error. */
34224#ifdef __cplusplus
34225extern "C"
34226{
34227#endif
34228/* We use char because int might match the return type of a gcc2
34229 builtin and then its argument prototype would still apply. */
34230char $ac_func ();
34231/* The GNU C library defines this for functions which it implements
34232 to always fail with ENOSYS. Some functions are actually named
34233 something starting with __ and the normal name is an alias. */
34234#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34235choke me
34236#else
34237char (*f) () = $ac_func;
34238#endif
34239#ifdef __cplusplus
34240}
34241#endif
34242
34243int
34244main ()
34245{
34246return f != $ac_func;
34247 ;
34248 return 0;
34249}
34250_ACEOF
34251rm -f conftest.$ac_objext conftest$ac_exeext
34252if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34253 (eval $ac_link) 2>conftest.er1
a848cd7e 34254 ac_status=$?
ac1cb8d3
VS
34255 grep -v '^ *+' conftest.er1 >conftest.err
34256 rm -f conftest.er1
34257 cat conftest.err >&5
a848cd7e
SC
34258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34259 (exit $ac_status); } &&
c9a66001 34260 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34262 (eval $ac_try) 2>&5
34263 ac_status=$?
34264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34265 (exit $ac_status); }; } &&
34266 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34268 (eval $ac_try) 2>&5
34269 ac_status=$?
34270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34271 (exit $ac_status); }; }; then
34272 eval "$as_ac_var=yes"
34273else
34274 echo "$as_me: failed program was:" >&5
34275sed 's/^/| /' conftest.$ac_ext >&5
34276
34277eval "$as_ac_var=no"
34278fi
ac1cb8d3
VS
34279rm -f conftest.err conftest.$ac_objext \
34280 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34281fi
34282echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34283echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34284if test `eval echo '${'$as_ac_var'}'` = yes; then
34285 cat >>confdefs.h <<_ACEOF
34286#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34287_ACEOF
34288
34289fi
34290done
34291
34292
34293if test "$ac_cv_func_vsnprintf" = "yes"; then
34294 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
34295echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
34296if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
34297 echo $ECHO_N "(cached) $ECHO_C" >&6
34298else
34299
efdf6afe 34300 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
34301/* confdefs.h. */
34302_ACEOF
34303cat confdefs.h >>conftest.$ac_ext
34304cat >>conftest.$ac_ext <<_ACEOF
34305/* end confdefs.h. */
34306
34307 #include <stdio.h>
34308 #include <stdarg.h>
efdf6afe
VZ
34309 #ifdef __MSL__
34310 #if __MSL__ >= 0x6000
34311 namespace std {}
34312 using namespace std;
34313 #endif
34314 #endif
a848cd7e
SC
34315
34316int
34317main ()
34318{
34319
34320 char *buf;
34321 va_list ap;
62fa8b3a 34322 vsnprintf(buf, 10u, "%s", ap);
c122b164
DE
34323
34324 ;
34325 return 0;
34326}
34327_ACEOF
34328rm -f conftest.$ac_objext
34329if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34330 (eval $ac_compile) 2>conftest.er1
34331 ac_status=$?
34332 grep -v '^ *+' conftest.er1 >conftest.err
34333 rm -f conftest.er1
34334 cat conftest.err >&5
34335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34336 (exit $ac_status); } &&
c9a66001 34337 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
c122b164
DE
34338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34339 (eval $ac_try) 2>&5
34340 ac_status=$?
34341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34342 (exit $ac_status); }; } &&
34343 { ac_try='test -s conftest.$ac_objext'
34344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34345 (eval $ac_try) 2>&5
34346 ac_status=$?
34347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34348 (exit $ac_status); }; }; then
34349 wx_cv_func_vsnprintf_decl=yes
34350else
34351 echo "$as_me: failed program was:" >&5
34352sed 's/^/| /' conftest.$ac_ext >&5
34353
a848cd7e
SC
34354wx_cv_func_vsnprintf_decl=no
34355
34356fi
ac1cb8d3 34357rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34358
34359
34360fi
34361echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
34362echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
34363
34364 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
34365 cat >>confdefs.h <<\_ACEOF
34366#define HAVE_VSNPRINTF_DECL 1
34367_ACEOF
34368
62fa8b3a
MW
34369
34370 echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
34371echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6
34372if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
34373 echo $ECHO_N "(cached) $ECHO_C" >&6
34374else
34375
34376 cat >conftest.$ac_ext <<_ACEOF
34377/* confdefs.h. */
34378_ACEOF
34379cat confdefs.h >>conftest.$ac_ext
34380cat >>conftest.$ac_ext <<_ACEOF
34381/* end confdefs.h. */
34382
34383 #include <stdio.h>
34384 #include <stdarg.h>
34385 #ifdef __MSL__
34386 #if __MSL__ >= 0x6000
34387 namespace std {}
34388 using namespace std;
34389 #endif
34390 #endif
34391
34392int
34393main ()
34394{
34395
34396 char *buf;
34397 va_list ap;
34398 const char *fmt = "%s";
34399 vsnprintf(buf, 10u, fmt, ap);
34400
34401 ;
34402 return 0;
34403}
34404_ACEOF
34405rm -f conftest.$ac_objext
34406if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34407 (eval $ac_compile) 2>conftest.er1
34408 ac_status=$?
34409 grep -v '^ *+' conftest.er1 >conftest.err
34410 rm -f conftest.er1
34411 cat conftest.err >&5
34412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34413 (exit $ac_status); } &&
c9a66001 34414 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
34415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34416 (eval $ac_try) 2>&5
34417 ac_status=$?
34418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34419 (exit $ac_status); }; } &&
34420 { ac_try='test -s conftest.$ac_objext'
34421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34422 (eval $ac_try) 2>&5
34423 ac_status=$?
34424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34425 (exit $ac_status); }; }; then
34426 wx_cv_func_broken_vsnprintf_decl=no
34427else
34428 echo "$as_me: failed program was:" >&5
34429sed 's/^/| /' conftest.$ac_ext >&5
34430
34431wx_cv_func_broken_vsnprintf_decl=yes
34432
34433fi
34434rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34435
34436
34437fi
34438echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
34439echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6
34440
34441 if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
34442 cat >>confdefs.h <<\_ACEOF
34443#define HAVE_BROKEN_VSNPRINTF_DECL 1
34444_ACEOF
34445
34446 fi
a848cd7e
SC
34447 fi
34448fi
34449
4a767dd5
VZ
34450if test "$ac_cv_func_snprintf" = "yes"; then
34451 echo "$as_me:$LINENO: checking for snprintf declaration" >&5
34452echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
34453if test "${wx_cv_func_snprintf_decl+set}" = set; then
34454 echo $ECHO_N "(cached) $ECHO_C" >&6
34455else
34456
34457 cat >conftest.$ac_ext <<_ACEOF
34458/* confdefs.h. */
34459_ACEOF
34460cat confdefs.h >>conftest.$ac_ext
34461cat >>conftest.$ac_ext <<_ACEOF
34462/* end confdefs.h. */
34463
34464 #include <stdio.h>
34465 #include <stdarg.h>
34466 #ifdef __MSL__
34467 #if __MSL__ >= 0x6000
34468 namespace std {}
34469 using namespace std;
34470 #endif
34471 #endif
34472
34473int
34474main ()
34475{
34476
34477 char *buf;
62fa8b3a 34478 snprintf(buf, 10u, "%s", "wx");
4a767dd5
VZ
34479
34480 ;
34481 return 0;
34482}
34483_ACEOF
34484rm -f conftest.$ac_objext
34485if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34486 (eval $ac_compile) 2>conftest.er1
34487 ac_status=$?
34488 grep -v '^ *+' conftest.er1 >conftest.err
34489 rm -f conftest.er1
34490 cat conftest.err >&5
34491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34492 (exit $ac_status); } &&
c9a66001 34493 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4a767dd5
VZ
34494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34495 (eval $ac_try) 2>&5
34496 ac_status=$?
34497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34498 (exit $ac_status); }; } &&
34499 { ac_try='test -s conftest.$ac_objext'
34500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34501 (eval $ac_try) 2>&5
34502 ac_status=$?
34503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34504 (exit $ac_status); }; }; then
34505 wx_cv_func_snprintf_decl=yes
34506else
34507 echo "$as_me: failed program was:" >&5
34508sed 's/^/| /' conftest.$ac_ext >&5
34509
34510wx_cv_func_snprintf_decl=no
34511
34512fi
34513rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34514
34515
34516fi
34517echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
34518echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6
34519
34520 if test "$wx_cv_func_snprintf_decl" = "yes"; then
34521 cat >>confdefs.h <<\_ACEOF
34522#define HAVE_SNPRINTF_DECL 1
34523_ACEOF
34524
62fa8b3a
MW
34525
34526 echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5
34527echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6
34528if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then
34529 echo $ECHO_N "(cached) $ECHO_C" >&6
34530else
34531
34532 cat >conftest.$ac_ext <<_ACEOF
34533/* confdefs.h. */
34534_ACEOF
34535cat confdefs.h >>conftest.$ac_ext
34536cat >>conftest.$ac_ext <<_ACEOF
34537/* end confdefs.h. */
34538
34539 #include <stdio.h>
34540 #include <stdarg.h>
34541 #ifdef __MSL__
34542 #if __MSL__ >= 0x6000
34543 namespace std {}
34544 using namespace std;
34545 #endif
34546 #endif
34547
34548int
34549main ()
34550{
34551
34552 char *buf;
34553 const char *fmt = "%s";
34554 snprintf(buf, 10u, fmt, "wx");
34555
34556 ;
34557 return 0;
34558}
34559_ACEOF
34560rm -f conftest.$ac_objext
34561if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34562 (eval $ac_compile) 2>conftest.er1
34563 ac_status=$?
34564 grep -v '^ *+' conftest.er1 >conftest.err
34565 rm -f conftest.er1
34566 cat conftest.err >&5
34567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34568 (exit $ac_status); } &&
c9a66001 34569 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
34570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34571 (eval $ac_try) 2>&5
34572 ac_status=$?
34573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34574 (exit $ac_status); }; } &&
34575 { ac_try='test -s conftest.$ac_objext'
34576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34577 (eval $ac_try) 2>&5
34578 ac_status=$?
34579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34580 (exit $ac_status); }; }; then
34581 wx_cv_func_broken_snprintf_decl=no
34582else
34583 echo "$as_me: failed program was:" >&5
34584sed 's/^/| /' conftest.$ac_ext >&5
34585
34586wx_cv_func_broken_snprintf_decl=yes
34587
34588fi
34589rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34590
34591
34592fi
34593echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5
34594echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6
34595
34596 if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then
34597 cat >>confdefs.h <<\_ACEOF
34598#define HAVE_BROKEN_SNPRINTF_DECL 1
8b6682b9
JS
34599_ACEOF
34600
34601 fi
34602 fi
34603
34604 if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
34605
34606 echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5
34607echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6
34608if test "${wx_cv_func_snprintf_pos_params+set}" = set; then
34609 echo $ECHO_N "(cached) $ECHO_C" >&6
34610else
34611
34612 if test "$cross_compiling" = yes; then
34613 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
34614See \`config.log' for more details." >&5
34615echo "$as_me: error: cannot run test program while cross compiling
34616See \`config.log' for more details." >&2;}
34617 { (exit 1); exit 1; }; }
34618else
34619 cat >conftest.$ac_ext <<_ACEOF
34620/* confdefs.h. */
34621_ACEOF
34622cat confdefs.h >>conftest.$ac_ext
34623cat >>conftest.$ac_ext <<_ACEOF
34624/* end confdefs.h. */
34625
34626 #include <stdio.h>
34627
34628 int main (void)
34629 {
34630 char buffer[128];
34631 snprintf (buffer, 128, "%2\$d %3\$d %1\$d", 1, 2, 3);
34632 if (strcmp ("2 3 1", buffer) == 0)
34633 exit (0);
34634 exit (1);
34635 }
34636
34637_ACEOF
34638rm -f conftest$ac_exeext
34639if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34640 (eval $ac_link) 2>&5
34641 ac_status=$?
34642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34643 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34645 (eval $ac_try) 2>&5
34646 ac_status=$?
34647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34648 (exit $ac_status); }; }; then
34649 wx_cv_func_snprintf_pos_params=no
34650else
34651 echo "$as_me: program exited with status $ac_status" >&5
34652echo "$as_me: failed program was:" >&5
34653sed 's/^/| /' conftest.$ac_ext >&5
34654
34655( exit $ac_status )
34656wx_cv_func_snprintf_pos_params=yes
34657
34658fi
34659rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34660fi
34661
34662
34663fi
34664echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5
34665echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6
34666
34667 if test "$wx_cv_func_snprintf_pos_params" = "yes"; then
34668 cat >>confdefs.h <<\_ACEOF
34669#define HAVE_UNIX98_PRINTF 1
62fa8b3a
MW
34670_ACEOF
34671
34672 fi
4a767dd5
VZ
34673 fi
34674fi
34675
8b6682b9 34676
a848cd7e
SC
34677if test "$wxUSE_UNICODE" = yes; then
34678
34679
34680
fbe47c7b
VS
34681
34682
34683
34684for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
34685do
34686as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34687echo "$as_me:$LINENO: checking for $ac_func" >&5
34688echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34689if eval "test \"\${$as_ac_var+set}\" = set"; then
34690 echo $ECHO_N "(cached) $ECHO_C" >&6
34691else
34692 cat >conftest.$ac_ext <<_ACEOF
34693/* confdefs.h. */
34694_ACEOF
34695cat confdefs.h >>conftest.$ac_ext
34696cat >>conftest.$ac_ext <<_ACEOF
34697/* end confdefs.h. */
ac1cb8d3
VS
34698/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34699 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34700#define $ac_func innocuous_$ac_func
34701
a848cd7e
SC
34702/* System header to define __stub macros and hopefully few prototypes,
34703 which can conflict with char $ac_func (); below.
34704 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34705 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34706
a848cd7e
SC
34707#ifdef __STDC__
34708# include <limits.h>
34709#else
34710# include <assert.h>
34711#endif
ac1cb8d3
VS
34712
34713#undef $ac_func
34714
a848cd7e
SC
34715/* Override any gcc2 internal prototype to avoid an error. */
34716#ifdef __cplusplus
34717extern "C"
34718{
34719#endif
34720/* We use char because int might match the return type of a gcc2
34721 builtin and then its argument prototype would still apply. */
34722char $ac_func ();
34723/* The GNU C library defines this for functions which it implements
34724 to always fail with ENOSYS. Some functions are actually named
34725 something starting with __ and the normal name is an alias. */
34726#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34727choke me
34728#else
34729char (*f) () = $ac_func;
34730#endif
34731#ifdef __cplusplus
34732}
34733#endif
34734
34735int
34736main ()
34737{
34738return f != $ac_func;
34739 ;
34740 return 0;
34741}
34742_ACEOF
34743rm -f conftest.$ac_objext conftest$ac_exeext
34744if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34745 (eval $ac_link) 2>conftest.er1
a848cd7e 34746 ac_status=$?
ac1cb8d3
VS
34747 grep -v '^ *+' conftest.er1 >conftest.err
34748 rm -f conftest.er1
34749 cat conftest.err >&5
a848cd7e
SC
34750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34751 (exit $ac_status); } &&
c9a66001 34752 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34754 (eval $ac_try) 2>&5
34755 ac_status=$?
34756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34757 (exit $ac_status); }; } &&
34758 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34760 (eval $ac_try) 2>&5
34761 ac_status=$?
34762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34763 (exit $ac_status); }; }; then
34764 eval "$as_ac_var=yes"
34765else
34766 echo "$as_me: failed program was:" >&5
34767sed 's/^/| /' conftest.$ac_ext >&5
34768
34769eval "$as_ac_var=no"
34770fi
ac1cb8d3
VS
34771rm -f conftest.err conftest.$ac_objext \
34772 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34773fi
34774echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34775echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34776if test `eval echo '${'$as_ac_var'}'` = yes; then
34777 cat >>confdefs.h <<_ACEOF
34778#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34779_ACEOF
34780
34781fi
34782done
34783
34784
34785 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
34786echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
34787 cat >conftest.$ac_ext <<_ACEOF
34788/* confdefs.h. */
34789_ACEOF
34790cat confdefs.h >>conftest.$ac_ext
34791cat >>conftest.$ac_ext <<_ACEOF
34792/* end confdefs.h. */
34793#include <wchar.h>
34794int
34795main ()
34796{
34797&_vsnwprintf;
34798 ;
34799 return 0;
34800}
34801_ACEOF
34802rm -f conftest.$ac_objext
34803if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34804 (eval $ac_compile) 2>conftest.er1
a848cd7e 34805 ac_status=$?
ac1cb8d3
VS
34806 grep -v '^ *+' conftest.er1 >conftest.err
34807 rm -f conftest.er1
34808 cat conftest.err >&5
a848cd7e
SC
34809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34810 (exit $ac_status); } &&
c9a66001 34811 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34813 (eval $ac_try) 2>&5
34814 ac_status=$?
34815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34816 (exit $ac_status); }; } &&
34817 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34819 (eval $ac_try) 2>&5
34820 ac_status=$?
34821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34822 (exit $ac_status); }; }; then
34823 echo "$as_me:$LINENO: result: yes" >&5
34824echo "${ECHO_T}yes" >&6
34825 cat >>confdefs.h <<\_ACEOF
34826#define HAVE__VSNWPRINTF 1
34827_ACEOF
34828
34829else
34830 echo "$as_me: failed program was:" >&5
34831sed 's/^/| /' conftest.$ac_ext >&5
34832
34833echo "$as_me:$LINENO: result: no" >&5
34834echo "${ECHO_T}no" >&6
34835fi
ac1cb8d3 34836rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
34837fi
34838
6ebeb4c7
VZ
34839if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
34840
34841for ac_func in fnmatch
34842do
34843as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34844echo "$as_me:$LINENO: checking for $ac_func" >&5
34845echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34846if eval "test \"\${$as_ac_var+set}\" = set"; then
34847 echo $ECHO_N "(cached) $ECHO_C" >&6
34848else
34849 cat >conftest.$ac_ext <<_ACEOF
34850/* confdefs.h. */
34851_ACEOF
34852cat confdefs.h >>conftest.$ac_ext
34853cat >>conftest.$ac_ext <<_ACEOF
34854/* end confdefs.h. */
34855/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34856 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34857#define $ac_func innocuous_$ac_func
34858
34859/* System header to define __stub macros and hopefully few prototypes,
34860 which can conflict with char $ac_func (); below.
34861 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34862 <limits.h> exists even on freestanding compilers. */
34863
34864#ifdef __STDC__
34865# include <limits.h>
34866#else
34867# include <assert.h>
34868#endif
34869
34870#undef $ac_func
34871
34872/* Override any gcc2 internal prototype to avoid an error. */
34873#ifdef __cplusplus
34874extern "C"
34875{
34876#endif
34877/* We use char because int might match the return type of a gcc2
34878 builtin and then its argument prototype would still apply. */
34879char $ac_func ();
34880/* The GNU C library defines this for functions which it implements
34881 to always fail with ENOSYS. Some functions are actually named
34882 something starting with __ and the normal name is an alias. */
34883#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34884choke me
34885#else
34886char (*f) () = $ac_func;
34887#endif
34888#ifdef __cplusplus
34889}
34890#endif
34891
34892int
34893main ()
34894{
34895return f != $ac_func;
34896 ;
34897 return 0;
34898}
34899_ACEOF
34900rm -f conftest.$ac_objext conftest$ac_exeext
34901if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34902 (eval $ac_link) 2>conftest.er1
34903 ac_status=$?
34904 grep -v '^ *+' conftest.er1 >conftest.err
34905 rm -f conftest.er1
34906 cat conftest.err >&5
34907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34908 (exit $ac_status); } &&
c9a66001 34909 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
34910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34911 (eval $ac_try) 2>&5
34912 ac_status=$?
34913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34914 (exit $ac_status); }; } &&
34915 { ac_try='test -s conftest$ac_exeext'
34916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34917 (eval $ac_try) 2>&5
34918 ac_status=$?
34919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34920 (exit $ac_status); }; }; then
34921 eval "$as_ac_var=yes"
34922else
34923 echo "$as_me: failed program was:" >&5
34924sed 's/^/| /' conftest.$ac_ext >&5
34925
34926eval "$as_ac_var=no"
34927fi
34928rm -f conftest.err conftest.$ac_objext \
34929 conftest$ac_exeext conftest.$ac_ext
34930fi
34931echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34932echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34933if test `eval echo '${'$as_ac_var'}'` = yes; then
34934 cat >>confdefs.h <<_ACEOF
34935#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34936_ACEOF
34937
34938fi
34939done
34940
34941fi
34942
34943if test "$wxUSE_FILE" = "yes"; then
34944
34945for ac_func in fsync
34946do
34947as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34948echo "$as_me:$LINENO: checking for $ac_func" >&5
34949echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34950if eval "test \"\${$as_ac_var+set}\" = set"; then
34951 echo $ECHO_N "(cached) $ECHO_C" >&6
34952else
34953 cat >conftest.$ac_ext <<_ACEOF
34954/* confdefs.h. */
34955_ACEOF
34956cat confdefs.h >>conftest.$ac_ext
34957cat >>conftest.$ac_ext <<_ACEOF
34958/* end confdefs.h. */
34959/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34960 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34961#define $ac_func innocuous_$ac_func
34962
34963/* System header to define __stub macros and hopefully few prototypes,
34964 which can conflict with char $ac_func (); below.
34965 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34966 <limits.h> exists even on freestanding compilers. */
34967
34968#ifdef __STDC__
34969# include <limits.h>
34970#else
34971# include <assert.h>
34972#endif
34973
34974#undef $ac_func
34975
34976/* Override any gcc2 internal prototype to avoid an error. */
34977#ifdef __cplusplus
34978extern "C"
34979{
34980#endif
34981/* We use char because int might match the return type of a gcc2
34982 builtin and then its argument prototype would still apply. */
34983char $ac_func ();
34984/* The GNU C library defines this for functions which it implements
34985 to always fail with ENOSYS. Some functions are actually named
34986 something starting with __ and the normal name is an alias. */
34987#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34988choke me
34989#else
34990char (*f) () = $ac_func;
34991#endif
34992#ifdef __cplusplus
34993}
34994#endif
34995
34996int
34997main ()
34998{
34999return f != $ac_func;
35000 ;
35001 return 0;
35002}
35003_ACEOF
35004rm -f conftest.$ac_objext conftest$ac_exeext
35005if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35006 (eval $ac_link) 2>conftest.er1
35007 ac_status=$?
35008 grep -v '^ *+' conftest.er1 >conftest.err
35009 rm -f conftest.er1
35010 cat conftest.err >&5
35011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35012 (exit $ac_status); } &&
c9a66001 35013 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
35014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35015 (eval $ac_try) 2>&5
35016 ac_status=$?
35017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35018 (exit $ac_status); }; } &&
35019 { ac_try='test -s conftest$ac_exeext'
35020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35021 (eval $ac_try) 2>&5
35022 ac_status=$?
35023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35024 (exit $ac_status); }; }; then
35025 eval "$as_ac_var=yes"
35026else
35027 echo "$as_me: failed program was:" >&5
35028sed 's/^/| /' conftest.$ac_ext >&5
35029
35030eval "$as_ac_var=no"
35031fi
35032rm -f conftest.err conftest.$ac_objext \
35033 conftest$ac_exeext conftest.$ac_ext
35034fi
35035echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35036echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35037if test `eval echo '${'$as_ac_var'}'` = yes; then
35038 cat >>confdefs.h <<_ACEOF
35039#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35040_ACEOF
35041
35042fi
35043done
35044
35045fi
a848cd7e
SC
35046
35047
c2e9ada4
VZ
35048for ac_func in round
35049do
35050as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35051echo "$as_me:$LINENO: checking for $ac_func" >&5
35052echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35053if eval "test \"\${$as_ac_var+set}\" = set"; then
35054 echo $ECHO_N "(cached) $ECHO_C" >&6
35055else
35056 cat >conftest.$ac_ext <<_ACEOF
35057/* confdefs.h. */
35058_ACEOF
35059cat confdefs.h >>conftest.$ac_ext
35060cat >>conftest.$ac_ext <<_ACEOF
35061/* end confdefs.h. */
35062/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35063 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35064#define $ac_func innocuous_$ac_func
35065
35066/* System header to define __stub macros and hopefully few prototypes,
35067 which can conflict with char $ac_func (); below.
35068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35069 <limits.h> exists even on freestanding compilers. */
35070
35071#ifdef __STDC__
35072# include <limits.h>
35073#else
35074# include <assert.h>
35075#endif
35076
35077#undef $ac_func
35078
35079/* Override any gcc2 internal prototype to avoid an error. */
35080#ifdef __cplusplus
35081extern "C"
35082{
35083#endif
35084/* We use char because int might match the return type of a gcc2
35085 builtin and then its argument prototype would still apply. */
35086char $ac_func ();
35087/* The GNU C library defines this for functions which it implements
35088 to always fail with ENOSYS. Some functions are actually named
35089 something starting with __ and the normal name is an alias. */
35090#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35091choke me
35092#else
35093char (*f) () = $ac_func;
35094#endif
35095#ifdef __cplusplus
35096}
35097#endif
35098
35099int
35100main ()
35101{
35102return f != $ac_func;
35103 ;
35104 return 0;
35105}
35106_ACEOF
35107rm -f conftest.$ac_objext conftest$ac_exeext
35108if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35109 (eval $ac_link) 2>conftest.er1
35110 ac_status=$?
35111 grep -v '^ *+' conftest.er1 >conftest.err
35112 rm -f conftest.er1
35113 cat conftest.err >&5
35114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35115 (exit $ac_status); } &&
35116 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
35117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35118 (eval $ac_try) 2>&5
35119 ac_status=$?
35120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35121 (exit $ac_status); }; } &&
35122 { ac_try='test -s conftest$ac_exeext'
35123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35124 (eval $ac_try) 2>&5
35125 ac_status=$?
35126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35127 (exit $ac_status); }; }; then
35128 eval "$as_ac_var=yes"
35129else
35130 echo "$as_me: failed program was:" >&5
35131sed 's/^/| /' conftest.$ac_ext >&5
35132
35133eval "$as_ac_var=no"
35134fi
35135rm -f conftest.err conftest.$ac_objext \
35136 conftest$ac_exeext conftest.$ac_ext
35137fi
35138echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35139echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35140if test `eval echo '${'$as_ac_var'}'` = yes; then
35141 cat >>confdefs.h <<_ACEOF
35142#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35143_ACEOF
35144
35145fi
35146done
35147
35148if test "$ac_cv_func_round" = yes; then
35149 echo "$as_me:$LINENO: checking whether round is declared" >&5
35150echo $ECHO_N "checking whether round is declared... $ECHO_C" >&6
35151if test "${ac_cv_have_decl_round+set}" = set; then
35152 echo $ECHO_N "(cached) $ECHO_C" >&6
35153else
35154 cat >conftest.$ac_ext <<_ACEOF
35155/* confdefs.h. */
35156_ACEOF
35157cat confdefs.h >>conftest.$ac_ext
35158cat >>conftest.$ac_ext <<_ACEOF
35159/* end confdefs.h. */
35160#include <math.h>
35161
35162int
35163main ()
35164{
35165#ifndef round
35166 char *p = (char *) round;
35167#endif
35168
35169 ;
35170 return 0;
35171}
35172_ACEOF
35173rm -f conftest.$ac_objext
35174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35175 (eval $ac_compile) 2>conftest.er1
35176 ac_status=$?
35177 grep -v '^ *+' conftest.er1 >conftest.err
35178 rm -f conftest.er1
35179 cat conftest.err >&5
35180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35181 (exit $ac_status); } &&
35182 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
35183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35184 (eval $ac_try) 2>&5
35185 ac_status=$?
35186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35187 (exit $ac_status); }; } &&
35188 { ac_try='test -s conftest.$ac_objext'
35189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35190 (eval $ac_try) 2>&5
35191 ac_status=$?
35192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35193 (exit $ac_status); }; }; then
35194 ac_cv_have_decl_round=yes
35195else
35196 echo "$as_me: failed program was:" >&5
35197sed 's/^/| /' conftest.$ac_ext >&5
35198
35199ac_cv_have_decl_round=no
35200fi
35201rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35202fi
35203echo "$as_me:$LINENO: result: $ac_cv_have_decl_round" >&5
35204echo "${ECHO_T}$ac_cv_have_decl_round" >&6
35205if test $ac_cv_have_decl_round = yes; then
35206
35207cat >>confdefs.h <<_ACEOF
35208#define HAVE_DECL_ROUND 1
35209_ACEOF
35210
35211
35212else
35213 cat >>confdefs.h <<_ACEOF
35214#define HAVE_DECL_ROUND 0
35215_ACEOF
35216
35217
35218fi
35219
35220
35221fi
35222
35223
a848cd7e
SC
35224if test "$TOOLKIT" != "MSW"; then
35225
35226
a848cd7e
SC
35227
35228
35229
35230# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
35231if test "${with_libiconv_prefix+set}" = set; then
35232 withval="$with_libiconv_prefix"
35233
35234 for dir in `echo "$withval" | tr : ' '`; do
35235 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
35236 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
35237 done
35238
35239fi;
35240
35241 echo "$as_me:$LINENO: checking for iconv" >&5
35242echo $ECHO_N "checking for iconv... $ECHO_C" >&6
35243if test "${am_cv_func_iconv+set}" = set; then
35244 echo $ECHO_N "(cached) $ECHO_C" >&6
35245else
35246
35247 am_cv_func_iconv="no, consider installing GNU libiconv"
35248 am_cv_lib_iconv=no
35249 cat >conftest.$ac_ext <<_ACEOF
35250/* confdefs.h. */
35251_ACEOF
35252cat confdefs.h >>conftest.$ac_ext
35253cat >>conftest.$ac_ext <<_ACEOF
35254/* end confdefs.h. */
35255#include <stdlib.h>
35256#include <iconv.h>
35257int
35258main ()
35259{
35260iconv_t cd = iconv_open("","");
35261 iconv(cd,NULL,NULL,NULL,NULL);
35262 iconv_close(cd);
35263 ;
35264 return 0;
35265}
35266_ACEOF
35267rm -f conftest.$ac_objext conftest$ac_exeext
35268if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35269 (eval $ac_link) 2>conftest.er1
a848cd7e 35270 ac_status=$?
ac1cb8d3
VS
35271 grep -v '^ *+' conftest.er1 >conftest.err
35272 rm -f conftest.er1
35273 cat conftest.err >&5
a848cd7e
SC
35274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35275 (exit $ac_status); } &&
c9a66001 35276 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35278 (eval $ac_try) 2>&5
35279 ac_status=$?
35280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35281 (exit $ac_status); }; } &&
35282 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35284 (eval $ac_try) 2>&5
35285 ac_status=$?
35286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35287 (exit $ac_status); }; }; then
35288 am_cv_func_iconv=yes
35289else
35290 echo "$as_me: failed program was:" >&5
35291sed 's/^/| /' conftest.$ac_ext >&5
35292
35293fi
ac1cb8d3
VS
35294rm -f conftest.err conftest.$ac_objext \
35295 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35296 if test "$am_cv_func_iconv" != yes; then
35297 am_save_LIBS="$LIBS"
35298 LIBS="$LIBS -liconv"
35299 cat >conftest.$ac_ext <<_ACEOF
35300/* confdefs.h. */
35301_ACEOF
35302cat confdefs.h >>conftest.$ac_ext
35303cat >>conftest.$ac_ext <<_ACEOF
35304/* end confdefs.h. */
35305#include <stdlib.h>
35306#include <iconv.h>
35307int
35308main ()
35309{
35310iconv_t cd = iconv_open("","");
35311 iconv(cd,NULL,NULL,NULL,NULL);
35312 iconv_close(cd);
35313 ;
35314 return 0;
35315}
35316_ACEOF
35317rm -f conftest.$ac_objext conftest$ac_exeext
35318if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35319 (eval $ac_link) 2>conftest.er1
a848cd7e 35320 ac_status=$?
ac1cb8d3
VS
35321 grep -v '^ *+' conftest.er1 >conftest.err
35322 rm -f conftest.er1
35323 cat conftest.err >&5
a848cd7e
SC
35324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35325 (exit $ac_status); } &&
c9a66001 35326 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35328 (eval $ac_try) 2>&5
35329 ac_status=$?
35330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35331 (exit $ac_status); }; } &&
35332 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35334 (eval $ac_try) 2>&5
35335 ac_status=$?
35336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35337 (exit $ac_status); }; }; then
35338 am_cv_lib_iconv=yes
35339 am_cv_func_iconv=yes
35340else
35341 echo "$as_me: failed program was:" >&5
35342sed 's/^/| /' conftest.$ac_ext >&5
35343
35344fi
ac1cb8d3
VS
35345rm -f conftest.err conftest.$ac_objext \
35346 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35347 LIBS="$am_save_LIBS"
35348 fi
35349
35350fi
35351echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
35352echo "${ECHO_T}$am_cv_func_iconv" >&6
35353 if test "$am_cv_func_iconv" = yes; then
35354
35355cat >>confdefs.h <<\_ACEOF
35356#define HAVE_ICONV 1
35357_ACEOF
35358
35359 echo "$as_me:$LINENO: checking if iconv needs const" >&5
35360echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
35361if test "${wx_cv_func_iconv_const+set}" = set; then
35362 echo $ECHO_N "(cached) $ECHO_C" >&6
35363else
35364 cat >conftest.$ac_ext <<_ACEOF
35365/* confdefs.h. */
35366_ACEOF
35367cat confdefs.h >>conftest.$ac_ext
35368cat >>conftest.$ac_ext <<_ACEOF
35369/* end confdefs.h. */
35370
35371#include <stdlib.h>
35372#include <iconv.h>
35373extern
35374#ifdef __cplusplus
35375"C"
35376#endif
35377#if defined(__STDC__) || defined(__cplusplus)
35378size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
35379#else
35380size_t iconv();
35381#endif
35382
35383int
35384main ()
35385{
35386
35387 ;
35388 return 0;
35389}
35390_ACEOF
35391rm -f conftest.$ac_objext
35392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35393 (eval $ac_compile) 2>conftest.er1
a848cd7e 35394 ac_status=$?
ac1cb8d3
VS
35395 grep -v '^ *+' conftest.er1 >conftest.err
35396 rm -f conftest.er1
35397 cat conftest.err >&5
a848cd7e
SC
35398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35399 (exit $ac_status); } &&
c9a66001 35400 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35402 (eval $ac_try) 2>&5
35403 ac_status=$?
35404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35405 (exit $ac_status); }; } &&
35406 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35408 (eval $ac_try) 2>&5
35409 ac_status=$?
35410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35411 (exit $ac_status); }; }; then
35412 wx_cv_func_iconv_const="no"
35413else
35414 echo "$as_me: failed program was:" >&5
35415sed 's/^/| /' conftest.$ac_ext >&5
35416
35417wx_cv_func_iconv_const="yes"
35418
35419fi
ac1cb8d3 35420rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35421
35422fi
35423echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
35424echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
35425
35426 iconv_const=
35427 if test "x$wx_cv_func_iconv_const" = "xyes"; then
35428 iconv_const="const"
35429 fi
35430
35431
35432cat >>confdefs.h <<_ACEOF
35433#define ICONV_CONST $iconv_const
35434_ACEOF
35435
35436 fi
35437 LIBICONV=
35438 if test "$am_cv_lib_iconv" = yes; then
35439 LIBICONV="-liconv"
35440 fi
35441
35442
35443LIBS="$LIBICONV $LIBS"
a848cd7e
SC
35444
35445if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
35446
35447for ac_func in sigaction
35448do
35449as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35450echo "$as_me:$LINENO: checking for $ac_func" >&5
35451echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35452if eval "test \"\${$as_ac_var+set}\" = set"; then
35453 echo $ECHO_N "(cached) $ECHO_C" >&6
35454else
35455 cat >conftest.$ac_ext <<_ACEOF
35456/* confdefs.h. */
35457_ACEOF
35458cat confdefs.h >>conftest.$ac_ext
35459cat >>conftest.$ac_ext <<_ACEOF
35460/* end confdefs.h. */
ac1cb8d3
VS
35461/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35462 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35463#define $ac_func innocuous_$ac_func
35464
a848cd7e
SC
35465/* System header to define __stub macros and hopefully few prototypes,
35466 which can conflict with char $ac_func (); below.
35467 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35468 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35469
a848cd7e
SC
35470#ifdef __STDC__
35471# include <limits.h>
35472#else
35473# include <assert.h>
35474#endif
ac1cb8d3
VS
35475
35476#undef $ac_func
35477
a848cd7e
SC
35478/* Override any gcc2 internal prototype to avoid an error. */
35479#ifdef __cplusplus
35480extern "C"
35481{
35482#endif
35483/* We use char because int might match the return type of a gcc2
35484 builtin and then its argument prototype would still apply. */
35485char $ac_func ();
35486/* The GNU C library defines this for functions which it implements
35487 to always fail with ENOSYS. Some functions are actually named
35488 something starting with __ and the normal name is an alias. */
35489#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35490choke me
35491#else
35492char (*f) () = $ac_func;
35493#endif
35494#ifdef __cplusplus
35495}
35496#endif
35497
35498int
35499main ()
35500{
35501return f != $ac_func;
35502 ;
35503 return 0;
35504}
35505_ACEOF
35506rm -f conftest.$ac_objext conftest$ac_exeext
35507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35508 (eval $ac_link) 2>conftest.er1
a848cd7e 35509 ac_status=$?
ac1cb8d3
VS
35510 grep -v '^ *+' conftest.er1 >conftest.err
35511 rm -f conftest.er1
35512 cat conftest.err >&5
a848cd7e
SC
35513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35514 (exit $ac_status); } &&
c9a66001 35515 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35517 (eval $ac_try) 2>&5
35518 ac_status=$?
35519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35520 (exit $ac_status); }; } &&
35521 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35523 (eval $ac_try) 2>&5
35524 ac_status=$?
35525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35526 (exit $ac_status); }; }; then
35527 eval "$as_ac_var=yes"
35528else
35529 echo "$as_me: failed program was:" >&5
35530sed 's/^/| /' conftest.$ac_ext >&5
35531
35532eval "$as_ac_var=no"
35533fi
ac1cb8d3
VS
35534rm -f conftest.err conftest.$ac_objext \
35535 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35536fi
35537echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35538echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35539if test `eval echo '${'$as_ac_var'}'` = yes; then
35540 cat >>confdefs.h <<_ACEOF
35541#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35542_ACEOF
35543
35544fi
35545done
35546
35547
35548 if test "$ac_cv_func_sigaction" = "no"; then
35549 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
35550echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
35551 wxUSE_ON_FATAL_EXCEPTION=no
35552 fi
35553
35554 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
a848cd7e
SC
35555 echo "$as_me:$LINENO: checking for sa_handler type" >&5
35556echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
35557if test "${wx_cv_type_sa_handler+set}" = set; then
35558 echo $ECHO_N "(cached) $ECHO_C" >&6
35559else
35560
35561 cat >conftest.$ac_ext <<_ACEOF
35562/* confdefs.h. */
35563_ACEOF
35564cat confdefs.h >>conftest.$ac_ext
35565cat >>conftest.$ac_ext <<_ACEOF
35566/* end confdefs.h. */
35567#include <signal.h>
35568int
35569main ()
35570{
35571
35572 extern void testSigHandler(int);
35573
35574 struct sigaction sa;
35575 sa.sa_handler = testSigHandler;
35576
35577 ;
35578 return 0;
35579}
35580_ACEOF
35581rm -f conftest.$ac_objext
35582if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35583 (eval $ac_compile) 2>conftest.er1
a848cd7e 35584 ac_status=$?
ac1cb8d3
VS
35585 grep -v '^ *+' conftest.er1 >conftest.err
35586 rm -f conftest.er1
35587 cat conftest.err >&5
a848cd7e
SC
35588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35589 (exit $ac_status); } &&
c9a66001 35590 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35592 (eval $ac_try) 2>&5
35593 ac_status=$?
35594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35595 (exit $ac_status); }; } &&
35596 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35598 (eval $ac_try) 2>&5
35599 ac_status=$?
35600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35601 (exit $ac_status); }; }; then
35602
35603 wx_cv_type_sa_handler=int
35604
35605else
35606 echo "$as_me: failed program was:" >&5
35607sed 's/^/| /' conftest.$ac_ext >&5
35608
35609
35610 wx_cv_type_sa_handler=void
35611
35612fi
ac1cb8d3 35613rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35614
35615fi
35616echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
35617echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
35618
a848cd7e
SC
35619 cat >>confdefs.h <<_ACEOF
35620#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
35621_ACEOF
35622
35623 fi
35624fi
35625
eaff0f0d 35626if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
eaff0f0d
VZ
35627 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
35628echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
35629if test "${wx_cv_func_backtrace+set}" = set; then
35630 echo $ECHO_N "(cached) $ECHO_C" >&6
35631else
35632
35633 cat >conftest.$ac_ext <<_ACEOF
35634/* confdefs.h. */
35635_ACEOF
35636cat confdefs.h >>conftest.$ac_ext
35637cat >>conftest.$ac_ext <<_ACEOF
35638/* end confdefs.h. */
35639#include <execinfo.h>
35640int
35641main ()
35642{
35643
35644 void *trace[1];
35645 char **messages;
35646
35647 backtrace(trace, 1);
35648 messages = backtrace_symbols(trace, 1);
35649
35650 ;
35651 return 0;
35652}
35653_ACEOF
35654rm -f conftest.$ac_objext
35655if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35656 (eval $ac_compile) 2>conftest.er1
35657 ac_status=$?
35658 grep -v '^ *+' conftest.er1 >conftest.err
35659 rm -f conftest.er1
35660 cat conftest.err >&5
35661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35662 (exit $ac_status); } &&
c9a66001 35663 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
35664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35665 (eval $ac_try) 2>&5
35666 ac_status=$?
35667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35668 (exit $ac_status); }; } &&
35669 { ac_try='test -s conftest.$ac_objext'
35670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35671 (eval $ac_try) 2>&5
35672 ac_status=$?
35673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35674 (exit $ac_status); }; }; then
35675 wx_cv_func_backtrace=yes
35676else
35677 echo "$as_me: failed program was:" >&5
35678sed 's/^/| /' conftest.$ac_ext >&5
35679
35680wx_cv_func_backtrace=no
35681
35682fi
35683rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35684
35685
35686fi
35687echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
35688echo "${ECHO_T}$wx_cv_func_backtrace" >&6
35689
35690
35691 if test "$wx_cv_func_backtrace" = "no"; then
35692 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
35693echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
35694 wxUSE_STACKWALKER=no
35695 else
35696 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
35697echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
35698if test "${wx_cv_func_cxa_demangle+set}" = set; then
35699 echo $ECHO_N "(cached) $ECHO_C" >&6
35700else
35701
35702 cat >conftest.$ac_ext <<_ACEOF
35703/* confdefs.h. */
35704_ACEOF
35705cat confdefs.h >>conftest.$ac_ext
35706cat >>conftest.$ac_ext <<_ACEOF
35707/* end confdefs.h. */
35708#include <cxxabi.h>
35709int
35710main ()
35711{
35712
35713 int rc;
35714 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
35715
35716 ;
35717 return 0;
35718}
35719_ACEOF
dfe0c803
JS
35720rm -f conftest.$ac_objext conftest$ac_exeext
35721if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35722 (eval $ac_link) 2>conftest.er1
eaff0f0d
VZ
35723 ac_status=$?
35724 grep -v '^ *+' conftest.er1 >conftest.err
35725 rm -f conftest.er1
35726 cat conftest.err >&5
35727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35728 (exit $ac_status); } &&
c9a66001 35729 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
35730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35731 (eval $ac_try) 2>&5
35732 ac_status=$?
35733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35734 (exit $ac_status); }; } &&
dfe0c803 35735 { ac_try='test -s conftest$ac_exeext'
eaff0f0d
VZ
35736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35737 (eval $ac_try) 2>&5
35738 ac_status=$?
35739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35740 (exit $ac_status); }; }; then
35741 wx_cv_func_cxa_demangle=yes
35742else
35743 echo "$as_me: failed program was:" >&5
35744sed 's/^/| /' conftest.$ac_ext >&5
35745
35746wx_cv_func_cxa_demangle=no
35747
35748fi
dfe0c803
JS
35749rm -f conftest.err conftest.$ac_objext \
35750 conftest$ac_exeext conftest.$ac_ext
eaff0f0d
VZ
35751
35752
35753fi
35754echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
35755echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
35756
35757 if test "$wx_cv_func_cxa_demangle" = "yes"; then
35758 cat >>confdefs.h <<\_ACEOF
35759#define HAVE_CXA_DEMANGLE 1
35760_ACEOF
35761
35762 fi
35763 fi
eaff0f0d
VZ
35764fi
35765
898beab1
DE
35766if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
35767 { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
35768echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
35769 wxUSE_STACKWALKER=no
35770fi
35771
35772
a848cd7e
SC
35773
35774
35775for ac_func in mkstemp mktemp
35776do
35777as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35778echo "$as_me:$LINENO: checking for $ac_func" >&5
35779echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35780if eval "test \"\${$as_ac_var+set}\" = set"; then
35781 echo $ECHO_N "(cached) $ECHO_C" >&6
35782else
35783 cat >conftest.$ac_ext <<_ACEOF
35784/* confdefs.h. */
35785_ACEOF
35786cat confdefs.h >>conftest.$ac_ext
35787cat >>conftest.$ac_ext <<_ACEOF
35788/* end confdefs.h. */
ac1cb8d3
VS
35789/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35790 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35791#define $ac_func innocuous_$ac_func
35792
a848cd7e
SC
35793/* System header to define __stub macros and hopefully few prototypes,
35794 which can conflict with char $ac_func (); below.
35795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35796 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35797
a848cd7e
SC
35798#ifdef __STDC__
35799# include <limits.h>
35800#else
35801# include <assert.h>
35802#endif
ac1cb8d3
VS
35803
35804#undef $ac_func
35805
a848cd7e
SC
35806/* Override any gcc2 internal prototype to avoid an error. */
35807#ifdef __cplusplus
35808extern "C"
35809{
35810#endif
35811/* We use char because int might match the return type of a gcc2
35812 builtin and then its argument prototype would still apply. */
35813char $ac_func ();
35814/* The GNU C library defines this for functions which it implements
35815 to always fail with ENOSYS. Some functions are actually named
35816 something starting with __ and the normal name is an alias. */
35817#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35818choke me
35819#else
35820char (*f) () = $ac_func;
35821#endif
35822#ifdef __cplusplus
35823}
35824#endif
35825
35826int
35827main ()
35828{
35829return f != $ac_func;
35830 ;
35831 return 0;
35832}
35833_ACEOF
35834rm -f conftest.$ac_objext conftest$ac_exeext
35835if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35836 (eval $ac_link) 2>conftest.er1
a848cd7e 35837 ac_status=$?
ac1cb8d3
VS
35838 grep -v '^ *+' conftest.er1 >conftest.err
35839 rm -f conftest.er1
35840 cat conftest.err >&5
a848cd7e
SC
35841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35842 (exit $ac_status); } &&
c9a66001 35843 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35845 (eval $ac_try) 2>&5
35846 ac_status=$?
35847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35848 (exit $ac_status); }; } &&
35849 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35851 (eval $ac_try) 2>&5
35852 ac_status=$?
35853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35854 (exit $ac_status); }; }; then
35855 eval "$as_ac_var=yes"
35856else
35857 echo "$as_me: failed program was:" >&5
35858sed 's/^/| /' conftest.$ac_ext >&5
35859
35860eval "$as_ac_var=no"
35861fi
ac1cb8d3
VS
35862rm -f conftest.err conftest.$ac_objext \
35863 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35864fi
35865echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35866echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35867if test `eval echo '${'$as_ac_var'}'` = yes; then
35868 cat >>confdefs.h <<_ACEOF
35869#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35870_ACEOF
35871 break
35872fi
35873done
35874
35875
35876echo "$as_me:$LINENO: checking for statfs" >&5
35877echo $ECHO_N "checking for statfs... $ECHO_C" >&6
35878if test "${wx_cv_func_statfs+set}" = set; then
35879 echo $ECHO_N "(cached) $ECHO_C" >&6
35880else
35881 cat >conftest.$ac_ext <<_ACEOF
35882/* confdefs.h. */
35883_ACEOF
35884cat confdefs.h >>conftest.$ac_ext
35885cat >>conftest.$ac_ext <<_ACEOF
35886/* end confdefs.h. */
35887
35888 #if defined(__BSD__)
84ae7ca4
VZ
35889 #include <sys/param.h>
35890 #include <sys/mount.h>
a848cd7e 35891 #else
84ae7ca4 35892 #include <sys/vfs.h>
a848cd7e
SC
35893 #endif
35894
35895int
35896main ()
35897{
35898
35899 long l;
35900 struct statfs fs;
35901 statfs("/", &fs);
35902 l = fs.f_bsize;
35903 l += fs.f_blocks;
35904 l += fs.f_bavail;
35905
35906 ;
35907 return 0;
35908}
35909_ACEOF
35910rm -f conftest.$ac_objext
35911if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35912 (eval $ac_compile) 2>conftest.er1
a848cd7e 35913 ac_status=$?
ac1cb8d3
VS
35914 grep -v '^ *+' conftest.er1 >conftest.err
35915 rm -f conftest.er1
35916 cat conftest.err >&5
a848cd7e
SC
35917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35918 (exit $ac_status); } &&
c9a66001 35919 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35921 (eval $ac_try) 2>&5
35922 ac_status=$?
35923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35924 (exit $ac_status); }; } &&
35925 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35927 (eval $ac_try) 2>&5
35928 ac_status=$?
35929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35930 (exit $ac_status); }; }; then
84ae7ca4 35931 wx_cv_func_statfs=yes
a848cd7e
SC
35932else
35933 echo "$as_me: failed program was:" >&5
35934sed 's/^/| /' conftest.$ac_ext >&5
35935
84ae7ca4 35936wx_cv_func_statfs=no
a848cd7e
SC
35937
35938fi
ac1cb8d3 35939rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35940
35941fi
35942echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
35943echo "${ECHO_T}$wx_cv_func_statfs" >&6
35944
35945if test "$wx_cv_func_statfs" = "yes"; then
5d7b7554 35946 echo "$as_me:$LINENO: checking for statfs declaration" >&5
84ae7ca4
VZ
35947echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6
35948if test "${wx_cv_func_statfs_decl+set}" = set; then
35949 echo $ECHO_N "(cached) $ECHO_C" >&6
35950else
0683aca6
VZ
35951 cat >conftest.$ac_ext <<_ACEOF
35952/* confdefs.h. */
35953_ACEOF
35954cat confdefs.h >>conftest.$ac_ext
35955cat >>conftest.$ac_ext <<_ACEOF
35956/* end confdefs.h. */
84ae7ca4 35957
0683aca6
VZ
35958 #if defined(__BSD__)
35959 #include <sys/param.h>
35960 #include <sys/mount.h>
35961 #else
35962 #include <sys/vfs.h>
35963 #endif
35964
35965int
35966main ()
35967{
35968
35969 struct statfs fs;
35970 statfs("", &fs);
35971
35972 ;
35973 return 0;
35974}
35975_ACEOF
35976rm -f conftest.$ac_objext
35977if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35978 (eval $ac_compile) 2>conftest.er1
35979 ac_status=$?
35980 grep -v '^ *+' conftest.er1 >conftest.err
35981 rm -f conftest.er1
35982 cat conftest.err >&5
35983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35984 (exit $ac_status); } &&
c9a66001 35985 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0683aca6
VZ
35986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35987 (eval $ac_try) 2>&5
35988 ac_status=$?
35989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35990 (exit $ac_status); }; } &&
35991 { ac_try='test -s conftest.$ac_objext'
35992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35993 (eval $ac_try) 2>&5
35994 ac_status=$?
35995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35996 (exit $ac_status); }; }; then
35997 wx_cv_func_statfs_decl=yes
35998else
35999 echo "$as_me: failed program was:" >&5
36000sed 's/^/| /' conftest.$ac_ext >&5
36001
36002wx_cv_func_statfs_decl=no
36003
36004fi
36005rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
84ae7ca4
VZ
36006
36007fi
36008echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
36009echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6
84ae7ca4
VZ
36010
36011 if test "$wx_cv_func_statfs_decl" = "yes"; then
36012 cat >>confdefs.h <<\_ACEOF
36013#define HAVE_STATFS_DECL 1
36014_ACEOF
36015
36016 fi
36017
a848cd7e
SC
36018 wx_cv_type_statvfs_t="struct statfs"
36019 cat >>confdefs.h <<\_ACEOF
36020#define HAVE_STATFS 1
36021_ACEOF
36022
36023else
36024 echo "$as_me:$LINENO: checking for statvfs" >&5
36025echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
36026if test "${wx_cv_func_statvfs+set}" = set; then
36027 echo $ECHO_N "(cached) $ECHO_C" >&6
36028else
36029 cat >conftest.$ac_ext <<_ACEOF
36030/* confdefs.h. */
36031_ACEOF
36032cat confdefs.h >>conftest.$ac_ext
36033cat >>conftest.$ac_ext <<_ACEOF
36034/* end confdefs.h. */
36035
36036 #include <stddef.h>
36037 #include <sys/statvfs.h>
36038
36039int
36040main ()
36041{
36042
36043 statvfs("/", NULL);
36044
36045 ;
36046 return 0;
36047}
36048_ACEOF
36049rm -f conftest.$ac_objext
36050if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36051 (eval $ac_compile) 2>conftest.er1
a848cd7e 36052 ac_status=$?
ac1cb8d3
VS
36053 grep -v '^ *+' conftest.er1 >conftest.err
36054 rm -f conftest.er1
36055 cat conftest.err >&5
a848cd7e
SC
36056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36057 (exit $ac_status); } &&
c9a66001 36058 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36060 (eval $ac_try) 2>&5
36061 ac_status=$?
36062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36063 (exit $ac_status); }; } &&
36064 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36066 (eval $ac_try) 2>&5
36067 ac_status=$?
36068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36069 (exit $ac_status); }; }; then
36070 wx_cv_func_statvfs=yes
36071else
36072 echo "$as_me: failed program was:" >&5
36073sed 's/^/| /' conftest.$ac_ext >&5
36074
36075wx_cv_func_statvfs=no
36076
36077fi
ac1cb8d3 36078rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36079
36080fi
36081echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
36082echo "${ECHO_T}$wx_cv_func_statvfs" >&6
36083
36084 if test "$wx_cv_func_statvfs" = "yes"; then
5d7b7554 36085 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
a848cd7e
SC
36086echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
36087if test "${wx_cv_type_statvfs_t+set}" = set; then
36088 echo $ECHO_N "(cached) $ECHO_C" >&6
36089else
36090 cat >conftest.$ac_ext <<_ACEOF
36091/* confdefs.h. */
36092_ACEOF
36093cat confdefs.h >>conftest.$ac_ext
36094cat >>conftest.$ac_ext <<_ACEOF
36095/* end confdefs.h. */
36096
36097 #include <sys/statvfs.h>
36098
36099int
36100main ()
36101{
36102
36103 long l;
36104 statvfs_t fs;
36105 statvfs("/", &fs);
36106 l = fs.f_bsize;
36107 l += fs.f_blocks;
36108 l += fs.f_bavail;
36109
36110 ;
36111 return 0;
36112}
36113_ACEOF
36114rm -f conftest.$ac_objext
36115if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36116 (eval $ac_compile) 2>conftest.er1
a848cd7e 36117 ac_status=$?
ac1cb8d3
VS
36118 grep -v '^ *+' conftest.er1 >conftest.err
36119 rm -f conftest.er1
36120 cat conftest.err >&5
a848cd7e
SC
36121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36122 (exit $ac_status); } &&
c9a66001 36123 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36125 (eval $ac_try) 2>&5
36126 ac_status=$?
36127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36128 (exit $ac_status); }; } &&
36129 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
36135 wx_cv_type_statvfs_t=statvfs_t
36136else
36137 echo "$as_me: failed program was:" >&5
36138sed 's/^/| /' conftest.$ac_ext >&5
36139
36140
36141 cat >conftest.$ac_ext <<_ACEOF
36142/* confdefs.h. */
36143_ACEOF
36144cat confdefs.h >>conftest.$ac_ext
36145cat >>conftest.$ac_ext <<_ACEOF
36146/* end confdefs.h. */
36147
36148 #include <sys/statvfs.h>
36149
36150int
36151main ()
36152{
36153
36154 long l;
36155 struct statvfs fs;
36156 statvfs("/", &fs);
36157 l = fs.f_bsize;
36158 l += fs.f_blocks;
36159 l += fs.f_bavail;
36160
36161 ;
36162 return 0;
36163}
36164_ACEOF
36165rm -f conftest.$ac_objext
36166if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36167 (eval $ac_compile) 2>conftest.er1
a848cd7e 36168 ac_status=$?
ac1cb8d3
VS
36169 grep -v '^ *+' conftest.er1 >conftest.err
36170 rm -f conftest.er1
36171 cat conftest.err >&5
a848cd7e
SC
36172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36173 (exit $ac_status); } &&
c9a66001 36174 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36176 (eval $ac_try) 2>&5
36177 ac_status=$?
36178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36179 (exit $ac_status); }; } &&
36180 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36182 (eval $ac_try) 2>&5
36183 ac_status=$?
36184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36185 (exit $ac_status); }; }; then
36186 wx_cv_type_statvfs_t="struct statvfs"
36187else
36188 echo "$as_me: failed program was:" >&5
36189sed 's/^/| /' conftest.$ac_ext >&5
36190
36191wx_cv_type_statvfs_t="unknown"
36192
36193fi
ac1cb8d3 36194rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36195
36196
36197fi
ac1cb8d3 36198rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36199
36200fi
36201echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
36202echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
36203
a848cd7e
SC
36204 if test "$wx_cv_type_statvfs_t" != "unknown"; then
36205 cat >>confdefs.h <<\_ACEOF
36206#define HAVE_STATVFS 1
36207_ACEOF
36208
36209 fi
36210 else
36211 wx_cv_type_statvfs_t="unknown"
36212 fi
36213fi
36214
36215if test "$wx_cv_type_statvfs_t" != "unknown"; then
36216 cat >>confdefs.h <<_ACEOF
36217#define WX_STATFS_T $wx_cv_type_statvfs_t
36218_ACEOF
36219
36220else
36221 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
36222echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
36223fi
36224
36225if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
36226
36227
36228for ac_func in fcntl flock
36229do
36230as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36231echo "$as_me:$LINENO: checking for $ac_func" >&5
36232echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36233if eval "test \"\${$as_ac_var+set}\" = set"; then
36234 echo $ECHO_N "(cached) $ECHO_C" >&6
36235else
36236 cat >conftest.$ac_ext <<_ACEOF
36237/* confdefs.h. */
36238_ACEOF
36239cat confdefs.h >>conftest.$ac_ext
36240cat >>conftest.$ac_ext <<_ACEOF
36241/* end confdefs.h. */
ac1cb8d3
VS
36242/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36243 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36244#define $ac_func innocuous_$ac_func
36245
a848cd7e
SC
36246/* System header to define __stub macros and hopefully few prototypes,
36247 which can conflict with char $ac_func (); below.
36248 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36249 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36250
a848cd7e
SC
36251#ifdef __STDC__
36252# include <limits.h>
36253#else
36254# include <assert.h>
36255#endif
ac1cb8d3
VS
36256
36257#undef $ac_func
36258
a848cd7e
SC
36259/* Override any gcc2 internal prototype to avoid an error. */
36260#ifdef __cplusplus
36261extern "C"
36262{
36263#endif
36264/* We use char because int might match the return type of a gcc2
36265 builtin and then its argument prototype would still apply. */
36266char $ac_func ();
36267/* The GNU C library defines this for functions which it implements
36268 to always fail with ENOSYS. Some functions are actually named
36269 something starting with __ and the normal name is an alias. */
36270#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36271choke me
36272#else
36273char (*f) () = $ac_func;
36274#endif
36275#ifdef __cplusplus
36276}
36277#endif
36278
36279int
36280main ()
36281{
36282return f != $ac_func;
36283 ;
36284 return 0;
36285}
36286_ACEOF
36287rm -f conftest.$ac_objext conftest$ac_exeext
36288if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36289 (eval $ac_link) 2>conftest.er1
a848cd7e 36290 ac_status=$?
ac1cb8d3
VS
36291 grep -v '^ *+' conftest.er1 >conftest.err
36292 rm -f conftest.er1
36293 cat conftest.err >&5
a848cd7e
SC
36294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36295 (exit $ac_status); } &&
c9a66001 36296 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36298 (eval $ac_try) 2>&5
36299 ac_status=$?
36300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36301 (exit $ac_status); }; } &&
36302 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36304 (eval $ac_try) 2>&5
36305 ac_status=$?
36306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36307 (exit $ac_status); }; }; then
36308 eval "$as_ac_var=yes"
36309else
36310 echo "$as_me: failed program was:" >&5
36311sed 's/^/| /' conftest.$ac_ext >&5
36312
36313eval "$as_ac_var=no"
36314fi
ac1cb8d3
VS
36315rm -f conftest.err conftest.$ac_objext \
36316 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36317fi
36318echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36319echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36320if test `eval echo '${'$as_ac_var'}'` = yes; then
36321 cat >>confdefs.h <<_ACEOF
36322#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36323_ACEOF
36324 break
36325fi
36326done
36327
36328
36329 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
36330 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
36331echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
36332 wxUSE_SNGLINST_CHECKER=no
36333 fi
36334fi
36335
36336
36337for ac_func in timegm
36338do
36339as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36340echo "$as_me:$LINENO: checking for $ac_func" >&5
36341echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36342if eval "test \"\${$as_ac_var+set}\" = set"; then
36343 echo $ECHO_N "(cached) $ECHO_C" >&6
36344else
36345 cat >conftest.$ac_ext <<_ACEOF
36346/* confdefs.h. */
36347_ACEOF
36348cat confdefs.h >>conftest.$ac_ext
36349cat >>conftest.$ac_ext <<_ACEOF
36350/* end confdefs.h. */
ac1cb8d3
VS
36351/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36352 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36353#define $ac_func innocuous_$ac_func
36354
a848cd7e
SC
36355/* System header to define __stub macros and hopefully few prototypes,
36356 which can conflict with char $ac_func (); below.
36357 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36358 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36359
a848cd7e
SC
36360#ifdef __STDC__
36361# include <limits.h>
36362#else
36363# include <assert.h>
36364#endif
ac1cb8d3
VS
36365
36366#undef $ac_func
36367
a848cd7e
SC
36368/* Override any gcc2 internal prototype to avoid an error. */
36369#ifdef __cplusplus
36370extern "C"
36371{
36372#endif
36373/* We use char because int might match the return type of a gcc2
36374 builtin and then its argument prototype would still apply. */
36375char $ac_func ();
36376/* The GNU C library defines this for functions which it implements
36377 to always fail with ENOSYS. Some functions are actually named
36378 something starting with __ and the normal name is an alias. */
36379#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36380choke me
36381#else
36382char (*f) () = $ac_func;
36383#endif
36384#ifdef __cplusplus
36385}
36386#endif
36387
36388int
36389main ()
36390{
36391return f != $ac_func;
36392 ;
36393 return 0;
36394}
36395_ACEOF
36396rm -f conftest.$ac_objext conftest$ac_exeext
36397if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36398 (eval $ac_link) 2>conftest.er1
a848cd7e 36399 ac_status=$?
ac1cb8d3
VS
36400 grep -v '^ *+' conftest.er1 >conftest.err
36401 rm -f conftest.er1
36402 cat conftest.err >&5
a848cd7e
SC
36403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36404 (exit $ac_status); } &&
c9a66001 36405 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36407 (eval $ac_try) 2>&5
36408 ac_status=$?
36409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36410 (exit $ac_status); }; } &&
36411 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36413 (eval $ac_try) 2>&5
36414 ac_status=$?
36415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36416 (exit $ac_status); }; }; then
36417 eval "$as_ac_var=yes"
36418else
36419 echo "$as_me: failed program was:" >&5
36420sed 's/^/| /' conftest.$ac_ext >&5
36421
36422eval "$as_ac_var=no"
36423fi
ac1cb8d3
VS
36424rm -f conftest.err conftest.$ac_objext \
36425 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36426fi
36427echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36428echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36429if test `eval echo '${'$as_ac_var'}'` = yes; then
36430 cat >>confdefs.h <<_ACEOF
36431#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36432_ACEOF
36433
36434fi
36435done
36436
36437
36438
36439
36440for ac_func in putenv setenv
36441do
36442as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36443echo "$as_me:$LINENO: checking for $ac_func" >&5
36444echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36445if eval "test \"\${$as_ac_var+set}\" = set"; then
36446 echo $ECHO_N "(cached) $ECHO_C" >&6
36447else
36448 cat >conftest.$ac_ext <<_ACEOF
36449/* confdefs.h. */
36450_ACEOF
36451cat confdefs.h >>conftest.$ac_ext
36452cat >>conftest.$ac_ext <<_ACEOF
36453/* end confdefs.h. */
ac1cb8d3
VS
36454/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36455 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36456#define $ac_func innocuous_$ac_func
36457
a848cd7e
SC
36458/* System header to define __stub macros and hopefully few prototypes,
36459 which can conflict with char $ac_func (); below.
36460 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36461 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36462
a848cd7e
SC
36463#ifdef __STDC__
36464# include <limits.h>
36465#else
36466# include <assert.h>
36467#endif
ac1cb8d3
VS
36468
36469#undef $ac_func
36470
a848cd7e
SC
36471/* Override any gcc2 internal prototype to avoid an error. */
36472#ifdef __cplusplus
36473extern "C"
36474{
36475#endif
36476/* We use char because int might match the return type of a gcc2
36477 builtin and then its argument prototype would still apply. */
36478char $ac_func ();
36479/* The GNU C library defines this for functions which it implements
36480 to always fail with ENOSYS. Some functions are actually named
36481 something starting with __ and the normal name is an alias. */
36482#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36483choke me
36484#else
36485char (*f) () = $ac_func;
36486#endif
36487#ifdef __cplusplus
36488}
36489#endif
36490
36491int
36492main ()
36493{
36494return f != $ac_func;
36495 ;
36496 return 0;
36497}
36498_ACEOF
36499rm -f conftest.$ac_objext conftest$ac_exeext
36500if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36501 (eval $ac_link) 2>conftest.er1
a848cd7e 36502 ac_status=$?
ac1cb8d3
VS
36503 grep -v '^ *+' conftest.er1 >conftest.err
36504 rm -f conftest.er1
36505 cat conftest.err >&5
a848cd7e
SC
36506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36507 (exit $ac_status); } &&
c9a66001 36508 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36510 (eval $ac_try) 2>&5
36511 ac_status=$?
36512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36513 (exit $ac_status); }; } &&
36514 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36516 (eval $ac_try) 2>&5
36517 ac_status=$?
36518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36519 (exit $ac_status); }; }; then
36520 eval "$as_ac_var=yes"
36521else
36522 echo "$as_me: failed program was:" >&5
36523sed 's/^/| /' conftest.$ac_ext >&5
36524
36525eval "$as_ac_var=no"
36526fi
ac1cb8d3
VS
36527rm -f conftest.err conftest.$ac_objext \
36528 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36529fi
36530echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36531echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36532if test `eval echo '${'$as_ac_var'}'` = yes; then
36533 cat >>confdefs.h <<_ACEOF
36534#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36535_ACEOF
36536 break
36537fi
36538done
36539
36540
36541HAVE_SOME_SLEEP_FUNC=0
36542if test "$USE_BEOS" = 1; then
36543 cat >>confdefs.h <<\_ACEOF
36544#define HAVE_SLEEP 1
36545_ACEOF
36546
36547 HAVE_SOME_SLEEP_FUNC=1
36548fi
36549
36550if test "$USE_DARWIN" = 1; then
36551 cat >>confdefs.h <<\_ACEOF
36552#define HAVE_USLEEP 1
36553_ACEOF
36554
36555 HAVE_SOME_SLEEP_FUNC=1
36556fi
36557
36558if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
36559 POSIX4_LINK=
36560
36561for ac_func in nanosleep
36562do
36563as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36564echo "$as_me:$LINENO: checking for $ac_func" >&5
36565echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36566if eval "test \"\${$as_ac_var+set}\" = set"; then
36567 echo $ECHO_N "(cached) $ECHO_C" >&6
36568else
36569 cat >conftest.$ac_ext <<_ACEOF
36570/* confdefs.h. */
36571_ACEOF
36572cat confdefs.h >>conftest.$ac_ext
36573cat >>conftest.$ac_ext <<_ACEOF
36574/* end confdefs.h. */
ac1cb8d3
VS
36575/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36576 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36577#define $ac_func innocuous_$ac_func
36578
a848cd7e
SC
36579/* System header to define __stub macros and hopefully few prototypes,
36580 which can conflict with char $ac_func (); below.
36581 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36582 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36583
a848cd7e
SC
36584#ifdef __STDC__
36585# include <limits.h>
36586#else
36587# include <assert.h>
36588#endif
ac1cb8d3
VS
36589
36590#undef $ac_func
36591
a848cd7e
SC
36592/* Override any gcc2 internal prototype to avoid an error. */
36593#ifdef __cplusplus
36594extern "C"
36595{
36596#endif
36597/* We use char because int might match the return type of a gcc2
36598 builtin and then its argument prototype would still apply. */
36599char $ac_func ();
36600/* The GNU C library defines this for functions which it implements
36601 to always fail with ENOSYS. Some functions are actually named
36602 something starting with __ and the normal name is an alias. */
36603#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36604choke me
36605#else
36606char (*f) () = $ac_func;
36607#endif
36608#ifdef __cplusplus
36609}
36610#endif
36611
36612int
36613main ()
36614{
36615return f != $ac_func;
36616 ;
36617 return 0;
36618}
36619_ACEOF
36620rm -f conftest.$ac_objext conftest$ac_exeext
36621if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36622 (eval $ac_link) 2>conftest.er1
a848cd7e 36623 ac_status=$?
ac1cb8d3
VS
36624 grep -v '^ *+' conftest.er1 >conftest.err
36625 rm -f conftest.er1
36626 cat conftest.err >&5
a848cd7e
SC
36627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36628 (exit $ac_status); } &&
c9a66001 36629 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36631 (eval $ac_try) 2>&5
36632 ac_status=$?
36633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36634 (exit $ac_status); }; } &&
36635 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36637 (eval $ac_try) 2>&5
36638 ac_status=$?
36639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36640 (exit $ac_status); }; }; then
36641 eval "$as_ac_var=yes"
36642else
36643 echo "$as_me: failed program was:" >&5
36644sed 's/^/| /' conftest.$ac_ext >&5
36645
36646eval "$as_ac_var=no"
36647fi
ac1cb8d3
VS
36648rm -f conftest.err conftest.$ac_objext \
36649 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36650fi
36651echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36652echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36653if test `eval echo '${'$as_ac_var'}'` = yes; then
36654 cat >>confdefs.h <<_ACEOF
36655#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36656_ACEOF
36657 cat >>confdefs.h <<\_ACEOF
36658#define HAVE_NANOSLEEP 1
36659_ACEOF
36660
36661else
36662
36663 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
36664echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
36665if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
36666 echo $ECHO_N "(cached) $ECHO_C" >&6
36667else
36668 ac_check_lib_save_LIBS=$LIBS
36669LIBS="-lposix4 $LIBS"
36670cat >conftest.$ac_ext <<_ACEOF
36671/* confdefs.h. */
36672_ACEOF
36673cat confdefs.h >>conftest.$ac_ext
36674cat >>conftest.$ac_ext <<_ACEOF
36675/* end confdefs.h. */
36676
36677/* Override any gcc2 internal prototype to avoid an error. */
36678#ifdef __cplusplus
36679extern "C"
36680#endif
36681/* We use char because int might match the return type of a gcc2
36682 builtin and then its argument prototype would still apply. */
36683char nanosleep ();
36684int
36685main ()
36686{
36687nanosleep ();
36688 ;
36689 return 0;
36690}
36691_ACEOF
36692rm -f conftest.$ac_objext conftest$ac_exeext
36693if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36694 (eval $ac_link) 2>conftest.er1
a848cd7e 36695 ac_status=$?
ac1cb8d3
VS
36696 grep -v '^ *+' conftest.er1 >conftest.err
36697 rm -f conftest.er1
36698 cat conftest.err >&5
a848cd7e
SC
36699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36700 (exit $ac_status); } &&
c9a66001 36701 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36703 (eval $ac_try) 2>&5
36704 ac_status=$?
36705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36706 (exit $ac_status); }; } &&
36707 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36709 (eval $ac_try) 2>&5
36710 ac_status=$?
36711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36712 (exit $ac_status); }; }; then
36713 ac_cv_lib_posix4_nanosleep=yes
36714else
36715 echo "$as_me: failed program was:" >&5
36716sed 's/^/| /' conftest.$ac_ext >&5
36717
36718ac_cv_lib_posix4_nanosleep=no
36719fi
ac1cb8d3
VS
36720rm -f conftest.err conftest.$ac_objext \
36721 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36722LIBS=$ac_check_lib_save_LIBS
36723fi
36724echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
36725echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
36726if test $ac_cv_lib_posix4_nanosleep = yes; then
36727
36728 cat >>confdefs.h <<\_ACEOF
36729#define HAVE_NANOSLEEP 1
36730_ACEOF
36731
36732 POSIX4_LINK=" -lposix4"
36733
36734else
36735
36736
36737for ac_func in usleep
36738do
36739as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36740echo "$as_me:$LINENO: checking for $ac_func" >&5
36741echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36742if eval "test \"\${$as_ac_var+set}\" = set"; then
36743 echo $ECHO_N "(cached) $ECHO_C" >&6
36744else
36745 cat >conftest.$ac_ext <<_ACEOF
36746/* confdefs.h. */
36747_ACEOF
36748cat confdefs.h >>conftest.$ac_ext
36749cat >>conftest.$ac_ext <<_ACEOF
36750/* end confdefs.h. */
ac1cb8d3
VS
36751/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36752 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36753#define $ac_func innocuous_$ac_func
36754
a848cd7e
SC
36755/* System header to define __stub macros and hopefully few prototypes,
36756 which can conflict with char $ac_func (); below.
36757 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36758 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36759
a848cd7e
SC
36760#ifdef __STDC__
36761# include <limits.h>
36762#else
36763# include <assert.h>
36764#endif
ac1cb8d3
VS
36765
36766#undef $ac_func
36767
a848cd7e
SC
36768/* Override any gcc2 internal prototype to avoid an error. */
36769#ifdef __cplusplus
36770extern "C"
36771{
36772#endif
36773/* We use char because int might match the return type of a gcc2
36774 builtin and then its argument prototype would still apply. */
36775char $ac_func ();
36776/* The GNU C library defines this for functions which it implements
36777 to always fail with ENOSYS. Some functions are actually named
36778 something starting with __ and the normal name is an alias. */
36779#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36780choke me
36781#else
36782char (*f) () = $ac_func;
36783#endif
36784#ifdef __cplusplus
36785}
36786#endif
36787
36788int
36789main ()
36790{
36791return f != $ac_func;
36792 ;
36793 return 0;
36794}
36795_ACEOF
36796rm -f conftest.$ac_objext conftest$ac_exeext
36797if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36798 (eval $ac_link) 2>conftest.er1
a848cd7e 36799 ac_status=$?
ac1cb8d3
VS
36800 grep -v '^ *+' conftest.er1 >conftest.err
36801 rm -f conftest.er1
36802 cat conftest.err >&5
a848cd7e
SC
36803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36804 (exit $ac_status); } &&
c9a66001 36805 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36807 (eval $ac_try) 2>&5
36808 ac_status=$?
36809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36810 (exit $ac_status); }; } &&
36811 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36813 (eval $ac_try) 2>&5
36814 ac_status=$?
36815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36816 (exit $ac_status); }; }; then
36817 eval "$as_ac_var=yes"
36818else
36819 echo "$as_me: failed program was:" >&5
36820sed 's/^/| /' conftest.$ac_ext >&5
36821
36822eval "$as_ac_var=no"
36823fi
ac1cb8d3
VS
36824rm -f conftest.err conftest.$ac_objext \
36825 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36826fi
36827echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36828echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36829if test `eval echo '${'$as_ac_var'}'` = yes; then
36830 cat >>confdefs.h <<_ACEOF
36831#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36832_ACEOF
36833 cat >>confdefs.h <<\_ACEOF
36834#define HAVE_USLEEP 1
36835_ACEOF
36836
36837else
36838 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
36839echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
36840
36841fi
36842done
36843
36844
36845
36846fi
36847
36848
36849
36850fi
36851done
36852
36853fi
36854
36855
36856
36857for ac_func in uname gethostname
36858do
36859as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36860echo "$as_me:$LINENO: checking for $ac_func" >&5
36861echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36862if eval "test \"\${$as_ac_var+set}\" = set"; then
36863 echo $ECHO_N "(cached) $ECHO_C" >&6
36864else
36865 cat >conftest.$ac_ext <<_ACEOF
36866/* confdefs.h. */
36867_ACEOF
36868cat confdefs.h >>conftest.$ac_ext
36869cat >>conftest.$ac_ext <<_ACEOF
36870/* end confdefs.h. */
ac1cb8d3
VS
36871/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36872 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36873#define $ac_func innocuous_$ac_func
36874
a848cd7e
SC
36875/* System header to define __stub macros and hopefully few prototypes,
36876 which can conflict with char $ac_func (); below.
36877 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36878 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36879
a848cd7e
SC
36880#ifdef __STDC__
36881# include <limits.h>
36882#else
36883# include <assert.h>
36884#endif
ac1cb8d3
VS
36885
36886#undef $ac_func
36887
a848cd7e
SC
36888/* Override any gcc2 internal prototype to avoid an error. */
36889#ifdef __cplusplus
36890extern "C"
36891{
36892#endif
36893/* We use char because int might match the return type of a gcc2
36894 builtin and then its argument prototype would still apply. */
36895char $ac_func ();
36896/* The GNU C library defines this for functions which it implements
36897 to always fail with ENOSYS. Some functions are actually named
36898 something starting with __ and the normal name is an alias. */
36899#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36900choke me
36901#else
36902char (*f) () = $ac_func;
36903#endif
36904#ifdef __cplusplus
36905}
36906#endif
36907
36908int
36909main ()
36910{
36911return f != $ac_func;
36912 ;
36913 return 0;
36914}
36915_ACEOF
36916rm -f conftest.$ac_objext conftest$ac_exeext
36917if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36918 (eval $ac_link) 2>conftest.er1
a848cd7e 36919 ac_status=$?
ac1cb8d3
VS
36920 grep -v '^ *+' conftest.er1 >conftest.err
36921 rm -f conftest.er1
36922 cat conftest.err >&5
a848cd7e
SC
36923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36924 (exit $ac_status); } &&
c9a66001 36925 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36927 (eval $ac_try) 2>&5
36928 ac_status=$?
36929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36930 (exit $ac_status); }; } &&
36931 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36933 (eval $ac_try) 2>&5
36934 ac_status=$?
36935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36936 (exit $ac_status); }; }; then
36937 eval "$as_ac_var=yes"
36938else
36939 echo "$as_me: failed program was:" >&5
36940sed 's/^/| /' conftest.$ac_ext >&5
36941
36942eval "$as_ac_var=no"
36943fi
ac1cb8d3
VS
36944rm -f conftest.err conftest.$ac_objext \
36945 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36946fi
36947echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36948echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36949if test `eval echo '${'$as_ac_var'}'` = yes; then
36950 cat >>confdefs.h <<_ACEOF
36951#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36952_ACEOF
36953 break
36954fi
36955done
36956
36957
a848cd7e
SC
36958
36959for ac_func in strtok_r
36960do
36961as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36962echo "$as_me:$LINENO: checking for $ac_func" >&5
36963echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36964if eval "test \"\${$as_ac_var+set}\" = set"; then
36965 echo $ECHO_N "(cached) $ECHO_C" >&6
36966else
36967 cat >conftest.$ac_ext <<_ACEOF
36968/* confdefs.h. */
36969_ACEOF
36970cat confdefs.h >>conftest.$ac_ext
36971cat >>conftest.$ac_ext <<_ACEOF
36972/* end confdefs.h. */
ac1cb8d3
VS
36973/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36974 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36975#define $ac_func innocuous_$ac_func
36976
a848cd7e
SC
36977/* System header to define __stub macros and hopefully few prototypes,
36978 which can conflict with char $ac_func (); below.
36979 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36980 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36981
a848cd7e
SC
36982#ifdef __STDC__
36983# include <limits.h>
36984#else
36985# include <assert.h>
36986#endif
ac1cb8d3
VS
36987
36988#undef $ac_func
36989
a848cd7e
SC
36990/* Override any gcc2 internal prototype to avoid an error. */
36991#ifdef __cplusplus
36992extern "C"
36993{
36994#endif
36995/* We use char because int might match the return type of a gcc2
36996 builtin and then its argument prototype would still apply. */
36997char $ac_func ();
36998/* The GNU C library defines this for functions which it implements
36999 to always fail with ENOSYS. Some functions are actually named
37000 something starting with __ and the normal name is an alias. */
37001#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37002choke me
37003#else
37004char (*f) () = $ac_func;
37005#endif
37006#ifdef __cplusplus
37007}
37008#endif
37009
37010int
37011main ()
37012{
37013return f != $ac_func;
37014 ;
37015 return 0;
37016}
37017_ACEOF
37018rm -f conftest.$ac_objext conftest$ac_exeext
37019if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37020 (eval $ac_link) 2>conftest.er1
a848cd7e 37021 ac_status=$?
ac1cb8d3
VS
37022 grep -v '^ *+' conftest.er1 >conftest.err
37023 rm -f conftest.er1
37024 cat conftest.err >&5
a848cd7e
SC
37025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37026 (exit $ac_status); } &&
c9a66001 37027 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37029 (eval $ac_try) 2>&5
37030 ac_status=$?
37031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37032 (exit $ac_status); }; } &&
37033 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37035 (eval $ac_try) 2>&5
37036 ac_status=$?
37037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37038 (exit $ac_status); }; }; then
37039 eval "$as_ac_var=yes"
37040else
37041 echo "$as_me: failed program was:" >&5
37042sed 's/^/| /' conftest.$ac_ext >&5
37043
37044eval "$as_ac_var=no"
37045fi
ac1cb8d3
VS
37046rm -f conftest.err conftest.$ac_objext \
37047 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37048fi
37049echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37050echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37051if test `eval echo '${'$as_ac_var'}'` = yes; then
37052 cat >>confdefs.h <<_ACEOF
37053#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37054_ACEOF
37055
37056fi
37057done
37058
37059
a848cd7e
SC
37060INET_LINK=
37061
37062for ac_func in inet_addr
37063do
37064as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37065echo "$as_me:$LINENO: checking for $ac_func" >&5
37066echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37067if eval "test \"\${$as_ac_var+set}\" = set"; then
37068 echo $ECHO_N "(cached) $ECHO_C" >&6
37069else
37070 cat >conftest.$ac_ext <<_ACEOF
37071/* confdefs.h. */
37072_ACEOF
37073cat confdefs.h >>conftest.$ac_ext
37074cat >>conftest.$ac_ext <<_ACEOF
37075/* end confdefs.h. */
ac1cb8d3
VS
37076/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37077 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37078#define $ac_func innocuous_$ac_func
37079
a848cd7e
SC
37080/* System header to define __stub macros and hopefully few prototypes,
37081 which can conflict with char $ac_func (); below.
37082 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37083 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37084
a848cd7e
SC
37085#ifdef __STDC__
37086# include <limits.h>
37087#else
37088# include <assert.h>
37089#endif
ac1cb8d3
VS
37090
37091#undef $ac_func
37092
a848cd7e
SC
37093/* Override any gcc2 internal prototype to avoid an error. */
37094#ifdef __cplusplus
37095extern "C"
37096{
37097#endif
37098/* We use char because int might match the return type of a gcc2
37099 builtin and then its argument prototype would still apply. */
37100char $ac_func ();
37101/* The GNU C library defines this for functions which it implements
37102 to always fail with ENOSYS. Some functions are actually named
37103 something starting with __ and the normal name is an alias. */
37104#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37105choke me
37106#else
37107char (*f) () = $ac_func;
37108#endif
37109#ifdef __cplusplus
37110}
37111#endif
37112
37113int
37114main ()
37115{
37116return f != $ac_func;
37117 ;
37118 return 0;
37119}
37120_ACEOF
37121rm -f conftest.$ac_objext conftest$ac_exeext
37122if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37123 (eval $ac_link) 2>conftest.er1
a848cd7e 37124 ac_status=$?
ac1cb8d3
VS
37125 grep -v '^ *+' conftest.er1 >conftest.err
37126 rm -f conftest.er1
37127 cat conftest.err >&5
a848cd7e
SC
37128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37129 (exit $ac_status); } &&
c9a66001 37130 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37132 (eval $ac_try) 2>&5
37133 ac_status=$?
37134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37135 (exit $ac_status); }; } &&
37136 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37138 (eval $ac_try) 2>&5
37139 ac_status=$?
37140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37141 (exit $ac_status); }; }; then
37142 eval "$as_ac_var=yes"
37143else
37144 echo "$as_me: failed program was:" >&5
37145sed 's/^/| /' conftest.$ac_ext >&5
37146
37147eval "$as_ac_var=no"
37148fi
ac1cb8d3
VS
37149rm -f conftest.err conftest.$ac_objext \
37150 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37151fi
37152echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37153echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37154if test `eval echo '${'$as_ac_var'}'` = yes; then
37155 cat >>confdefs.h <<_ACEOF
37156#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37157_ACEOF
37158 cat >>confdefs.h <<\_ACEOF
37159#define HAVE_INET_ADDR 1
37160_ACEOF
37161
37162else
37163
37164 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
37165echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
37166if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
37167 echo $ECHO_N "(cached) $ECHO_C" >&6
37168else
37169 ac_check_lib_save_LIBS=$LIBS
37170LIBS="-lnsl $LIBS"
37171cat >conftest.$ac_ext <<_ACEOF
37172/* confdefs.h. */
37173_ACEOF
37174cat confdefs.h >>conftest.$ac_ext
37175cat >>conftest.$ac_ext <<_ACEOF
37176/* end confdefs.h. */
37177
37178/* Override any gcc2 internal prototype to avoid an error. */
37179#ifdef __cplusplus
37180extern "C"
37181#endif
37182/* We use char because int might match the return type of a gcc2
37183 builtin and then its argument prototype would still apply. */
37184char inet_addr ();
37185int
37186main ()
37187{
37188inet_addr ();
37189 ;
37190 return 0;
37191}
37192_ACEOF
37193rm -f conftest.$ac_objext conftest$ac_exeext
37194if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37195 (eval $ac_link) 2>conftest.er1
a848cd7e 37196 ac_status=$?
ac1cb8d3
VS
37197 grep -v '^ *+' conftest.er1 >conftest.err
37198 rm -f conftest.er1
37199 cat conftest.err >&5
a848cd7e
SC
37200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37201 (exit $ac_status); } &&
c9a66001 37202 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37204 (eval $ac_try) 2>&5
37205 ac_status=$?
37206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37207 (exit $ac_status); }; } &&
37208 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37210 (eval $ac_try) 2>&5
37211 ac_status=$?
37212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37213 (exit $ac_status); }; }; then
37214 ac_cv_lib_nsl_inet_addr=yes
37215else
37216 echo "$as_me: failed program was:" >&5
37217sed 's/^/| /' conftest.$ac_ext >&5
37218
37219ac_cv_lib_nsl_inet_addr=no
37220fi
ac1cb8d3
VS
37221rm -f conftest.err conftest.$ac_objext \
37222 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37223LIBS=$ac_check_lib_save_LIBS
37224fi
37225echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
37226echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
37227if test $ac_cv_lib_nsl_inet_addr = yes; then
37228 INET_LINK="nsl"
37229else
37230
37231 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
37232echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
37233if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
37234 echo $ECHO_N "(cached) $ECHO_C" >&6
37235else
37236 ac_check_lib_save_LIBS=$LIBS
37237LIBS="-lresolv $LIBS"
37238cat >conftest.$ac_ext <<_ACEOF
37239/* confdefs.h. */
37240_ACEOF
37241cat confdefs.h >>conftest.$ac_ext
37242cat >>conftest.$ac_ext <<_ACEOF
37243/* end confdefs.h. */
37244
37245/* Override any gcc2 internal prototype to avoid an error. */
37246#ifdef __cplusplus
37247extern "C"
37248#endif
37249/* We use char because int might match the return type of a gcc2
37250 builtin and then its argument prototype would still apply. */
37251char inet_addr ();
37252int
37253main ()
37254{
37255inet_addr ();
37256 ;
37257 return 0;
37258}
37259_ACEOF
37260rm -f conftest.$ac_objext conftest$ac_exeext
37261if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37262 (eval $ac_link) 2>conftest.er1
a848cd7e 37263 ac_status=$?
ac1cb8d3
VS
37264 grep -v '^ *+' conftest.er1 >conftest.err
37265 rm -f conftest.er1
37266 cat conftest.err >&5
a848cd7e
SC
37267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37268 (exit $ac_status); } &&
c9a66001 37269 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37271 (eval $ac_try) 2>&5
37272 ac_status=$?
37273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37274 (exit $ac_status); }; } &&
37275 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37277 (eval $ac_try) 2>&5
37278 ac_status=$?
37279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37280 (exit $ac_status); }; }; then
37281 ac_cv_lib_resolv_inet_addr=yes
37282else
37283 echo "$as_me: failed program was:" >&5
37284sed 's/^/| /' conftest.$ac_ext >&5
37285
37286ac_cv_lib_resolv_inet_addr=no
37287fi
ac1cb8d3
VS
37288rm -f conftest.err conftest.$ac_objext \
37289 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37290LIBS=$ac_check_lib_save_LIBS
37291fi
37292echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
37293echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
37294if test $ac_cv_lib_resolv_inet_addr = yes; then
37295 INET_LINK="resolv"
37296else
37297
37298 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
37299echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
37300if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
37301 echo $ECHO_N "(cached) $ECHO_C" >&6
37302else
37303 ac_check_lib_save_LIBS=$LIBS
37304LIBS="-lsocket $LIBS"
37305cat >conftest.$ac_ext <<_ACEOF
37306/* confdefs.h. */
37307_ACEOF
37308cat confdefs.h >>conftest.$ac_ext
37309cat >>conftest.$ac_ext <<_ACEOF
37310/* end confdefs.h. */
37311
37312/* Override any gcc2 internal prototype to avoid an error. */
37313#ifdef __cplusplus
37314extern "C"
37315#endif
37316/* We use char because int might match the return type of a gcc2
37317 builtin and then its argument prototype would still apply. */
37318char inet_addr ();
37319int
37320main ()
37321{
37322inet_addr ();
37323 ;
37324 return 0;
37325}
37326_ACEOF
37327rm -f conftest.$ac_objext conftest$ac_exeext
37328if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37329 (eval $ac_link) 2>conftest.er1
a848cd7e 37330 ac_status=$?
ac1cb8d3
VS
37331 grep -v '^ *+' conftest.er1 >conftest.err
37332 rm -f conftest.er1
37333 cat conftest.err >&5
a848cd7e
SC
37334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37335 (exit $ac_status); } &&
c9a66001 37336 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37338 (eval $ac_try) 2>&5
37339 ac_status=$?
37340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37341 (exit $ac_status); }; } &&
37342 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37344 (eval $ac_try) 2>&5
37345 ac_status=$?
37346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37347 (exit $ac_status); }; }; then
37348 ac_cv_lib_socket_inet_addr=yes
37349else
37350 echo "$as_me: failed program was:" >&5
37351sed 's/^/| /' conftest.$ac_ext >&5
37352
37353ac_cv_lib_socket_inet_addr=no
37354fi
ac1cb8d3
VS
37355rm -f conftest.err conftest.$ac_objext \
37356 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37357LIBS=$ac_check_lib_save_LIBS
37358fi
37359echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
37360echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
37361if test $ac_cv_lib_socket_inet_addr = yes; then
37362 INET_LINK="socket"
37363
37364fi
37365
37366
37367
37368fi
37369
37370
37371
37372fi
37373
37374
37375
37376fi
37377done
37378
37379
37380
37381for ac_func in inet_aton
37382do
37383as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37384echo "$as_me:$LINENO: checking for $ac_func" >&5
37385echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37386if eval "test \"\${$as_ac_var+set}\" = set"; then
37387 echo $ECHO_N "(cached) $ECHO_C" >&6
37388else
37389 cat >conftest.$ac_ext <<_ACEOF
37390/* confdefs.h. */
37391_ACEOF
37392cat confdefs.h >>conftest.$ac_ext
37393cat >>conftest.$ac_ext <<_ACEOF
37394/* end confdefs.h. */
ac1cb8d3
VS
37395/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37396 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37397#define $ac_func innocuous_$ac_func
37398
a848cd7e
SC
37399/* System header to define __stub macros and hopefully few prototypes,
37400 which can conflict with char $ac_func (); below.
37401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37402 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37403
a848cd7e
SC
37404#ifdef __STDC__
37405# include <limits.h>
37406#else
37407# include <assert.h>
37408#endif
ac1cb8d3
VS
37409
37410#undef $ac_func
37411
a848cd7e
SC
37412/* Override any gcc2 internal prototype to avoid an error. */
37413#ifdef __cplusplus
37414extern "C"
37415{
37416#endif
37417/* We use char because int might match the return type of a gcc2
37418 builtin and then its argument prototype would still apply. */
37419char $ac_func ();
37420/* The GNU C library defines this for functions which it implements
37421 to always fail with ENOSYS. Some functions are actually named
37422 something starting with __ and the normal name is an alias. */
37423#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37424choke me
37425#else
37426char (*f) () = $ac_func;
37427#endif
37428#ifdef __cplusplus
37429}
37430#endif
37431
37432int
37433main ()
37434{
37435return f != $ac_func;
37436 ;
37437 return 0;
37438}
37439_ACEOF
37440rm -f conftest.$ac_objext conftest$ac_exeext
37441if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37442 (eval $ac_link) 2>conftest.er1
a848cd7e 37443 ac_status=$?
ac1cb8d3
VS
37444 grep -v '^ *+' conftest.er1 >conftest.err
37445 rm -f conftest.er1
37446 cat conftest.err >&5
a848cd7e
SC
37447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37448 (exit $ac_status); } &&
c9a66001 37449 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37451 (eval $ac_try) 2>&5
37452 ac_status=$?
37453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37454 (exit $ac_status); }; } &&
37455 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37457 (eval $ac_try) 2>&5
37458 ac_status=$?
37459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37460 (exit $ac_status); }; }; then
37461 eval "$as_ac_var=yes"
37462else
37463 echo "$as_me: failed program was:" >&5
37464sed 's/^/| /' conftest.$ac_ext >&5
37465
37466eval "$as_ac_var=no"
37467fi
ac1cb8d3
VS
37468rm -f conftest.err conftest.$ac_objext \
37469 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37470fi
37471echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37472echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37473if test `eval echo '${'$as_ac_var'}'` = yes; then
37474 cat >>confdefs.h <<_ACEOF
37475#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37476_ACEOF
37477 cat >>confdefs.h <<\_ACEOF
37478#define HAVE_INET_ATON 1
37479_ACEOF
37480
37481else
37482
37483 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
37484echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
37485echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
37486if eval "test \"\${$as_ac_Lib+set}\" = set"; then
37487 echo $ECHO_N "(cached) $ECHO_C" >&6
37488else
37489 ac_check_lib_save_LIBS=$LIBS
37490LIBS="-l$INET_LINK $LIBS"
37491cat >conftest.$ac_ext <<_ACEOF
37492/* confdefs.h. */
37493_ACEOF
37494cat confdefs.h >>conftest.$ac_ext
37495cat >>conftest.$ac_ext <<_ACEOF
37496/* end confdefs.h. */
37497
37498/* Override any gcc2 internal prototype to avoid an error. */
37499#ifdef __cplusplus
37500extern "C"
37501#endif
37502/* We use char because int might match the return type of a gcc2
37503 builtin and then its argument prototype would still apply. */
37504char inet_aton ();
37505int
37506main ()
37507{
37508inet_aton ();
37509 ;
37510 return 0;
37511}
37512_ACEOF
37513rm -f conftest.$ac_objext conftest$ac_exeext
37514if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37515 (eval $ac_link) 2>conftest.er1
a848cd7e 37516 ac_status=$?
ac1cb8d3
VS
37517 grep -v '^ *+' conftest.er1 >conftest.err
37518 rm -f conftest.er1
37519 cat conftest.err >&5
a848cd7e
SC
37520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37521 (exit $ac_status); } &&
c9a66001 37522 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37524 (eval $ac_try) 2>&5
37525 ac_status=$?
37526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37527 (exit $ac_status); }; } &&
37528 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37530 (eval $ac_try) 2>&5
37531 ac_status=$?
37532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37533 (exit $ac_status); }; }; then
37534 eval "$as_ac_Lib=yes"
37535else
37536 echo "$as_me: failed program was:" >&5
37537sed 's/^/| /' conftest.$ac_ext >&5
37538
37539eval "$as_ac_Lib=no"
37540fi
ac1cb8d3
VS
37541rm -f conftest.err conftest.$ac_objext \
37542 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37543LIBS=$ac_check_lib_save_LIBS
37544fi
37545echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
37546echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
37547if test `eval echo '${'$as_ac_Lib'}'` = yes; then
37548 cat >>confdefs.h <<\_ACEOF
37549#define HAVE_INET_ATON 1
37550_ACEOF
37551
37552fi
37553
37554
37555fi
37556done
37557
37558
37559if test "x$INET_LINK" != "x"; then
37560 cat >>confdefs.h <<\_ACEOF
37561#define HAVE_INET_ADDR 1
37562_ACEOF
37563
37564 INET_LINK=" -l$INET_LINK"
37565fi
37566
37567fi
37568
37569
37570
37571EXTRALIBS_ESD=
37572echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
37573echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
37574if test "${ac_cv_lib_esd_esd_close+set}" = set; then
37575 echo $ECHO_N "(cached) $ECHO_C" >&6
37576else
37577 ac_check_lib_save_LIBS=$LIBS
37578LIBS="-lesd $LIBS"
37579cat >conftest.$ac_ext <<_ACEOF
37580/* confdefs.h. */
37581_ACEOF
37582cat confdefs.h >>conftest.$ac_ext
37583cat >>conftest.$ac_ext <<_ACEOF
37584/* end confdefs.h. */
37585
37586/* Override any gcc2 internal prototype to avoid an error. */
37587#ifdef __cplusplus
37588extern "C"
37589#endif
37590/* We use char because int might match the return type of a gcc2
37591 builtin and then its argument prototype would still apply. */
37592char esd_close ();
37593int
37594main ()
37595{
37596esd_close ();
37597 ;
37598 return 0;
37599}
37600_ACEOF
37601rm -f conftest.$ac_objext conftest$ac_exeext
37602if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37603 (eval $ac_link) 2>conftest.er1
a848cd7e 37604 ac_status=$?
ac1cb8d3
VS
37605 grep -v '^ *+' conftest.er1 >conftest.err
37606 rm -f conftest.er1
37607 cat conftest.err >&5
a848cd7e
SC
37608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37609 (exit $ac_status); } &&
c9a66001 37610 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37612 (eval $ac_try) 2>&5
37613 ac_status=$?
37614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37615 (exit $ac_status); }; } &&
37616 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37618 (eval $ac_try) 2>&5
37619 ac_status=$?
37620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37621 (exit $ac_status); }; }; then
37622 ac_cv_lib_esd_esd_close=yes
37623else
37624 echo "$as_me: failed program was:" >&5
37625sed 's/^/| /' conftest.$ac_ext >&5
37626
37627ac_cv_lib_esd_esd_close=no
37628fi
ac1cb8d3
VS
37629rm -f conftest.err conftest.$ac_objext \
37630 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37631LIBS=$ac_check_lib_save_LIBS
37632fi
37633echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
37634echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
37635if test $ac_cv_lib_esd_esd_close = yes; then
37636
37637
37638for ac_header in esd.h
37639do
37640as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37641if eval "test \"\${$as_ac_Header+set}\" = set"; then
37642 echo "$as_me:$LINENO: checking for $ac_header" >&5
37643echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37644if eval "test \"\${$as_ac_Header+set}\" = set"; then
37645 echo $ECHO_N "(cached) $ECHO_C" >&6
37646fi
37647echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37648echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37649else
37650 # Is the header compilable?
37651echo "$as_me:$LINENO: checking $ac_header usability" >&5
37652echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37653cat >conftest.$ac_ext <<_ACEOF
37654/* confdefs.h. */
37655_ACEOF
37656cat confdefs.h >>conftest.$ac_ext
37657cat >>conftest.$ac_ext <<_ACEOF
37658/* end confdefs.h. */
37659$ac_includes_default
37660#include <$ac_header>
37661_ACEOF
37662rm -f conftest.$ac_objext
37663if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37664 (eval $ac_compile) 2>conftest.er1
a848cd7e 37665 ac_status=$?
ac1cb8d3
VS
37666 grep -v '^ *+' conftest.er1 >conftest.err
37667 rm -f conftest.er1
37668 cat conftest.err >&5
a848cd7e
SC
37669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37670 (exit $ac_status); } &&
c9a66001 37671 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37673 (eval $ac_try) 2>&5
37674 ac_status=$?
37675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37676 (exit $ac_status); }; } &&
37677 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37679 (eval $ac_try) 2>&5
37680 ac_status=$?
37681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37682 (exit $ac_status); }; }; then
37683 ac_header_compiler=yes
37684else
37685 echo "$as_me: failed program was:" >&5
37686sed 's/^/| /' conftest.$ac_ext >&5
37687
37688ac_header_compiler=no
37689fi
ac1cb8d3 37690rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37691echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37692echo "${ECHO_T}$ac_header_compiler" >&6
37693
37694# Is the header present?
37695echo "$as_me:$LINENO: checking $ac_header presence" >&5
37696echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37697cat >conftest.$ac_ext <<_ACEOF
37698/* confdefs.h. */
37699_ACEOF
37700cat confdefs.h >>conftest.$ac_ext
37701cat >>conftest.$ac_ext <<_ACEOF
37702/* end confdefs.h. */
37703#include <$ac_header>
37704_ACEOF
37705if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37706 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37707 ac_status=$?
37708 grep -v '^ *+' conftest.er1 >conftest.err
37709 rm -f conftest.er1
37710 cat conftest.err >&5
37711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37712 (exit $ac_status); } >/dev/null; then
37713 if test -s conftest.err; then
5d7b7554
VZ
37714 ac_cpp_err=$ac_cxx_preproc_warn_flag
37715 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
37716 else
37717 ac_cpp_err=
37718 fi
37719else
37720 ac_cpp_err=yes
37721fi
37722if test -z "$ac_cpp_err"; then
37723 ac_header_preproc=yes
37724else
37725 echo "$as_me: failed program was:" >&5
37726sed 's/^/| /' conftest.$ac_ext >&5
37727
37728 ac_header_preproc=no
37729fi
37730rm -f conftest.err conftest.$ac_ext
37731echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37732echo "${ECHO_T}$ac_header_preproc" >&6
37733
37734# So? What about this header?
5d7b7554 37735case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 37736 yes:no: )
a848cd7e
SC
37737 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37738echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
37739 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37740echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37741 ac_header_preproc=yes
a848cd7e 37742 ;;
ac1cb8d3 37743 no:yes:* )
a848cd7e
SC
37744 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37745echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
37746 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37747echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37748 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37749echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37750 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37751echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
37752 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37753echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
37754 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37755echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
37756 (
37757 cat <<\_ASBOX
ac1cb8d3
VS
37758## ----------------------------------------- ##
37759## Report this to wx-dev@lists.wxwidgets.org ##
37760## ----------------------------------------- ##
a848cd7e
SC
37761_ASBOX
37762 ) |
37763 sed "s/^/$as_me: WARNING: /" >&2
37764 ;;
37765esac
37766echo "$as_me:$LINENO: checking for $ac_header" >&5
37767echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37768if eval "test \"\${$as_ac_Header+set}\" = set"; then
37769 echo $ECHO_N "(cached) $ECHO_C" >&6
37770else
ac1cb8d3 37771 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
37772fi
37773echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37774echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37775
37776fi
37777if test `eval echo '${'$as_ac_Header'}'` = yes; then
37778 cat >>confdefs.h <<_ACEOF
37779#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37780_ACEOF
37781
37782 EXTRALIBS_ESD="-lesd"
37783
37784fi
37785
37786done
37787
37788
37789fi
37790
37791
37792
37793echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
37794echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
37795cat >conftest.$ac_ext <<_ACEOF
37796/* confdefs.h. */
37797_ACEOF
37798cat confdefs.h >>conftest.$ac_ext
37799cat >>conftest.$ac_ext <<_ACEOF
37800/* end confdefs.h. */
37801#ifdef __linux__
37802 #include <linux/cdrom.h>
37803 #else
37804 /* For Solaris */
37805 #include <sys/cdio.h>
37806 #endif
37807
37808int
37809main ()
37810{
37811struct cdrom_tocentry entry, old_entry;
37812 ;
37813 return 0;
37814}
37815_ACEOF
37816rm -f conftest.$ac_objext
37817if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37818 (eval $ac_compile) 2>conftest.er1
a848cd7e 37819 ac_status=$?
ac1cb8d3
VS
37820 grep -v '^ *+' conftest.er1 >conftest.err
37821 rm -f conftest.er1
37822 cat conftest.err >&5
a848cd7e
SC
37823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37824 (exit $ac_status); } &&
c9a66001 37825 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37827 (eval $ac_try) 2>&5
37828 ac_status=$?
37829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37830 (exit $ac_status); }; } &&
37831 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37833 (eval $ac_try) 2>&5
37834 ac_status=$?
37835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37836 (exit $ac_status); }; }; then
37837 echo "$as_me:$LINENO: result: yes" >&5
37838echo "${ECHO_T}yes" >&6
37839 cat >>confdefs.h <<\_ACEOF
37840#define HAVE_KNOWN_CDROM_INTERFACE 1
37841_ACEOF
37842
37843else
37844 echo "$as_me: failed program was:" >&5
37845sed 's/^/| /' conftest.$ac_ext >&5
37846
37847echo "$as_me:$LINENO: result: no" >&5
37848echo "${ECHO_T}no" >&6
37849fi
ac1cb8d3 37850rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37851
37852
37853cat >confcache <<\_ACEOF
37854# This file is a shell script that caches the results of configure
37855# tests run on this system so they can be shared between configure
37856# scripts and configure runs, see configure's option --config-cache.
37857# It is not useful on other systems. If it contains results you don't
37858# want to keep, you may remove or edit it.
37859#
37860# config.status only pays attention to the cache file if you give it
37861# the --recheck option to rerun configure.
37862#
37863# `ac_cv_env_foo' variables (set or unset) will be overridden when
37864# loading this file, other *unset* `ac_cv_foo' will be assigned the
37865# following values.
37866
37867_ACEOF
37868
37869# The following way of writing the cache mishandles newlines in values,
37870# but we know of no workaround that is simple, portable, and efficient.
37871# So, don't put newlines in cache variables' values.
37872# Ultrix sh set writes to stderr and can't be redirected directly,
37873# and sets the high bit in the cache file unless we assign to the vars.
37874{
37875 (set) 2>&1 |
37876 case `(ac_space=' '; set | grep ac_space) 2>&1` in
37877 *ac_space=\ *)
37878 # `set' does not quote correctly, so add quotes (double-quote
37879 # substitution turns \\\\ into \\, and sed turns \\ into \).
37880 sed -n \
ac1cb8d3
VS
37881 "s/'/'\\\\''/g;
37882 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
37883 ;;
37884 *)
37885 # `set' quotes correctly as required by POSIX, so do not add quotes.
37886 sed -n \
ac1cb8d3 37887 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
37888 ;;
37889 esac;
37890} |
37891 sed '
37892 t clear
37893 : clear
37894 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
37895 t end
37896 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
37897 : end' >>confcache
37898if diff $cache_file confcache >/dev/null 2>&1; then :; else
37899 if test -w $cache_file; then
37900 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
37901 cat confcache >$cache_file
37902 else
37903 echo "not updating unwritable cache $cache_file"
37904 fi
37905fi
37906rm -f confcache
37907
37908
a848cd7e
SC
37909if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
37910
37911
37912 THREADS_LINK=
e56f4f9e 37913 THREADS_CXXFLAGS=
a848cd7e
SC
37914
37915 if test "$wxUSE_THREADS" = "yes" ; then
37916 if test "$USE_BEOS" = 1; then
37917 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
37918echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
37919 wxUSE_THREADS="no"
37920 fi
37921 fi
37922
37923 if test "$wxUSE_THREADS" = "yes" ; then
37924
37925
37926 THREAD_OPTS="-pthread"
37927 case "${host}" in
37928 *-*-solaris2* | *-*-sunos4* )
37929 if test "x$GCC" = "xyes"; then
37930 THREAD_OPTS="-pthreads $THREAD_OPTS"
37931 else
37932 THREAD_OPTS="-mt $THREAD_OPTS"
37933 fi
37934 ;;
37935 *-*-freebsd*)
37936 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
37937 ;;
37938 *-*-darwin* | *-*-cygwin* )
37939 THREAD_OPTS=""
37940 ;;
37941 *-*-aix*)
37942 THREAD_OPTS="pthreads"
37943 ;;
37944 *-hp-hpux* )
00421666
MW
37945 if test "x$GCC" = "xyes"; then
37946 $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
37947 THREAD_OPTS=""
37948 else
0093c2fc 37949 THREAD_OPTS="-mt"
a848cd7e
SC
37950 fi
37951 ;;
37952
37953 *-*-irix* )
37954 if test "x$GCC" = "xyes"; then
37955 THREAD_OPTS=""
37956 fi
37957 ;;
37958
37959 *-*-*UnixWare*)
37960 if test "x$GCC" != "xyes"; then
37961 THREAD_OPTS="-Ethread"
37962 fi
37963 ;;
37964 esac
37965
37966 THREAD_OPTS="$THREAD_OPTS pthread none"
37967
37968 THREADS_OK=no
37969 for flag in $THREAD_OPTS; do
37970 case $flag in
37971 none)
37972 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
37973echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
37974 ;;
37975
37976 -*)
37977 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
37978echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
e56f4f9e 37979 THREADS_CXXFLAGS="$flag"
a848cd7e
SC
37980 ;;
37981
37982 *)
37983 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
37984echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
37985 THREADS_LINK="-l$flag"
37986 ;;
37987 esac
37988
37989 save_LIBS="$LIBS"
e56f4f9e 37990 save_CXXFLAGS="$CXXFLAGS"
a848cd7e 37991 LIBS="$THREADS_LINK $LIBS"
e56f4f9e 37992 CXXFLAGS="$THREADS_CXXFLAGS $CXXFLAGS"
a848cd7e
SC
37993
37994 cat >conftest.$ac_ext <<_ACEOF
37995/* confdefs.h. */
37996_ACEOF
37997cat confdefs.h >>conftest.$ac_ext
37998cat >>conftest.$ac_ext <<_ACEOF
37999/* end confdefs.h. */
38000#include <pthread.h>
38001int
38002main ()
38003{
38004pthread_create(0,0,0,0);
38005 ;
38006 return 0;
38007}
38008_ACEOF
38009rm -f conftest.$ac_objext conftest$ac_exeext
38010if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38011 (eval $ac_link) 2>conftest.er1
a848cd7e 38012 ac_status=$?
ac1cb8d3
VS
38013 grep -v '^ *+' conftest.er1 >conftest.err
38014 rm -f conftest.er1
38015 cat conftest.err >&5
a848cd7e
SC
38016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38017 (exit $ac_status); } &&
c9a66001 38018 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38020 (eval $ac_try) 2>&5
38021 ac_status=$?
38022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38023 (exit $ac_status); }; } &&
38024 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38026 (eval $ac_try) 2>&5
38027 ac_status=$?
38028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38029 (exit $ac_status); }; }; then
38030 THREADS_OK=yes
38031else
38032 echo "$as_me: failed program was:" >&5
38033sed 's/^/| /' conftest.$ac_ext >&5
38034
38035fi
ac1cb8d3
VS
38036rm -f conftest.err conftest.$ac_objext \
38037 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38038
38039 LIBS="$save_LIBS"
e56f4f9e 38040 CXXFLAGS="$save_CXXFLAGS"
a848cd7e
SC
38041
38042 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
38043echo "${ECHO_T}$THREADS_OK" >&6
38044 if test "x$THREADS_OK" = "xyes"; then
38045 break;
38046 fi
38047
38048 THREADS_LINK=""
e56f4f9e 38049 THREADS_CXXFLAGS=""
a848cd7e
SC
38050 done
38051
38052 if test "x$THREADS_OK" != "xyes"; then
38053 wxUSE_THREADS=no
38054 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
38055echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
38056 else
e56f4f9e 38057 LDFLAGS="$THREADS_CXXFLAGS $LDFLAGS"
a848cd7e
SC
38058 LIBS="$THREADS_LINK $LIBS"
38059
38060 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
38061echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
38062 flag=no
38063 case "${host}" in
38064 *-aix*)
38065 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
38066 flag="-D_THREAD_SAFE"
38067 ;;
38068 *-freebsd*)
38069 flag="-D_THREAD_SAFE"
38070 ;;
38071 *-hp-hpux* )
38072 flag="-D_REENTRANT"
38073 if test "x$GCC" != "xyes"; then
38074 flag="$flag -D_RWSTD_MULTI_THREAD"
38075 fi
38076 ;;
38077 *solaris* | alpha*-osf*)
38078 flag="-D_REENTRANT"
38079 ;;
38080 esac
38081 echo "$as_me:$LINENO: result: ${flag}" >&5
38082echo "${ECHO_T}${flag}" >&6
38083 if test "x$flag" != xno; then
e56f4f9e 38084 THREADS_CXXFLAGS="$THREADS_CXXFLAGS $flag"
a848cd7e
SC
38085 fi
38086
e56f4f9e 38087 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS $THREADS_CXXFLAGS"
a848cd7e
SC
38088 fi
38089 fi
38090
38091 if test "$wxUSE_THREADS" = "yes" ; then
38092
38093for ac_func in thr_setconcurrency
38094do
38095as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38096echo "$as_me:$LINENO: checking for $ac_func" >&5
38097echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38098if eval "test \"\${$as_ac_var+set}\" = set"; then
38099 echo $ECHO_N "(cached) $ECHO_C" >&6
38100else
38101 cat >conftest.$ac_ext <<_ACEOF
38102/* confdefs.h. */
38103_ACEOF
38104cat confdefs.h >>conftest.$ac_ext
38105cat >>conftest.$ac_ext <<_ACEOF
38106/* end confdefs.h. */
ac1cb8d3
VS
38107/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38108 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38109#define $ac_func innocuous_$ac_func
38110
a848cd7e
SC
38111/* System header to define __stub macros and hopefully few prototypes,
38112 which can conflict with char $ac_func (); below.
38113 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38114 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38115
a848cd7e
SC
38116#ifdef __STDC__
38117# include <limits.h>
38118#else
38119# include <assert.h>
38120#endif
ac1cb8d3
VS
38121
38122#undef $ac_func
38123
a848cd7e
SC
38124/* Override any gcc2 internal prototype to avoid an error. */
38125#ifdef __cplusplus
38126extern "C"
38127{
38128#endif
38129/* We use char because int might match the return type of a gcc2
38130 builtin and then its argument prototype would still apply. */
38131char $ac_func ();
38132/* The GNU C library defines this for functions which it implements
38133 to always fail with ENOSYS. Some functions are actually named
38134 something starting with __ and the normal name is an alias. */
38135#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38136choke me
38137#else
38138char (*f) () = $ac_func;
38139#endif
38140#ifdef __cplusplus
38141}
38142#endif
38143
38144int
38145main ()
38146{
38147return f != $ac_func;
38148 ;
38149 return 0;
38150}
38151_ACEOF
38152rm -f conftest.$ac_objext conftest$ac_exeext
38153if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38154 (eval $ac_link) 2>conftest.er1
a848cd7e 38155 ac_status=$?
ac1cb8d3
VS
38156 grep -v '^ *+' conftest.er1 >conftest.err
38157 rm -f conftest.er1
38158 cat conftest.err >&5
a848cd7e
SC
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'
ac1cb8d3
VS
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_exeext'
a848cd7e
SC
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 eval "$as_ac_var=yes"
38174else
38175 echo "$as_me: failed program was:" >&5
38176sed 's/^/| /' conftest.$ac_ext >&5
38177
38178eval "$as_ac_var=no"
38179fi
ac1cb8d3
VS
38180rm -f conftest.err conftest.$ac_objext \
38181 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38182fi
38183echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38184echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38185if test `eval echo '${'$as_ac_var'}'` = yes; then
38186 cat >>confdefs.h <<_ACEOF
38187#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38188_ACEOF
38189
38190fi
38191done
38192
38193
6ebeb4c7
VZ
38194 echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
38195echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
38196if test "${wx_cv_func_pthread_cleanup+set}" = set; then
38197 echo $ECHO_N "(cached) $ECHO_C" >&6
38198else
38199
38200 cat >conftest.$ac_ext <<_ACEOF
38201/* confdefs.h. */
38202_ACEOF
38203cat confdefs.h >>conftest.$ac_ext
38204cat >>conftest.$ac_ext <<_ACEOF
38205/* end confdefs.h. */
38206#include <pthread.h>
38207 void ThreadCleanupFunc(void *p);
38208
38209int
38210main ()
38211{
38212
38213 void *p;
38214 pthread_cleanup_push(ThreadCleanupFunc, p);
38215 pthread_cleanup_pop(0);
38216
38217 ;
38218 return 0;
38219}
38220_ACEOF
38221rm -f conftest.$ac_objext
38222if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38223 (eval $ac_compile) 2>conftest.er1
38224 ac_status=$?
38225 grep -v '^ *+' conftest.er1 >conftest.err
38226 rm -f conftest.er1
38227 cat conftest.err >&5
38228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38229 (exit $ac_status); } &&
c9a66001 38230 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
38231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38232 (eval $ac_try) 2>&5
38233 ac_status=$?
38234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38235 (exit $ac_status); }; } &&
38236 { ac_try='test -s conftest.$ac_objext'
38237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38238 (eval $ac_try) 2>&5
38239 ac_status=$?
38240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38241 (exit $ac_status); }; }; then
38242
38243 wx_cv_func_pthread_cleanup=yes
38244
38245else
38246 echo "$as_me: failed program was:" >&5
38247sed 's/^/| /' conftest.$ac_ext >&5
38248
38249
38250 wx_cv_func_pthread_cleanup=no
38251
38252
38253fi
38254rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38255
38256fi
38257echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
38258echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6
38259 if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
38260 cat >>confdefs.h <<\_ACEOF
38261#define wxHAVE_PTHREAD_CLEANUP 1
38262_ACEOF
38263
38264 fi
38265
a848cd7e
SC
38266
38267for ac_header in sched.h
38268do
38269as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38270if eval "test \"\${$as_ac_Header+set}\" = set"; then
38271 echo "$as_me:$LINENO: checking for $ac_header" >&5
38272echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38273if eval "test \"\${$as_ac_Header+set}\" = set"; then
38274 echo $ECHO_N "(cached) $ECHO_C" >&6
38275fi
38276echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38277echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38278else
38279 # Is the header compilable?
38280echo "$as_me:$LINENO: checking $ac_header usability" >&5
38281echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38282cat >conftest.$ac_ext <<_ACEOF
38283/* confdefs.h. */
38284_ACEOF
38285cat confdefs.h >>conftest.$ac_ext
38286cat >>conftest.$ac_ext <<_ACEOF
38287/* end confdefs.h. */
38288$ac_includes_default
38289#include <$ac_header>
38290_ACEOF
38291rm -f conftest.$ac_objext
38292if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38293 (eval $ac_compile) 2>conftest.er1
a848cd7e 38294 ac_status=$?
ac1cb8d3
VS
38295 grep -v '^ *+' conftest.er1 >conftest.err
38296 rm -f conftest.er1
38297 cat conftest.err >&5
a848cd7e
SC
38298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38299 (exit $ac_status); } &&
c9a66001 38300 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38302 (eval $ac_try) 2>&5
38303 ac_status=$?
38304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38305 (exit $ac_status); }; } &&
38306 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38308 (eval $ac_try) 2>&5
38309 ac_status=$?
38310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38311 (exit $ac_status); }; }; then
38312 ac_header_compiler=yes
38313else
38314 echo "$as_me: failed program was:" >&5
38315sed 's/^/| /' conftest.$ac_ext >&5
38316
38317ac_header_compiler=no
38318fi
ac1cb8d3 38319rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38320echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38321echo "${ECHO_T}$ac_header_compiler" >&6
38322
38323# Is the header present?
38324echo "$as_me:$LINENO: checking $ac_header presence" >&5
38325echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38326cat >conftest.$ac_ext <<_ACEOF
38327/* confdefs.h. */
38328_ACEOF
38329cat confdefs.h >>conftest.$ac_ext
38330cat >>conftest.$ac_ext <<_ACEOF
38331/* end confdefs.h. */
38332#include <$ac_header>
38333_ACEOF
38334if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38335 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38336 ac_status=$?
38337 grep -v '^ *+' conftest.er1 >conftest.err
38338 rm -f conftest.er1
38339 cat conftest.err >&5
38340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38341 (exit $ac_status); } >/dev/null; then
38342 if test -s conftest.err; then
5d7b7554
VZ
38343 ac_cpp_err=$ac_cxx_preproc_warn_flag
38344 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
38345 else
38346 ac_cpp_err=
38347 fi
38348else
38349 ac_cpp_err=yes
38350fi
38351if test -z "$ac_cpp_err"; then
38352 ac_header_preproc=yes
38353else
38354 echo "$as_me: failed program was:" >&5
38355sed 's/^/| /' conftest.$ac_ext >&5
38356
38357 ac_header_preproc=no
38358fi
38359rm -f conftest.err conftest.$ac_ext
38360echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38361echo "${ECHO_T}$ac_header_preproc" >&6
38362
38363# So? What about this header?
5d7b7554 38364case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 38365 yes:no: )
a848cd7e
SC
38366 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38367echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
38368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38369echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38370 ac_header_preproc=yes
a848cd7e 38371 ;;
ac1cb8d3 38372 no:yes:* )
a848cd7e
SC
38373 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38374echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
38375 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38376echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38377 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38378echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38379 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38380echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
38381 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38382echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
38383 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38384echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
38385 (
38386 cat <<\_ASBOX
ac1cb8d3
VS
38387## ----------------------------------------- ##
38388## Report this to wx-dev@lists.wxwidgets.org ##
38389## ----------------------------------------- ##
a848cd7e
SC
38390_ASBOX
38391 ) |
38392 sed "s/^/$as_me: WARNING: /" >&2
38393 ;;
38394esac
38395echo "$as_me:$LINENO: checking for $ac_header" >&5
38396echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38397if eval "test \"\${$as_ac_Header+set}\" = set"; then
38398 echo $ECHO_N "(cached) $ECHO_C" >&6
38399else
ac1cb8d3 38400 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
38401fi
38402echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38403echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38404
38405fi
38406if test `eval echo '${'$as_ac_Header'}'` = yes; then
38407 cat >>confdefs.h <<_ACEOF
38408#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38409_ACEOF
38410
38411fi
38412
38413done
38414
38415 if test "$ac_cv_header_sched_h" = "yes"; then
38416 echo "$as_me:$LINENO: checking for sched_yield" >&5
38417echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
38418if test "${ac_cv_func_sched_yield+set}" = set; then
38419 echo $ECHO_N "(cached) $ECHO_C" >&6
38420else
38421 cat >conftest.$ac_ext <<_ACEOF
38422/* confdefs.h. */
38423_ACEOF
38424cat confdefs.h >>conftest.$ac_ext
38425cat >>conftest.$ac_ext <<_ACEOF
38426/* end confdefs.h. */
ac1cb8d3
VS
38427/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
38428 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38429#define sched_yield innocuous_sched_yield
38430
a848cd7e
SC
38431/* System header to define __stub macros and hopefully few prototypes,
38432 which can conflict with char sched_yield (); below.
38433 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38434 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38435
a848cd7e
SC
38436#ifdef __STDC__
38437# include <limits.h>
38438#else
38439# include <assert.h>
38440#endif
ac1cb8d3
VS
38441
38442#undef sched_yield
38443
a848cd7e
SC
38444/* Override any gcc2 internal prototype to avoid an error. */
38445#ifdef __cplusplus
38446extern "C"
38447{
38448#endif
38449/* We use char because int might match the return type of a gcc2
38450 builtin and then its argument prototype would still apply. */
38451char sched_yield ();
38452/* The GNU C library defines this for functions which it implements
38453 to always fail with ENOSYS. Some functions are actually named
38454 something starting with __ and the normal name is an alias. */
38455#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
38456choke me
38457#else
38458char (*f) () = sched_yield;
38459#endif
38460#ifdef __cplusplus
38461}
38462#endif
38463
38464int
38465main ()
38466{
38467return f != sched_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_func_sched_yield=yes
38494else
38495 echo "$as_me: failed program was:" >&5
38496sed 's/^/| /' conftest.$ac_ext >&5
38497
38498ac_cv_func_sched_yield=no
38499fi
ac1cb8d3
VS
38500rm -f conftest.err conftest.$ac_objext \
38501 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38502fi
38503echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
38504echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
38505if test $ac_cv_func_sched_yield = yes; then
38506 cat >>confdefs.h <<\_ACEOF
38507#define HAVE_SCHED_YIELD 1
38508_ACEOF
38509
38510else
38511
38512 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
38513echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
38514if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
38515 echo $ECHO_N "(cached) $ECHO_C" >&6
38516else
38517 ac_check_lib_save_LIBS=$LIBS
38518LIBS="-lposix4 $LIBS"
38519cat >conftest.$ac_ext <<_ACEOF
38520/* confdefs.h. */
38521_ACEOF
38522cat confdefs.h >>conftest.$ac_ext
38523cat >>conftest.$ac_ext <<_ACEOF
38524/* end confdefs.h. */
38525
38526/* Override any gcc2 internal prototype to avoid an error. */
38527#ifdef __cplusplus
38528extern "C"
38529#endif
38530/* We use char because int might match the return type of a gcc2
38531 builtin and then its argument prototype would still apply. */
38532char sched_yield ();
38533int
38534main ()
38535{
38536sched_yield ();
38537 ;
38538 return 0;
38539}
38540_ACEOF
38541rm -f conftest.$ac_objext conftest$ac_exeext
38542if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38543 (eval $ac_link) 2>conftest.er1
a848cd7e 38544 ac_status=$?
ac1cb8d3
VS
38545 grep -v '^ *+' conftest.er1 >conftest.err
38546 rm -f conftest.er1
38547 cat conftest.err >&5
a848cd7e
SC
38548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38549 (exit $ac_status); } &&
c9a66001 38550 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38552 (eval $ac_try) 2>&5
38553 ac_status=$?
38554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38555 (exit $ac_status); }; } &&
38556 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38558 (eval $ac_try) 2>&5
38559 ac_status=$?
38560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38561 (exit $ac_status); }; }; then
38562 ac_cv_lib_posix4_sched_yield=yes
38563else
38564 echo "$as_me: failed program was:" >&5
38565sed 's/^/| /' conftest.$ac_ext >&5
38566
38567ac_cv_lib_posix4_sched_yield=no
38568fi
ac1cb8d3
VS
38569rm -f conftest.err conftest.$ac_objext \
38570 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38571LIBS=$ac_check_lib_save_LIBS
38572fi
38573echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
38574echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
38575if test $ac_cv_lib_posix4_sched_yield = yes; then
38576 cat >>confdefs.h <<\_ACEOF
38577#define HAVE_SCHED_YIELD 1
38578_ACEOF
38579 POSIX4_LINK=" -lposix4"
38580else
38581 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
38582echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
38583
38584fi
38585
38586
38587
38588fi
38589
38590 fi
38591
38592 HAVE_PRIOR_FUNCS=0
38593 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
38594echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
38595if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
38596 echo $ECHO_N "(cached) $ECHO_C" >&6
38597else
38598 cat >conftest.$ac_ext <<_ACEOF
38599/* confdefs.h. */
38600_ACEOF
38601cat confdefs.h >>conftest.$ac_ext
38602cat >>conftest.$ac_ext <<_ACEOF
38603/* end confdefs.h. */
ac1cb8d3
VS
38604/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
38605 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38606#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
38607
a848cd7e
SC
38608/* System header to define __stub macros and hopefully few prototypes,
38609 which can conflict with char pthread_attr_getschedpolicy (); below.
38610 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38611 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38612
a848cd7e
SC
38613#ifdef __STDC__
38614# include <limits.h>
38615#else
38616# include <assert.h>
38617#endif
ac1cb8d3
VS
38618
38619#undef pthread_attr_getschedpolicy
38620
a848cd7e
SC
38621/* Override any gcc2 internal prototype to avoid an error. */
38622#ifdef __cplusplus
38623extern "C"
38624{
38625#endif
38626/* We use char because int might match the return type of a gcc2
38627 builtin and then its argument prototype would still apply. */
38628char pthread_attr_getschedpolicy ();
38629/* The GNU C library defines this for functions which it implements
38630 to always fail with ENOSYS. Some functions are actually named
38631 something starting with __ and the normal name is an alias. */
38632#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
38633choke me
38634#else
38635char (*f) () = pthread_attr_getschedpolicy;
38636#endif
38637#ifdef __cplusplus
38638}
38639#endif
38640
38641int
38642main ()
38643{
38644return f != pthread_attr_getschedpolicy;
38645 ;
38646 return 0;
38647}
38648_ACEOF
38649rm -f conftest.$ac_objext conftest$ac_exeext
38650if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38651 (eval $ac_link) 2>conftest.er1
a848cd7e 38652 ac_status=$?
ac1cb8d3
VS
38653 grep -v '^ *+' conftest.er1 >conftest.err
38654 rm -f conftest.er1
38655 cat conftest.err >&5
a848cd7e
SC
38656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38657 (exit $ac_status); } &&
c9a66001 38658 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38660 (eval $ac_try) 2>&5
38661 ac_status=$?
38662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38663 (exit $ac_status); }; } &&
38664 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38666 (eval $ac_try) 2>&5
38667 ac_status=$?
38668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38669 (exit $ac_status); }; }; then
38670 ac_cv_func_pthread_attr_getschedpolicy=yes
38671else
38672 echo "$as_me: failed program was:" >&5
38673sed 's/^/| /' conftest.$ac_ext >&5
38674
38675ac_cv_func_pthread_attr_getschedpolicy=no
38676fi
ac1cb8d3
VS
38677rm -f conftest.err conftest.$ac_objext \
38678 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38679fi
38680echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
38681echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
38682if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
38683 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
38684echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
38685if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
38686 echo $ECHO_N "(cached) $ECHO_C" >&6
38687else
38688 cat >conftest.$ac_ext <<_ACEOF
38689/* confdefs.h. */
38690_ACEOF
38691cat confdefs.h >>conftest.$ac_ext
38692cat >>conftest.$ac_ext <<_ACEOF
38693/* end confdefs.h. */
ac1cb8d3
VS
38694/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
38695 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38696#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
38697
a848cd7e
SC
38698/* System header to define __stub macros and hopefully few prototypes,
38699 which can conflict with char pthread_attr_setschedparam (); below.
38700 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38701 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38702
a848cd7e
SC
38703#ifdef __STDC__
38704# include <limits.h>
38705#else
38706# include <assert.h>
38707#endif
ac1cb8d3
VS
38708
38709#undef pthread_attr_setschedparam
38710
a848cd7e
SC
38711/* Override any gcc2 internal prototype to avoid an error. */
38712#ifdef __cplusplus
38713extern "C"
38714{
38715#endif
38716/* We use char because int might match the return type of a gcc2
38717 builtin and then its argument prototype would still apply. */
38718char pthread_attr_setschedparam ();
38719/* The GNU C library defines this for functions which it implements
38720 to always fail with ENOSYS. Some functions are actually named
38721 something starting with __ and the normal name is an alias. */
38722#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
38723choke me
38724#else
38725char (*f) () = pthread_attr_setschedparam;
38726#endif
38727#ifdef __cplusplus
38728}
38729#endif
38730
38731int
38732main ()
38733{
38734return f != pthread_attr_setschedparam;
38735 ;
38736 return 0;
38737}
38738_ACEOF
38739rm -f conftest.$ac_objext conftest$ac_exeext
38740if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38741 (eval $ac_link) 2>conftest.er1
a848cd7e 38742 ac_status=$?
ac1cb8d3
VS
38743 grep -v '^ *+' conftest.er1 >conftest.err
38744 rm -f conftest.er1
38745 cat conftest.err >&5
a848cd7e
SC
38746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38747 (exit $ac_status); } &&
c9a66001 38748 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38750 (eval $ac_try) 2>&5
38751 ac_status=$?
38752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38753 (exit $ac_status); }; } &&
38754 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38756 (eval $ac_try) 2>&5
38757 ac_status=$?
38758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38759 (exit $ac_status); }; }; then
38760 ac_cv_func_pthread_attr_setschedparam=yes
38761else
38762 echo "$as_me: failed program was:" >&5
38763sed 's/^/| /' conftest.$ac_ext >&5
38764
38765ac_cv_func_pthread_attr_setschedparam=no
38766fi
ac1cb8d3
VS
38767rm -f conftest.err conftest.$ac_objext \
38768 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38769fi
38770echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
38771echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
38772if test $ac_cv_func_pthread_attr_setschedparam = yes; then
38773 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
38774echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
38775if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
38776 echo $ECHO_N "(cached) $ECHO_C" >&6
38777else
38778 cat >conftest.$ac_ext <<_ACEOF
38779/* confdefs.h. */
38780_ACEOF
38781cat confdefs.h >>conftest.$ac_ext
38782cat >>conftest.$ac_ext <<_ACEOF
38783/* end confdefs.h. */
ac1cb8d3
VS
38784/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
38785 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38786#define sched_get_priority_max innocuous_sched_get_priority_max
38787
a848cd7e
SC
38788/* System header to define __stub macros and hopefully few prototypes,
38789 which can conflict with char sched_get_priority_max (); below.
38790 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38791 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38792
a848cd7e
SC
38793#ifdef __STDC__
38794# include <limits.h>
38795#else
38796# include <assert.h>
38797#endif
ac1cb8d3
VS
38798
38799#undef sched_get_priority_max
38800
a848cd7e
SC
38801/* Override any gcc2 internal prototype to avoid an error. */
38802#ifdef __cplusplus
38803extern "C"
38804{
38805#endif
38806/* We use char because int might match the return type of a gcc2
38807 builtin and then its argument prototype would still apply. */
38808char sched_get_priority_max ();
38809/* The GNU C library defines this for functions which it implements
38810 to always fail with ENOSYS. Some functions are actually named
38811 something starting with __ and the normal name is an alias. */
38812#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
38813choke me
38814#else
38815char (*f) () = sched_get_priority_max;
38816#endif
38817#ifdef __cplusplus
38818}
38819#endif
38820
38821int
38822main ()
38823{
38824return f != sched_get_priority_max;
38825 ;
38826 return 0;
38827}
38828_ACEOF
38829rm -f conftest.$ac_objext conftest$ac_exeext
38830if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38831 (eval $ac_link) 2>conftest.er1
a848cd7e 38832 ac_status=$?
ac1cb8d3
VS
38833 grep -v '^ *+' conftest.er1 >conftest.err
38834 rm -f conftest.er1
38835 cat conftest.err >&5
a848cd7e
SC
38836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38837 (exit $ac_status); } &&
c9a66001 38838 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38840 (eval $ac_try) 2>&5
38841 ac_status=$?
38842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38843 (exit $ac_status); }; } &&
38844 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38846 (eval $ac_try) 2>&5
38847 ac_status=$?
38848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38849 (exit $ac_status); }; }; then
38850 ac_cv_func_sched_get_priority_max=yes
38851else
38852 echo "$as_me: failed program was:" >&5
38853sed 's/^/| /' conftest.$ac_ext >&5
38854
38855ac_cv_func_sched_get_priority_max=no
38856fi
ac1cb8d3
VS
38857rm -f conftest.err conftest.$ac_objext \
38858 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38859fi
38860echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
38861echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
38862if test $ac_cv_func_sched_get_priority_max = yes; then
38863 HAVE_PRIOR_FUNCS=1
38864else
38865 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
38866echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
38867if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
38868 echo $ECHO_N "(cached) $ECHO_C" >&6
38869else
38870 ac_check_lib_save_LIBS=$LIBS
38871LIBS="-lposix4 $LIBS"
38872cat >conftest.$ac_ext <<_ACEOF
38873/* confdefs.h. */
38874_ACEOF
38875cat confdefs.h >>conftest.$ac_ext
38876cat >>conftest.$ac_ext <<_ACEOF
38877/* end confdefs.h. */
38878
38879/* Override any gcc2 internal prototype to avoid an error. */
38880#ifdef __cplusplus
38881extern "C"
38882#endif
38883/* We use char because int might match the return type of a gcc2
38884 builtin and then its argument prototype would still apply. */
38885char sched_get_priority_max ();
38886int
38887main ()
38888{
38889sched_get_priority_max ();
38890 ;
38891 return 0;
38892}
38893_ACEOF
38894rm -f conftest.$ac_objext conftest$ac_exeext
38895if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38896 (eval $ac_link) 2>conftest.er1
a848cd7e 38897 ac_status=$?
ac1cb8d3
VS
38898 grep -v '^ *+' conftest.er1 >conftest.err
38899 rm -f conftest.er1
38900 cat conftest.err >&5
a848cd7e
SC
38901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38902 (exit $ac_status); } &&
c9a66001 38903 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38905 (eval $ac_try) 2>&5
38906 ac_status=$?
38907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38908 (exit $ac_status); }; } &&
38909 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38911 (eval $ac_try) 2>&5
38912 ac_status=$?
38913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38914 (exit $ac_status); }; }; then
38915 ac_cv_lib_posix4_sched_get_priority_max=yes
38916else
38917 echo "$as_me: failed program was:" >&5
38918sed 's/^/| /' conftest.$ac_ext >&5
38919
38920ac_cv_lib_posix4_sched_get_priority_max=no
38921fi
ac1cb8d3
VS
38922rm -f conftest.err conftest.$ac_objext \
38923 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38924LIBS=$ac_check_lib_save_LIBS
38925fi
38926echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
38927echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
38928if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
38929
38930 HAVE_PRIOR_FUNCS=1
38931 POSIX4_LINK=" -lposix4"
38932
38933fi
38934
38935
38936fi
38937
38938
38939fi
38940
38941
38942fi
38943
38944
38945 if test "$HAVE_PRIOR_FUNCS" = 1; then
38946 cat >>confdefs.h <<\_ACEOF
38947#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
38948_ACEOF
38949
38950 else
38951 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
38952echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
38953 fi
38954
38955 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
38956echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
38957if test "${ac_cv_func_pthread_cancel+set}" = set; then
38958 echo $ECHO_N "(cached) $ECHO_C" >&6
38959else
38960 cat >conftest.$ac_ext <<_ACEOF
38961/* confdefs.h. */
38962_ACEOF
38963cat confdefs.h >>conftest.$ac_ext
38964cat >>conftest.$ac_ext <<_ACEOF
38965/* end confdefs.h. */
ac1cb8d3
VS
38966/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
38967 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38968#define pthread_cancel innocuous_pthread_cancel
38969
a848cd7e
SC
38970/* System header to define __stub macros and hopefully few prototypes,
38971 which can conflict with char pthread_cancel (); below.
38972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38973 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38974
a848cd7e
SC
38975#ifdef __STDC__
38976# include <limits.h>
38977#else
38978# include <assert.h>
38979#endif
ac1cb8d3
VS
38980
38981#undef pthread_cancel
38982
a848cd7e
SC
38983/* Override any gcc2 internal prototype to avoid an error. */
38984#ifdef __cplusplus
38985extern "C"
38986{
38987#endif
38988/* We use char because int might match the return type of a gcc2
38989 builtin and then its argument prototype would still apply. */
38990char pthread_cancel ();
38991/* The GNU C library defines this for functions which it implements
38992 to always fail with ENOSYS. Some functions are actually named
38993 something starting with __ and the normal name is an alias. */
38994#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
38995choke me
38996#else
38997char (*f) () = pthread_cancel;
38998#endif
38999#ifdef __cplusplus
39000}
39001#endif
39002
39003int
39004main ()
39005{
39006return f != pthread_cancel;
39007 ;
39008 return 0;
39009}
39010_ACEOF
39011rm -f conftest.$ac_objext conftest$ac_exeext
39012if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39013 (eval $ac_link) 2>conftest.er1
a848cd7e 39014 ac_status=$?
ac1cb8d3
VS
39015 grep -v '^ *+' conftest.er1 >conftest.err
39016 rm -f conftest.er1
39017 cat conftest.err >&5
a848cd7e
SC
39018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39019 (exit $ac_status); } &&
c9a66001 39020 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39022 (eval $ac_try) 2>&5
39023 ac_status=$?
39024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39025 (exit $ac_status); }; } &&
39026 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39028 (eval $ac_try) 2>&5
39029 ac_status=$?
39030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39031 (exit $ac_status); }; }; then
39032 ac_cv_func_pthread_cancel=yes
39033else
39034 echo "$as_me: failed program was:" >&5
39035sed 's/^/| /' conftest.$ac_ext >&5
39036
39037ac_cv_func_pthread_cancel=no
39038fi
ac1cb8d3
VS
39039rm -f conftest.err conftest.$ac_objext \
39040 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39041fi
39042echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
39043echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
39044if test $ac_cv_func_pthread_cancel = yes; then
39045 cat >>confdefs.h <<\_ACEOF
39046#define HAVE_PTHREAD_CANCEL 1
39047_ACEOF
39048
39049else
39050 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
39051echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
39052fi
39053
39054
abc736fd
MW
39055 echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
39056echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6
39057if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
39058 echo $ECHO_N "(cached) $ECHO_C" >&6
39059else
39060 cat >conftest.$ac_ext <<_ACEOF
39061/* confdefs.h. */
39062_ACEOF
39063cat confdefs.h >>conftest.$ac_ext
39064cat >>conftest.$ac_ext <<_ACEOF
39065/* end confdefs.h. */
39066/* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
39067 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39068#define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
39069
39070/* System header to define __stub macros and hopefully few prototypes,
39071 which can conflict with char pthread_attr_setstacksize (); below.
39072 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39073 <limits.h> exists even on freestanding compilers. */
39074
39075#ifdef __STDC__
39076# include <limits.h>
39077#else
39078# include <assert.h>
39079#endif
39080
39081#undef pthread_attr_setstacksize
39082
39083/* Override any gcc2 internal prototype to avoid an error. */
39084#ifdef __cplusplus
39085extern "C"
39086{
39087#endif
39088/* We use char because int might match the return type of a gcc2
39089 builtin and then its argument prototype would still apply. */
39090char pthread_attr_setstacksize ();
39091/* The GNU C library defines this for functions which it implements
39092 to always fail with ENOSYS. Some functions are actually named
39093 something starting with __ and the normal name is an alias. */
39094#if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize)
39095choke me
39096#else
39097char (*f) () = pthread_attr_setstacksize;
39098#endif
39099#ifdef __cplusplus
39100}
39101#endif
39102
39103int
39104main ()
39105{
39106return f != pthread_attr_setstacksize;
39107 ;
39108 return 0;
39109}
39110_ACEOF
39111rm -f conftest.$ac_objext conftest$ac_exeext
39112if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39113 (eval $ac_link) 2>conftest.er1
39114 ac_status=$?
39115 grep -v '^ *+' conftest.er1 >conftest.err
39116 rm -f conftest.er1
39117 cat conftest.err >&5
39118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39119 (exit $ac_status); } &&
c9a66001 39120 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
abc736fd
MW
39121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39122 (eval $ac_try) 2>&5
39123 ac_status=$?
39124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39125 (exit $ac_status); }; } &&
39126 { ac_try='test -s conftest$ac_exeext'
39127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39128 (eval $ac_try) 2>&5
39129 ac_status=$?
39130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39131 (exit $ac_status); }; }; then
39132 ac_cv_func_pthread_attr_setstacksize=yes
39133else
39134 echo "$as_me: failed program was:" >&5
39135sed 's/^/| /' conftest.$ac_ext >&5
39136
39137ac_cv_func_pthread_attr_setstacksize=no
39138fi
39139rm -f conftest.err conftest.$ac_objext \
39140 conftest$ac_exeext conftest.$ac_ext
39141fi
39142echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
39143echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6
39144if test $ac_cv_func_pthread_attr_setstacksize = yes; then
39145 cat >>confdefs.h <<\_ACEOF
39146#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
39147_ACEOF
39148
39149fi
39150
a848cd7e
SC
39151
39152
39153 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
39154echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
39155if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
39156 echo $ECHO_N "(cached) $ECHO_C" >&6
39157else
39158
39159 cat >conftest.$ac_ext <<_ACEOF
39160/* confdefs.h. */
39161_ACEOF
39162cat confdefs.h >>conftest.$ac_ext
39163cat >>conftest.$ac_ext <<_ACEOF
39164/* end confdefs.h. */
39165#include <pthread.h>
39166int
39167main ()
39168{
39169
39170 pthread_mutexattr_t attr;
39171 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
39172
39173 ;
39174 return 0;
39175}
39176_ACEOF
39177rm -f conftest.$ac_objext
39178if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39179 (eval $ac_compile) 2>conftest.er1
a848cd7e 39180 ac_status=$?
ac1cb8d3
VS
39181 grep -v '^ *+' conftest.er1 >conftest.err
39182 rm -f conftest.er1
39183 cat conftest.err >&5
a848cd7e
SC
39184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39185 (exit $ac_status); } &&
c9a66001 39186 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39188 (eval $ac_try) 2>&5
39189 ac_status=$?
39190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39191 (exit $ac_status); }; } &&
39192 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39194 (eval $ac_try) 2>&5
39195 ac_status=$?
39196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39197 (exit $ac_status); }; }; then
123dca7d 39198 wx_cv_type_pthread_mutexattr_t=yes
a848cd7e
SC
39199else
39200 echo "$as_me: failed program was:" >&5
39201sed 's/^/| /' conftest.$ac_ext >&5
39202
123dca7d 39203wx_cv_type_pthread_mutexattr_t=no
a848cd7e
SC
39204
39205fi
ac1cb8d3 39206rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39207
39208fi
39209echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
39210echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
39211
39212 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
39213 cat >>confdefs.h <<\_ACEOF
39214#define HAVE_PTHREAD_MUTEXATTR_T 1
39215_ACEOF
39216
123dca7d
VZ
39217
39218 echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
39219echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6
39220if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
39221 echo $ECHO_N "(cached) $ECHO_C" >&6
39222else
39223
39224 cat >conftest.$ac_ext <<_ACEOF
39225/* confdefs.h. */
39226_ACEOF
39227cat confdefs.h >>conftest.$ac_ext
39228cat >>conftest.$ac_ext <<_ACEOF
39229/* end confdefs.h. */
39230#include <pthread.h>
39231int
39232main ()
39233{
39234
39235 pthread_mutexattr_t attr;
39236 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
39237
39238 ;
39239 return 0;
39240}
39241_ACEOF
39242rm -f conftest.$ac_objext
39243if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39244 (eval $ac_compile) 2>conftest.er1
39245 ac_status=$?
39246 grep -v '^ *+' conftest.er1 >conftest.err
39247 rm -f conftest.er1
39248 cat conftest.err >&5
39249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39250 (exit $ac_status); } &&
c9a66001 39251 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
123dca7d
VZ
39252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39253 (eval $ac_try) 2>&5
39254 ac_status=$?
39255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39256 (exit $ac_status); }; } &&
39257 { ac_try='test -s conftest.$ac_objext'
39258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39259 (eval $ac_try) 2>&5
39260 ac_status=$?
39261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39262 (exit $ac_status); }; }; then
39263 wx_cv_func_pthread_mutexattr_settype_decl=yes
39264else
39265 echo "$as_me: failed program was:" >&5
39266sed 's/^/| /' conftest.$ac_ext >&5
39267
39268wx_cv_func_pthread_mutexattr_settype_decl=no
39269
39270fi
39271rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39272
39273fi
39274echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
39275echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6
39276 if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
39277 cat >>confdefs.h <<\_ACEOF
39278#define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
39279_ACEOF
39280
39281 fi
a848cd7e
SC
39282 else
39283 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
39284echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
39285if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
39286 echo $ECHO_N "(cached) $ECHO_C" >&6
39287else
39288
39289 cat >conftest.$ac_ext <<_ACEOF
39290/* confdefs.h. */
39291_ACEOF
39292cat confdefs.h >>conftest.$ac_ext
39293cat >>conftest.$ac_ext <<_ACEOF
39294/* end confdefs.h. */
39295#include <pthread.h>
39296int
39297main ()
39298{
39299
39300 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
39301
39302 ;
39303 return 0;
39304}
39305_ACEOF
39306rm -f conftest.$ac_objext
39307if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39308 (eval $ac_compile) 2>conftest.er1
a848cd7e 39309 ac_status=$?
ac1cb8d3
VS
39310 grep -v '^ *+' conftest.er1 >conftest.err
39311 rm -f conftest.er1
39312 cat conftest.err >&5
a848cd7e
SC
39313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39314 (exit $ac_status); } &&
c9a66001 39315 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39317 (eval $ac_try) 2>&5
39318 ac_status=$?
39319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39320 (exit $ac_status); }; } &&
39321 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39323 (eval $ac_try) 2>&5
39324 ac_status=$?
39325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39326 (exit $ac_status); }; }; then
39327
39328 wx_cv_type_pthread_rec_mutex_init=yes
39329
39330else
39331 echo "$as_me: failed program was:" >&5
39332sed 's/^/| /' conftest.$ac_ext >&5
39333
39334
39335 wx_cv_type_pthread_rec_mutex_init=no
39336
39337
39338fi
ac1cb8d3 39339rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39340
39341fi
39342echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
39343echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
39344 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
39345 cat >>confdefs.h <<\_ACEOF
39346#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
39347_ACEOF
39348
39349 else
39350 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
39351echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
39352 fi
39353 fi
39354 fi
39355
39356else
39357 if test "$wxUSE_THREADS" = "yes" ; then
39358 case "${host}" in
39359 *-*-mingw32* )
39360 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
39361echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
39362if test "${wx_cv_cflags_mthread+set}" = set; then
39363 echo $ECHO_N "(cached) $ECHO_C" >&6
39364else
39365
e56f4f9e
VZ
39366 CXXFLAGS_OLD="$CXXFLAGS"
39367 CXXFLAGS="-mthreads $CXXFLAGS"
a848cd7e
SC
39368 cat >conftest.$ac_ext <<_ACEOF
39369/* confdefs.h. */
39370_ACEOF
39371cat confdefs.h >>conftest.$ac_ext
39372cat >>conftest.$ac_ext <<_ACEOF
39373/* end confdefs.h. */
39374
39375int
39376main ()
39377{
39378
39379 ;
39380 return 0;
39381}
39382_ACEOF
39383rm -f conftest.$ac_objext
39384if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39385 (eval $ac_compile) 2>conftest.er1
a848cd7e 39386 ac_status=$?
ac1cb8d3
VS
39387 grep -v '^ *+' conftest.er1 >conftest.err
39388 rm -f conftest.er1
39389 cat conftest.err >&5
a848cd7e
SC
39390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39391 (exit $ac_status); } &&
c9a66001 39392 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39394 (eval $ac_try) 2>&5
39395 ac_status=$?
39396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39397 (exit $ac_status); }; } &&
39398 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39400 (eval $ac_try) 2>&5
39401 ac_status=$?
39402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39403 (exit $ac_status); }; }; then
39404 wx_cv_cflags_mthread=yes
39405else
39406 echo "$as_me: failed program was:" >&5
39407sed 's/^/| /' conftest.$ac_ext >&5
39408
39409wx_cv_cflags_mthread=no
39410
39411fi
ac1cb8d3 39412rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39413
39414
39415fi
39416echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
39417echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
39418
39419 if test "$wx_cv_cflags_mthread" = "yes"; then
e56f4f9e 39420 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -mthreads"
a848cd7e
SC
39421 LDFLAGS="$LDFLAGS -mthreads"
39422 else
e56f4f9e 39423 CXXFLAGS="$CXXFLAGS_OLD"
a848cd7e
SC
39424 fi
39425 ;;
39426 *-pc-os2*emx )
5ff751d6
VZ
39427 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
39428 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
a848cd7e
SC
39429 LDFLAGS="$LDFLAGS -Zmt"
39430 ;;
39431 esac
39432 fi
39433fi
39434
004ee6da
RL
39435echo "$as_me:$LINENO: checking for localtime_r" >&5
39436echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6
39437if test "${ac_cv_func_localtime_r+set}" = set; then
a848cd7e
SC
39438 echo $ECHO_N "(cached) $ECHO_C" >&6
39439else
39440 cat >conftest.$ac_ext <<_ACEOF
39441/* confdefs.h. */
39442_ACEOF
39443cat confdefs.h >>conftest.$ac_ext
39444cat >>conftest.$ac_ext <<_ACEOF
39445/* end confdefs.h. */
004ee6da 39446/* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
ac1cb8d3 39447 For example, HP-UX 11i <limits.h> declares gettimeofday. */
004ee6da 39448#define localtime_r innocuous_localtime_r
ac1cb8d3 39449
a848cd7e 39450/* System header to define __stub macros and hopefully few prototypes,
004ee6da 39451 which can conflict with char localtime_r (); below.
a848cd7e
SC
39452 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39453 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39454
a848cd7e
SC
39455#ifdef __STDC__
39456# include <limits.h>
39457#else
39458# include <assert.h>
39459#endif
ac1cb8d3 39460
004ee6da 39461#undef localtime_r
ac1cb8d3 39462
a848cd7e
SC
39463/* Override any gcc2 internal prototype to avoid an error. */
39464#ifdef __cplusplus
39465extern "C"
39466{
39467#endif
39468/* We use char because int might match the return type of a gcc2
39469 builtin and then its argument prototype would still apply. */
004ee6da 39470char localtime_r ();
a848cd7e
SC
39471/* The GNU C library defines this for functions which it implements
39472 to always fail with ENOSYS. Some functions are actually named
39473 something starting with __ and the normal name is an alias. */
004ee6da 39474#if defined (__stub_localtime_r) || defined (__stub___localtime_r)
a848cd7e
SC
39475choke me
39476#else
004ee6da 39477char (*f) () = localtime_r;
a848cd7e
SC
39478#endif
39479#ifdef __cplusplus
39480}
39481#endif
39482
39483int
39484main ()
39485{
004ee6da
RL
39486return f != localtime_r;
39487 ;
39488 return 0;
39489}
39490_ACEOF
39491rm -f conftest.$ac_objext conftest$ac_exeext
39492if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39493 (eval $ac_link) 2>conftest.er1
39494 ac_status=$?
39495 grep -v '^ *+' conftest.er1 >conftest.err
39496 rm -f conftest.er1
39497 cat conftest.err >&5
39498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39499 (exit $ac_status); } &&
c9a66001 39500 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39502 (eval $ac_try) 2>&5
39503 ac_status=$?
39504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39505 (exit $ac_status); }; } &&
39506 { ac_try='test -s conftest$ac_exeext'
39507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39508 (eval $ac_try) 2>&5
39509 ac_status=$?
39510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39511 (exit $ac_status); }; }; then
39512 ac_cv_func_localtime_r=yes
39513else
39514 echo "$as_me: failed program was:" >&5
39515sed 's/^/| /' conftest.$ac_ext >&5
39516
39517ac_cv_func_localtime_r=no
39518fi
39519rm -f conftest.err conftest.$ac_objext \
39520 conftest$ac_exeext conftest.$ac_ext
39521fi
39522echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
39523echo "${ECHO_T}$ac_cv_func_localtime_r" >&6
39524if test $ac_cv_func_localtime_r = yes; then
39525 cat >>confdefs.h <<\_ACEOF
39526#define HAVE_LOCALTIME_R 1
39527_ACEOF
39528
39529fi
39530
39531echo "$as_me:$LINENO: checking for gmtime_r" >&5
39532echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6
39533if test "${ac_cv_func_gmtime_r+set}" = set; then
39534 echo $ECHO_N "(cached) $ECHO_C" >&6
39535else
39536 cat >conftest.$ac_ext <<_ACEOF
39537/* confdefs.h. */
39538_ACEOF
39539cat confdefs.h >>conftest.$ac_ext
39540cat >>conftest.$ac_ext <<_ACEOF
39541/* end confdefs.h. */
39542/* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
39543 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39544#define gmtime_r innocuous_gmtime_r
39545
39546/* System header to define __stub macros and hopefully few prototypes,
39547 which can conflict with char gmtime_r (); below.
39548 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39549 <limits.h> exists even on freestanding compilers. */
39550
39551#ifdef __STDC__
39552# include <limits.h>
39553#else
39554# include <assert.h>
39555#endif
39556
39557#undef gmtime_r
39558
39559/* Override any gcc2 internal prototype to avoid an error. */
39560#ifdef __cplusplus
39561extern "C"
39562{
39563#endif
39564/* We use char because int might match the return type of a gcc2
39565 builtin and then its argument prototype would still apply. */
39566char gmtime_r ();
39567/* The GNU C library defines this for functions which it implements
39568 to always fail with ENOSYS. Some functions are actually named
39569 something starting with __ and the normal name is an alias. */
39570#if defined (__stub_gmtime_r) || defined (__stub___gmtime_r)
39571choke me
39572#else
39573char (*f) () = gmtime_r;
39574#endif
39575#ifdef __cplusplus
39576}
39577#endif
39578
39579int
39580main ()
39581{
39582return f != gmtime_r;
39583 ;
39584 return 0;
39585}
39586_ACEOF
39587rm -f conftest.$ac_objext conftest$ac_exeext
39588if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39589 (eval $ac_link) 2>conftest.er1
39590 ac_status=$?
39591 grep -v '^ *+' conftest.er1 >conftest.err
39592 rm -f conftest.er1
39593 cat conftest.err >&5
39594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39595 (exit $ac_status); } &&
c9a66001 39596 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39598 (eval $ac_try) 2>&5
39599 ac_status=$?
39600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39601 (exit $ac_status); }; } &&
39602 { ac_try='test -s conftest$ac_exeext'
39603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39604 (eval $ac_try) 2>&5
39605 ac_status=$?
39606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39607 (exit $ac_status); }; }; then
39608 ac_cv_func_gmtime_r=yes
39609else
39610 echo "$as_me: failed program was:" >&5
39611sed 's/^/| /' conftest.$ac_ext >&5
39612
39613ac_cv_func_gmtime_r=no
39614fi
39615rm -f conftest.err conftest.$ac_objext \
39616 conftest$ac_exeext conftest.$ac_ext
39617fi
39618echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
39619echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6
39620if test $ac_cv_func_gmtime_r = yes; then
39621 cat >>confdefs.h <<\_ACEOF
39622#define HAVE_GMTIME_R 1
39623_ACEOF
39624
39625fi
39626
39627echo "$as_me:$LINENO: checking for readdir_r" >&5
39628echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6
39629if test "${ac_cv_func_readdir_r+set}" = set; then
39630 echo $ECHO_N "(cached) $ECHO_C" >&6
39631else
39632 cat >conftest.$ac_ext <<_ACEOF
39633/* confdefs.h. */
39634_ACEOF
39635cat confdefs.h >>conftest.$ac_ext
39636cat >>conftest.$ac_ext <<_ACEOF
39637/* end confdefs.h. */
39638/* Define readdir_r to an innocuous variant, in case <limits.h> declares readdir_r.
39639 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39640#define readdir_r innocuous_readdir_r
39641
39642/* System header to define __stub macros and hopefully few prototypes,
39643 which can conflict with char readdir_r (); below.
39644 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39645 <limits.h> exists even on freestanding compilers. */
39646
39647#ifdef __STDC__
39648# include <limits.h>
39649#else
39650# include <assert.h>
39651#endif
39652
39653#undef readdir_r
39654
39655/* Override any gcc2 internal prototype to avoid an error. */
39656#ifdef __cplusplus
39657extern "C"
39658{
39659#endif
39660/* We use char because int might match the return type of a gcc2
39661 builtin and then its argument prototype would still apply. */
39662char readdir_r ();
39663/* The GNU C library defines this for functions which it implements
39664 to always fail with ENOSYS. Some functions are actually named
39665 something starting with __ and the normal name is an alias. */
39666#if defined (__stub_readdir_r) || defined (__stub___readdir_r)
39667choke me
39668#else
39669char (*f) () = readdir_r;
39670#endif
39671#ifdef __cplusplus
39672}
39673#endif
39674
39675int
39676main ()
39677{
39678return f != readdir_r;
39679 ;
39680 return 0;
39681}
39682_ACEOF
39683rm -f conftest.$ac_objext conftest$ac_exeext
39684if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39685 (eval $ac_link) 2>conftest.er1
39686 ac_status=$?
39687 grep -v '^ *+' conftest.er1 >conftest.err
39688 rm -f conftest.er1
39689 cat conftest.err >&5
39690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39691 (exit $ac_status); } &&
c9a66001 39692 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39694 (eval $ac_try) 2>&5
39695 ac_status=$?
39696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39697 (exit $ac_status); }; } &&
39698 { ac_try='test -s conftest$ac_exeext'
39699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39700 (eval $ac_try) 2>&5
39701 ac_status=$?
39702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39703 (exit $ac_status); }; }; then
39704 ac_cv_func_readdir_r=yes
39705else
39706 echo "$as_me: failed program was:" >&5
39707sed 's/^/| /' conftest.$ac_ext >&5
39708
39709ac_cv_func_readdir_r=no
39710fi
39711rm -f conftest.err conftest.$ac_objext \
39712 conftest$ac_exeext conftest.$ac_ext
39713fi
39714echo "$as_me:$LINENO: result: $ac_cv_func_readdir_r" >&5
39715echo "${ECHO_T}$ac_cv_func_readdir_r" >&6
39716if test $ac_cv_func_readdir_r = yes; then
39717 cat >>confdefs.h <<\_ACEOF
39718#define HAVE_READDIR_R 1
39719_ACEOF
39720
39721fi
39722
004ee6da 39723
004ee6da
RL
39724
39725
39726 ac_ext=c
39727ac_cpp='$CPP $CPPFLAGS'
39728ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39729ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39730ac_compiler_gnu=$ac_cv_c_compiler_gnu
39731
39732 echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
39733echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6
39734
39735 if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
39736 echo $ECHO_N "(cached) $ECHO_C" >&6
39737else
39738
39739
2f6c5bb5 39740################################################################
004ee6da
RL
39741
39742ac_cv_func_which_gethostbyname_r=unknown
39743
39744#
39745# ONE ARGUMENT (sanity check)
39746#
39747
39748# This should fail, as there is no variant of gethostbyname_r() that takes
39749# a single argument. If it actually compiles, then we can assume that
39750# netdb.h is not declaring the function, and the compiler is thereby
39751# assuming an implicit prototype. In which case, we're out of luck.
39752#
39753cat >conftest.$ac_ext <<_ACEOF
39754/* confdefs.h. */
39755_ACEOF
39756cat confdefs.h >>conftest.$ac_ext
39757cat >>conftest.$ac_ext <<_ACEOF
39758/* end confdefs.h. */
39759#include <netdb.h>
39760int
39761main ()
39762{
39763
39764 char *name = "www.gnu.org";
39765 (void)gethostbyname_r(name) /* ; */
39766
39767 ;
39768 return 0;
39769}
39770_ACEOF
39771rm -f conftest.$ac_objext
39772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39773 (eval $ac_compile) 2>conftest.er1
39774 ac_status=$?
39775 grep -v '^ *+' conftest.er1 >conftest.err
39776 rm -f conftest.er1
39777 cat conftest.err >&5
39778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39779 (exit $ac_status); } &&
c9a66001 39780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39782 (eval $ac_try) 2>&5
39783 ac_status=$?
39784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39785 (exit $ac_status); }; } &&
39786 { ac_try='test -s conftest.$ac_objext'
39787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39788 (eval $ac_try) 2>&5
39789 ac_status=$?
39790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39791 (exit $ac_status); }; }; then
39792 ac_cv_func_which_gethostbyname_r=no
39793else
39794 echo "$as_me: failed program was:" >&5
39795sed 's/^/| /' conftest.$ac_ext >&5
39796
39797fi
39798rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39799
39800#
39801# SIX ARGUMENTS
39802# (e.g. Linux)
39803#
39804
39805if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
39806
39807cat >conftest.$ac_ext <<_ACEOF
39808/* confdefs.h. */
39809_ACEOF
39810cat confdefs.h >>conftest.$ac_ext
39811cat >>conftest.$ac_ext <<_ACEOF
39812/* end confdefs.h. */
39813#include <netdb.h>
39814int
39815main ()
39816{
39817
39818 char *name = "www.gnu.org";
39819 struct hostent ret, *retp;
39820 char buf[1024];
39821 int buflen = 1024;
39822 int my_h_errno;
39823 (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
39824
39825 ;
39826 return 0;
39827}
39828_ACEOF
39829rm -f conftest.$ac_objext
39830if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39831 (eval $ac_compile) 2>conftest.er1
39832 ac_status=$?
39833 grep -v '^ *+' conftest.er1 >conftest.err
39834 rm -f conftest.er1
39835 cat conftest.err >&5
39836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39837 (exit $ac_status); } &&
c9a66001 39838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39840 (eval $ac_try) 2>&5
39841 ac_status=$?
39842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39843 (exit $ac_status); }; } &&
39844 { ac_try='test -s conftest.$ac_objext'
39845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39846 (eval $ac_try) 2>&5
39847 ac_status=$?
39848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39849 (exit $ac_status); }; }; then
39850 ac_cv_func_which_gethostbyname_r=six
39851else
39852 echo "$as_me: failed program was:" >&5
39853sed 's/^/| /' conftest.$ac_ext >&5
39854
39855fi
39856rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39857
39858fi
39859
39860#
39861# FIVE ARGUMENTS
39862# (e.g. Solaris)
39863#
39864
39865if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
39866
39867cat >conftest.$ac_ext <<_ACEOF
39868/* confdefs.h. */
39869_ACEOF
39870cat confdefs.h >>conftest.$ac_ext
39871cat >>conftest.$ac_ext <<_ACEOF
39872/* end confdefs.h. */
39873#include <netdb.h>
39874int
39875main ()
39876{
39877
39878 char *name = "www.gnu.org";
39879 struct hostent ret;
39880 char buf[1024];
39881 int buflen = 1024;
39882 int my_h_errno;
39883 (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
39884
39885 ;
39886 return 0;
39887}
39888_ACEOF
39889rm -f conftest.$ac_objext
39890if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39891 (eval $ac_compile) 2>conftest.er1
39892 ac_status=$?
39893 grep -v '^ *+' conftest.er1 >conftest.err
39894 rm -f conftest.er1
39895 cat conftest.err >&5
39896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39897 (exit $ac_status); } &&
c9a66001 39898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39900 (eval $ac_try) 2>&5
39901 ac_status=$?
39902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39903 (exit $ac_status); }; } &&
39904 { ac_try='test -s conftest.$ac_objext'
39905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39906 (eval $ac_try) 2>&5
39907 ac_status=$?
39908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39909 (exit $ac_status); }; }; then
39910 ac_cv_func_which_gethostbyname_r=five
39911else
39912 echo "$as_me: failed program was:" >&5
39913sed 's/^/| /' conftest.$ac_ext >&5
39914
39915fi
39916rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39917
39918fi
39919
39920#
39921# THREE ARGUMENTS
39922# (e.g. AIX, HP-UX, Tru64)
39923#
39924
39925if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
39926
39927cat >conftest.$ac_ext <<_ACEOF
39928/* confdefs.h. */
39929_ACEOF
39930cat confdefs.h >>conftest.$ac_ext
39931cat >>conftest.$ac_ext <<_ACEOF
39932/* end confdefs.h. */
39933#include <netdb.h>
39934int
39935main ()
39936{
39937
39938 char *name = "www.gnu.org";
39939 struct hostent ret;
39940 struct hostent_data data;
39941 (void)gethostbyname_r(name, &ret, &data) /* ; */
39942
39943 ;
39944 return 0;
39945}
39946_ACEOF
39947rm -f conftest.$ac_objext
39948if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39949 (eval $ac_compile) 2>conftest.er1
39950 ac_status=$?
39951 grep -v '^ *+' conftest.er1 >conftest.err
39952 rm -f conftest.er1
39953 cat conftest.err >&5
39954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39955 (exit $ac_status); } &&
c9a66001 39956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39958 (eval $ac_try) 2>&5
39959 ac_status=$?
39960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39961 (exit $ac_status); }; } &&
39962 { ac_try='test -s conftest.$ac_objext'
39963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39964 (eval $ac_try) 2>&5
39965 ac_status=$?
39966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39967 (exit $ac_status); }; }; then
39968 ac_cv_func_which_gethostbyname_r=three
39969else
39970 echo "$as_me: failed program was:" >&5
39971sed 's/^/| /' conftest.$ac_ext >&5
39972
39973fi
39974rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39975
39976fi
39977
2f6c5bb5 39978################################################################
004ee6da
RL
39979
39980
39981fi
39982
39983case "$ac_cv_func_which_gethostbyname_r" in
39984 three)
39985 echo "$as_me:$LINENO: result: three" >&5
39986echo "${ECHO_T}three" >&6
39987 cat >>confdefs.h <<\_ACEOF
39988#define HAVE_FUNC_GETHOSTBYNAME_R_3 1
39989_ACEOF
39990
39991 ;;
39992
39993 five)
39994 echo "$as_me:$LINENO: result: five" >&5
39995echo "${ECHO_T}five" >&6
39996 cat >>confdefs.h <<\_ACEOF
39997#define HAVE_FUNC_GETHOSTBYNAME_R_5 1
39998_ACEOF
39999
40000 ;;
40001
40002 six)
40003 echo "$as_me:$LINENO: result: six" >&5
40004echo "${ECHO_T}six" >&6
40005 cat >>confdefs.h <<\_ACEOF
40006#define HAVE_FUNC_GETHOSTBYNAME_R_6 1
40007_ACEOF
40008
40009 ;;
40010
40011 no)
40012 echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
40013echo "${ECHO_T}cannot find function declaration in netdb.h" >&6
40014 ;;
40015
40016 unknown)
40017 echo "$as_me:$LINENO: result: can't tell" >&5
40018echo "${ECHO_T}can't tell" >&6
40019 ;;
40020
40021 *)
40022 { { echo "$as_me:$LINENO: error: internal error" >&5
40023echo "$as_me: error: internal error" >&2;}
40024 { (exit 1); exit 1; }; }
40025 ;;
40026esac
40027
5ec3bc43
JS
40028ac_ext=cc
40029ac_cpp='$CXXCPP $CPPFLAGS'
40030ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40031ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40032ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
004ee6da
RL
40033
40034
40035
40036 if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
40037 "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
40038 echo "$as_me:$LINENO: checking for gethostbyname" >&5
40039echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
40040if test "${ac_cv_func_gethostbyname+set}" = set; then
40041 echo $ECHO_N "(cached) $ECHO_C" >&6
40042else
40043 cat >conftest.$ac_ext <<_ACEOF
40044/* confdefs.h. */
40045_ACEOF
40046cat confdefs.h >>conftest.$ac_ext
40047cat >>conftest.$ac_ext <<_ACEOF
40048/* end confdefs.h. */
40049/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
40050 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40051#define gethostbyname innocuous_gethostbyname
40052
40053/* System header to define __stub macros and hopefully few prototypes,
40054 which can conflict with char gethostbyname (); below.
40055 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40056 <limits.h> exists even on freestanding compilers. */
40057
40058#ifdef __STDC__
40059# include <limits.h>
40060#else
40061# include <assert.h>
40062#endif
40063
40064#undef gethostbyname
40065
40066/* Override any gcc2 internal prototype to avoid an error. */
40067#ifdef __cplusplus
40068extern "C"
40069{
40070#endif
40071/* We use char because int might match the return type of a gcc2
40072 builtin and then its argument prototype would still apply. */
40073char gethostbyname ();
40074/* The GNU C library defines this for functions which it implements
40075 to always fail with ENOSYS. Some functions are actually named
40076 something starting with __ and the normal name is an alias. */
40077#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
40078choke me
40079#else
40080char (*f) () = gethostbyname;
40081#endif
40082#ifdef __cplusplus
40083}
40084#endif
40085
40086int
40087main ()
40088{
40089return f != gethostbyname;
40090 ;
40091 return 0;
40092}
40093_ACEOF
40094rm -f conftest.$ac_objext conftest$ac_exeext
40095if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40096 (eval $ac_link) 2>conftest.er1
40097 ac_status=$?
40098 grep -v '^ *+' conftest.er1 >conftest.err
40099 rm -f conftest.er1
40100 cat conftest.err >&5
40101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40102 (exit $ac_status); } &&
c9a66001 40103 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40105 (eval $ac_try) 2>&5
40106 ac_status=$?
40107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40108 (exit $ac_status); }; } &&
40109 { ac_try='test -s conftest$ac_exeext'
40110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40111 (eval $ac_try) 2>&5
40112 ac_status=$?
40113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40114 (exit $ac_status); }; }; then
40115 ac_cv_func_gethostbyname=yes
40116else
40117 echo "$as_me: failed program was:" >&5
40118sed 's/^/| /' conftest.$ac_ext >&5
40119
40120ac_cv_func_gethostbyname=no
40121fi
40122rm -f conftest.err conftest.$ac_objext \
40123 conftest$ac_exeext conftest.$ac_ext
40124fi
40125echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
40126echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
40127if test $ac_cv_func_gethostbyname = yes; then
40128 cat >>confdefs.h <<\_ACEOF
40129#define HAVE_GETHOSTBYNAME 1
40130_ACEOF
40131
40132fi
40133
40134 fi
40135 echo "$as_me:$LINENO: checking for getservbyname_r" >&5
40136echo $ECHO_N "checking for getservbyname_r... $ECHO_C" >&6
3ecd9f92
MW
40137if test "${ac_cv_func_which_getservbyname_r+set}" = set; then
40138 echo $ECHO_N "(cached) $ECHO_C" >&6
40139else
40140
40141echo "$as_me:$LINENO: checking for getservbyname_r" >&5
40142echo $ECHO_N "checking for getservbyname_r... $ECHO_C" >&6
004ee6da
RL
40143if test "${ac_cv_func_getservbyname_r+set}" = set; then
40144 echo $ECHO_N "(cached) $ECHO_C" >&6
40145else
40146 cat >conftest.$ac_ext <<_ACEOF
40147/* confdefs.h. */
40148_ACEOF
40149cat confdefs.h >>conftest.$ac_ext
40150cat >>conftest.$ac_ext <<_ACEOF
40151/* end confdefs.h. */
40152/* Define getservbyname_r to an innocuous variant, in case <limits.h> declares getservbyname_r.
40153 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40154#define getservbyname_r innocuous_getservbyname_r
40155
40156/* System header to define __stub macros and hopefully few prototypes,
40157 which can conflict with char getservbyname_r (); below.
40158 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40159 <limits.h> exists even on freestanding compilers. */
40160
40161#ifdef __STDC__
40162# include <limits.h>
40163#else
40164# include <assert.h>
40165#endif
40166
40167#undef getservbyname_r
40168
40169/* Override any gcc2 internal prototype to avoid an error. */
40170#ifdef __cplusplus
40171extern "C"
40172{
40173#endif
40174/* We use char because int might match the return type of a gcc2
40175 builtin and then its argument prototype would still apply. */
40176char getservbyname_r ();
40177/* The GNU C library defines this for functions which it implements
40178 to always fail with ENOSYS. Some functions are actually named
40179 something starting with __ and the normal name is an alias. */
40180#if defined (__stub_getservbyname_r) || defined (__stub___getservbyname_r)
40181choke me
40182#else
40183char (*f) () = getservbyname_r;
40184#endif
40185#ifdef __cplusplus
40186}
40187#endif
40188
40189int
40190main ()
40191{
40192return f != getservbyname_r;
40193 ;
40194 return 0;
40195}
40196_ACEOF
40197rm -f conftest.$ac_objext conftest$ac_exeext
40198if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40199 (eval $ac_link) 2>conftest.er1
40200 ac_status=$?
40201 grep -v '^ *+' conftest.er1 >conftest.err
40202 rm -f conftest.er1
40203 cat conftest.err >&5
40204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40205 (exit $ac_status); } &&
c9a66001 40206 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40208 (eval $ac_try) 2>&5
40209 ac_status=$?
40210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40211 (exit $ac_status); }; } &&
40212 { ac_try='test -s conftest$ac_exeext'
40213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40214 (eval $ac_try) 2>&5
40215 ac_status=$?
40216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40217 (exit $ac_status); }; }; then
40218 ac_cv_func_getservbyname_r=yes
40219else
40220 echo "$as_me: failed program was:" >&5
40221sed 's/^/| /' conftest.$ac_ext >&5
40222
40223ac_cv_func_getservbyname_r=no
40224fi
40225rm -f conftest.err conftest.$ac_objext \
40226 conftest$ac_exeext conftest.$ac_ext
40227fi
40228echo "$as_me:$LINENO: result: $ac_cv_func_getservbyname_r" >&5
40229echo "${ECHO_T}$ac_cv_func_getservbyname_r" >&6
40230if test $ac_cv_func_getservbyname_r = yes; then
3ecd9f92
MW
40231
40232 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
40233/* confdefs.h. */
40234_ACEOF
40235cat confdefs.h >>conftest.$ac_ext
40236cat >>conftest.$ac_ext <<_ACEOF
40237/* end confdefs.h. */
3ecd9f92
MW
40238
40239# include <netdb.h>
40240
004ee6da
RL
40241int
40242main ()
40243{
40244
3ecd9f92
MW
40245
40246 char *name;
40247 char *proto;
40248 struct servent *se;
40249 struct servent_data data;
40250 (void) getservbyname_r(name, proto, se, &data);
40251
004ee6da
RL
40252
40253 ;
40254 return 0;
40255}
40256_ACEOF
40257rm -f conftest.$ac_objext
40258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40259 (eval $ac_compile) 2>conftest.er1
40260 ac_status=$?
40261 grep -v '^ *+' conftest.er1 >conftest.err
40262 rm -f conftest.er1
40263 cat conftest.err >&5
40264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40265 (exit $ac_status); } &&
c9a66001 40266 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40268 (eval $ac_try) 2>&5
40269 ac_status=$?
40270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40271 (exit $ac_status); }; } &&
40272 { ac_try='test -s conftest.$ac_objext'
40273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40274 (eval $ac_try) 2>&5
40275 ac_status=$?
40276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40277 (exit $ac_status); }; }; then
40278 ac_cv_func_which_getservbyname_r=four
40279else
40280 echo "$as_me: failed program was:" >&5
40281sed 's/^/| /' conftest.$ac_ext >&5
40282
3ecd9f92
MW
40283
40284 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
40285/* confdefs.h. */
40286_ACEOF
40287cat confdefs.h >>conftest.$ac_ext
40288cat >>conftest.$ac_ext <<_ACEOF
40289/* end confdefs.h. */
3ecd9f92
MW
40290
40291# include <netdb.h>
40292
004ee6da
RL
40293int
40294main ()
40295{
40296
3ecd9f92
MW
40297 char *name;
40298 char *proto;
40299 struct servent *se, *res;
40300 char buffer[2048];
40301 int buflen = 2048;
40302 (void) getservbyname_r(name, proto, se, buffer, buflen, &res)
004ee6da
RL
40303
40304 ;
40305 return 0;
40306}
40307_ACEOF
40308rm -f conftest.$ac_objext
40309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40310 (eval $ac_compile) 2>conftest.er1
40311 ac_status=$?
40312 grep -v '^ *+' conftest.er1 >conftest.err
40313 rm -f conftest.er1
40314 cat conftest.err >&5
40315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40316 (exit $ac_status); } &&
c9a66001 40317 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40319 (eval $ac_try) 2>&5
40320 ac_status=$?
40321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40322 (exit $ac_status); }; } &&
40323 { ac_try='test -s conftest.$ac_objext'
40324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40325 (eval $ac_try) 2>&5
40326 ac_status=$?
40327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40328 (exit $ac_status); }; }; then
40329 ac_cv_func_which_getservbyname_r=six
40330else
40331 echo "$as_me: failed program was:" >&5
40332sed 's/^/| /' conftest.$ac_ext >&5
40333
3ecd9f92
MW
40334
40335 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
40336/* confdefs.h. */
40337_ACEOF
40338cat confdefs.h >>conftest.$ac_ext
40339cat >>conftest.$ac_ext <<_ACEOF
40340/* end confdefs.h. */
3ecd9f92
MW
40341
40342# include <netdb.h>
40343
004ee6da
RL
40344int
40345main ()
40346{
40347
3ecd9f92
MW
40348 char *name;
40349 char *proto;
40350 struct servent *se;
40351 char buffer[2048];
40352 int buflen = 2048;
40353 (void) getservbyname_r(name, proto, se, buffer, buflen)
004ee6da
RL
40354
40355 ;
40356 return 0;
40357}
40358_ACEOF
40359rm -f conftest.$ac_objext
40360if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40361 (eval $ac_compile) 2>conftest.er1
40362 ac_status=$?
40363 grep -v '^ *+' conftest.er1 >conftest.err
40364 rm -f conftest.er1
40365 cat conftest.err >&5
40366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40367 (exit $ac_status); } &&
c9a66001 40368 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40370 (eval $ac_try) 2>&5
40371 ac_status=$?
40372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40373 (exit $ac_status); }; } &&
40374 { ac_try='test -s conftest.$ac_objext'
40375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40376 (eval $ac_try) 2>&5
40377 ac_status=$?
40378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40379 (exit $ac_status); }; }; then
40380 ac_cv_func_which_getservbyname_r=five
40381else
40382 echo "$as_me: failed program was:" >&5
40383sed 's/^/| /' conftest.$ac_ext >&5
40384
40385ac_cv_func_which_getservbyname_r=no
40386fi
40387rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40388
3ecd9f92
MW
40389
40390
40391
004ee6da
RL
40392fi
40393rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40394
3ecd9f92 40395
004ee6da
RL
40396fi
40397rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3ecd9f92 40398
004ee6da
RL
40399else
40400 ac_cv_func_which_getservbyname_r=no
40401fi
40402
3ecd9f92
MW
40403fi
40404echo "$as_me:$LINENO: result: $ac_cv_func_which_getservbyname_r" >&5
40405echo "${ECHO_T}$ac_cv_func_which_getservbyname_r" >&6
004ee6da
RL
40406
40407if test $ac_cv_func_which_getservbyname_r = six; then
40408 cat >>confdefs.h <<\_ACEOF
40409#define HAVE_FUNC_GETSERVBYNAME_R_6 1
40410_ACEOF
40411
40412elif test $ac_cv_func_which_getservbyname_r = five; then
40413 cat >>confdefs.h <<\_ACEOF
40414#define HAVE_FUNC_GETSERVBYNAME_R_5 1
40415_ACEOF
40416
40417elif test $ac_cv_func_which_getservbyname_r = four; then
40418 cat >>confdefs.h <<\_ACEOF
40419#define HAVE_FUNC_GETSERVBYNAME_R_4 1
40420_ACEOF
40421
3ecd9f92 40422
004ee6da
RL
40423fi
40424
40425
40426 if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
40427 "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
40428
40429for ac_func in getservbyname
40430do
40431as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40432echo "$as_me:$LINENO: checking for $ac_func" >&5
40433echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40434if eval "test \"\${$as_ac_var+set}\" = set"; then
40435 echo $ECHO_N "(cached) $ECHO_C" >&6
40436else
40437 cat >conftest.$ac_ext <<_ACEOF
40438/* confdefs.h. */
40439_ACEOF
40440cat confdefs.h >>conftest.$ac_ext
40441cat >>conftest.$ac_ext <<_ACEOF
40442/* end confdefs.h. */
40443/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40444 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40445#define $ac_func innocuous_$ac_func
40446
40447/* System header to define __stub macros and hopefully few prototypes,
40448 which can conflict with char $ac_func (); below.
40449 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40450 <limits.h> exists even on freestanding compilers. */
40451
40452#ifdef __STDC__
40453# include <limits.h>
40454#else
40455# include <assert.h>
40456#endif
40457
40458#undef $ac_func
40459
40460/* Override any gcc2 internal prototype to avoid an error. */
40461#ifdef __cplusplus
40462extern "C"
40463{
40464#endif
40465/* We use char because int might match the return type of a gcc2
40466 builtin and then its argument prototype would still apply. */
40467char $ac_func ();
40468/* The GNU C library defines this for functions which it implements
40469 to always fail with ENOSYS. Some functions are actually named
40470 something starting with __ and the normal name is an alias. */
40471#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40472choke me
40473#else
40474char (*f) () = $ac_func;
40475#endif
40476#ifdef __cplusplus
40477}
40478#endif
40479
40480int
40481main ()
40482{
40483return f != $ac_func;
40484 ;
40485 return 0;
40486}
40487_ACEOF
40488rm -f conftest.$ac_objext conftest$ac_exeext
40489if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40490 (eval $ac_link) 2>conftest.er1
40491 ac_status=$?
40492 grep -v '^ *+' conftest.er1 >conftest.err
40493 rm -f conftest.er1
40494 cat conftest.err >&5
40495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40496 (exit $ac_status); } &&
c9a66001 40497 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40499 (eval $ac_try) 2>&5
40500 ac_status=$?
40501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40502 (exit $ac_status); }; } &&
40503 { ac_try='test -s conftest$ac_exeext'
40504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40505 (eval $ac_try) 2>&5
40506 ac_status=$?
40507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40508 (exit $ac_status); }; }; then
40509 eval "$as_ac_var=yes"
40510else
40511 echo "$as_me: failed program was:" >&5
40512sed 's/^/| /' conftest.$ac_ext >&5
40513
40514eval "$as_ac_var=no"
40515fi
40516rm -f conftest.err conftest.$ac_objext \
40517 conftest$ac_exeext conftest.$ac_ext
40518fi
40519echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40520echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40521if test `eval echo '${'$as_ac_var'}'` = yes; then
40522 cat >>confdefs.h <<_ACEOF
40523#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40524_ACEOF
40525 cat >>confdefs.h <<\_ACEOF
40526#define HAVE_GETSERVBYNAME 1
40527_ACEOF
40528
40529fi
40530done
40531
40532 fi
40533
004ee6da
RL
40534if test "$wxUSE_THREADS" = "yes"; then
40535 cat >>confdefs.h <<\_ACEOF
40536#define wxUSE_THREADS 1
40537_ACEOF
40538
40539
40540 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
40541else
40542 if test "$ac_cv_func_strtok_r" = "yes"; then
40543 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
40544echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
40545 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
40546 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
40547 echo "$as_me:$LINENO: result: yes" >&5
40548echo "${ECHO_T}yes" >&6
40549 else
40550 echo "$as_me:$LINENO: result: no" >&5
40551echo "${ECHO_T}no" >&6
40552 fi
40553 fi
40554fi
40555
40556if test "$WXGTK20" = 1 ; then
40557 cat >>confdefs.h <<_ACEOF
40558#define __WXGTK20__ $WXGTK20
40559_ACEOF
40560
40561 WXGTK12=1
40562fi
40563
40564if test "$WXGTK12" = 1 ; then
40565 cat >>confdefs.h <<_ACEOF
40566#define __WXGTK12__ $WXGTK12
40567_ACEOF
40568
40569fi
40570
40571if test "$WXGTK127" = 1 ; then
40572 cat >>confdefs.h <<_ACEOF
40573#define __WXGTK127__ $WXGTK127
40574_ACEOF
40575
40576fi
40577
40578if test "$WXGPE" = 1 ; then
40579 cat >>confdefs.h <<_ACEOF
40580#define __WXGPE__ $WXGPE
40581_ACEOF
40582
40583fi
40584
40585DEBUG_CFLAGS=
40586if test "$wxUSE_DEBUG_INFO" = "yes" ; then
40587 DEBUG_CFLAGS="-g"
40588 wxUSE_OPTIMISE=no
40589fi
40590
40591if test "$wxUSE_DEBUG_GDB" = "yes" ; then
40592 wxUSE_DEBUG_INFO=yes
40593 if test "$GCC" = yes; then
40594 DEBUG_CFLAGS="-ggdb"
40595 fi
40596fi
40597
40598if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
40599 cat >>confdefs.h <<\_ACEOF
40600#define WXDEBUG 1
40601_ACEOF
40602
40603 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
40604else
40605 if test "$wxUSE_GTK" = 1 ; then
99879bbf
MR
40606 if test "x$wxGTK_VERSION" = "x1" ; then
40607 CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
40608 fi
004ee6da
RL
40609 fi
40610fi
40611
40612if test "$wxUSE_MEM_TRACING" = "yes" ; then
40613 cat >>confdefs.h <<\_ACEOF
40614#define wxUSE_MEMORY_TRACING 1
40615_ACEOF
40616
40617 cat >>confdefs.h <<\_ACEOF
40618#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
40619_ACEOF
40620
40621 cat >>confdefs.h <<\_ACEOF
40622#define wxUSE_DEBUG_NEW_ALWAYS 1
40623_ACEOF
40624
40625 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
40626fi
40627
40628if test "$wxUSE_DMALLOC" = "yes" ; then
40629 DMALLOC_LIBS="-ldmallocthcxx"
40630fi
40631
40632PROFILE_FLAGS=
40633if test "$wxUSE_PROFILE" = "yes" ; then
40634 PROFILE_FLAGS=" -pg"
40635fi
40636
40637if test "$GCC" = "yes" ; then
40638 if test "$wxUSE_NO_RTTI" = "yes" ; then
40639 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
40640 fi
40641 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
40642 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
40643 fi
40644 if test "$wxUSE_PERMISSIVE" = "yes" ; then
40645 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
40646 fi
40647
40648 case "${host}" in
40649 powerpc*-*-aix* )
40650 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
40651 ;;
40652 *-hppa* )
40653 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
40654 ;;
40655 esac
40656fi
40657
40658OPTIMISE_CFLAGS=
40659if test "$wxUSE_OPTIMISE" = "no" ; then
40660 if test "$GCC" = yes ; then
40661 OPTIMISE_CFLAGS="-O0"
40662 fi
40663else
40664 if test "$GCC" = yes ; then
e5efa97e
VZ
40665 case "${host}" in
40666 *-pc-os2_emx | *-pc-os2-emx )
40667 OPTIMISE_CFLAGS="-O2"
40668 ;;
40669 *)
40670 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
40671 ;;
40672 esac
004ee6da
RL
40673 else
40674 OPTIMISE_CFLAGS="-O"
40675 fi
40676fi
40677
40678
40679if test "x$WXWIN_COMPATIBILITY_2_4" = "xyes"; then
40680 cat >>confdefs.h <<\_ACEOF
40681#define WXWIN_COMPATIBILITY_2_4 1
40682_ACEOF
40683
40684
40685 WXWIN_COMPATIBILITY_2_6="yes"
40686fi
40687
40688if test "x$WXWIN_COMPATIBILITY_2_6" != "xno"; then
40689 cat >>confdefs.h <<\_ACEOF
40690#define WXWIN_COMPATIBILITY_2_6 1
40691_ACEOF
40692
40693fi
40694
40695
40696if test "$wxUSE_GUI" = "yes"; then
40697 cat >>confdefs.h <<\_ACEOF
40698#define wxUSE_GUI 1
40699_ACEOF
40700
40701
40702 fi
40703
40704
40705if test "$wxUSE_UNIX" = "yes"; then
40706 cat >>confdefs.h <<\_ACEOF
40707#define wxUSE_UNIX 1
40708_ACEOF
40709
40710fi
40711
40712
40713if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
40714
40715 HAVE_DL_FUNCS=0
40716 HAVE_SHL_FUNCS=0
40717 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
40718 if test "$USE_DARWIN" = 1; then
40719 HAVE_DL_FUNCS=1
40720 elif test "$USE_DOS" = 1; then
40721 HAVE_DL_FUNCS=0
40722 else
40723
40724for ac_func in dlopen
40725do
40726as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40727echo "$as_me:$LINENO: checking for $ac_func" >&5
40728echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40729if eval "test \"\${$as_ac_var+set}\" = set"; then
40730 echo $ECHO_N "(cached) $ECHO_C" >&6
40731else
40732 cat >conftest.$ac_ext <<_ACEOF
40733/* confdefs.h. */
40734_ACEOF
40735cat confdefs.h >>conftest.$ac_ext
40736cat >>conftest.$ac_ext <<_ACEOF
40737/* end confdefs.h. */
40738/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40739 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40740#define $ac_func innocuous_$ac_func
40741
40742/* System header to define __stub macros and hopefully few prototypes,
40743 which can conflict with char $ac_func (); below.
40744 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40745 <limits.h> exists even on freestanding compilers. */
40746
40747#ifdef __STDC__
40748# include <limits.h>
40749#else
40750# include <assert.h>
40751#endif
40752
40753#undef $ac_func
40754
40755/* Override any gcc2 internal prototype to avoid an error. */
40756#ifdef __cplusplus
40757extern "C"
40758{
40759#endif
40760/* We use char because int might match the return type of a gcc2
40761 builtin and then its argument prototype would still apply. */
40762char $ac_func ();
40763/* The GNU C library defines this for functions which it implements
40764 to always fail with ENOSYS. Some functions are actually named
40765 something starting with __ and the normal name is an alias. */
40766#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40767choke me
40768#else
40769char (*f) () = $ac_func;
40770#endif
40771#ifdef __cplusplus
40772}
40773#endif
40774
40775int
40776main ()
40777{
40778return f != $ac_func;
a848cd7e
SC
40779 ;
40780 return 0;
40781}
40782_ACEOF
40783rm -f conftest.$ac_objext conftest$ac_exeext
40784if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40785 (eval $ac_link) 2>conftest.er1
a848cd7e 40786 ac_status=$?
ac1cb8d3
VS
40787 grep -v '^ *+' conftest.er1 >conftest.err
40788 rm -f conftest.er1
40789 cat conftest.err >&5
a848cd7e
SC
40790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40791 (exit $ac_status); } &&
c9a66001 40792 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40794 (eval $ac_try) 2>&5
40795 ac_status=$?
40796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40797 (exit $ac_status); }; } &&
40798 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
40804 eval "$as_ac_var=yes"
40805else
40806 echo "$as_me: failed program was:" >&5
40807sed 's/^/| /' conftest.$ac_ext >&5
40808
40809eval "$as_ac_var=no"
40810fi
ac1cb8d3
VS
40811rm -f conftest.err conftest.$ac_objext \
40812 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40813fi
40814echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40815echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40816if test `eval echo '${'$as_ac_var'}'` = yes; then
40817 cat >>confdefs.h <<_ACEOF
40818#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40819_ACEOF
40820
40821 cat >>confdefs.h <<\_ACEOF
40822#define HAVE_DLOPEN 1
40823_ACEOF
40824
40825 HAVE_DL_FUNCS=1
40826
40827else
40828
40829 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
40830echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
40831if test "${ac_cv_lib_dl_dlopen+set}" = set; then
40832 echo $ECHO_N "(cached) $ECHO_C" >&6
40833else
40834 ac_check_lib_save_LIBS=$LIBS
40835LIBS="-ldl $LIBS"
40836cat >conftest.$ac_ext <<_ACEOF
40837/* confdefs.h. */
40838_ACEOF
40839cat confdefs.h >>conftest.$ac_ext
40840cat >>conftest.$ac_ext <<_ACEOF
40841/* end confdefs.h. */
40842
40843/* Override any gcc2 internal prototype to avoid an error. */
40844#ifdef __cplusplus
40845extern "C"
40846#endif
40847/* We use char because int might match the return type of a gcc2
40848 builtin and then its argument prototype would still apply. */
40849char dlopen ();
40850int
40851main ()
40852{
40853dlopen ();
40854 ;
40855 return 0;
40856}
40857_ACEOF
40858rm -f conftest.$ac_objext conftest$ac_exeext
40859if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40860 (eval $ac_link) 2>conftest.er1
a848cd7e 40861 ac_status=$?
ac1cb8d3
VS
40862 grep -v '^ *+' conftest.er1 >conftest.err
40863 rm -f conftest.er1
40864 cat conftest.err >&5
a848cd7e
SC
40865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40866 (exit $ac_status); } &&
c9a66001 40867 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40869 (eval $ac_try) 2>&5
40870 ac_status=$?
40871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40872 (exit $ac_status); }; } &&
40873 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40875 (eval $ac_try) 2>&5
40876 ac_status=$?
40877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40878 (exit $ac_status); }; }; then
40879 ac_cv_lib_dl_dlopen=yes
40880else
40881 echo "$as_me: failed program was:" >&5
40882sed 's/^/| /' conftest.$ac_ext >&5
40883
40884ac_cv_lib_dl_dlopen=no
40885fi
ac1cb8d3
VS
40886rm -f conftest.err conftest.$ac_objext \
40887 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40888LIBS=$ac_check_lib_save_LIBS
40889fi
40890echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
40891echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
40892if test $ac_cv_lib_dl_dlopen = yes; then
40893
40894 cat >>confdefs.h <<\_ACEOF
40895#define HAVE_DLOPEN 1
40896_ACEOF
40897
40898 HAVE_DL_FUNCS=1
40899 DL_LINK=" -ldl$DL_LINK"
40900
40901else
40902
40903
40904for ac_func in shl_load
40905do
40906as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40907echo "$as_me:$LINENO: checking for $ac_func" >&5
40908echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40909if eval "test \"\${$as_ac_var+set}\" = set"; then
40910 echo $ECHO_N "(cached) $ECHO_C" >&6
40911else
40912 cat >conftest.$ac_ext <<_ACEOF
40913/* confdefs.h. */
40914_ACEOF
40915cat confdefs.h >>conftest.$ac_ext
40916cat >>conftest.$ac_ext <<_ACEOF
40917/* end confdefs.h. */
ac1cb8d3
VS
40918/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40919 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40920#define $ac_func innocuous_$ac_func
40921
a848cd7e
SC
40922/* System header to define __stub macros and hopefully few prototypes,
40923 which can conflict with char $ac_func (); below.
40924 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40925 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40926
a848cd7e
SC
40927#ifdef __STDC__
40928# include <limits.h>
40929#else
40930# include <assert.h>
40931#endif
ac1cb8d3
VS
40932
40933#undef $ac_func
40934
a848cd7e
SC
40935/* Override any gcc2 internal prototype to avoid an error. */
40936#ifdef __cplusplus
40937extern "C"
40938{
40939#endif
40940/* We use char because int might match the return type of a gcc2
40941 builtin and then its argument prototype would still apply. */
40942char $ac_func ();
40943/* The GNU C library defines this for functions which it implements
40944 to always fail with ENOSYS. Some functions are actually named
40945 something starting with __ and the normal name is an alias. */
40946#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40947choke me
40948#else
40949char (*f) () = $ac_func;
40950#endif
40951#ifdef __cplusplus
40952}
40953#endif
40954
40955int
40956main ()
40957{
40958return f != $ac_func;
40959 ;
40960 return 0;
40961}
40962_ACEOF
40963rm -f conftest.$ac_objext conftest$ac_exeext
40964if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40965 (eval $ac_link) 2>conftest.er1
a848cd7e 40966 ac_status=$?
ac1cb8d3
VS
40967 grep -v '^ *+' conftest.er1 >conftest.err
40968 rm -f conftest.er1
40969 cat conftest.err >&5
a848cd7e
SC
40970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40971 (exit $ac_status); } &&
c9a66001 40972 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40974 (eval $ac_try) 2>&5
40975 ac_status=$?
40976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40977 (exit $ac_status); }; } &&
40978 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
40984 eval "$as_ac_var=yes"
40985else
40986 echo "$as_me: failed program was:" >&5
40987sed 's/^/| /' conftest.$ac_ext >&5
40988
40989eval "$as_ac_var=no"
40990fi
ac1cb8d3
VS
40991rm -f conftest.err conftest.$ac_objext \
40992 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40993fi
40994echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40995echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40996if test `eval echo '${'$as_ac_var'}'` = yes; then
40997 cat >>confdefs.h <<_ACEOF
40998#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40999_ACEOF
41000
41001 cat >>confdefs.h <<\_ACEOF
41002#define HAVE_SHL_LOAD 1
41003_ACEOF
41004
41005 HAVE_SHL_FUNCS=1
41006
41007else
41008
41009 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
41010echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
41011if test "${ac_cv_lib_shl_load_dld+set}" = set; then
41012 echo $ECHO_N "(cached) $ECHO_C" >&6
41013else
41014 ac_check_lib_save_LIBS=$LIBS
41015LIBS="-lshl_load $LIBS"
41016cat >conftest.$ac_ext <<_ACEOF
41017/* confdefs.h. */
41018_ACEOF
41019cat confdefs.h >>conftest.$ac_ext
41020cat >>conftest.$ac_ext <<_ACEOF
41021/* end confdefs.h. */
41022
41023/* Override any gcc2 internal prototype to avoid an error. */
41024#ifdef __cplusplus
41025extern "C"
41026#endif
41027/* We use char because int might match the return type of a gcc2
41028 builtin and then its argument prototype would still apply. */
41029char dld ();
41030int
41031main ()
41032{
41033dld ();
41034 ;
41035 return 0;
41036}
41037_ACEOF
41038rm -f conftest.$ac_objext conftest$ac_exeext
41039if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41040 (eval $ac_link) 2>conftest.er1
a848cd7e 41041 ac_status=$?
ac1cb8d3
VS
41042 grep -v '^ *+' conftest.er1 >conftest.err
41043 rm -f conftest.er1
41044 cat conftest.err >&5
a848cd7e
SC
41045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41046 (exit $ac_status); } &&
c9a66001 41047 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41049 (eval $ac_try) 2>&5
41050 ac_status=$?
41051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41052 (exit $ac_status); }; } &&
41053 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41055 (eval $ac_try) 2>&5
41056 ac_status=$?
41057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41058 (exit $ac_status); }; }; then
41059 ac_cv_lib_shl_load_dld=yes
41060else
41061 echo "$as_me: failed program was:" >&5
41062sed 's/^/| /' conftest.$ac_ext >&5
41063
41064ac_cv_lib_shl_load_dld=no
41065fi
ac1cb8d3
VS
41066rm -f conftest.err conftest.$ac_objext \
41067 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41068LIBS=$ac_check_lib_save_LIBS
41069fi
41070echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
41071echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
41072if test $ac_cv_lib_shl_load_dld = yes; then
41073
41074 HAVE_SHL_FUNCS=1
41075 DL_LINK=" -ldld$DL_LINK"
41076
41077fi
41078
41079
41080fi
41081done
41082
41083
41084fi
41085
41086
41087fi
41088done
41089
41090
41091 if test "$HAVE_DL_FUNCS" = 1; then
41092
41093for ac_func in dlerror
41094do
41095as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41096echo "$as_me:$LINENO: checking for $ac_func" >&5
41097echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41098if eval "test \"\${$as_ac_var+set}\" = set"; then
41099 echo $ECHO_N "(cached) $ECHO_C" >&6
41100else
41101 cat >conftest.$ac_ext <<_ACEOF
41102/* confdefs.h. */
41103_ACEOF
41104cat confdefs.h >>conftest.$ac_ext
41105cat >>conftest.$ac_ext <<_ACEOF
41106/* end confdefs.h. */
ac1cb8d3
VS
41107/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41108 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41109#define $ac_func innocuous_$ac_func
41110
a848cd7e
SC
41111/* System header to define __stub macros and hopefully few prototypes,
41112 which can conflict with char $ac_func (); below.
41113 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41114 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41115
a848cd7e
SC
41116#ifdef __STDC__
41117# include <limits.h>
41118#else
41119# include <assert.h>
41120#endif
ac1cb8d3
VS
41121
41122#undef $ac_func
41123
a848cd7e
SC
41124/* Override any gcc2 internal prototype to avoid an error. */
41125#ifdef __cplusplus
41126extern "C"
41127{
41128#endif
41129/* We use char because int might match the return type of a gcc2
41130 builtin and then its argument prototype would still apply. */
41131char $ac_func ();
41132/* The GNU C library defines this for functions which it implements
41133 to always fail with ENOSYS. Some functions are actually named
41134 something starting with __ and the normal name is an alias. */
41135#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41136choke me
41137#else
41138char (*f) () = $ac_func;
41139#endif
41140#ifdef __cplusplus
41141}
41142#endif
41143
41144int
41145main ()
41146{
41147return f != $ac_func;
41148 ;
41149 return 0;
41150}
41151_ACEOF
41152rm -f conftest.$ac_objext conftest$ac_exeext
41153if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41154 (eval $ac_link) 2>conftest.er1
a848cd7e 41155 ac_status=$?
ac1cb8d3
VS
41156 grep -v '^ *+' conftest.er1 >conftest.err
41157 rm -f conftest.er1
41158 cat conftest.err >&5
a848cd7e
SC
41159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41160 (exit $ac_status); } &&
c9a66001 41161 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41163 (eval $ac_try) 2>&5
41164 ac_status=$?
41165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41166 (exit $ac_status); }; } &&
41167 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41169 (eval $ac_try) 2>&5
41170 ac_status=$?
41171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41172 (exit $ac_status); }; }; then
41173 eval "$as_ac_var=yes"
41174else
41175 echo "$as_me: failed program was:" >&5
41176sed 's/^/| /' conftest.$ac_ext >&5
41177
41178eval "$as_ac_var=no"
41179fi
ac1cb8d3
VS
41180rm -f conftest.err conftest.$ac_objext \
41181 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41182fi
41183echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41184echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41185if test `eval echo '${'$as_ac_var'}'` = yes; then
41186 cat >>confdefs.h <<_ACEOF
41187#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41188_ACEOF
41189 cat >>confdefs.h <<\_ACEOF
41190#define HAVE_DLERROR 1
41191_ACEOF
41192
41193else
41194
41195 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
41196echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
41197if test "${ac_cv_lib_dl_dlerror+set}" = set; then
41198 echo $ECHO_N "(cached) $ECHO_C" >&6
41199else
41200 ac_check_lib_save_LIBS=$LIBS
41201LIBS="-ldl $LIBS"
41202cat >conftest.$ac_ext <<_ACEOF
41203/* confdefs.h. */
41204_ACEOF
41205cat confdefs.h >>conftest.$ac_ext
41206cat >>conftest.$ac_ext <<_ACEOF
41207/* end confdefs.h. */
41208
41209/* Override any gcc2 internal prototype to avoid an error. */
41210#ifdef __cplusplus
41211extern "C"
41212#endif
41213/* We use char because int might match the return type of a gcc2
41214 builtin and then its argument prototype would still apply. */
41215char dlerror ();
41216int
41217main ()
41218{
41219dlerror ();
41220 ;
41221 return 0;
41222}
41223_ACEOF
41224rm -f conftest.$ac_objext conftest$ac_exeext
41225if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41226 (eval $ac_link) 2>conftest.er1
a848cd7e 41227 ac_status=$?
ac1cb8d3
VS
41228 grep -v '^ *+' conftest.er1 >conftest.err
41229 rm -f conftest.er1
41230 cat conftest.err >&5
a848cd7e
SC
41231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41232 (exit $ac_status); } &&
c9a66001 41233 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41235 (eval $ac_try) 2>&5
41236 ac_status=$?
41237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41238 (exit $ac_status); }; } &&
41239 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41241 (eval $ac_try) 2>&5
41242 ac_status=$?
41243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41244 (exit $ac_status); }; }; then
41245 ac_cv_lib_dl_dlerror=yes
41246else
41247 echo "$as_me: failed program was:" >&5
41248sed 's/^/| /' conftest.$ac_ext >&5
41249
41250ac_cv_lib_dl_dlerror=no
41251fi
ac1cb8d3
VS
41252rm -f conftest.err conftest.$ac_objext \
41253 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41254LIBS=$ac_check_lib_save_LIBS
41255fi
41256echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
41257echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
41258if test $ac_cv_lib_dl_dlerror = yes; then
41259 cat >>confdefs.h <<\_ACEOF
41260#define HAVE_DLERROR 1
41261_ACEOF
41262
41263fi
41264
41265
41266
41267fi
41268done
41269
41270 fi
41271 fi
41272
41273 if test "$HAVE_DL_FUNCS" = 0; then
41274 if test "$HAVE_SHL_FUNCS" = 0; then
47a7e797 41275 if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
a848cd7e
SC
41276 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
41277echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
41278 wxUSE_DYNAMIC_LOADER=no
41279 wxUSE_DYNLIB_CLASS=no
41280 else
41281 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
41282echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
41283 fi
41284 fi
41285 fi
41286 fi
41287fi
41288
41289if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
41290 cat >>confdefs.h <<\_ACEOF
41291#define wxUSE_DYNAMIC_LOADER 1
41292_ACEOF
41293
41294fi
41295if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
41296 cat >>confdefs.h <<\_ACEOF
41297#define wxUSE_DYNLIB_CLASS 1
41298_ACEOF
41299
41300fi
41301
41302
41303
41304if test "$wxUSE_PLUGINS" = "yes" ; then
41305 if test "$wxUSE_SHARED" = "no" ; then
41306 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
41307echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
41308 wxUSE_PLUGINS=no
41309 fi
41310 if test "$wxUSE_MONOLITHIC" = "yes" ; then
41311 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
41312echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
41313 wxUSE_PLUGINS=no
41314 fi
41315 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
41316 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
41317echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
41318 wxUSE_PLUGINS=no
41319 fi
41320 if test "$wxUSE_PLUGINS" = "yes" ; then
41321 cat >>confdefs.h <<\_ACEOF
41322#define wxUSE_PLUGINS 1
41323_ACEOF
41324
41325 fi
41326fi
41327
41328
41329if test "$wxUSE_STL" = "yes"; then
41330 cat >>confdefs.h <<\_ACEOF
41331#define wxUSE_STL 1
41332_ACEOF
41333
41334fi
41335
41336if test "$wxUSE_APPLE_IEEE" = "yes"; then
41337 cat >>confdefs.h <<\_ACEOF
41338#define wxUSE_APPLE_IEEE 1
41339_ACEOF
41340
41341fi
41342
41343if test "$wxUSE_TIMER" = "yes"; then
41344 cat >>confdefs.h <<\_ACEOF
41345#define wxUSE_TIMER 1
41346_ACEOF
41347
41348fi
41349
9c112555 41350if test "$USE_UNIX" = "1" ; then
31714590
VZ
41351 echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5
41352echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6
d12aef51 41353if test "${ac_cv_header_sys_soundcard+set}" = set; then
a848cd7e 41354 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 41355else
d12aef51
VZ
41356
41357 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
41358/* confdefs.h. */
41359_ACEOF
41360cat confdefs.h >>conftest.$ac_ext
41361cat >>conftest.$ac_ext <<_ACEOF
41362/* end confdefs.h. */
d12aef51 41363
31714590 41364 #include <sys/ioctl.h>
d12aef51
VZ
41365 #include <sys/soundcard.h>
41366
41367int
41368main ()
41369{
41370
31714590 41371 ioctl(0, SNDCTL_DSP_SPEED, 0);
d12aef51
VZ
41372
41373 ;
41374 return 0;
41375}
a848cd7e 41376_ACEOF
d12aef51
VZ
41377rm -f conftest.$ac_objext conftest$ac_exeext
41378if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41379 (eval $ac_link) 2>conftest.er1
a848cd7e 41380 ac_status=$?
ac1cb8d3
VS
41381 grep -v '^ *+' conftest.er1 >conftest.err
41382 rm -f conftest.er1
41383 cat conftest.err >&5
a848cd7e
SC
41384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41385 (exit $ac_status); } &&
c9a66001 41386 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41388 (eval $ac_try) 2>&5
41389 ac_status=$?
41390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41391 (exit $ac_status); }; } &&
d12aef51 41392 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41394 (eval $ac_try) 2>&5
41395 ac_status=$?
41396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41397 (exit $ac_status); }; }; then
d12aef51 41398 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
41399else
41400 echo "$as_me: failed program was:" >&5
41401sed 's/^/| /' conftest.$ac_ext >&5
41402
a848cd7e 41403
d12aef51
VZ
41404 saveLibs="$LIBS"
41405 LIBS="$saveLibs -lossaudio"
41406 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
41407/* confdefs.h. */
41408_ACEOF
41409cat confdefs.h >>conftest.$ac_ext
41410cat >>conftest.$ac_ext <<_ACEOF
41411/* end confdefs.h. */
d12aef51 41412
31714590 41413 #include <sys/ioctl.h>
d12aef51
VZ
41414 #include <sys/soundcard.h>
41415
41416int
41417main ()
41418{
41419
31714590 41420 ioctl(0, SNDCTL_DSP_SPEED, 0);
d12aef51
VZ
41421
41422 ;
41423 return 0;
41424}
a848cd7e 41425_ACEOF
d12aef51
VZ
41426rm -f conftest.$ac_objext conftest$ac_exeext
41427if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41428 (eval $ac_link) 2>conftest.er1
a848cd7e
SC
41429 ac_status=$?
41430 grep -v '^ *+' conftest.er1 >conftest.err
41431 rm -f conftest.er1
41432 cat conftest.err >&5
41433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12aef51 41434 (exit $ac_status); } &&
c9a66001 41435 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
41436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41437 (eval $ac_try) 2>&5
41438 ac_status=$?
41439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41440 (exit $ac_status); }; } &&
41441 { ac_try='test -s conftest$ac_exeext'
41442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41443 (eval $ac_try) 2>&5
41444 ac_status=$?
41445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41446 (exit $ac_status); }; }; then
41447 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
41448else
41449 echo "$as_me: failed program was:" >&5
41450sed 's/^/| /' conftest.$ac_ext >&5
41451
a848cd7e 41452
d12aef51
VZ
41453 LIBS="$saveLibs"
41454 ac_cv_header_sys_soundcard=no
41455
41456
a848cd7e 41457fi
d12aef51
VZ
41458rm -f conftest.err conftest.$ac_objext \
41459 conftest$ac_exeext conftest.$ac_ext
41460
a848cd7e
SC
41461
41462fi
d12aef51
VZ
41463rm -f conftest.err conftest.$ac_objext \
41464 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41465
41466fi
d12aef51
VZ
41467echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
41468echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6
a848cd7e 41469
d12aef51
VZ
41470 if test "$ac_cv_header_sys_soundcard" = "yes"; then
41471 cat >>confdefs.h <<\_ACEOF
41472#define HAVE_SYS_SOUNDCARD_H 1
41473_ACEOF
a848cd7e 41474
d12aef51
VZ
41475 else
41476 DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia"
41477 fi
9c112555
MW
41478fi
41479WITH_PLUGIN_SDL=0
41480if test "$wxUSE_SOUND" = "yes"; then
41481 if test "$USE_UNIX" = "1" ; then
a848cd7e
SC
41482 if test "$wxUSE_LIBSDL" != "no"; then
41483
41484# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
41485if test "${with_sdl_prefix+set}" = set; then
41486 withval="$with_sdl_prefix"
41487 sdl_prefix="$withval"
41488else
41489 sdl_prefix=""
41490fi;
41491
41492# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
41493if test "${with_sdl_exec_prefix+set}" = set; then
41494 withval="$with_sdl_exec_prefix"
41495 sdl_exec_prefix="$withval"
41496else
41497 sdl_exec_prefix=""
41498fi;
41499# Check whether --enable-sdltest or --disable-sdltest was given.
41500if test "${enable_sdltest+set}" = set; then
41501 enableval="$enable_sdltest"
41502
41503else
41504 enable_sdltest=yes
41505fi;
41506
41507 if test x$sdl_exec_prefix != x ; then
3ecd9f92
MW
41508 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
41509 if test x${SDL_CONFIG+set} != xset ; then
41510 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
41511 fi
a848cd7e
SC
41512 fi
41513 if test x$sdl_prefix != x ; then
3ecd9f92
MW
41514 sdl_args="$sdl_args --prefix=$sdl_prefix"
41515 if test x${SDL_CONFIG+set} != xset ; then
41516 SDL_CONFIG=$sdl_prefix/bin/sdl-config
41517 fi
a848cd7e
SC
41518 fi
41519
3ecd9f92
MW
41520 if test "x$prefix" != xNONE; then
41521 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
41522 fi
a848cd7e
SC
41523 # Extract the first word of "sdl-config", so it can be a program name with args.
41524set dummy sdl-config; ac_word=$2
41525echo "$as_me:$LINENO: checking for $ac_word" >&5
41526echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41527if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
41528 echo $ECHO_N "(cached) $ECHO_C" >&6
41529else
41530 case $SDL_CONFIG in
41531 [\\/]* | ?:[\\/]*)
41532 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
41533 ;;
41534 *)
41535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41536for as_dir in $PATH
41537do
41538 IFS=$as_save_IFS
41539 test -z "$as_dir" && as_dir=.
41540 for ac_exec_ext in '' $ac_executable_extensions; do
41541 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41542 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41544 break 2
41545 fi
41546done
41547done
41548
41549 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
41550 ;;
41551esac
41552fi
41553SDL_CONFIG=$ac_cv_path_SDL_CONFIG
41554
41555if test -n "$SDL_CONFIG"; then
41556 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
41557echo "${ECHO_T}$SDL_CONFIG" >&6
41558else
41559 echo "$as_me:$LINENO: result: no" >&5
41560echo "${ECHO_T}no" >&6
41561fi
41562
41563 min_sdl_version=1.2.0
41564 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
41565echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
41566 no_sdl=""
41567 if test "$SDL_CONFIG" = "no" ; then
41568 no_sdl=yes
41569 else
41570 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
41571 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
41572
41573 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
41574 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
41575 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
41576 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
41577 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
41578 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
41579 if test "x$enable_sdltest" = "xyes" ; then
41580 ac_save_CFLAGS="$CFLAGS"
94acd38e 41581 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
41582 ac_save_LIBS="$LIBS"
41583 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 41584 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
41585 LIBS="$LIBS $SDL_LIBS"
41586 rm -f conf.sdltest
41587 if test "$cross_compiling" = yes; then
41588 echo $ac_n "cross compiling; assumed OK... $ac_c"
41589else
41590 cat >conftest.$ac_ext <<_ACEOF
41591/* confdefs.h. */
41592_ACEOF
41593cat confdefs.h >>conftest.$ac_ext
41594cat >>conftest.$ac_ext <<_ACEOF
41595/* end confdefs.h. */
41596
41597#include <stdio.h>
41598#include <stdlib.h>
41599#include <string.h>
41600#include "SDL.h"
41601
41602char*
41603my_strdup (char *str)
41604{
41605 char *new_str;
41606
41607 if (str)
41608 {
41609 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
41610 strcpy (new_str, str);
41611 }
41612 else
41613 new_str = NULL;
41614
41615 return new_str;
41616}
41617
41618int main (int argc, char *argv[])
41619{
41620 int major, minor, micro;
41621 char *tmp_version;
41622
41623 /* This hangs on some systems (?)
41624 system ("touch conf.sdltest");
41625 */
41626 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
41627
41628 /* HP/UX 9 (%@#!) writes to sscanf strings */
41629 tmp_version = my_strdup("$min_sdl_version");
41630 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
41631 printf("%s, bad version string\n", "$min_sdl_version");
41632 exit(1);
41633 }
41634
41635 if (($sdl_major_version > major) ||
41636 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
41637 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
41638 {
41639 return 0;
41640 }
41641 else
41642 {
41643 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
41644 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
41645 printf("*** best to upgrade to the required version.\n");
41646 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
41647 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
41648 printf("*** config.cache before re-running configure\n");
41649 return 1;
41650 }
41651}
41652
41653
41654_ACEOF
41655rm -f conftest$ac_exeext
41656if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41657 (eval $ac_link) 2>&5
41658 ac_status=$?
41659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41660 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41662 (eval $ac_try) 2>&5
41663 ac_status=$?
41664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41665 (exit $ac_status); }; }; then
41666 :
41667else
41668 echo "$as_me: program exited with status $ac_status" >&5
41669echo "$as_me: failed program was:" >&5
41670sed 's/^/| /' conftest.$ac_ext >&5
41671
41672( exit $ac_status )
41673no_sdl=yes
41674fi
ac1cb8d3 41675rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41676fi
41677 CFLAGS="$ac_save_CFLAGS"
94acd38e 41678 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
41679 LIBS="$ac_save_LIBS"
41680 fi
41681 fi
41682 if test "x$no_sdl" = x ; then
41683 echo "$as_me:$LINENO: result: yes" >&5
41684echo "${ECHO_T}yes" >&6
41685
41686 EXTRALIBS_SDL="$SDL_LIBS"
c92ad099 41687 CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
a848cd7e
SC
41688 cat >>confdefs.h <<\_ACEOF
41689#define wxUSE_LIBSDL 1
41690_ACEOF
41691
41692
41693 else
41694 echo "$as_me:$LINENO: result: no" >&5
41695echo "${ECHO_T}no" >&6
41696 if test "$SDL_CONFIG" = "no" ; then
41697 echo "*** The sdl-config script installed by SDL could not be found"
41698 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
41699 echo "*** your path, or set the SDL_CONFIG environment variable to the"
41700 echo "*** full path to sdl-config."
41701 else
41702 if test -f conf.sdltest ; then
41703 :
41704 else
41705 echo "*** Could not run SDL test program, checking why..."
41706 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 41707 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
41708 LIBS="$LIBS $SDL_LIBS"
41709 cat >conftest.$ac_ext <<_ACEOF
41710/* confdefs.h. */
41711_ACEOF
41712cat confdefs.h >>conftest.$ac_ext
41713cat >>conftest.$ac_ext <<_ACEOF
41714/* end confdefs.h. */
41715
41716#include <stdio.h>
41717#include "SDL.h"
41718
41719int main(int argc, char *argv[])
41720{ return 0; }
41721#undef main
41722#define main K_and_R_C_main
41723
41724int
41725main ()
41726{
41727 return 0;
41728 ;
41729 return 0;
41730}
41731_ACEOF
41732rm -f conftest.$ac_objext conftest$ac_exeext
41733if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41734 (eval $ac_link) 2>conftest.er1
a848cd7e 41735 ac_status=$?
ac1cb8d3
VS
41736 grep -v '^ *+' conftest.er1 >conftest.err
41737 rm -f conftest.er1
41738 cat conftest.err >&5
a848cd7e
SC
41739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41740 (exit $ac_status); } &&
c9a66001 41741 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41743 (eval $ac_try) 2>&5
41744 ac_status=$?
41745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41746 (exit $ac_status); }; } &&
41747 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41749 (eval $ac_try) 2>&5
41750 ac_status=$?
41751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41752 (exit $ac_status); }; }; then
41753 echo "*** The test program compiled, but did not run. This usually means"
41754 echo "*** that the run-time linker is not finding SDL or finding the wrong"
41755 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
41756 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
41757 echo "*** to the installed location Also, make sure you have run ldconfig if that"
41758 echo "*** is required on your system"
41759 echo "***"
41760 echo "*** If you have an old version installed, it is best to remove it, although"
41761 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
41762else
41763 echo "$as_me: failed program was:" >&5
41764sed 's/^/| /' conftest.$ac_ext >&5
41765
41766 echo "*** The test program failed to compile or link. See the file config.log for the"
41767 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
41768 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
41769 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
41770fi
ac1cb8d3
VS
41771rm -f conftest.err conftest.$ac_objext \
41772 conftest$ac_exeext conftest.$ac_ext
a848cd7e 41773 CFLAGS="$ac_save_CFLAGS"
94acd38e 41774 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
41775 LIBS="$ac_save_LIBS"
41776 fi
41777 fi
41778 SDL_CFLAGS=""
41779 SDL_LIBS=""
41780 wxUSE_LIBSDL="no"
41781 fi
41782
41783
41784 rm -f conf.sdltest
41785
41786 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
41787 WITH_PLUGIN_SDL=1
41788 fi
41789 fi
41790 fi
41791
41792 cat >>confdefs.h <<\_ACEOF
41793#define wxUSE_SOUND 1
41794_ACEOF
41795
41796 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
41797fi
41798
d1c38808
VZ
41799if test "$WXGTK20" = 1; then
41800 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
41801 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
41802
41803
3ecd9f92
MW
41804pkg_failed=no
41805echo "$as_me:$LINENO: checking for LIBGNOMEPRINTUI" >&5
41806echo $ECHO_N "checking for LIBGNOMEPRINTUI... $ECHO_C" >&6
d1c38808 41807
3ecd9f92
MW
41808if test -n "$PKG_CONFIG"; then
41809 if test -n "$LIBGNOMEPRINTUI_CFLAGS"; then
41810 pkg_cv_LIBGNOMEPRINTUI_CFLAGS="$LIBGNOMEPRINTUI_CFLAGS"
41811 else
41812 if test -n "$PKG_CONFIG" && \
41813 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
41814 ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
41815 ac_status=$?
41816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41817 (exit $ac_status); }; then
41818 pkg_cv_LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
d1c38808 41819else
3ecd9f92
MW
41820 pkg_failed=yes
41821fi
41822 fi
41823else
41824 pkg_failed=untried
d1c38808 41825fi
d1c38808 41826if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
41827 if test -n "$LIBGNOMEPRINTUI_LIBS"; then
41828 pkg_cv_LIBGNOMEPRINTUI_LIBS="$LIBGNOMEPRINTUI_LIBS"
41829 else
41830 if test -n "$PKG_CONFIG" && \
41831 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
41832 ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
41833 ac_status=$?
41834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41835 (exit $ac_status); }; then
41836 pkg_cv_LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
d1c38808 41837else
3ecd9f92
MW
41838 pkg_failed=yes
41839fi
41840 fi
41841else
41842 pkg_failed=untried
d1c38808
VZ
41843fi
41844
d1c38808 41845
d1c38808 41846
3ecd9f92 41847if test $pkg_failed = yes; then
d1c38808 41848
3ecd9f92
MW
41849if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
41850 _pkg_short_errors_supported=yes
41851else
41852 _pkg_short_errors_supported=no
41853fi
41854 if test $_pkg_short_errors_supported = yes; then
41855 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
41856 else
41857 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808 41858 fi
3ecd9f92
MW
41859 # Put the nasty error message in config.log where it belongs
41860 echo "$LIBGNOMEPRINTUI_PKG_ERRORS" >&5
d1c38808
VZ
41861
41862
3ecd9f92
MW
41863 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
41864echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
41865 wxUSE_LIBGNOMEPRINT="no"
d1c38808
VZ
41866
41867
3ecd9f92 41868elif test $pkg_failed = untried; then
d1c38808
VZ
41869
41870 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
41871echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
41872 wxUSE_LIBGNOMEPRINT="no"
41873
41874
3ecd9f92
MW
41875else
41876 LIBGNOMEPRINTUI_CFLAGS=$pkg_cv_LIBGNOMEPRINTUI_CFLAGS
41877 LIBGNOMEPRINTUI_LIBS=$pkg_cv_LIBGNOMEPRINTUI_LIBS
41878 echo "$as_me:$LINENO: result: yes" >&5
41879echo "${ECHO_T}yes" >&6
d1c38808 41880
3ecd9f92
MW
41881 CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
41882 cat >>confdefs.h <<\_ACEOF
41883#define wxUSE_LIBGNOMEPRINT 1
41884_ACEOF
41885
41886
41887fi
d1c38808
VZ
41888 fi
41889 fi
41890fi
41891
2b850ae1
RR
41892if test "$WXGTK20" = 1; then
41893 if test "$wxUSE_MIMETYPE" = "yes" ; then
41894 if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
41895
41896
3ecd9f92
MW
41897pkg_failed=no
41898echo "$as_me:$LINENO: checking for GNOMEVFS" >&5
41899echo $ECHO_N "checking for GNOMEVFS... $ECHO_C" >&6
2b850ae1 41900
3ecd9f92
MW
41901if test -n "$PKG_CONFIG"; then
41902 if test -n "$GNOMEVFS_CFLAGS"; then
41903 pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS"
41904 else
41905 if test -n "$PKG_CONFIG" && \
41906 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
41907 ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
41908 ac_status=$?
41909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41910 (exit $ac_status); }; then
41911 pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
2b850ae1 41912else
3ecd9f92
MW
41913 pkg_failed=yes
41914fi
41915 fi
41916else
41917 pkg_failed=untried
2b850ae1 41918fi
2b850ae1 41919if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
41920 if test -n "$GNOMEVFS_LIBS"; then
41921 pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS"
41922 else
41923 if test -n "$PKG_CONFIG" && \
41924 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
41925 ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
41926 ac_status=$?
41927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41928 (exit $ac_status); }; then
41929 pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
2b850ae1 41930else
3ecd9f92
MW
41931 pkg_failed=yes
41932fi
41933 fi
41934else
41935 pkg_failed=untried
2b850ae1
RR
41936fi
41937
2b850ae1 41938
2b850ae1 41939
3ecd9f92 41940if test $pkg_failed = yes; then
2b850ae1 41941
3ecd9f92
MW
41942if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
41943 _pkg_short_errors_supported=yes
41944else
41945 _pkg_short_errors_supported=no
41946fi
41947 if test $_pkg_short_errors_supported = yes; then
41948 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
41949 else
41950 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
2b850ae1 41951 fi
3ecd9f92
MW
41952 # Put the nasty error message in config.log where it belongs
41953 echo "$GNOMEVFS_PKG_ERRORS" >&5
2b850ae1
RR
41954
41955
3ecd9f92
MW
41956 { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
41957echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
41958 wxUSE_LIBGNOMEVFS="no"
2b850ae1
RR
41959
41960
3ecd9f92 41961elif test $pkg_failed = untried; then
2b850ae1
RR
41962
41963 { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
41964echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
41965 wxUSE_LIBGNOMEVFS="no"
41966
41967
3ecd9f92
MW
41968else
41969 GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS
41970 GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS
41971 echo "$as_me:$LINENO: result: yes" >&5
41972echo "${ECHO_T}yes" >&6
2b850ae1 41973
3ecd9f92
MW
41974 CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
41975 cat >>confdefs.h <<\_ACEOF
41976#define wxUSE_LIBGNOMEVFS 1
41977_ACEOF
41978
41979
41980fi
2b850ae1
RR
41981 fi
41982 fi
41983fi
41984
3565d135
RR
41985if test "$WXGTK20" = 1; then
41986 if test "$wxUSE_LIBHILDON" = "yes" ; then
41987
3ecd9f92
MW
41988pkg_failed=no
41989echo "$as_me:$LINENO: checking for HILDON" >&5
41990echo $ECHO_N "checking for HILDON... $ECHO_C" >&6
3565d135 41991
3ecd9f92
MW
41992if test -n "$PKG_CONFIG"; then
41993 if test -n "$HILDON_CFLAGS"; then
41994 pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
41995 else
41996 if test -n "$PKG_CONFIG" && \
41997 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
41998 ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
41999 ac_status=$?
42000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42001 (exit $ac_status); }; then
42002 pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9" 2>/dev/null`
3565d135 42003else
3ecd9f92
MW
42004 pkg_failed=yes
42005fi
42006 fi
42007else
42008 pkg_failed=untried
3565d135 42009fi
3565d135 42010if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
42011 if test -n "$HILDON_LIBS"; then
42012 pkg_cv_HILDON_LIBS="$HILDON_LIBS"
42013 else
42014 if test -n "$PKG_CONFIG" && \
42015 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
42016 ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
42017 ac_status=$?
42018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42019 (exit $ac_status); }; then
42020 pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9" 2>/dev/null`
3565d135 42021else
3ecd9f92
MW
42022 pkg_failed=yes
42023fi
42024 fi
42025else
42026 pkg_failed=untried
3565d135
RR
42027fi
42028
3565d135 42029
3565d135 42030
3ecd9f92 42031if test $pkg_failed = yes; then
3565d135 42032
3ecd9f92
MW
42033if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42034 _pkg_short_errors_supported=yes
42035else
42036 _pkg_short_errors_supported=no
42037fi
42038 if test $_pkg_short_errors_supported = yes; then
42039 HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
42040 else
42041 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
3565d135 42042 fi
3ecd9f92
MW
42043 # Put the nasty error message in config.log where it belongs
42044 echo "$HILDON_PKG_ERRORS" >&5
3565d135
RR
42045
42046
3ecd9f92
MW
42047 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
42048echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
42049 wxUSE_LIBHILDON="no"
3565d135 42050
3565d135 42051
3ecd9f92
MW
42052elif test $pkg_failed = untried; then
42053
42054 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
42055echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
42056 wxUSE_LIBHILDON="no"
42057
42058
42059else
42060 HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
42061 HILDON_LIBS=$pkg_cv_HILDON_LIBS
42062 echo "$as_me:$LINENO: result: yes" >&5
42063echo "${ECHO_T}yes" >&6
3565d135
RR
42064
42065 EXTRALIBS_HILDON="$HILDON_LIBS"
42066 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
42067 cat >>confdefs.h <<\_ACEOF
42068#define wxUSE_LIBHILDON 1
42069_ACEOF
42070
42071
3ecd9f92 42072fi
3565d135
RR
42073 fi
42074fi
d1c38808 42075
a848cd7e
SC
42076if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
42077 cat >>confdefs.h <<\_ACEOF
42078#define wxUSE_CMDLINE_PARSER 1
42079_ACEOF
42080
42081fi
42082
42083if test "$wxUSE_STOPWATCH" = "yes"; then
42084 cat >>confdefs.h <<\_ACEOF
42085#define wxUSE_STOPWATCH 1
42086_ACEOF
42087
42088fi
42089
42090if test "$wxUSE_DATETIME" = "yes"; then
42091 cat >>confdefs.h <<\_ACEOF
42092#define wxUSE_DATETIME 1
42093_ACEOF
42094
42095fi
42096
42097if test "$wxUSE_FILE" = "yes"; then
42098 cat >>confdefs.h <<\_ACEOF
42099#define wxUSE_FILE 1
42100_ACEOF
42101
42102fi
42103
42104if test "$wxUSE_FFILE" = "yes"; then
42105 cat >>confdefs.h <<\_ACEOF
42106#define wxUSE_FFILE 1
42107_ACEOF
42108
42109fi
42110
42111if test "$wxUSE_FILESYSTEM" = "yes"; then
42112 cat >>confdefs.h <<\_ACEOF
42113#define wxUSE_FILESYSTEM 1
42114_ACEOF
42115
42116fi
42117
42118if test "$wxUSE_FS_ZIP" = "yes"; then
42119 cat >>confdefs.h <<\_ACEOF
42120#define wxUSE_FS_ZIP 1
42121_ACEOF
42122
42123fi
42124
9e8e867f 42125if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
a848cd7e 42126 cat >>confdefs.h <<\_ACEOF
9e8e867f 42127#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
42128_ACEOF
42129
42130fi
42131
42132if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 42133 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
42134 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
42135echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
42136 elif test "$wxUSE_ZLIB" = "no"; then
42137 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
42138echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
42139 else
42140 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
42141#define wxUSE_ZIPSTREAM 1
42142_ACEOF
42143
81f90336 42144 fi
a848cd7e
SC
42145fi
42146
a848cd7e 42147if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18228ab4
MW
42148 if test "$USE_UNIX" != 1; then
42149 { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
42150echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
42151 wxUSE_ON_FATAL_EXCEPTION=no
42152 else
42153 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
42154#define wxUSE_ON_FATAL_EXCEPTION 1
42155_ACEOF
42156
18228ab4 42157 fi
a848cd7e
SC
42158fi
42159
eaff0f0d
VZ
42160if test "$wxUSE_STACKWALKER" = "yes"; then
42161 cat >>confdefs.h <<\_ACEOF
42162#define wxUSE_STACKWALKER 1
42163_ACEOF
42164
42165fi
42166
36b6448c 42167if test "$wxUSE_DEBUGREPORT" = "yes"; then
18228ab4
MW
42168 if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
42169 { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
42170echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
dfe0c803
JS
42171 wxUSE_DEBUGREPORT=no
42172 else
42173 cat >>confdefs.h <<\_ACEOF
36b6448c
VZ
42174#define wxUSE_DEBUGREPORT 1
42175_ACEOF
42176
21dfc162
MW
42177 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
42178 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
42179 fi
dfe0c803 42180 fi
36b6448c
VZ
42181fi
42182
a848cd7e
SC
42183if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
42184 cat >>confdefs.h <<\_ACEOF
42185#define wxUSE_SNGLINST_CHECKER 1
42186_ACEOF
42187
42188fi
42189
42190if test "$wxUSE_BUSYINFO" = "yes"; then
42191 cat >>confdefs.h <<\_ACEOF
42192#define wxUSE_BUSYINFO 1
42193_ACEOF
42194
42195fi
42196
42197if test "$wxUSE_STD_IOSTREAM" = "yes"; then
42198 cat >>confdefs.h <<\_ACEOF
42199#define wxUSE_STD_IOSTREAM 1
42200_ACEOF
42201
42202fi
42203
59746b65
MW
42204if test "$wxUSE_STD_STRING" = "yes"; then
42205 cat >>confdefs.h <<\_ACEOF
42206#define wxUSE_STD_STRING 1
42207_ACEOF
42208
42209fi
42210
07158944
VZ
42211if test "$wxUSE_STDPATHS" = "yes"; then
42212 cat >>confdefs.h <<\_ACEOF
42213#define wxUSE_STDPATHS 1
42214_ACEOF
42215
42216fi
42217
a848cd7e
SC
42218if test "$wxUSE_TEXTBUFFER" = "yes"; then
42219 cat >>confdefs.h <<\_ACEOF
42220#define wxUSE_TEXTBUFFER 1
42221_ACEOF
42222
42223fi
42224
42225if test "$wxUSE_TEXTFILE" = "yes"; then
42226 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
42227 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
42228echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
42229 else
42230 cat >>confdefs.h <<\_ACEOF
42231#define wxUSE_TEXTFILE 1
42232_ACEOF
42233
42234 fi
42235fi
42236
42237if test "$wxUSE_CONFIG" = "yes" ; then
42238 if test "$wxUSE_TEXTFILE" != "yes"; then
42239 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
42240echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
42241 else
42242 cat >>confdefs.h <<\_ACEOF
42243#define wxUSE_CONFIG 1
89be85c2
VS
42244_ACEOF
42245
42246 cat >>confdefs.h <<\_ACEOF
42247#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
42248_ACEOF
42249
42250 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
42251 fi
42252fi
42253
42254if test "$wxUSE_INTL" = "yes" ; then
42255 if test "$wxUSE_FILE" != "yes"; then
42256 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
42257echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
42258 else
42259 cat >>confdefs.h <<\_ACEOF
42260#define wxUSE_INTL 1
42261_ACEOF
42262
42263 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
42264 GUIDIST="$GUIDIST INTL_DIST"
42265 fi
42266fi
42267
42268if test "$wxUSE_LOG" = "yes"; then
42269 cat >>confdefs.h <<\_ACEOF
42270#define wxUSE_LOG 1
42271_ACEOF
42272
42273
42274 if test "$wxUSE_LOGGUI" = "yes"; then
42275 cat >>confdefs.h <<\_ACEOF
42276#define wxUSE_LOGGUI 1
42277_ACEOF
42278
42279 fi
42280
42281 if test "$wxUSE_LOGWINDOW" = "yes"; then
42282 cat >>confdefs.h <<\_ACEOF
42283#define wxUSE_LOGWINDOW 1
42284_ACEOF
42285
42286 fi
42287
42288 if test "$wxUSE_LOGDIALOG" = "yes"; then
42289 cat >>confdefs.h <<\_ACEOF
42290#define wxUSE_LOG_DIALOG 1
42291_ACEOF
42292
42293 fi
0b78747f
MW
42294
42295 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
a848cd7e
SC
42296fi
42297
42298if test "$wxUSE_LONGLONG" = "yes"; then
42299 cat >>confdefs.h <<\_ACEOF
42300#define wxUSE_LONGLONG 1
42301_ACEOF
42302
42303fi
42304
42305if test "$wxUSE_GEOMETRY" = "yes"; then
42306 cat >>confdefs.h <<\_ACEOF
42307#define wxUSE_GEOMETRY 1
42308_ACEOF
42309
42310fi
42311
a848cd7e
SC
42312if test "$wxUSE_STREAMS" = "yes" ; then
42313 cat >>confdefs.h <<\_ACEOF
42314#define wxUSE_STREAMS 1
42315_ACEOF
42316
42317fi
42318
8b6682b9
JS
42319if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
42320 cat >>confdefs.h <<\_ACEOF
42321#define wxUSE_PRINTF_POS_PARAMS 1
42322_ACEOF
42323
42324fi
42325
42326
a848cd7e
SC
42327
42328if test "$wxUSE_DATETIME" = "yes"; then
42329
42330for ac_func in strptime
42331do
42332as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42333echo "$as_me:$LINENO: checking for $ac_func" >&5
42334echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42335if eval "test \"\${$as_ac_var+set}\" = set"; then
42336 echo $ECHO_N "(cached) $ECHO_C" >&6
42337else
42338 cat >conftest.$ac_ext <<_ACEOF
42339/* confdefs.h. */
42340_ACEOF
42341cat confdefs.h >>conftest.$ac_ext
42342cat >>conftest.$ac_ext <<_ACEOF
42343/* end confdefs.h. */
ac1cb8d3
VS
42344/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42345 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42346#define $ac_func innocuous_$ac_func
42347
a848cd7e
SC
42348/* System header to define __stub macros and hopefully few prototypes,
42349 which can conflict with char $ac_func (); below.
42350 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42351 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42352
a848cd7e
SC
42353#ifdef __STDC__
42354# include <limits.h>
42355#else
42356# include <assert.h>
42357#endif
ac1cb8d3
VS
42358
42359#undef $ac_func
42360
a848cd7e
SC
42361/* Override any gcc2 internal prototype to avoid an error. */
42362#ifdef __cplusplus
42363extern "C"
42364{
42365#endif
42366/* We use char because int might match the return type of a gcc2
42367 builtin and then its argument prototype would still apply. */
42368char $ac_func ();
42369/* The GNU C library defines this for functions which it implements
42370 to always fail with ENOSYS. Some functions are actually named
42371 something starting with __ and the normal name is an alias. */
42372#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42373choke me
42374#else
42375char (*f) () = $ac_func;
42376#endif
42377#ifdef __cplusplus
42378}
42379#endif
42380
42381int
42382main ()
42383{
42384return f != $ac_func;
42385 ;
42386 return 0;
42387}
42388_ACEOF
42389rm -f conftest.$ac_objext conftest$ac_exeext
42390if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42391 (eval $ac_link) 2>conftest.er1
a848cd7e 42392 ac_status=$?
ac1cb8d3
VS
42393 grep -v '^ *+' conftest.er1 >conftest.err
42394 rm -f conftest.er1
42395 cat conftest.err >&5
a848cd7e
SC
42396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42397 (exit $ac_status); } &&
c9a66001 42398 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42400 (eval $ac_try) 2>&5
42401 ac_status=$?
42402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42403 (exit $ac_status); }; } &&
42404 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42406 (eval $ac_try) 2>&5
42407 ac_status=$?
42408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42409 (exit $ac_status); }; }; then
42410 eval "$as_ac_var=yes"
42411else
42412 echo "$as_me: failed program was:" >&5
42413sed 's/^/| /' conftest.$ac_ext >&5
42414
42415eval "$as_ac_var=no"
42416fi
ac1cb8d3
VS
42417rm -f conftest.err conftest.$ac_objext \
42418 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42419fi
42420echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42421echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42422if test `eval echo '${'$as_ac_var'}'` = yes; then
42423 cat >>confdefs.h <<_ACEOF
42424#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42425_ACEOF
42426
42427fi
42428done
42429
f536f005
VZ
42430 if test "$ac_cv_func_strptime" = "yes"; then
42431 echo "$as_me:$LINENO: checking for strptime declaration" >&5
42432echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6
42433if test "${wx_cv_func_strptime_decl+set}" = set; then
42434 echo $ECHO_N "(cached) $ECHO_C" >&6
42435else
42436
f536f005
VZ
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 struct tm t;
42451 strptime("foo", "bar", &t);
42452
42453 ;
42454 return 0;
42455}
42456_ACEOF
42457rm -f conftest.$ac_objext
42458if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42459 (eval $ac_compile) 2>conftest.er1
42460 ac_status=$?
42461 grep -v '^ *+' conftest.er1 >conftest.err
42462 rm -f conftest.er1
42463 cat conftest.err >&5
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'
f536f005
VZ
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'
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 wx_cv_func_strptime_decl=yes
42479else
42480 echo "$as_me: failed program was:" >&5
42481sed 's/^/| /' conftest.$ac_ext >&5
42482
42483wx_cv_func_strptime_decl=no
42484
42485fi
42486rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f536f005
VZ
42487
42488
42489fi
42490echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
42491echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6
42492 fi
42493 if test "$wx_cv_func_strptime_decl" = "yes"; then
42494 cat >>confdefs.h <<\_ACEOF
42495#define HAVE_STRPTIME_DECL 1
42496_ACEOF
42497
42498 fi
a848cd7e
SC
42499
42500 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
42501echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
42502if test "${wx_cv_var_timezone+set}" = set; then
42503 echo $ECHO_N "(cached) $ECHO_C" >&6
42504else
42505
42506 cat >conftest.$ac_ext <<_ACEOF
42507/* confdefs.h. */
42508_ACEOF
42509cat confdefs.h >>conftest.$ac_ext
42510cat >>conftest.$ac_ext <<_ACEOF
42511/* end confdefs.h. */
42512
42513 #include <time.h>
42514
42515int
42516main ()
42517{
42518
42519 int tz;
42520 tz = timezone;
42521
42522 ;
42523 return 0;
42524}
42525_ACEOF
42526rm -f conftest.$ac_objext
42527if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42528 (eval $ac_compile) 2>conftest.er1
a848cd7e 42529 ac_status=$?
ac1cb8d3
VS
42530 grep -v '^ *+' conftest.er1 >conftest.err
42531 rm -f conftest.er1
42532 cat conftest.err >&5
a848cd7e
SC
42533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42534 (exit $ac_status); } &&
c9a66001 42535 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42537 (eval $ac_try) 2>&5
42538 ac_status=$?
42539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42540 (exit $ac_status); }; } &&
42541 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42543 (eval $ac_try) 2>&5
42544 ac_status=$?
42545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42546 (exit $ac_status); }; }; then
42547
42548 wx_cv_var_timezone=timezone
42549
42550else
42551 echo "$as_me: failed program was:" >&5
42552sed 's/^/| /' conftest.$ac_ext >&5
42553
42554
42555 cat >conftest.$ac_ext <<_ACEOF
42556/* confdefs.h. */
42557_ACEOF
42558cat confdefs.h >>conftest.$ac_ext
42559cat >>conftest.$ac_ext <<_ACEOF
42560/* end confdefs.h. */
42561
42562 #include <time.h>
42563
42564int
42565main ()
42566{
42567
42568 int tz;
42569 tz = _timezone;
42570
42571 ;
42572 return 0;
42573}
42574_ACEOF
42575rm -f conftest.$ac_objext
42576if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42577 (eval $ac_compile) 2>conftest.er1
a848cd7e 42578 ac_status=$?
ac1cb8d3
VS
42579 grep -v '^ *+' conftest.er1 >conftest.err
42580 rm -f conftest.er1
42581 cat conftest.err >&5
a848cd7e
SC
42582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42583 (exit $ac_status); } &&
c9a66001 42584 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42586 (eval $ac_try) 2>&5
42587 ac_status=$?
42588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42589 (exit $ac_status); }; } &&
42590 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42592 (eval $ac_try) 2>&5
42593 ac_status=$?
42594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42595 (exit $ac_status); }; }; then
42596
42597 wx_cv_var_timezone=_timezone
42598
42599else
42600 echo "$as_me: failed program was:" >&5
42601sed 's/^/| /' conftest.$ac_ext >&5
42602
42603
42604 cat >conftest.$ac_ext <<_ACEOF
42605/* confdefs.h. */
42606_ACEOF
42607cat confdefs.h >>conftest.$ac_ext
42608cat >>conftest.$ac_ext <<_ACEOF
42609/* end confdefs.h. */
42610
42611 #include <time.h>
42612
42613int
42614main ()
42615{
42616
42617 int tz;
42618 tz = __timezone;
42619
42620 ;
42621 return 0;
42622}
42623_ACEOF
42624rm -f conftest.$ac_objext
42625if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42626 (eval $ac_compile) 2>conftest.er1
a848cd7e 42627 ac_status=$?
ac1cb8d3
VS
42628 grep -v '^ *+' conftest.er1 >conftest.err
42629 rm -f conftest.er1
42630 cat conftest.err >&5
a848cd7e
SC
42631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42632 (exit $ac_status); } &&
c9a66001 42633 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42635 (eval $ac_try) 2>&5
42636 ac_status=$?
42637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42638 (exit $ac_status); }; } &&
42639 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42641 (eval $ac_try) 2>&5
42642 ac_status=$?
42643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42644 (exit $ac_status); }; }; then
42645
42646 wx_cv_var_timezone=__timezone
42647
42648else
42649 echo "$as_me: failed program was:" >&5
42650sed 's/^/| /' conftest.$ac_ext >&5
42651
42652
42653 if test "$USE_DOS" = 0 ; then
42654 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
42655echo "$as_me: WARNING: no timezone variable" >&2;}
42656 fi
42657
42658
42659fi
ac1cb8d3 42660rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42661
42662
42663fi
ac1cb8d3 42664rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42665
42666
42667fi
ac1cb8d3 42668rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42669
42670
42671fi
42672echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
42673echo "${ECHO_T}$wx_cv_var_timezone" >&6
42674
42675 if test "x$wx_cv_var_timezone" != x ; then
42676 cat >>confdefs.h <<_ACEOF
42677#define WX_TIMEZONE $wx_cv_var_timezone
42678_ACEOF
42679
42680 fi
42681
42682
42683for ac_func in localtime
42684do
42685as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42686echo "$as_me:$LINENO: checking for $ac_func" >&5
42687echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42688if eval "test \"\${$as_ac_var+set}\" = set"; then
42689 echo $ECHO_N "(cached) $ECHO_C" >&6
42690else
42691 cat >conftest.$ac_ext <<_ACEOF
42692/* confdefs.h. */
42693_ACEOF
42694cat confdefs.h >>conftest.$ac_ext
42695cat >>conftest.$ac_ext <<_ACEOF
42696/* end confdefs.h. */
ac1cb8d3
VS
42697/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42698 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42699#define $ac_func innocuous_$ac_func
42700
a848cd7e
SC
42701/* System header to define __stub macros and hopefully few prototypes,
42702 which can conflict with char $ac_func (); below.
42703 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42704 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42705
a848cd7e
SC
42706#ifdef __STDC__
42707# include <limits.h>
42708#else
42709# include <assert.h>
42710#endif
ac1cb8d3
VS
42711
42712#undef $ac_func
42713
a848cd7e
SC
42714/* Override any gcc2 internal prototype to avoid an error. */
42715#ifdef __cplusplus
42716extern "C"
42717{
42718#endif
42719/* We use char because int might match the return type of a gcc2
42720 builtin and then its argument prototype would still apply. */
42721char $ac_func ();
42722/* The GNU C library defines this for functions which it implements
42723 to always fail with ENOSYS. Some functions are actually named
42724 something starting with __ and the normal name is an alias. */
42725#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42726choke me
42727#else
42728char (*f) () = $ac_func;
42729#endif
42730#ifdef __cplusplus
42731}
42732#endif
42733
42734int
42735main ()
42736{
42737return f != $ac_func;
42738 ;
42739 return 0;
42740}
42741_ACEOF
42742rm -f conftest.$ac_objext conftest$ac_exeext
42743if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42744 (eval $ac_link) 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_exeext'
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 eval "$as_ac_var=yes"
42764else
42765 echo "$as_me: failed program was:" >&5
42766sed 's/^/| /' conftest.$ac_ext >&5
42767
42768eval "$as_ac_var=no"
42769fi
ac1cb8d3
VS
42770rm -f conftest.err conftest.$ac_objext \
42771 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42772fi
42773echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42774echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42775if test `eval echo '${'$as_ac_var'}'` = yes; then
42776 cat >>confdefs.h <<_ACEOF
42777#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42778_ACEOF
42779
42780fi
42781done
42782
42783
42784 if test "$ac_cv_func_localtime" = "yes"; then
42785 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
42786echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
42787if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
42788 echo $ECHO_N "(cached) $ECHO_C" >&6
42789else
42790
42791 cat >conftest.$ac_ext <<_ACEOF
42792/* confdefs.h. */
42793_ACEOF
42794cat confdefs.h >>conftest.$ac_ext
42795cat >>conftest.$ac_ext <<_ACEOF
42796/* end confdefs.h. */
42797
42798 #include <time.h>
42799
42800int
42801main ()
42802{
42803
42804 struct tm tm;
42805 tm.tm_gmtoff++;
42806
42807 ;
42808 return 0;
42809}
42810_ACEOF
42811rm -f conftest.$ac_objext
42812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42813 (eval $ac_compile) 2>conftest.er1
a848cd7e 42814 ac_status=$?
ac1cb8d3
VS
42815 grep -v '^ *+' conftest.er1 >conftest.err
42816 rm -f conftest.er1
42817 cat conftest.err >&5
a848cd7e
SC
42818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42819 (exit $ac_status); } &&
c9a66001 42820 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42822 (eval $ac_try) 2>&5
42823 ac_status=$?
42824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42825 (exit $ac_status); }; } &&
42826 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42828 (eval $ac_try) 2>&5
42829 ac_status=$?
42830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42831 (exit $ac_status); }; }; then
42832
42833 wx_cv_struct_tm_has_gmtoff=yes
42834
42835else
42836 echo "$as_me: failed program was:" >&5
42837sed 's/^/| /' conftest.$ac_ext >&5
42838
42839wx_cv_struct_tm_has_gmtoff=no
42840
42841fi
ac1cb8d3 42842rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42843
42844fi
42845echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
42846echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
42847 fi
42848
42849 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
42850 cat >>confdefs.h <<\_ACEOF
42851#define WX_GMTOFF_IN_TM 1
42852_ACEOF
42853
42854 fi
42855
42856
42857
42858for ac_func in gettimeofday ftime
42859do
42860as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42861echo "$as_me:$LINENO: checking for $ac_func" >&5
42862echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42863if eval "test \"\${$as_ac_var+set}\" = set"; then
42864 echo $ECHO_N "(cached) $ECHO_C" >&6
42865else
42866 cat >conftest.$ac_ext <<_ACEOF
42867/* confdefs.h. */
42868_ACEOF
42869cat confdefs.h >>conftest.$ac_ext
42870cat >>conftest.$ac_ext <<_ACEOF
42871/* end confdefs.h. */
ac1cb8d3
VS
42872/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42873 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42874#define $ac_func innocuous_$ac_func
42875
a848cd7e
SC
42876/* System header to define __stub macros and hopefully few prototypes,
42877 which can conflict with char $ac_func (); below.
42878 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42879 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42880
a848cd7e
SC
42881#ifdef __STDC__
42882# include <limits.h>
42883#else
42884# include <assert.h>
42885#endif
ac1cb8d3
VS
42886
42887#undef $ac_func
42888
a848cd7e
SC
42889/* Override any gcc2 internal prototype to avoid an error. */
42890#ifdef __cplusplus
42891extern "C"
42892{
42893#endif
42894/* We use char because int might match the return type of a gcc2
42895 builtin and then its argument prototype would still apply. */
42896char $ac_func ();
42897/* The GNU C library defines this for functions which it implements
42898 to always fail with ENOSYS. Some functions are actually named
42899 something starting with __ and the normal name is an alias. */
42900#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42901choke me
42902#else
42903char (*f) () = $ac_func;
42904#endif
42905#ifdef __cplusplus
42906}
42907#endif
42908
42909int
42910main ()
42911{
42912return f != $ac_func;
42913 ;
42914 return 0;
42915}
42916_ACEOF
42917rm -f conftest.$ac_objext conftest$ac_exeext
42918if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42919 (eval $ac_link) 2>conftest.er1
a848cd7e 42920 ac_status=$?
ac1cb8d3
VS
42921 grep -v '^ *+' conftest.er1 >conftest.err
42922 rm -f conftest.er1
42923 cat conftest.err >&5
a848cd7e
SC
42924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42925 (exit $ac_status); } &&
c9a66001 42926 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42928 (eval $ac_try) 2>&5
42929 ac_status=$?
42930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42931 (exit $ac_status); }; } &&
42932 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42934 (eval $ac_try) 2>&5
42935 ac_status=$?
42936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42937 (exit $ac_status); }; }; then
42938 eval "$as_ac_var=yes"
42939else
42940 echo "$as_me: failed program was:" >&5
42941sed 's/^/| /' conftest.$ac_ext >&5
42942
42943eval "$as_ac_var=no"
42944fi
ac1cb8d3
VS
42945rm -f conftest.err conftest.$ac_objext \
42946 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42947fi
42948echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42949echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42950if test `eval echo '${'$as_ac_var'}'` = yes; then
42951 cat >>confdefs.h <<_ACEOF
42952#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42953_ACEOF
42954 break
42955fi
42956done
42957
42958
42959 if test "$ac_cv_func_gettimeofday" = "yes"; then
42960 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
42961echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
42962if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
42963 echo $ECHO_N "(cached) $ECHO_C" >&6
42964else
42965
5d7b7554 42966 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
42967/* confdefs.h. */
42968_ACEOF
42969cat confdefs.h >>conftest.$ac_ext
42970cat >>conftest.$ac_ext <<_ACEOF
42971/* end confdefs.h. */
42972
42973 #include <sys/time.h>
42974 #include <unistd.h>
42975
42976int
42977main ()
42978{
42979
42980 struct timeval tv;
42981 gettimeofday(&tv, NULL);
42982
42983 ;
42984 return 0;
42985}
42986_ACEOF
42987rm -f conftest.$ac_objext
42988if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42989 (eval $ac_compile) 2>conftest.er1
a848cd7e 42990 ac_status=$?
ac1cb8d3
VS
42991 grep -v '^ *+' conftest.er1 >conftest.err
42992 rm -f conftest.er1
42993 cat conftest.err >&5
a848cd7e
SC
42994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42995 (exit $ac_status); } &&
c9a66001 42996 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42998 (eval $ac_try) 2>&5
42999 ac_status=$?
43000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43001 (exit $ac_status); }; } &&
43002 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43004 (eval $ac_try) 2>&5
43005 ac_status=$?
43006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43007 (exit $ac_status); }; }; then
43008 wx_cv_func_gettimeofday_has_2_args=yes
43009else
43010 echo "$as_me: failed program was:" >&5
43011sed 's/^/| /' conftest.$ac_ext >&5
43012
43013cat >conftest.$ac_ext <<_ACEOF
43014/* confdefs.h. */
43015_ACEOF
43016cat confdefs.h >>conftest.$ac_ext
43017cat >>conftest.$ac_ext <<_ACEOF
43018/* end confdefs.h. */
43019
43020 #include <sys/time.h>
43021 #include <unistd.h>
43022
43023int
43024main ()
43025{
43026
43027 struct timeval tv;
43028 gettimeofday(&tv);
43029
43030 ;
43031 return 0;
43032}
43033_ACEOF
43034rm -f conftest.$ac_objext
43035if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43036 (eval $ac_compile) 2>conftest.er1
a848cd7e 43037 ac_status=$?
ac1cb8d3
VS
43038 grep -v '^ *+' conftest.er1 >conftest.err
43039 rm -f conftest.er1
43040 cat conftest.err >&5
a848cd7e
SC
43041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43042 (exit $ac_status); } &&
c9a66001 43043 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43045 (eval $ac_try) 2>&5
43046 ac_status=$?
43047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43048 (exit $ac_status); }; } &&
43049 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43051 (eval $ac_try) 2>&5
43052 ac_status=$?
43053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43054 (exit $ac_status); }; }; then
43055 wx_cv_func_gettimeofday_has_2_args=no
43056else
43057 echo "$as_me: failed program was:" >&5
43058sed 's/^/| /' conftest.$ac_ext >&5
43059
43060
43061 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
43062echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
43063 wx_cv_func_gettimeofday_has_2_args=unknown
43064
43065
43066fi
ac1cb8d3 43067rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43068
43069fi
ac1cb8d3 43070rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43071
43072fi
43073echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
43074echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
43075
43076 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
43077 cat >>confdefs.h <<\_ACEOF
43078#define WX_GETTIMEOFDAY_NO_TZ 1
43079_ACEOF
43080
43081 fi
43082 fi
43083
43084 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
43085fi
43086
43087
43088if test "$wxUSE_SOCKETS" = "yes"; then
43089 if test "$wxUSE_MGL" = "1"; then
43090 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
43091echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
43092 wxUSE_SOCKETS="no"
43093 fi
43094fi
43095
43096if test "$wxUSE_SOCKETS" = "yes"; then
43097 if test "$TOOLKIT" != "MSW"; then
43098 echo "$as_me:$LINENO: checking for socket" >&5
43099echo $ECHO_N "checking for socket... $ECHO_C" >&6
43100if test "${ac_cv_func_socket+set}" = set; then
43101 echo $ECHO_N "(cached) $ECHO_C" >&6
43102else
43103 cat >conftest.$ac_ext <<_ACEOF
43104/* confdefs.h. */
43105_ACEOF
43106cat confdefs.h >>conftest.$ac_ext
43107cat >>conftest.$ac_ext <<_ACEOF
43108/* end confdefs.h. */
ac1cb8d3
VS
43109/* Define socket to an innocuous variant, in case <limits.h> declares socket.
43110 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43111#define socket innocuous_socket
43112
a848cd7e
SC
43113/* System header to define __stub macros and hopefully few prototypes,
43114 which can conflict with char socket (); below.
43115 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43116 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 43117
a848cd7e
SC
43118#ifdef __STDC__
43119# include <limits.h>
43120#else
43121# include <assert.h>
43122#endif
ac1cb8d3
VS
43123
43124#undef socket
43125
a848cd7e
SC
43126/* Override any gcc2 internal prototype to avoid an error. */
43127#ifdef __cplusplus
43128extern "C"
43129{
43130#endif
43131/* We use char because int might match the return type of a gcc2
43132 builtin and then its argument prototype would still apply. */
43133char socket ();
43134/* The GNU C library defines this for functions which it implements
43135 to always fail with ENOSYS. Some functions are actually named
43136 something starting with __ and the normal name is an alias. */
43137#if defined (__stub_socket) || defined (__stub___socket)
43138choke me
43139#else
43140char (*f) () = socket;
43141#endif
43142#ifdef __cplusplus
43143}
43144#endif
43145
43146int
43147main ()
43148{
43149return f != socket;
43150 ;
43151 return 0;
43152}
43153_ACEOF
43154rm -f conftest.$ac_objext conftest$ac_exeext
43155if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43156 (eval $ac_link) 2>conftest.er1
a848cd7e 43157 ac_status=$?
ac1cb8d3
VS
43158 grep -v '^ *+' conftest.er1 >conftest.err
43159 rm -f conftest.er1
43160 cat conftest.err >&5
a848cd7e
SC
43161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43162 (exit $ac_status); } &&
c9a66001 43163 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43165 (eval $ac_try) 2>&5
43166 ac_status=$?
43167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43168 (exit $ac_status); }; } &&
43169 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43171 (eval $ac_try) 2>&5
43172 ac_status=$?
43173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43174 (exit $ac_status); }; }; then
43175 ac_cv_func_socket=yes
43176else
43177 echo "$as_me: failed program was:" >&5
43178sed 's/^/| /' conftest.$ac_ext >&5
43179
43180ac_cv_func_socket=no
43181fi
ac1cb8d3
VS
43182rm -f conftest.err conftest.$ac_objext \
43183 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43184fi
43185echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
43186echo "${ECHO_T}$ac_cv_func_socket" >&6
43187if test $ac_cv_func_socket = yes; then
43188 :
43189else
43190
43191 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
43192echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
43193if test "${ac_cv_lib_socket_socket+set}" = set; then
43194 echo $ECHO_N "(cached) $ECHO_C" >&6
43195else
43196 ac_check_lib_save_LIBS=$LIBS
43197LIBS="-lsocket $LIBS"
43198cat >conftest.$ac_ext <<_ACEOF
43199/* confdefs.h. */
43200_ACEOF
43201cat confdefs.h >>conftest.$ac_ext
43202cat >>conftest.$ac_ext <<_ACEOF
43203/* end confdefs.h. */
43204
43205/* Override any gcc2 internal prototype to avoid an error. */
43206#ifdef __cplusplus
43207extern "C"
43208#endif
43209/* We use char because int might match the return type of a gcc2
43210 builtin and then its argument prototype would still apply. */
43211char socket ();
43212int
43213main ()
43214{
43215socket ();
43216 ;
43217 return 0;
43218}
43219_ACEOF
43220rm -f conftest.$ac_objext conftest$ac_exeext
43221if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43222 (eval $ac_link) 2>conftest.er1
a848cd7e 43223 ac_status=$?
ac1cb8d3
VS
43224 grep -v '^ *+' conftest.er1 >conftest.err
43225 rm -f conftest.er1
43226 cat conftest.err >&5
a848cd7e
SC
43227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43228 (exit $ac_status); } &&
c9a66001 43229 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43231 (eval $ac_try) 2>&5
43232 ac_status=$?
43233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43234 (exit $ac_status); }; } &&
43235 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43237 (eval $ac_try) 2>&5
43238 ac_status=$?
43239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43240 (exit $ac_status); }; }; then
43241 ac_cv_lib_socket_socket=yes
43242else
43243 echo "$as_me: failed program was:" >&5
43244sed 's/^/| /' conftest.$ac_ext >&5
43245
43246ac_cv_lib_socket_socket=no
43247fi
ac1cb8d3
VS
43248rm -f conftest.err conftest.$ac_objext \
43249 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43250LIBS=$ac_check_lib_save_LIBS
43251fi
43252echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
43253echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
43254if test $ac_cv_lib_socket_socket = yes; then
43255 if test "$INET_LINK" != " -lsocket"; then
43256 INET_LINK="$INET_LINK -lsocket"
43257 fi
43258else
43259
43260 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
43261echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
43262 wxUSE_SOCKETS=no
43263
43264
43265fi
43266
43267
43268
43269fi
43270
43271 fi
43272fi
43273
43274if test "$wxUSE_SOCKETS" = "yes" ; then
43275 if test "$TOOLKIT" != "MSW"; then
5d7b7554 43276 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
43277echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
43278if test "${wx_cv_type_getsockname3+set}" = set; then
43279 echo $ECHO_N "(cached) $ECHO_C" >&6
43280else
43281
43282 cat >conftest.$ac_ext <<_ACEOF
43283/* confdefs.h. */
43284_ACEOF
43285cat confdefs.h >>conftest.$ac_ext
43286cat >>conftest.$ac_ext <<_ACEOF
43287/* end confdefs.h. */
43288
43289 #include <sys/types.h>
43290 #include <sys/socket.h>
43291
43292int
43293main ()
43294{
43295
43296 socklen_t len;
43297 getsockname(0, 0, &len);
43298
43299 ;
43300 return 0;
43301}
43302_ACEOF
43303rm -f conftest.$ac_objext
43304if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43305 (eval $ac_compile) 2>conftest.er1
a848cd7e 43306 ac_status=$?
ac1cb8d3
VS
43307 grep -v '^ *+' conftest.er1 >conftest.err
43308 rm -f conftest.er1
43309 cat conftest.err >&5
a848cd7e
SC
43310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43311 (exit $ac_status); } &&
c9a66001 43312 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43314 (eval $ac_try) 2>&5
43315 ac_status=$?
43316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43317 (exit $ac_status); }; } &&
43318 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43320 (eval $ac_try) 2>&5
43321 ac_status=$?
43322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43323 (exit $ac_status); }; }; then
43324 wx_cv_type_getsockname3=socklen_t
43325else
43326 echo "$as_me: failed program was:" >&5
43327sed 's/^/| /' conftest.$ac_ext >&5
43328
43329
6459a506 43330 CXXFLAGS_OLD="$CXXFLAGS"
a848cd7e 43331 if test "$GCC" = yes ; then
c92ad099 43332 CXXFLAGS="-Werror $CXXFLAGS"
a848cd7e
SC
43333 fi
43334
43335 cat >conftest.$ac_ext <<_ACEOF
43336/* confdefs.h. */
43337_ACEOF
43338cat confdefs.h >>conftest.$ac_ext
43339cat >>conftest.$ac_ext <<_ACEOF
43340/* end confdefs.h. */
43341
43342 #include <sys/types.h>
43343 #include <sys/socket.h>
43344
43345int
43346main ()
43347{
43348
43349 size_t len;
43350 getsockname(0, 0, &len);
43351
43352 ;
43353 return 0;
43354}
43355_ACEOF
43356rm -f conftest.$ac_objext
43357if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43358 (eval $ac_compile) 2>conftest.er1
a848cd7e 43359 ac_status=$?
ac1cb8d3
VS
43360 grep -v '^ *+' conftest.er1 >conftest.err
43361 rm -f conftest.er1
43362 cat conftest.err >&5
a848cd7e
SC
43363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43364 (exit $ac_status); } &&
c9a66001 43365 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43367 (eval $ac_try) 2>&5
43368 ac_status=$?
43369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43370 (exit $ac_status); }; } &&
43371 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43373 (eval $ac_try) 2>&5
43374 ac_status=$?
43375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43376 (exit $ac_status); }; }; then
43377 wx_cv_type_getsockname3=size_t
43378else
43379 echo "$as_me: failed program was:" >&5
43380sed 's/^/| /' conftest.$ac_ext >&5
43381
43382cat >conftest.$ac_ext <<_ACEOF
43383/* confdefs.h. */
43384_ACEOF
43385cat confdefs.h >>conftest.$ac_ext
43386cat >>conftest.$ac_ext <<_ACEOF
43387/* end confdefs.h. */
43388
43389 #include <sys/types.h>
43390 #include <sys/socket.h>
43391
43392int
43393main ()
43394{
43395
43396 int len;
43397 getsockname(0, 0, &len);
43398
43399 ;
43400 return 0;
43401}
43402_ACEOF
43403rm -f conftest.$ac_objext
43404if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43405 (eval $ac_compile) 2>conftest.er1
a848cd7e 43406 ac_status=$?
ac1cb8d3
VS
43407 grep -v '^ *+' conftest.er1 >conftest.err
43408 rm -f conftest.er1
43409 cat conftest.err >&5
a848cd7e
SC
43410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43411 (exit $ac_status); } &&
c9a66001 43412 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43414 (eval $ac_try) 2>&5
43415 ac_status=$?
43416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43417 (exit $ac_status); }; } &&
43418 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43420 (eval $ac_try) 2>&5
43421 ac_status=$?
43422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43423 (exit $ac_status); }; }; then
43424 wx_cv_type_getsockname3=int
43425else
43426 echo "$as_me: failed program was:" >&5
43427sed 's/^/| /' conftest.$ac_ext >&5
43428
43429wx_cv_type_getsockname3=unknown
43430
43431fi
ac1cb8d3 43432rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43433
43434fi
ac1cb8d3 43435rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 43436
6459a506 43437 CXXFLAGS="$CXXFLAGS_OLD"
a848cd7e
SC
43438
43439
43440fi
ac1cb8d3 43441rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43442
43443fi
43444echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
43445echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
43446
43447 if test "$wx_cv_type_getsockname3" = "unknown"; then
43448 wxUSE_SOCKETS=no
43449 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
43450echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
43451 else
43452 cat >>confdefs.h <<_ACEOF
9e03e02d 43453#define WX_SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
43454_ACEOF
43455
43456 fi
43457 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
43458echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
43459if test "${wx_cv_type_getsockopt5+set}" = set; then
43460 echo $ECHO_N "(cached) $ECHO_C" >&6
43461else
43462
43463 cat >conftest.$ac_ext <<_ACEOF
43464/* confdefs.h. */
43465_ACEOF
43466cat confdefs.h >>conftest.$ac_ext
43467cat >>conftest.$ac_ext <<_ACEOF
43468/* end confdefs.h. */
43469
43470 #include <sys/types.h>
43471 #include <sys/socket.h>
43472
43473int
43474main ()
43475{
43476
43477 socklen_t len;
43478 getsockopt(0, 0, 0, 0, &len);
43479
43480 ;
43481 return 0;
43482}
43483_ACEOF
43484rm -f conftest.$ac_objext
43485if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43486 (eval $ac_compile) 2>conftest.er1
43487 ac_status=$?
43488 grep -v '^ *+' conftest.er1 >conftest.err
43489 rm -f conftest.er1
43490 cat conftest.err >&5
43491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43492 (exit $ac_status); } &&
c9a66001 43493 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
43494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43495 (eval $ac_try) 2>&5
43496 ac_status=$?
43497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43498 (exit $ac_status); }; } &&
43499 { ac_try='test -s conftest.$ac_objext'
43500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43501 (eval $ac_try) 2>&5
43502 ac_status=$?
43503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43504 (exit $ac_status); }; }; then
43505 wx_cv_type_getsockopt5=socklen_t
43506else
43507 echo "$as_me: failed program was:" >&5
43508sed 's/^/| /' conftest.$ac_ext >&5
43509
43510
6459a506 43511 CXXFLAGS_OLD="$CXXFLAGS"
5b674b9d 43512 if test "$GCC" = yes ; then
c92ad099 43513 CXXFLAGS="-Werror $CXXFLAGS"
5b674b9d
DE
43514 fi
43515
43516 cat >conftest.$ac_ext <<_ACEOF
43517/* confdefs.h. */
43518_ACEOF
43519cat confdefs.h >>conftest.$ac_ext
43520cat >>conftest.$ac_ext <<_ACEOF
43521/* end confdefs.h. */
43522
43523 #include <sys/types.h>
43524 #include <sys/socket.h>
43525
43526int
43527main ()
43528{
43529
43530 size_t len;
43531 getsockopt(0, 0, 0, 0, &len);
43532
43533 ;
43534 return 0;
43535}
43536_ACEOF
43537rm -f conftest.$ac_objext
43538if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43539 (eval $ac_compile) 2>conftest.er1
43540 ac_status=$?
43541 grep -v '^ *+' conftest.er1 >conftest.err
43542 rm -f conftest.er1
43543 cat conftest.err >&5
43544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43545 (exit $ac_status); } &&
c9a66001 43546 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
43547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43548 (eval $ac_try) 2>&5
43549 ac_status=$?
43550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43551 (exit $ac_status); }; } &&
43552 { ac_try='test -s conftest.$ac_objext'
43553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43554 (eval $ac_try) 2>&5
43555 ac_status=$?
43556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43557 (exit $ac_status); }; }; then
43558 wx_cv_type_getsockopt5=size_t
43559else
43560 echo "$as_me: failed program was:" >&5
43561sed 's/^/| /' conftest.$ac_ext >&5
43562
43563cat >conftest.$ac_ext <<_ACEOF
43564/* confdefs.h. */
43565_ACEOF
43566cat confdefs.h >>conftest.$ac_ext
43567cat >>conftest.$ac_ext <<_ACEOF
43568/* end confdefs.h. */
43569
43570 #include <sys/types.h>
43571 #include <sys/socket.h>
43572
43573int
43574main ()
43575{
43576
43577 int len;
43578 getsockopt(0, 0, 0, 0, &len);
43579
43580 ;
43581 return 0;
43582}
43583_ACEOF
43584rm -f conftest.$ac_objext
43585if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43586 (eval $ac_compile) 2>conftest.er1
43587 ac_status=$?
43588 grep -v '^ *+' conftest.er1 >conftest.err
43589 rm -f conftest.er1
43590 cat conftest.err >&5
43591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43592 (exit $ac_status); } &&
c9a66001 43593 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
43594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43595 (eval $ac_try) 2>&5
43596 ac_status=$?
43597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43598 (exit $ac_status); }; } &&
43599 { ac_try='test -s conftest.$ac_objext'
43600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43601 (eval $ac_try) 2>&5
43602 ac_status=$?
43603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43604 (exit $ac_status); }; }; then
43605 wx_cv_type_getsockopt5=int
43606else
43607 echo "$as_me: failed program was:" >&5
43608sed 's/^/| /' conftest.$ac_ext >&5
43609
43610wx_cv_type_getsockopt5=unknown
43611
43612fi
43613rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43614
43615fi
43616rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43617
6459a506 43618 CXXFLAGS="$CXXFLAGS_OLD"
5b674b9d
DE
43619
43620
43621fi
43622rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43623
43624fi
43625echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
43626echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
43627
43628 if test "$wx_cv_type_getsockopt5" = "unknown"; then
43629 wxUSE_SOCKETS=no
43630 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
43631echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
43632 else
43633 cat >>confdefs.h <<_ACEOF
43634#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
43635_ACEOF
43636
43637 fi
43638 fi
43639fi
43640
43641if test "$wxUSE_SOCKETS" = "yes" ; then
43642 cat >>confdefs.h <<\_ACEOF
43643#define wxUSE_SOCKETS 1
43644_ACEOF
43645
43646 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
43647fi
43648
43649if test "$wxUSE_PROTOCOL" = "yes"; then
43650 if test "$wxUSE_SOCKETS" != "yes"; then
43651 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
43652echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
43653 wxUSE_PROTOCOL=no
43654 fi
43655fi
43656
43657if test "$wxUSE_PROTOCOL" = "yes"; then
43658 cat >>confdefs.h <<\_ACEOF
43659#define wxUSE_PROTOCOL 1
43660_ACEOF
43661
43662
43663 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
43664 cat >>confdefs.h <<\_ACEOF
43665#define wxUSE_PROTOCOL_HTTP 1
43666_ACEOF
43667
43668 fi
43669 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
43670 cat >>confdefs.h <<\_ACEOF
43671#define wxUSE_PROTOCOL_FTP 1
43672_ACEOF
43673
43674 fi
43675 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
43676 cat >>confdefs.h <<\_ACEOF
43677#define wxUSE_PROTOCOL_FILE 1
43678_ACEOF
43679
43680 fi
43681else
43682 if test "$wxUSE_FS_INET" = "yes"; then
43683 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
43684echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
43685 wxUSE_FS_INET="no"
43686 fi
43687fi
43688
43689if test "$wxUSE_URL" = "yes"; then
43690 if test "$wxUSE_PROTOCOL" != "yes"; then
43691 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
43692echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
43693 wxUSE_URL=no
43694 fi
43695 if test "$wxUSE_URL" = "yes"; then
43696 cat >>confdefs.h <<\_ACEOF
43697#define wxUSE_URL 1
43698_ACEOF
43699
43700 fi
43701fi
43702
43703if test "$wxUSE_FS_INET" = "yes"; then
43704 cat >>confdefs.h <<\_ACEOF
43705#define wxUSE_FS_INET 1
43706_ACEOF
43707
43708fi
43709
43710
ee45c548
MW
43711if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
43712 wxUSE_JOYSTICK=no
43713
43714 if test "$TOOLKIT" = "MSW"; then
43715 wxUSE_JOYSTICK=yes
43716
43717 elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
43718 if test "$USE_DARWIN" = 1; then
43719 echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
43720echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6
ee45c548
MW
43721 cat >conftest.$ac_ext <<_ACEOF
43722/* confdefs.h. */
43723_ACEOF
43724cat confdefs.h >>conftest.$ac_ext
43725cat >>conftest.$ac_ext <<_ACEOF
43726/* end confdefs.h. */
43727 #include <IOKit/hid/IOHIDLib.h>
43728int
43729main ()
43730{
43731 IOHIDQueueInterface *qi = NULL;
43732 IOHIDCallbackFunction cb = NULL;
43733 qi->setEventCallout(NULL, cb, NULL, NULL);
43734 ;
43735 return 0;
43736}
43737_ACEOF
43738rm -f conftest.$ac_objext
43739if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43740 (eval $ac_compile) 2>conftest.er1
43741 ac_status=$?
43742 grep -v '^ *+' conftest.er1 >conftest.err
43743 rm -f conftest.er1
43744 cat conftest.err >&5
43745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43746 (exit $ac_status); } &&
c9a66001 43747 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ee45c548
MW
43748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43749 (eval $ac_try) 2>&5
43750 ac_status=$?
43751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43752 (exit $ac_status); }; } &&
43753 { ac_try='test -s conftest.$ac_objext'
43754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43755 (eval $ac_try) 2>&5
43756 ac_status=$?
43757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43758 (exit $ac_status); }; }; then
43759 wxUSE_JOYSTICK=yes
a848cd7e 43760
ee45c548
MW
43761else
43762 echo "$as_me: failed program was:" >&5
43763sed 's/^/| /' conftest.$ac_ext >&5
43764
43765fi
43766rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ee45c548
MW
43767 echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
43768echo "${ECHO_T}$wxUSE_JOYSTICK" >&6
43769 fi
43770
43771 else
a848cd7e
SC
43772
43773for ac_header in linux/joystick.h
43774do
43775as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43776if eval "test \"\${$as_ac_Header+set}\" = set"; then
43777 echo "$as_me:$LINENO: checking for $ac_header" >&5
43778echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43779if eval "test \"\${$as_ac_Header+set}\" = set"; then
43780 echo $ECHO_N "(cached) $ECHO_C" >&6
43781fi
43782echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43783echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43784else
43785 # Is the header compilable?
43786echo "$as_me:$LINENO: checking $ac_header usability" >&5
43787echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43788cat >conftest.$ac_ext <<_ACEOF
43789/* confdefs.h. */
43790_ACEOF
43791cat confdefs.h >>conftest.$ac_ext
43792cat >>conftest.$ac_ext <<_ACEOF
43793/* end confdefs.h. */
43794$ac_includes_default
43795#include <$ac_header>
43796_ACEOF
43797rm -f conftest.$ac_objext
43798if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43799 (eval $ac_compile) 2>conftest.er1
a848cd7e 43800 ac_status=$?
ac1cb8d3
VS
43801 grep -v '^ *+' conftest.er1 >conftest.err
43802 rm -f conftest.er1
43803 cat conftest.err >&5
a848cd7e
SC
43804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43805 (exit $ac_status); } &&
c9a66001 43806 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43808 (eval $ac_try) 2>&5
43809 ac_status=$?
43810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43811 (exit $ac_status); }; } &&
43812 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43814 (eval $ac_try) 2>&5
43815 ac_status=$?
43816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43817 (exit $ac_status); }; }; then
43818 ac_header_compiler=yes
43819else
43820 echo "$as_me: failed program was:" >&5
43821sed 's/^/| /' conftest.$ac_ext >&5
43822
43823ac_header_compiler=no
43824fi
ac1cb8d3 43825rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43826echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43827echo "${ECHO_T}$ac_header_compiler" >&6
43828
43829# Is the header present?
43830echo "$as_me:$LINENO: checking $ac_header presence" >&5
43831echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43832cat >conftest.$ac_ext <<_ACEOF
43833/* confdefs.h. */
43834_ACEOF
43835cat confdefs.h >>conftest.$ac_ext
43836cat >>conftest.$ac_ext <<_ACEOF
43837/* end confdefs.h. */
43838#include <$ac_header>
43839_ACEOF
43840if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43841 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43842 ac_status=$?
43843 grep -v '^ *+' conftest.er1 >conftest.err
43844 rm -f conftest.er1
43845 cat conftest.err >&5
43846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43847 (exit $ac_status); } >/dev/null; then
43848 if test -s conftest.err; then
5d7b7554
VZ
43849 ac_cpp_err=$ac_cxx_preproc_warn_flag
43850 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
43851 else
43852 ac_cpp_err=
43853 fi
43854else
43855 ac_cpp_err=yes
43856fi
43857if test -z "$ac_cpp_err"; then
43858 ac_header_preproc=yes
43859else
43860 echo "$as_me: failed program was:" >&5
43861sed 's/^/| /' conftest.$ac_ext >&5
43862
43863 ac_header_preproc=no
43864fi
43865rm -f conftest.err conftest.$ac_ext
43866echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43867echo "${ECHO_T}$ac_header_preproc" >&6
43868
43869# So? What about this header?
5d7b7554 43870case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 43871 yes:no: )
a848cd7e
SC
43872 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43873echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
43874 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43875echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43876 ac_header_preproc=yes
a848cd7e 43877 ;;
ac1cb8d3 43878 no:yes:* )
a848cd7e
SC
43879 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43880echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
43881 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
43882echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
43883 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43884echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43885 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
43886echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
43887 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43888echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
43889 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43890echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
43891 (
43892 cat <<\_ASBOX
ac1cb8d3
VS
43893## ----------------------------------------- ##
43894## Report this to wx-dev@lists.wxwidgets.org ##
43895## ----------------------------------------- ##
a848cd7e
SC
43896_ASBOX
43897 ) |
43898 sed "s/^/$as_me: WARNING: /" >&2
43899 ;;
43900esac
43901echo "$as_me:$LINENO: checking for $ac_header" >&5
43902echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43903if eval "test \"\${$as_ac_Header+set}\" = set"; then
43904 echo $ECHO_N "(cached) $ECHO_C" >&6
43905else
ac1cb8d3 43906 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
43907fi
43908echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43909echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43910
43911fi
43912if test `eval echo '${'$as_ac_Header'}'` = yes; then
43913 cat >>confdefs.h <<_ACEOF
43914#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43915_ACEOF
ee45c548 43916 wxUSE_JOYSTICK=yes
a848cd7e
SC
43917fi
43918
43919done
43920
ee45c548 43921 fi
4cb1d3da 43922
ee45c548
MW
43923 if test "$wxUSE_JOYSTICK" = "yes"; then
43924 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
43925#define wxUSE_JOYSTICK 1
43926_ACEOF
43927
ee45c548
MW
43928 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
43929 else
43930 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
43931echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
a848cd7e
SC
43932 fi
43933fi
43934
43935
43936
43937if test "$wxUSE_FONTMAP" = "yes" ; then
43938 cat >>confdefs.h <<\_ACEOF
43939#define wxUSE_FONTMAP 1
43940_ACEOF
43941
43942fi
43943
43944if test "$wxUSE_UNICODE" = "yes" ; then
43945 cat >>confdefs.h <<\_ACEOF
43946#define wxUSE_UNICODE 1
43947_ACEOF
43948
43949
43950 if test "$USE_WIN32" != 1; then
43951 wxUSE_UNICODE_MSLU=no
43952 fi
43953
43954 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
43955 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
43956echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
43957if test "${ac_cv_lib_unicows_main+set}" = set; then
43958 echo $ECHO_N "(cached) $ECHO_C" >&6
43959else
43960 ac_check_lib_save_LIBS=$LIBS
43961LIBS="-lunicows $LIBS"
43962cat >conftest.$ac_ext <<_ACEOF
43963/* confdefs.h. */
43964_ACEOF
43965cat confdefs.h >>conftest.$ac_ext
43966cat >>conftest.$ac_ext <<_ACEOF
43967/* end confdefs.h. */
43968
43969
43970int
43971main ()
43972{
43973main ();
43974 ;
43975 return 0;
43976}
43977_ACEOF
43978rm -f conftest.$ac_objext conftest$ac_exeext
43979if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43980 (eval $ac_link) 2>conftest.er1
a848cd7e 43981 ac_status=$?
ac1cb8d3
VS
43982 grep -v '^ *+' conftest.er1 >conftest.err
43983 rm -f conftest.er1
43984 cat conftest.err >&5
a848cd7e
SC
43985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43986 (exit $ac_status); } &&
c9a66001 43987 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43989 (eval $ac_try) 2>&5
43990 ac_status=$?
43991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43992 (exit $ac_status); }; } &&
43993 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43995 (eval $ac_try) 2>&5
43996 ac_status=$?
43997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43998 (exit $ac_status); }; }; then
43999 ac_cv_lib_unicows_main=yes
44000else
44001 echo "$as_me: failed program was:" >&5
44002sed 's/^/| /' conftest.$ac_ext >&5
44003
44004ac_cv_lib_unicows_main=no
44005fi
ac1cb8d3
VS
44006rm -f conftest.err conftest.$ac_objext \
44007 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
44008LIBS=$ac_check_lib_save_LIBS
44009fi
44010echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
44011echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
44012if test $ac_cv_lib_unicows_main = yes; then
44013
44014 cat >>confdefs.h <<\_ACEOF
44015#define wxUSE_UNICODE_MSLU 1
44016_ACEOF
44017
44018
44019else
44020
44021 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
44022 Applications will only run on Windows NT/2000/XP!" >&5
44023echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
44024 Applications will only run on Windows NT/2000/XP!" >&2;}
44025 wxUSE_UNICODE_MSLU=no
44026
44027fi
44028
44029 fi
44030fi
44031
44032if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
44033 cat >>confdefs.h <<\_ACEOF
44034#define wxUSE_EXPERIMENTAL_PRINTF 1
44035_ACEOF
44036
44037fi
44038
44039
44040if test "$wxUSE_POSTSCRIPT" = "yes" ; then
44041 cat >>confdefs.h <<\_ACEOF
44042#define wxUSE_POSTSCRIPT 1
44043_ACEOF
44044
44045fi
44046
44047cat >>confdefs.h <<\_ACEOF
44048#define wxUSE_AFM_FOR_POSTSCRIPT 1
44049_ACEOF
44050
44051
44052cat >>confdefs.h <<\_ACEOF
44053#define wxUSE_NORMALIZED_PS_FONTS 1
44054_ACEOF
44055
44056
44057
44058if test "$wxUSE_CONSTRAINTS" = "yes"; then
44059 cat >>confdefs.h <<\_ACEOF
44060#define wxUSE_CONSTRAINTS 1
44061_ACEOF
44062
44063 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
44064fi
44065
8a7b1113
VZ
44066if test "$wxUSE_MDI" = "yes"; then
44067 cat >>confdefs.h <<\_ACEOF
44068#define wxUSE_MDI 1
44069_ACEOF
44070
44071
44072 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
44073 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
44074#define wxUSE_MDI_ARCHITECTURE 1
44075_ACEOF
44076
8a7b1113
VZ
44077 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
44078 fi
a848cd7e
SC
44079fi
44080
44081if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
44082 cat >>confdefs.h <<\_ACEOF
44083#define wxUSE_DOC_VIEW_ARCHITECTURE 1
44084_ACEOF
44085
44086 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
44087 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
44088 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
44089 fi
44090fi
44091
44092if test "$wxUSE_HELP" = "yes"; then
44093 cat >>confdefs.h <<\_ACEOF
44094#define wxUSE_HELP 1
44095_ACEOF
44096
44097 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
44098
44099 if test "$wxUSE_MSW" = 1; then
44100 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
44101 cat >>confdefs.h <<\_ACEOF
44102#define wxUSE_MS_HTML_HELP 1
44103_ACEOF
44104
44105 fi
44106 fi
44107
44108 if test "$wxUSE_WXHTML_HELP" = "yes"; then
44109 if test "$wxUSE_HTML" = "yes"; then
44110 cat >>confdefs.h <<\_ACEOF
44111#define wxUSE_WXHTML_HELP 1
44112_ACEOF
44113
44114 else
44115 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
44116echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
44117 wxUSE_WXHTML_HELP=no
44118 fi
44119 fi
44120fi
44121
44122if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
44123 if test "$wxUSE_CONSTRAINTS" != "yes"; then
44124 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
44125echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
44126 else
44127 cat >>confdefs.h <<\_ACEOF
44128#define wxUSE_PRINTING_ARCHITECTURE 1
44129_ACEOF
44130
44131 fi
44132 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
44133fi
44134
44135if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
44136 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
44137echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
44138 { (exit 1); exit 1; }; }
44139fi
44140
44141
efdf6afe
VZ
44142if test "$wxUSE_METAFILE" = "yes"; then
44143 if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
44144 { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
44145echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
44146 wxUSE_METAFILE=no
44147 fi
44148fi
44149
44150
a848cd7e
SC
44151if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
44152 -o "$wxUSE_CLIPBOARD" = "yes" \
44153 -o "$wxUSE_OLE" = "yes" \
44154 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
44155
44156for ac_header in ole2.h
44157do
44158as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44159if eval "test \"\${$as_ac_Header+set}\" = set"; then
44160 echo "$as_me:$LINENO: checking for $ac_header" >&5
44161echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44162if eval "test \"\${$as_ac_Header+set}\" = set"; then
44163 echo $ECHO_N "(cached) $ECHO_C" >&6
44164fi
44165echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44166echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44167else
44168 # Is the header compilable?
44169echo "$as_me:$LINENO: checking $ac_header usability" >&5
44170echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44171cat >conftest.$ac_ext <<_ACEOF
44172/* confdefs.h. */
44173_ACEOF
44174cat confdefs.h >>conftest.$ac_ext
44175cat >>conftest.$ac_ext <<_ACEOF
44176/* end confdefs.h. */
44177$ac_includes_default
44178#include <$ac_header>
44179_ACEOF
44180rm -f conftest.$ac_objext
44181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44182 (eval $ac_compile) 2>conftest.er1
a848cd7e 44183 ac_status=$?
ac1cb8d3
VS
44184 grep -v '^ *+' conftest.er1 >conftest.err
44185 rm -f conftest.er1
44186 cat conftest.err >&5
a848cd7e
SC
44187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44188 (exit $ac_status); } &&
c9a66001 44189 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44191 (eval $ac_try) 2>&5
44192 ac_status=$?
44193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44194 (exit $ac_status); }; } &&
44195 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44197 (eval $ac_try) 2>&5
44198 ac_status=$?
44199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44200 (exit $ac_status); }; }; then
44201 ac_header_compiler=yes
44202else
44203 echo "$as_me: failed program was:" >&5
44204sed 's/^/| /' conftest.$ac_ext >&5
44205
44206ac_header_compiler=no
44207fi
ac1cb8d3 44208rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44209echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44210echo "${ECHO_T}$ac_header_compiler" >&6
44211
44212# Is the header present?
44213echo "$as_me:$LINENO: checking $ac_header presence" >&5
44214echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44215cat >conftest.$ac_ext <<_ACEOF
44216/* confdefs.h. */
44217_ACEOF
44218cat confdefs.h >>conftest.$ac_ext
44219cat >>conftest.$ac_ext <<_ACEOF
44220/* end confdefs.h. */
44221#include <$ac_header>
44222_ACEOF
44223if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44224 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44225 ac_status=$?
44226 grep -v '^ *+' conftest.er1 >conftest.err
44227 rm -f conftest.er1
44228 cat conftest.err >&5
44229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44230 (exit $ac_status); } >/dev/null; then
44231 if test -s conftest.err; then
5d7b7554
VZ
44232 ac_cpp_err=$ac_cxx_preproc_warn_flag
44233 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
44234 else
44235 ac_cpp_err=
44236 fi
44237else
44238 ac_cpp_err=yes
44239fi
44240if test -z "$ac_cpp_err"; then
44241 ac_header_preproc=yes
44242else
44243 echo "$as_me: failed program was:" >&5
44244sed 's/^/| /' conftest.$ac_ext >&5
44245
44246 ac_header_preproc=no
44247fi
44248rm -f conftest.err conftest.$ac_ext
44249echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44250echo "${ECHO_T}$ac_header_preproc" >&6
44251
44252# So? What about this header?
5d7b7554 44253case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 44254 yes:no: )
a848cd7e
SC
44255 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44256echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
44257 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44258echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44259 ac_header_preproc=yes
a848cd7e 44260 ;;
ac1cb8d3 44261 no:yes:* )
a848cd7e
SC
44262 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44263echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
44264 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44265echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44266 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44267echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44268 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44269echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
44270 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44271echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
44272 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44273echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
44274 (
44275 cat <<\_ASBOX
ac1cb8d3
VS
44276## ----------------------------------------- ##
44277## Report this to wx-dev@lists.wxwidgets.org ##
44278## ----------------------------------------- ##
a848cd7e
SC
44279_ASBOX
44280 ) |
44281 sed "s/^/$as_me: WARNING: /" >&2
44282 ;;
44283esac
44284echo "$as_me:$LINENO: checking for $ac_header" >&5
44285echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44286if eval "test \"\${$as_ac_Header+set}\" = set"; then
44287 echo $ECHO_N "(cached) $ECHO_C" >&6
44288else
ac1cb8d3 44289 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
44290fi
44291echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44292echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44293
44294fi
44295if test `eval echo '${'$as_ac_Header'}'` = yes; then
44296 cat >>confdefs.h <<_ACEOF
44297#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44298_ACEOF
44299
44300fi
44301
44302done
44303
44304
44305 if test "$ac_cv_header_ole2_h" = "yes" ; then
44306 if test "$GCC" = yes ; then
a848cd7e
SC
44307 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
44308echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
44309 cat >conftest.$ac_ext <<_ACEOF
44310/* confdefs.h. */
44311_ACEOF
44312cat confdefs.h >>conftest.$ac_ext
44313cat >>conftest.$ac_ext <<_ACEOF
44314/* end confdefs.h. */
44315#include <windows.h>
44316 #include <ole2.h>
44317int
44318main ()
44319{
44320
44321 ;
44322 return 0;
44323}
44324_ACEOF
44325rm -f conftest.$ac_objext
44326if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44327 (eval $ac_compile) 2>conftest.er1
a848cd7e 44328 ac_status=$?
ac1cb8d3
VS
44329 grep -v '^ *+' conftest.er1 >conftest.err
44330 rm -f conftest.er1
44331 cat conftest.err >&5
a848cd7e
SC
44332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44333 (exit $ac_status); } &&
c9a66001 44334 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44336 (eval $ac_try) 2>&5
44337 ac_status=$?
44338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44339 (exit $ac_status); }; } &&
44340 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44342 (eval $ac_try) 2>&5
44343 ac_status=$?
44344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44345 (exit $ac_status); }; }; then
44346 echo "$as_me:$LINENO: result: no" >&5
44347echo "${ECHO_T}no" >&6
44348else
44349 echo "$as_me: failed program was:" >&5
44350sed 's/^/| /' conftest.$ac_ext >&5
44351
44352echo "$as_me:$LINENO: result: yes" >&5
44353echo "${ECHO_T}yes" >&6
5ff751d6 44354 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
a848cd7e 44355fi
ac1cb8d3 44356rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44357 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
44358 if test "$wxUSE_OLE" = "yes" ; then
44359 cat >>confdefs.h <<\_ACEOF
44360#define wxUSE_OLE 1
44361_ACEOF
44362
0b78747f 44363 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
a848cd7e
SC
44364 fi
44365 fi
44366
44367 if test "$wxUSE_DATAOBJ" = "yes" ; then
44368 cat >>confdefs.h <<\_ACEOF
44369#define wxUSE_DATAOBJ 1
44370_ACEOF
44371
44372 fi
44373 else
44374 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
44375echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
44376
44377 wxUSE_CLIPBOARD=no
44378 wxUSE_DRAG_AND_DROP=no
44379 wxUSE_DATAOBJ=no
44380 wxUSE_OLE=no
44381 fi
44382
44383 if test "$wxUSE_METAFILE" = "yes"; then
44384 cat >>confdefs.h <<\_ACEOF
44385#define wxUSE_METAFILE 1
44386_ACEOF
44387
44388
44389 cat >>confdefs.h <<\_ACEOF
44390#define wxUSE_ENH_METAFILE 1
44391_ACEOF
44392
44393 fi
44394fi
44395
44396if test "$wxUSE_IPC" = "yes"; then
0b78747f 44397 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
77ffb593
JS
44398 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
44399echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
0b78747f 44400 wxUSE_IPC=no
a848cd7e
SC
44401 fi
44402
0b78747f
MW
44403 if test "$wxUSE_IPC" = "yes"; then
44404 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
44405#define wxUSE_IPC 1
44406_ACEOF
44407
0b78747f
MW
44408 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
44409 fi
a848cd7e
SC
44410fi
44411
eb730a0c 44412if test "$wxUSE_DATAOBJ" = "yes"; then
2113bc77
MW
44413 if test "$wxUSE_MGL" = 1; then
44414 { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5
44415echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;}
44416 wxUSE_DATAOBJ=no
44417 else
44418 cat >>confdefs.h <<\_ACEOF
eb730a0c
JS
44419#define wxUSE_DATAOBJ 1
44420_ACEOF
44421
2113bc77 44422 fi
eb730a0c
JS
44423else
44424 { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
44425echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
44426 wxUSE_CLIPBOARD=no
44427 wxUSE_DRAG_AND_DROP=no
44428fi
44429
a848cd7e
SC
44430if test "$wxUSE_CLIPBOARD" = "yes"; then
44431 if test "$wxUSE_MGL" = 1; then
44432 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
44433echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
44434 wxUSE_CLIPBOARD=no
44435 fi
44436
44437 if test "$wxUSE_CLIPBOARD" = "yes"; then
44438 cat >>confdefs.h <<\_ACEOF
44439#define wxUSE_CLIPBOARD 1
44440_ACEOF
44441
a848cd7e
SC
44442 fi
44443fi
44444
44445if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
44446 if test "$wxUSE_GTK" = 1; then
44447 if test "$WXGTK12" != 1; then
44448 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
44449echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
44450 wxUSE_DRAG_AND_DROP=no
44451 fi
44452 fi
44453
44454 if test "$wxUSE_MOTIF" = 1; then
44455 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
44456echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
44457 wxUSE_DRAG_AND_DROP=no
44458 fi
44459
44460 if test "$wxUSE_X11" = 1; then
44461 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
44462echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
44463 wxUSE_DRAG_AND_DROP=no
44464 fi
44465
44466 if test "$wxUSE_MGL" = 1; then
44467 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
44468echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
44469 wxUSE_DRAG_AND_DROP=no
44470 fi
44471
44472 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
44473 cat >>confdefs.h <<\_ACEOF
44474#define wxUSE_DRAG_AND_DROP 1
44475_ACEOF
44476
44477 fi
44478
44479fi
44480
44481if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
44482 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
44483fi
44484
44485if test "$wxUSE_SPLINES" = "yes" ; then
44486 cat >>confdefs.h <<\_ACEOF
44487#define wxUSE_SPLINES 1
44488_ACEOF
44489
44490fi
44491
fbe2ca43
SN
44492if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
44493 cat >>confdefs.h <<\_ACEOF
44494#define wxUSE_MOUSEWHEEL 1
44495_ACEOF
44496
44497fi
44498
a848cd7e
SC
44499
44500USES_CONTROLS=0
44501if test "$wxUSE_CONTROLS" = "yes"; then
44502 USES_CONTROLS=1
44503fi
44504
44505if test "$wxUSE_ACCEL" = "yes"; then
44506 cat >>confdefs.h <<\_ACEOF
44507#define wxUSE_ACCEL 1
44508_ACEOF
44509
44510 USES_CONTROLS=1
44511fi
44512
44513if test "$wxUSE_BUTTON" = "yes"; then
44514 cat >>confdefs.h <<\_ACEOF
44515#define wxUSE_BUTTON 1
44516_ACEOF
44517
44518 USES_CONTROLS=1
44519fi
44520
44521if test "$wxUSE_BMPBUTTON" = "yes"; then
44522 cat >>confdefs.h <<\_ACEOF
44523#define wxUSE_BMPBUTTON 1
44524_ACEOF
44525
44526 USES_CONTROLS=1
44527fi
44528
44529if test "$wxUSE_CALCTRL" = "yes"; then
44530 cat >>confdefs.h <<\_ACEOF
44531#define wxUSE_CALENDARCTRL 1
44532_ACEOF
44533
44534 USES_CONTROLS=1
44535 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
44536fi
44537
44538if test "$wxUSE_CARET" = "yes"; then
44539 cat >>confdefs.h <<\_ACEOF
44540#define wxUSE_CARET 1
44541_ACEOF
44542
44543 USES_CONTROLS=1
44544 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
44545fi
44546
44547if test "$wxUSE_COMBOBOX" = "yes"; then
44548 cat >>confdefs.h <<\_ACEOF
44549#define wxUSE_COMBOBOX 1
44550_ACEOF
44551
44552 USES_CONTROLS=1
44553fi
44554
a57d600f 44555if test "$wxUSE_COMBOCTRL" = "yes"; then
642bcba9 44556 cat >>confdefs.h <<\_ACEOF
a57d600f 44557#define wxUSE_COMBOCTRL 1
642bcba9
VZ
44558_ACEOF
44559
44560 USES_CONTROLS=1
44561fi
44562
a848cd7e
SC
44563if test "$wxUSE_CHOICE" = "yes"; then
44564 cat >>confdefs.h <<\_ACEOF
44565#define wxUSE_CHOICE 1
44566_ACEOF
44567
44568 USES_CONTROLS=1
44569fi
44570
92bbdbcd
WS
44571if test "$wxUSE_CHOICEBOOK" = "yes"; then
44572 cat >>confdefs.h <<\_ACEOF
44573#define wxUSE_CHOICEBOOK 1
44574_ACEOF
44575
44576 USES_CONTROLS=1
44577fi
44578
a848cd7e
SC
44579if test "$wxUSE_CHECKBOX" = "yes"; then
44580 cat >>confdefs.h <<\_ACEOF
44581#define wxUSE_CHECKBOX 1
44582_ACEOF
44583
44584 USES_CONTROLS=1
44585fi
44586
44587if test "$wxUSE_CHECKLST" = "yes"; then
44588 cat >>confdefs.h <<\_ACEOF
44589#define wxUSE_CHECKLISTBOX 1
44590_ACEOF
44591
44592 USES_CONTROLS=1
44593 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
44594fi
44595
e9263684
VZ
44596if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
44597 cat >>confdefs.h <<\_ACEOF
44598#define wxUSE_COLOURPICKERCTRL 1
44599_ACEOF
44600
44601 USES_CONTROLS=1
44602fi
44603
da98e9be
VZ
44604if test "$wxUSE_DATEPICKCTRL" = "yes"; then
44605 cat >>confdefs.h <<\_ACEOF
44606#define wxUSE_DATEPICKCTRL 1
44607_ACEOF
44608
44609 USES_CONTROLS=1
44610fi
44611
e9263684
VZ
44612if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
44613 cat >>confdefs.h <<\_ACEOF
44614#define wxUSE_DIRPICKERCTRL 1
44615_ACEOF
44616
44617 USES_CONTROLS=1
44618fi
44619
44620if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
44621 cat >>confdefs.h <<\_ACEOF
44622#define wxUSE_FILEPICKERCTRL 1
44623_ACEOF
44624
44625 USES_CONTROLS=1
44626fi
44627
44628if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
44629 cat >>confdefs.h <<\_ACEOF
44630#define wxUSE_FONTPICKERCTRL 1
44631_ACEOF
44632
44633 USES_CONTROLS=1
44634fi
44635
a848cd7e
SC
44636if test "$wxUSE_DISPLAY" = "yes"; then
44637 cat >>confdefs.h <<\_ACEOF
44638#define wxUSE_DISPLAY 1
44639_ACEOF
44640
0b78747f 44641 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
a848cd7e
SC
44642fi
44643
44644if test "$wxUSE_GAUGE" = "yes"; then
44645 cat >>confdefs.h <<\_ACEOF
44646#define wxUSE_GAUGE 1
44647_ACEOF
44648
44649 USES_CONTROLS=1
44650fi
44651
44652if test "$wxUSE_GRID" = "yes"; then
44653 cat >>confdefs.h <<\_ACEOF
44654#define wxUSE_GRID 1
44655_ACEOF
44656
44657 USES_CONTROLS=1
44658 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
44659fi
44660
6954625c
VZ
44661if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
44662 cat >>confdefs.h <<\_ACEOF
44663#define wxUSE_HYPERLINKCTRL 1
44664_ACEOF
44665
44666 USES_CONTROLS=1
44667fi
44668
20e34ecc
RR
44669if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
44670 cat >>confdefs.h <<\_ACEOF
44671#define wxUSE_DATAVIEWCTRL 1
44672_ACEOF
44673
44674 USES_CONTROLS=1
44675 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
44676fi
44677
a848cd7e
SC
44678if test "$wxUSE_IMAGLIST" = "yes"; then
44679 cat >>confdefs.h <<\_ACEOF
44680#define wxUSE_IMAGLIST 1
44681_ACEOF
44682
44683fi
44684
44685if test "$wxUSE_LISTBOOK" = "yes"; then
44686 cat >>confdefs.h <<\_ACEOF
44687#define wxUSE_LISTBOOK 1
44688_ACEOF
44689
44690 USES_CONTROLS=1
44691fi
44692
44693if test "$wxUSE_LISTBOX" = "yes"; then
44694 cat >>confdefs.h <<\_ACEOF
44695#define wxUSE_LISTBOX 1
44696_ACEOF
44697
44698 USES_CONTROLS=1
0b78747f 44699 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
a848cd7e
SC
44700fi
44701
44702if test "$wxUSE_LISTCTRL" = "yes"; then
44703 if test "$wxUSE_IMAGLIST" = "yes"; then
44704 cat >>confdefs.h <<\_ACEOF
44705#define wxUSE_LISTCTRL 1
44706_ACEOF
44707
44708 USES_CONTROLS=1
44709 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
44710 else
44711 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
44712echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
44713 fi
44714fi
44715
44716if test "$wxUSE_NOTEBOOK" = "yes"; then
44717 cat >>confdefs.h <<\_ACEOF
44718#define wxUSE_NOTEBOOK 1
44719_ACEOF
44720
44721 USES_CONTROLS=1
44722 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
44723fi
44724
a57d600f 44725if test "$wxUSE_ODCOMBOBOX" = "yes"; then
642bcba9 44726 cat >>confdefs.h <<\_ACEOF
a57d600f 44727#define wxUSE_ODCOMBOBOX 1
642bcba9
VZ
44728_ACEOF
44729
44730 USES_CONTROLS=1
44731 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
44732fi
44733
a848cd7e
SC
44734
44735if test "$wxUSE_RADIOBOX" = "yes"; then
44736 cat >>confdefs.h <<\_ACEOF
44737#define wxUSE_RADIOBOX 1
44738_ACEOF
44739
44740 USES_CONTROLS=1
44741fi
44742
44743if test "$wxUSE_RADIOBTN" = "yes"; then
44744 cat >>confdefs.h <<\_ACEOF
44745#define wxUSE_RADIOBTN 1
44746_ACEOF
44747
44748 USES_CONTROLS=1
44749fi
44750
44751if test "$wxUSE_SASH" = "yes"; then
44752 cat >>confdefs.h <<\_ACEOF
44753#define wxUSE_SASH 1
44754_ACEOF
44755
44756 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
44757fi
44758
44759if test "$wxUSE_SCROLLBAR" = "yes"; then
44760 cat >>confdefs.h <<\_ACEOF
44761#define wxUSE_SCROLLBAR 1
44762_ACEOF
44763
44764 USES_CONTROLS=1
44765 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
44766fi
44767
44768if test "$wxUSE_SLIDER" = "yes"; then
44769 cat >>confdefs.h <<\_ACEOF
44770#define wxUSE_SLIDER 1
44771_ACEOF
44772
44773 USES_CONTROLS=1
44774fi
44775
44776if test "$wxUSE_SPINBTN" = "yes"; then
44777 cat >>confdefs.h <<\_ACEOF
44778#define wxUSE_SPINBTN 1
44779_ACEOF
44780
44781 USES_CONTROLS=1
44782fi
44783
44784if test "$wxUSE_SPINCTRL" = "yes"; then
44785 cat >>confdefs.h <<\_ACEOF
44786#define wxUSE_SPINCTRL 1
44787_ACEOF
44788
44789 USES_CONTROLS=1
44790fi
44791
44792if test "$wxUSE_SPLITTER" = "yes"; then
44793 cat >>confdefs.h <<\_ACEOF
44794#define wxUSE_SPLITTER 1
44795_ACEOF
44796
44797 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
44798fi
44799
44800if test "$wxUSE_STATBMP" = "yes"; then
44801 cat >>confdefs.h <<\_ACEOF
44802#define wxUSE_STATBMP 1
44803_ACEOF
44804
44805 USES_CONTROLS=1
44806fi
44807
44808if test "$wxUSE_STATBOX" = "yes"; then
44809 cat >>confdefs.h <<\_ACEOF
44810#define wxUSE_STATBOX 1
44811_ACEOF
44812
44813 USES_CONTROLS=1
44814fi
44815
44816if test "$wxUSE_STATTEXT" = "yes"; then
44817 cat >>confdefs.h <<\_ACEOF
44818#define wxUSE_STATTEXT 1
44819_ACEOF
44820
44821 USES_CONTROLS=1
44822fi
44823
44824if test "$wxUSE_STATLINE" = "yes"; then
44825 cat >>confdefs.h <<\_ACEOF
44826#define wxUSE_STATLINE 1
44827_ACEOF
44828
44829 USES_CONTROLS=1
44830fi
44831
44832if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
44833 cat >>confdefs.h <<\_ACEOF
44834#define wxUSE_NATIVE_STATUSBAR 1
44835_ACEOF
44836
a848cd7e
SC
44837 cat >>confdefs.h <<\_ACEOF
44838#define wxUSE_STATUSBAR 1
44839_ACEOF
44840
44841 USES_CONTROLS=1
44842
44843 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
44844fi
44845
f10e38c4 44846if test "$wxUSE_TAB_DIALOG" = "yes"; then
a848cd7e
SC
44847 cat >>confdefs.h <<\_ACEOF
44848#define wxUSE_TAB_DIALOG 1
44849_ACEOF
44850
a848cd7e
SC
44851fi
44852
44853if test "$wxUSE_TEXTCTRL" = "yes"; then
44854 cat >>confdefs.h <<\_ACEOF
44855#define wxUSE_TEXTCTRL 1
44856_ACEOF
44857
44858 USES_CONTROLS=1
44859 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
44860fi
44861
44862if test "$wxUSE_TOGGLEBTN" = "yes"; then
44863 if test "$wxUSE_COCOA" = 1 ; then
44864 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
44865echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
44866 wxUSE_TOGGLEBTN=no
44867 fi
a848cd7e
SC
44868
44869 if test "$wxUSE_TOGGLEBTN" = "yes"; then
44870 cat >>confdefs.h <<\_ACEOF
44871#define wxUSE_TOGGLEBTN 1
44872_ACEOF
44873
44874 USES_CONTROLS=1
44875 fi
44876fi
44877
44878if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
44879 cat >>confdefs.h <<\_ACEOF
44880#define wxUSE_TOOLBAR_SIMPLE 1
44881_ACEOF
44882
44883 wxUSE_TOOLBAR="yes"
44884 USES_CONTROLS=1
44885fi
44886
44887if test "$wxUSE_TOOLBAR" = "yes"; then
44888 cat >>confdefs.h <<\_ACEOF
44889#define wxUSE_TOOLBAR 1
44890_ACEOF
44891
44892 USES_CONTROLS=1
44893
44894 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
44895 wxUSE_TOOLBAR_NATIVE="yes"
44896 fi
44897
44898 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
44899 cat >>confdefs.h <<\_ACEOF
44900#define wxUSE_TOOLBAR_NATIVE 1
44901_ACEOF
44902
44903 USES_CONTROLS=1
44904 fi
44905
44906 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
44907fi
44908
44909if test "$wxUSE_TOOLTIPS" = "yes"; then
44910 if test "$wxUSE_MOTIF" = 1; then
44911 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
44912echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
44913 else
44914 if test "$wxUSE_UNIVERSAL" = "yes"; then
44915 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
44916echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
44917 else
44918 cat >>confdefs.h <<\_ACEOF
44919#define wxUSE_TOOLTIPS 1
44920_ACEOF
44921
44922 fi
44923 fi
44924fi
44925
0093c2fc
VZ
44926if test "$wxUSE_TREEBOOK" = "yes"; then
44927 cat >>confdefs.h <<\_ACEOF
44928#define wxUSE_TREEBOOK 1
44929_ACEOF
44930
44931 USES_CONTROLS=1
44932fi
44933
5ec3bc43
JS
44934if test "$wxUSE_TOOLBOOK" = "yes"; then
44935 cat >>confdefs.h <<\_ACEOF
44936#define wxUSE_TOOLBOOK 1
44937_ACEOF
44938
44939 USES_CONTROLS=1
44940fi
44941
a848cd7e
SC
44942if test "$wxUSE_TREECTRL" = "yes"; then
44943 if test "$wxUSE_IMAGLIST" = "yes"; then
44944 cat >>confdefs.h <<\_ACEOF
44945#define wxUSE_TREECTRL 1
44946_ACEOF
44947
44948 USES_CONTROLS=1
44949 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
44950 else
44951 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
44952echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
44953 fi
44954fi
44955
44956if test "$wxUSE_POPUPWIN" = "yes"; then
44957 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
44958 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
44959echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
44960 else
44961 if test "$wxUSE_PM" = 1; then
44962 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
44963echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
44964 else
44965 cat >>confdefs.h <<\_ACEOF
44966#define wxUSE_POPUPWIN 1
44967_ACEOF
44968
0b78747f 44969 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
a848cd7e
SC
44970
44971 USES_CONTROLS=1
44972 fi
44973 fi
44974fi
44975
0dcd06dd 44976if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
44977 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
44978 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
44979echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
44980 else
44981 cat >>confdefs.h <<\_ACEOF
44982#define wxUSE_DIALUP_MANAGER 1
44983_ACEOF
44984
44985 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
44986 fi
44987fi
44988
a848cd7e
SC
44989if test "$wxUSE_TIPWINDOW" = "yes"; then
44990 if test "$wxUSE_PM" = 1; then
44991 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
44992echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
44993 else
44994 cat >>confdefs.h <<\_ACEOF
44995#define wxUSE_TIPWINDOW 1
44996_ACEOF
44997
44998 fi
44999fi
45000
45001if test "$USES_CONTROLS" = 1; then
45002 cat >>confdefs.h <<\_ACEOF
45003#define wxUSE_CONTROLS 1
45004_ACEOF
45005
45006fi
45007
45008
45009if test "$wxUSE_ACCESSIBILITY" = "yes"; then
45010 cat >>confdefs.h <<\_ACEOF
45011#define wxUSE_ACCESSIBILITY 1
45012_ACEOF
45013
45014 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
45015fi
45016
38b4a946
VZ
45017if test "$wxUSE_DC_CACHEING" = "yes"; then
45018 cat >>confdefs.h <<\_ACEOF
45019#define wxUSE_DC_CACHEING 1
45020_ACEOF
45021
45022fi
45023
a848cd7e
SC
45024if test "$wxUSE_DRAGIMAGE" = "yes"; then
45025 cat >>confdefs.h <<\_ACEOF
45026#define wxUSE_DRAGIMAGE 1
45027_ACEOF
45028
45029 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
45030fi
45031
45032if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
45033 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
45034 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
45035echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
45036 else
45037 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
45038#define wxUSE_EXCEPTIONS 1
45039_ACEOF
45040
07bea8f0
VS
45041 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
45042 fi
a848cd7e
SC
45043fi
45044
45045USE_HTML=0
45046if test "$wxUSE_HTML" = "yes"; then
45047 cat >>confdefs.h <<\_ACEOF
45048#define wxUSE_HTML 1
45049_ACEOF
45050
45051 USE_HTML=1
45052 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
45053 if test "$wxUSE_MAC" = 1; then
45054 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
45055 fi
a848cd7e 45056fi
646b6ec1 45057if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 45058 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0 45059 old_CPPFLAGS="$CPPFLAGS"
c92ad099 45060 CPPFLAGS="-x objective-c++ $CPPFLAGS"
07bea8f0
VS
45061 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
45062echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
45063if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
45064 echo $ECHO_N "(cached) $ECHO_C" >&6
45065else
45066 cat >conftest.$ac_ext <<_ACEOF
45067/* confdefs.h. */
45068_ACEOF
45069cat confdefs.h >>conftest.$ac_ext
45070cat >>conftest.$ac_ext <<_ACEOF
45071/* end confdefs.h. */
45072#include <Carbon/Carbon.h>
45073
45074#include <WebKit/HIWebView.h>
45075_ACEOF
45076rm -f conftest.$ac_objext
45077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45078 (eval $ac_compile) 2>conftest.er1
45079 ac_status=$?
45080 grep -v '^ *+' conftest.er1 >conftest.err
45081 rm -f conftest.er1
45082 cat conftest.err >&5
45083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45084 (exit $ac_status); } &&
c9a66001 45085 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
07bea8f0
VS
45086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45087 (eval $ac_try) 2>&5
45088 ac_status=$?
45089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45090 (exit $ac_status); }; } &&
45091 { ac_try='test -s conftest.$ac_objext'
45092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45093 (eval $ac_try) 2>&5
45094 ac_status=$?
45095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45096 (exit $ac_status); }; }; then
45097 ac_cv_header_WebKit_HIWebView_h=yes
45098else
45099 echo "$as_me: failed program was:" >&5
45100sed 's/^/| /' conftest.$ac_ext >&5
45101
45102ac_cv_header_WebKit_HIWebView_h=no
45103fi
45104rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45105fi
45106echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
45107echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
45108if test $ac_cv_header_WebKit_HIWebView_h = yes; then
45109
45110 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
45111#define wxUSE_WEBKIT 1
45112_ACEOF
45113
07bea8f0
VS
45114 WEBKIT_LINK="-framework WebKit"
45115
45116else
45117
45118 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
45119echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
45120 wxUSE_WEBKIT=no
45121
646b6ec1
VS
45122fi
45123
07bea8f0
VS
45124
45125 CPPFLAGS="$old_CPPFLAGS"
45126 elif test "$wxUSE_COCOA" = 1; then
45127 cat >>confdefs.h <<\_ACEOF
45128#define wxUSE_WEBKIT 1
45129_ACEOF
45130
45131 else
45132 wxUSE_WEBKIT=no
45133 fi
45134fi
45135
9a8f0513
VS
45136USE_XRC=0
45137if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
45138 if test "$wxUSE_XML" != "yes"; then
45139 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
45140echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
45141 wxUSE_XRC=no
45142 else
45143 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
45144#define wxUSE_XRC 1
45145_ACEOF
45146
d2ebf0b7
VS
45147 USE_XRC=1
45148 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
45149 fi
9a8f0513 45150fi
07bea8f0 45151
3f60522a
JS
45152USE_AUI=0
45153if test "$wxUSE_AUI" = "yes"; then
45154 cat >>confdefs.h <<\_ACEOF
45155#define wxUSE_AUI 1
45156_ACEOF
45157
45158 USE_AUI=1
45159 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui"
45160fi
45161
a848cd7e
SC
45162if test "$wxUSE_MENUS" = "yes"; then
45163 cat >>confdefs.h <<\_ACEOF
45164#define wxUSE_MENUS 1
45165_ACEOF
45166
45167 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
45168fi
45169
45170if test "$wxUSE_METAFILE" = "yes"; then
45171 cat >>confdefs.h <<\_ACEOF
45172#define wxUSE_METAFILE 1
45173_ACEOF
45174
45175fi
45176
45177if test "$wxUSE_MIMETYPE" = "yes"; then
45178 cat >>confdefs.h <<\_ACEOF
45179#define wxUSE_MIMETYPE 1
45180_ACEOF
45181
45182fi
45183
45184if test "$wxUSE_MINIFRAME" = "yes"; then
45185 cat >>confdefs.h <<\_ACEOF
45186#define wxUSE_MINIFRAME 1
45187_ACEOF
45188
45189 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
45190fi
45191
45192if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
45193 cat >>confdefs.h <<\_ACEOF
45194#define wxUSE_SYSTEM_OPTIONS 1
45195_ACEOF
45196
45197 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 45198 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
45199 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
45200 fi
45201fi
45202
45203
45204if test "$wxUSE_VALIDATORS" = "yes"; then
45205 cat >>confdefs.h <<\_ACEOF
45206#define wxUSE_VALIDATORS 1
45207_ACEOF
45208
45209 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
45210fi
45211
45212if test "$wxUSE_PALETTE" = "yes" ; then
45213 cat >>confdefs.h <<\_ACEOF
45214#define wxUSE_PALETTE 1
45215_ACEOF
45216
45217fi
45218
45219if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
45220 LIBS=" -lunicows $LIBS"
45221fi
45222
91dea314
MW
45223USE_RICHTEXT=0
45224if test "$wxUSE_RICHTEXT" = "yes"; then
45225 cat >>confdefs.h <<\_ACEOF
45226#define wxUSE_RICHTEXT 1
45227_ACEOF
45228
45229 USE_RICHTEXT=1
45230 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
45231fi
45232
a848cd7e
SC
45233
45234if test "$wxUSE_IMAGE" = "yes" ; then
45235 cat >>confdefs.h <<\_ACEOF
45236#define wxUSE_IMAGE 1
45237_ACEOF
45238
45239
45240 if test "$wxUSE_GIF" = "yes" ; then
45241 cat >>confdefs.h <<\_ACEOF
45242#define wxUSE_GIF 1
45243_ACEOF
45244
45245 fi
45246
45247 if test "$wxUSE_PCX" = "yes" ; then
45248 cat >>confdefs.h <<\_ACEOF
45249#define wxUSE_PCX 1
45250_ACEOF
45251
45252 fi
45253
45254 if test "$wxUSE_IFF" = "yes" ; then
45255 cat >>confdefs.h <<\_ACEOF
45256#define wxUSE_IFF 1
45257_ACEOF
45258
45259 fi
45260
45261 if test "$wxUSE_PNM" = "yes" ; then
45262 cat >>confdefs.h <<\_ACEOF
45263#define wxUSE_PNM 1
45264_ACEOF
45265
45266 fi
45267
45268 if test "$wxUSE_XPM" = "yes" ; then
45269 cat >>confdefs.h <<\_ACEOF
45270#define wxUSE_XPM 1
45271_ACEOF
45272
45273 fi
45274
45275 if test "$wxUSE_ICO_CUR" = "yes" ; then
45276 cat >>confdefs.h <<\_ACEOF
45277#define wxUSE_ICO_CUR 1
45278_ACEOF
45279
45280 fi
45281fi
45282
45283
45284if test "$wxUSE_CHOICEDLG" = "yes"; then
45285 cat >>confdefs.h <<\_ACEOF
45286#define wxUSE_CHOICEDLG 1
45287_ACEOF
45288
45289fi
45290
45291if test "$wxUSE_COLOURDLG" = "yes"; then
45292 cat >>confdefs.h <<\_ACEOF
45293#define wxUSE_COLOURDLG 1
45294_ACEOF
45295
45296fi
45297
45298if test "$wxUSE_FILEDLG" = "yes"; then
45299 cat >>confdefs.h <<\_ACEOF
45300#define wxUSE_FILEDLG 1
45301_ACEOF
45302
45303fi
45304
45305if test "$wxUSE_FINDREPLDLG" = "yes"; then
45306 cat >>confdefs.h <<\_ACEOF
45307#define wxUSE_FINDREPLDLG 1
45308_ACEOF
45309
45310fi
45311
45312if test "$wxUSE_FONTDLG" = "yes"; then
45313 cat >>confdefs.h <<\_ACEOF
45314#define wxUSE_FONTDLG 1
45315_ACEOF
45316
45317fi
45318
45319if test "$wxUSE_DIRDLG" = "yes"; then
45320 if test "$wxUSE_TREECTRL" != "yes"; then
45321 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
45322echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
45323 else
45324 cat >>confdefs.h <<\_ACEOF
45325#define wxUSE_DIRDLG 1
45326_ACEOF
45327
45328 fi
45329fi
45330
45331if test "$wxUSE_MSGDLG" = "yes"; then
45332 cat >>confdefs.h <<\_ACEOF
45333#define wxUSE_MSGDLG 1
45334_ACEOF
45335
45336fi
45337
45338if test "$wxUSE_NUMBERDLG" = "yes"; then
45339 cat >>confdefs.h <<\_ACEOF
45340#define wxUSE_NUMBERDLG 1
45341_ACEOF
45342
45343fi
45344
45345if test "$wxUSE_PROGRESSDLG" = "yes"; then
45346 if test "$wxUSE_CONSTRAINTS" != "yes"; then
45347 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
45348echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
45349 else
45350 cat >>confdefs.h <<\_ACEOF
45351#define wxUSE_PROGRESSDLG 1
45352_ACEOF
45353
45354 fi
45355fi
45356
45357if test "$wxUSE_SPLASH" = "yes"; then
45358 cat >>confdefs.h <<\_ACEOF
45359#define wxUSE_SPLASH 1
45360_ACEOF
45361
2057db16 45362 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
45363fi
45364
45365if test "$wxUSE_STARTUP_TIPS" = "yes"; then
45366 if test "$wxUSE_CONSTRAINTS" != "yes"; then
45367 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
45368echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
45369 else
45370 cat >>confdefs.h <<\_ACEOF
45371#define wxUSE_STARTUP_TIPS 1
45372_ACEOF
45373
45374 fi
45375fi
45376
45377if test "$wxUSE_TEXTDLG" = "yes"; then
45378 cat >>confdefs.h <<\_ACEOF
45379#define wxUSE_TEXTDLG 1
45380_ACEOF
45381
45382fi
45383
45384if test "$wxUSE_WIZARDDLG" = "yes"; then
45385 cat >>confdefs.h <<\_ACEOF
45386#define wxUSE_WIZARDDLG 1
45387_ACEOF
45388
45389 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
45390fi
45391
45392
f10e38c4
VZ
45393USE_MEDIA=0
45394
ce756cb0 45395if test "$wxUSE_MEDIACTRL" = "yes"; then
2f6c5bb5
VZ
45396 USE_MEDIA=1
45397
ce756cb0 45398 if test "$wxUSE_GTK" = 1; then
c9a66001 45399 wxUSE_GSTREAMER="no"
ce756cb0 45400
f10e38c4
VZ
45401 GST_VERSION_MAJOR=0
45402 GST_VERSION_MINOR=10
2f6c5bb5 45403 GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
f10e38c4
VZ
45404
45405 if test "$wxUSE_GSTREAMER8" = "no"; then
ce756cb0 45406
3ecd9f92
MW
45407pkg_failed=no
45408echo "$as_me:$LINENO: checking for GST" >&5
45409echo $ECHO_N "checking for GST... $ECHO_C" >&6
ce756cb0 45410
3ecd9f92
MW
45411if test -n "$PKG_CONFIG"; then
45412 if test -n "$GST_CFLAGS"; then
45413 pkg_cv_GST_CFLAGS="$GST_CFLAGS"
45414 else
45415 if test -n "$PKG_CONFIG" && \
45416 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
45417 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
45418 ac_status=$?
45419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45420 (exit $ac_status); }; then
45421 pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
dae87f93 45422else
3ecd9f92
MW
45423 pkg_failed=yes
45424fi
45425 fi
45426else
45427 pkg_failed=untried
dae87f93 45428fi
dae87f93 45429if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
45430 if test -n "$GST_LIBS"; then
45431 pkg_cv_GST_LIBS="$GST_LIBS"
45432 else
45433 if test -n "$PKG_CONFIG" && \
45434 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
45435 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
45436 ac_status=$?
45437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45438 (exit $ac_status); }; then
45439 pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
dae87f93 45440else
3ecd9f92
MW
45441 pkg_failed=yes
45442fi
45443 fi
45444else
45445 pkg_failed=untried
dae87f93
RN
45446fi
45447
dae87f93 45448
2f6c5bb5 45449
3ecd9f92 45450if test $pkg_failed = yes; then
ce756cb0 45451
3ecd9f92
MW
45452if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45453 _pkg_short_errors_supported=yes
45454else
45455 _pkg_short_errors_supported=no
45456fi
45457 if test $_pkg_short_errors_supported = yes; then
45458 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
45459 else
45460 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
dae87f93 45461 fi
3ecd9f92
MW
45462 # Put the nasty error message in config.log where it belongs
45463 echo "$GST_PKG_ERRORS" >&5
dae87f93
RN
45464
45465
3ecd9f92
MW
45466 { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
45467echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
45468 GST_VERSION_MINOR=8
dae87f93 45469
ce756cb0 45470
3ecd9f92 45471elif test $pkg_failed = untried; then
dae87f93 45472
2f6c5bb5
VZ
45473 { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
45474echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
f10e38c4 45475 GST_VERSION_MINOR=8
dae87f93 45476
2f6c5bb5 45477
3ecd9f92
MW
45478else
45479 GST_CFLAGS=$pkg_cv_GST_CFLAGS
45480 GST_LIBS=$pkg_cv_GST_LIBS
45481 echo "$as_me:$LINENO: result: yes" >&5
45482echo "${ECHO_T}yes" >&6
45483
45484 wxUSE_GSTREAMER="yes"
45485 GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION"
dae87f93 45486
3ecd9f92 45487fi
2f6c5bb5
VZ
45488 else
45489 GST_VERSION_MINOR=8
f10e38c4 45490 fi
dae87f93 45491
2f6c5bb5
VZ
45492 if test $GST_VERSION_MINOR = "8"; then
45493 GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
dae87f93 45494
3ecd9f92
MW
45495pkg_failed=no
45496echo "$as_me:$LINENO: checking for GST" >&5
45497echo $ECHO_N "checking for GST... $ECHO_C" >&6
dae87f93 45498
3ecd9f92
MW
45499if test -n "$PKG_CONFIG"; then
45500 if test -n "$GST_CFLAGS"; then
45501 pkg_cv_GST_CFLAGS="$GST_CFLAGS"
45502 else
45503 if test -n "$PKG_CONFIG" && \
45504 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
45505 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
45506 ac_status=$?
45507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45508 (exit $ac_status); }; then
45509 pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
dae87f93 45510else
3ecd9f92
MW
45511 pkg_failed=yes
45512fi
45513 fi
45514else
45515 pkg_failed=untried
dae87f93 45516fi
f10e38c4 45517if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
45518 if test -n "$GST_LIBS"; then
45519 pkg_cv_GST_LIBS="$GST_LIBS"
45520 else
45521 if test -n "$PKG_CONFIG" && \
45522 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
45523 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
45524 ac_status=$?
45525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45526 (exit $ac_status); }; then
45527 pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
dae87f93 45528else
3ecd9f92
MW
45529 pkg_failed=yes
45530fi
45531 fi
45532else
45533 pkg_failed=untried
dae87f93
RN
45534fi
45535
ce756cb0 45536
2f6c5bb5 45537
3ecd9f92 45538if test $pkg_failed = yes; then
dae87f93 45539
3ecd9f92
MW
45540if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45541 _pkg_short_errors_supported=yes
45542else
45543 _pkg_short_errors_supported=no
45544fi
45545 if test $_pkg_short_errors_supported = yes; then
45546 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
45547 else
45548 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
dae87f93 45549 fi
3ecd9f92
MW
45550 # Put the nasty error message in config.log where it belongs
45551 echo "$GST_PKG_ERRORS" >&5
dae87f93
RN
45552
45553
3ecd9f92
MW
45554 { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
45555echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
ce756cb0 45556
3ecd9f92 45557elif test $pkg_failed = untried; then
ce756cb0 45558
2f6c5bb5
VZ
45559 { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
45560echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
ce756cb0 45561
3ecd9f92
MW
45562else
45563 GST_CFLAGS=$pkg_cv_GST_CFLAGS
45564 GST_LIBS=$pkg_cv_GST_LIBS
45565 echo "$as_me:$LINENO: result: yes" >&5
45566echo "${ECHO_T}yes" >&6
45567 wxUSE_GSTREAMER="yes"
45568fi
dae87f93 45569 fi
ce756cb0 45570
f10e38c4 45571
dae87f93 45572 if test "$wxUSE_GSTREAMER" = "yes"; then
c9a66001
VZ
45573 case "${host}" in
45574 *-*-solaris2* )
45575 if "$GCC" = yes; then
45576 GST_CFLAGS=`echo $GST_CFLAGS | sed 's/-mt//'`
45577 GST_LIBS=`echo $GST_LIBS | sed 's/-mt//'`
45578 fi
45579 esac
45580
45581 CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
45582 LIBS="$GST_LIBS $LIBS"
45583
dae87f93 45584 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
45585#define wxUSE_GSTREAMER 1
45586_ACEOF
45587
2f6c5bb5
VZ
45588 else
45589 USE_MEDIA=0
ce756cb0
RN
45590 fi
45591 fi
2f6c5bb5
VZ
45592
45593 if test $USE_MEDIA = 1; then
45594 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
45595 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
45596#define wxUSE_MEDIACTRL 1
45597_ACEOF
45598
2f6c5bb5 45599 fi
ce756cb0
RN
45600fi
45601
45602
a848cd7e
SC
45603if test "$cross_compiling" = "yes"; then
45604 OSINFO="\"$host\""
45605else
45606 OSINFO=`uname -s -r -m`
45607 OSINFO="\"$OSINFO\""
45608fi
45609
45610cat >>confdefs.h <<_ACEOF
45611#define WXWIN_OS_DESCRIPTION $OSINFO
45612_ACEOF
45613
45614
45615
45616if test "x$prefix" != "xNONE"; then
45617 wxPREFIX=$prefix
45618else
45619 wxPREFIX=$ac_default_prefix
45620fi
45621
45622cat >>confdefs.h <<_ACEOF
45623#define wxINSTALL_PREFIX "$wxPREFIX"
45624_ACEOF
45625
45626
a848cd7e
SC
45627
45628
45629CORE_BASE_LIBS="net base"
45630CORE_GUI_LIBS="adv core"
45631
45632if test "$wxUSE_XML" = "yes" ; then
45633 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
45634fi
45635if test "$wxUSE_ODBC" != "no" ; then
45636 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
45637 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
45638fi
45639if test "$wxUSE_HTML" = "yes" ; then
45640 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
45641fi
61639efb
VZ
45642if test "$wxUSE_DEBUGREPORT" = "yes" ; then
45643 CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
45644fi
9a8f0513
VS
45645if test "$wxUSE_XRC" = "yes" ; then
45646 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
45647fi
3f60522a
JS
45648if test "$wxUSE_AUI" = "yes" ; then
45649 CORE_GUI_LIBS="aui $CORE_GUI_LIBS"
45650fi
a848cd7e
SC
45651
45652if test "$wxUSE_GUI" != "yes"; then
45653 CORE_GUI_LIBS=""
45654fi
45655
45656
45657
45658
45659
5d7b7554
VZ
45660ac_ext=c
45661ac_cpp='$CPP $CPPFLAGS'
45662ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45663ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45664ac_compiler_gnu=$ac_cv_c_compiler_gnu
45665
a848cd7e
SC
45666
45667
a848cd7e 45668if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 45669 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
45670 if test "$USE_DARWIN" = 1; then
45671 LDFLAGS="$LDFLAGS -framework QuickTime"
45672 else
45673 LDFLAGS="$LDFLAGS -lQuickTimeLib"
45674 fi
07bea8f0 45675 fi
5dcf30a0 45676 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
45677 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
45678 else
45679 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 45680 fi
a848cd7e
SC
45681fi
45682if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 45683 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
45684 if test "$wxUSE_MEDIACTRL" = "yes"; then
45685 LDFLAGS="$LDFLAGS -framework QuickTime"
45686 fi
a848cd7e 45687fi
19b27e78
MW
45688if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
45689 LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
45690fi
a848cd7e 45691
a848cd7e
SC
45692LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
45693
a848cd7e
SC
45694if test "$wxUSE_GUI" = "yes"; then
45695
45696
8bce5cda
MW
45697 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
45698 dynamic erase event exec font image minimal mobile \
45699 mobile/wxedit mobile/styles propsize render \
9e39d889 45700 rotate shaped vscroll widgets"
a848cd7e
SC
45701
45702 if test "$wxUSE_MONOLITHIC" != "yes"; then
45703 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
45704 fi
0b78747f 45705 if test "$TOOLKIT" = "MSW"; then
8bce5cda
MW
45706 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
45707 if test "$wxUSE_UNIVERSAL" != "yes"; then
45708 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
45709 fi
45710 fi
45711 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
45712 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
0b78747f 45713 fi
a848cd7e
SC
45714else
45715 SAMPLES_SUBDIRS="console"
45716fi
45717
45718
48f625bc 45719if test "x$INTELCC" = "xyes" ; then
17a1ebd1
VZ
45720 CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
45721elif test "$GCC" = yes ; then
45722 CWARNINGS="-Wall -Wundef"
45723fi
45724
48f625bc 45725if test "x$INTELCXX" = "xyes" ; then
7f47faf4 45726 CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
17a1ebd1
VZ
45727elif test "$GXX" = yes ; then
45728 CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy"
6ebeb4c7 45729fi
a848cd7e 45730
a848cd7e 45731
5ff751d6
VZ
45732WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
45733WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
45734
45735
c92ad099 45736CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
bc6ee4ae 45737 -I\\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
c92ad099
VZ
45738 -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
45739 $CPPFLAGS `
5ff751d6 45740
8aeeb05c 45741C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
c92ad099 45742CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
9cbac6d1 45743CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $CXXWARNINGS $C_AND_CXX_FLAGS $CXXFLAGS `
5ff751d6
VZ
45744
45745WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
45746
a848cd7e 45747
95986553
DE
45748if test "x$MWCC" = "xyes"; then
45749
45750 CC="$CC -cwd source -I-"
45751 CXX="$CXX -cwd source -I-"
45752fi
45753
a848cd7e 45754
0c3c69fc 45755LIBS=`echo $LIBS`
a848cd7e
SC
45756EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
45757EXTRALIBS_XML="$EXPAT_LINK"
45758EXTRALIBS_HTML="$MSPACK_LINK"
45759EXTRALIBS_ODBC="$ODBC_LINK"
45760if test "$wxUSE_GUI" = "yes"; then
2b850ae1 45761 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
45762fi
45763if test "$wxUSE_OPENGL" = "yes"; then
45764 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
45765fi
45766
8aeeb05c 45767LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
a848cd7e 45768
5ff751d6 45769WXCONFIG_LIBS="$LIBS"
a848cd7e
SC
45770
45771if test "$wxUSE_REGEX" = "builtin" ; then
74802184 45772 wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
a848cd7e
SC
45773fi
45774if test "$wxUSE_EXPAT" = "builtin" ; then
74802184 45775 wxconfig_3rdparty="expat $wxconfig_3rdparty"
a848cd7e
SC
45776fi
45777if test "$wxUSE_ODBC" = "builtin" ; then
74802184 45778 wxconfig_3rdparty="odbc $wxconfig_3rdparty"
a848cd7e
SC
45779fi
45780if test "$wxUSE_LIBTIFF" = "builtin" ; then
74802184 45781 wxconfig_3rdparty="tiff $wxconfig_3rdparty"
a848cd7e
SC
45782fi
45783if test "$wxUSE_LIBJPEG" = "builtin" ; then
74802184 45784 wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
a848cd7e
SC
45785fi
45786if test "$wxUSE_LIBPNG" = "builtin" ; then
74802184 45787 wxconfig_3rdparty="png $wxconfig_3rdparty"
a848cd7e
SC
45788fi
45789if test "$wxUSE_ZLIB" = "builtin" ; then
74802184 45790 wxconfig_3rdparty="zlib $wxconfig_3rdparty"
a848cd7e
SC
45791fi
45792
45793for i in $wxconfig_3rdparty ; do
5ff751d6 45794 WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
a848cd7e
SC
45795done
45796
45797
45798if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
45799 WXUNIV=1
45800else
45801 WXUNIV=0
45802fi
45803
45804
45805
45806
45807
45808
45809
45810
45811
45812if test $wxUSE_MONOLITHIC = "yes" ; then
45813 MONOLITHIC=1
45814else
45815 MONOLITHIC=0
45816fi
45817
45818if test $wxUSE_PLUGINS = "yes" ; then
45819 USE_PLUGINS=1
45820else
45821 USE_PLUGINS=0
45822fi
45823
45824if test $wxUSE_ODBC != "no" ; then
45825 USE_ODBC=1
45826else
45827 USE_ODBC=0
45828fi
45829
16358932
VZ
45830if test "$wxUSE_DEBUGREPORT" = "yes" ; then
45831 USE_QA=1
45832else
45833 USE_QA=0
45834fi
45835
a848cd7e
SC
45836if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
45837 OFFICIAL_BUILD=1
45838else
45839 OFFICIAL_BUILD=0
45840fi
45841
45842
45843
45844
45845
45846
45847
45848
45849
45850
45851
45852
45853
45854
45855
45856
45857
45858
45859
ceec2216 45860
d1c38808 45861
3565d135 45862
2b850ae1 45863
a848cd7e
SC
45864
45865
45866TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
45867
45868
45869
45870
45871
45872
45873
45874
4d4ff94c
VZ
45875case "$TOOLKIT" in
45876 GTK)
c2e9ada4 45877 TOOLKIT_DESC="GTK+"
4d4ff94c 45878 if test "$WXGTK20" = 1; then
c2e9ada4
VZ
45879 TOOLKIT_DESC="$TOOLKIT_DESC 2"
45880 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
45881 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomeprint";
45882 fi
45883 if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
45884 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomevfs"
45885 fi
45886 if test "$wxUSE_LIBHILDON" = "yes"; then
45887 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
45888 fi
45889
45890 if test "$TOOLKIT_EXTRA" != ""; then
45891 TOOLKIT_DESC="$TOOLKIT_DESC with support for `echo $TOOLKIT_EXTRA | tr -s ' '`"
45892 fi
4d4ff94c 45893 fi
9a8f0513 45894 ;;
4d4ff94c 45895
c2e9ada4
VZ
45896 ?*)
45897 TOOLKIT_DESC=$TOOLKIT_LOWERCASE
45898 ;;
45899
4d4ff94c 45900 *)
c2e9ada4 45901 TOOLKIT_DESC="base only"
9a8f0513 45902 ;;
4d4ff94c 45903esac
a848cd7e 45904
fb00f58d
JS
45905if test "$wxUSE_WINE" = "yes"; then
45906 BAKEFILE_FORCE_PLATFORM=win32
45907fi
45908
7afc46ab 45909if test "$wxUSE_MAC" = 1 ; then
95768535
MW
45910 if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then
45911 if test "x$wxUSE_UNIVERSAL_BINARY" == xyes; then
45912 OSX_UNIV_OPTS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk"
45913 else
45914 OSX_UNIV_OPTS=${wxUSE_UNIVERSAL_BINARY:+"-isysroot '$wxUSE_UNIVERSAL_BINARY'"}
45915 fi
45916 OSX_UNIV_OPTS="$OSX_UNIV_OPTS -arch ppc -arch i386"
45917 CXXFLAGS="$OSX_UNIV_OPTS $CXXFLAGS"
45918 CFLAGS="$OSX_UNIV_OPTS $CFLAGS"
45919 LDFLAGS="$OSX_UNIV_OPTS $LDFLAGS"
7afc46ab
KO
45920 bk_use_pch=no
45921 fi
45922 # TODO: where do we add "-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk" for libtool (static builds only)?
45923 # The makefile currently uses AR and RANLIB, which libtool apparently supercedes.
7afc46ab
KO
45924fi
45925
9a8f0513 45926
1e9e8aba
DE
45927
45928
a848cd7e 45929 if test "x$BAKEFILE_HOST" = "x"; then
f10e38c4
VZ
45930 if test "x${host}" = "x" ; then
45931 { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
45932echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
45933 { (exit 1); exit 1; }; }
45934 fi
45935
a848cd7e
SC
45936 BAKEFILE_HOST="${host}"
45937 fi
45938
45939 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
45940
45941 if test -n "$ac_tool_prefix"; then
45942 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
45943set dummy ${ac_tool_prefix}ranlib; ac_word=$2
45944echo "$as_me:$LINENO: checking for $ac_word" >&5
45945echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45946if test "${ac_cv_prog_RANLIB+set}" = set; then
45947 echo $ECHO_N "(cached) $ECHO_C" >&6
45948else
45949 if test -n "$RANLIB"; then
45950 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
45951else
45952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45953for as_dir in $PATH
45954do
45955 IFS=$as_save_IFS
45956 test -z "$as_dir" && as_dir=.
45957 for ac_exec_ext in '' $ac_executable_extensions; do
45958 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45959 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
45960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45961 break 2
45962 fi
45963done
45964done
45965
45966fi
45967fi
45968RANLIB=$ac_cv_prog_RANLIB
45969if test -n "$RANLIB"; then
45970 echo "$as_me:$LINENO: result: $RANLIB" >&5
45971echo "${ECHO_T}$RANLIB" >&6
45972else
45973 echo "$as_me:$LINENO: result: no" >&5
45974echo "${ECHO_T}no" >&6
45975fi
45976
45977fi
45978if test -z "$ac_cv_prog_RANLIB"; then
45979 ac_ct_RANLIB=$RANLIB
45980 # Extract the first word of "ranlib", so it can be a program name with args.
45981set dummy ranlib; ac_word=$2
45982echo "$as_me:$LINENO: checking for $ac_word" >&5
45983echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45984if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
45985 echo $ECHO_N "(cached) $ECHO_C" >&6
45986else
45987 if test -n "$ac_ct_RANLIB"; then
45988 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
45989else
45990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45991for as_dir in $PATH
45992do
45993 IFS=$as_save_IFS
45994 test -z "$as_dir" && as_dir=.
45995 for ac_exec_ext in '' $ac_executable_extensions; do
45996 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45997 ac_cv_prog_ac_ct_RANLIB="ranlib"
45998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45999 break 2
46000 fi
46001done
46002done
46003
46004 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
46005fi
46006fi
46007ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
46008if test -n "$ac_ct_RANLIB"; then
46009 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
46010echo "${ECHO_T}$ac_ct_RANLIB" >&6
46011else
46012 echo "$as_me:$LINENO: result: no" >&5
46013echo "${ECHO_T}no" >&6
46014fi
46015
46016 RANLIB=$ac_ct_RANLIB
46017else
46018 RANLIB="$ac_cv_prog_RANLIB"
46019fi
46020
46021 # Find a good install program. We prefer a C program (faster),
46022# so one script is as good as another. But avoid the broken or
46023# incompatible versions:
46024# SysV /etc/install, /usr/sbin/install
46025# SunOS /usr/etc/install
46026# IRIX /sbin/install
46027# AIX /bin/install
46028# AmigaOS /C/install, which installs bootblocks on floppy discs
46029# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
46030# AFS /usr/afsws/bin/install, which mishandles nonexistent args
46031# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 46032# OS/2's system install, which has a completely different semantic
a848cd7e
SC
46033# ./install, which can be erroneously created by make from ./install.sh.
46034echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
46035echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
46036if test -z "$INSTALL"; then
46037if test "${ac_cv_path_install+set}" = set; then
46038 echo $ECHO_N "(cached) $ECHO_C" >&6
46039else
46040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46041for as_dir in $PATH
46042do
46043 IFS=$as_save_IFS
46044 test -z "$as_dir" && as_dir=.
46045 # Account for people who put trailing slashes in PATH elements.
46046case $as_dir/ in
46047 ./ | .// | /cC/* | \
46048 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 46049 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
46050 /usr/ucb/* ) ;;
46051 *)
46052 # OSF1 and SCO ODT 3.0 have their own names for install.
46053 # Don't use installbsd from OSF since it installs stuff as root
46054 # by default.
46055 for ac_prog in ginstall scoinst install; do
46056 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
46057 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
46058 if test $ac_prog = install &&
46059 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
46060 # AIX install. It has an incompatible calling convention.
46061 :
46062 elif test $ac_prog = install &&
46063 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
46064 # program-specific install script used by HP pwplus--don't use.
46065 :
46066 else
46067 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
46068 break 3
46069 fi
46070 fi
a848cd7e
SC
46071 done
46072 done
46073 ;;
46074esac
46075done
46076
46077
46078fi
46079 if test "${ac_cv_path_install+set}" = set; then
46080 INSTALL=$ac_cv_path_install
46081 else
46082 # As a last resort, use the slow shell script. We don't cache a
46083 # path for INSTALL within a source directory, because that will
46084 # break other packages using the cache if that directory is
46085 # removed, or if the path is relative.
46086 INSTALL=$ac_install_sh
46087 fi
46088fi
46089echo "$as_me:$LINENO: result: $INSTALL" >&5
46090echo "${ECHO_T}$INSTALL" >&6
46091
46092# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
46093# It thinks the first close brace ends the variable substitution.
46094test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
46095
46096test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
46097
46098test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
46099
46100 echo "$as_me:$LINENO: checking whether ln -s works" >&5
46101echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
46102LN_S=$as_ln_s
46103if test "$LN_S" = "ln -s"; then
46104 echo "$as_me:$LINENO: result: yes" >&5
46105echo "${ECHO_T}yes" >&6
46106else
46107 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
46108echo "${ECHO_T}no, using $LN_S" >&6
46109fi
46110
46111
46112 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
46113echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 46114set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
46115if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
46116 echo $ECHO_N "(cached) $ECHO_C" >&6
46117else
46118 cat >conftest.make <<\_ACEOF
46119all:
46120 @echo 'ac_maketemp="$(MAKE)"'
46121_ACEOF
46122# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
46123eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
46124if test -n "$ac_maketemp"; then
46125 eval ac_cv_prog_make_${ac_make}_set=yes
46126else
46127 eval ac_cv_prog_make_${ac_make}_set=no
46128fi
46129rm -f conftest.make
46130fi
46131if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
46132 echo "$as_me:$LINENO: result: yes" >&5
46133echo "${ECHO_T}yes" >&6
46134 SET_MAKE=
46135else
46136 echo "$as_me:$LINENO: result: no" >&5
46137echo "${ECHO_T}no" >&6
46138 SET_MAKE="MAKE=${MAKE-make}"
46139fi
46140
46141
46142
46143 if test -n "$ac_tool_prefix"; then
46144 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
46145set dummy ${ac_tool_prefix}ar; 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_AR+set}" = set; then
46149 echo $ECHO_N "(cached) $ECHO_C" >&6
46150else
46151 if test -n "$AR"; then
46152 ac_cv_prog_AR="$AR" # 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_AR="${ac_tool_prefix}ar"
46162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46163 break 2
46164 fi
46165done
46166done
46167
46168fi
46169fi
46170AR=$ac_cv_prog_AR
46171if test -n "$AR"; then
46172 echo "$as_me:$LINENO: result: $AR" >&5
46173echo "${ECHO_T}$AR" >&6
46174else
46175 echo "$as_me:$LINENO: result: no" >&5
46176echo "${ECHO_T}no" >&6
46177fi
46178
46179fi
46180if test -z "$ac_cv_prog_AR"; then
46181 ac_ct_AR=$AR
46182 # Extract the first word of "ar", so it can be a program name with args.
46183set dummy ar; 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_AR+set}" = set; then
46187 echo $ECHO_N "(cached) $ECHO_C" >&6
46188else
46189 if test -n "$ac_ct_AR"; then
46190 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # 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_AR="ar"
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_AR" && ac_cv_prog_ac_ct_AR="ar"
46207fi
46208fi
46209ac_ct_AR=$ac_cv_prog_ac_ct_AR
46210if test -n "$ac_ct_AR"; then
46211 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
46212echo "${ECHO_T}$ac_ct_AR" >&6
46213else
46214 echo "$as_me:$LINENO: result: no" >&5
46215echo "${ECHO_T}no" >&6
46216fi
46217
46218 AR=$ac_ct_AR
46219else
46220 AR="$ac_cv_prog_AR"
46221fi
46222
46223 if test -n "$ac_tool_prefix"; then
46224 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
46225set dummy ${ac_tool_prefix}strip; 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_STRIP+set}" = set; then
46229 echo $ECHO_N "(cached) $ECHO_C" >&6
46230else
46231 if test -n "$STRIP"; then
46232 ac_cv_prog_STRIP="$STRIP" # 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_STRIP="${ac_tool_prefix}strip"
46242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46243 break 2
46244 fi
46245done
46246done
46247
46248fi
46249fi
46250STRIP=$ac_cv_prog_STRIP
46251if test -n "$STRIP"; then
46252 echo "$as_me:$LINENO: result: $STRIP" >&5
46253echo "${ECHO_T}$STRIP" >&6
46254else
46255 echo "$as_me:$LINENO: result: no" >&5
46256echo "${ECHO_T}no" >&6
46257fi
46258
46259fi
46260if test -z "$ac_cv_prog_STRIP"; then
46261 ac_ct_STRIP=$STRIP
46262 # Extract the first word of "strip", so it can be a program name with args.
46263set dummy strip; 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_STRIP+set}" = set; then
46267 echo $ECHO_N "(cached) $ECHO_C" >&6
46268else
46269 if test -n "$ac_ct_STRIP"; then
46270 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # 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_STRIP="strip"
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_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
46287fi
46288fi
46289ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
46290if test -n "$ac_ct_STRIP"; then
46291 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
46292echo "${ECHO_T}$ac_ct_STRIP" >&6
46293else
46294 echo "$as_me:$LINENO: result: no" >&5
46295echo "${ECHO_T}no" >&6
46296fi
46297
46298 STRIP=$ac_ct_STRIP
46299else
46300 STRIP="$ac_cv_prog_STRIP"
46301fi
46302
46303 if test -n "$ac_tool_prefix"; then
46304 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
46305set dummy ${ac_tool_prefix}nm; ac_word=$2
46306echo "$as_me:$LINENO: checking for $ac_word" >&5
46307echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46308if test "${ac_cv_prog_NM+set}" = set; then
46309 echo $ECHO_N "(cached) $ECHO_C" >&6
46310else
46311 if test -n "$NM"; then
46312 ac_cv_prog_NM="$NM" # Let the user override the test.
46313else
46314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46315for as_dir in $PATH
46316do
46317 IFS=$as_save_IFS
46318 test -z "$as_dir" && as_dir=.
46319 for ac_exec_ext in '' $ac_executable_extensions; do
46320 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46321 ac_cv_prog_NM="${ac_tool_prefix}nm"
46322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46323 break 2
46324 fi
46325done
46326done
46327
46328fi
46329fi
46330NM=$ac_cv_prog_NM
46331if test -n "$NM"; then
46332 echo "$as_me:$LINENO: result: $NM" >&5
46333echo "${ECHO_T}$NM" >&6
46334else
46335 echo "$as_me:$LINENO: result: no" >&5
46336echo "${ECHO_T}no" >&6
46337fi
46338
46339fi
46340if test -z "$ac_cv_prog_NM"; then
46341 ac_ct_NM=$NM
46342 # Extract the first word of "nm", so it can be a program name with args.
46343set dummy nm; ac_word=$2
46344echo "$as_me:$LINENO: checking for $ac_word" >&5
46345echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46346if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
46347 echo $ECHO_N "(cached) $ECHO_C" >&6
46348else
46349 if test -n "$ac_ct_NM"; then
46350 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
46351else
46352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46353for as_dir in $PATH
46354do
46355 IFS=$as_save_IFS
46356 test -z "$as_dir" && as_dir=.
46357 for ac_exec_ext in '' $ac_executable_extensions; do
46358 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46359 ac_cv_prog_ac_ct_NM="nm"
46360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46361 break 2
46362 fi
46363done
46364done
46365
46366 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
46367fi
46368fi
46369ac_ct_NM=$ac_cv_prog_ac_ct_NM
46370if test -n "$ac_ct_NM"; then
46371 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
46372echo "${ECHO_T}$ac_ct_NM" >&6
46373else
46374 echo "$as_me:$LINENO: result: no" >&5
46375echo "${ECHO_T}no" >&6
46376fi
46377
46378 NM=$ac_ct_NM
46379else
46380 NM="$ac_cv_prog_NM"
46381fi
46382
46383
46384 case ${BAKEFILE_HOST} in
46385 *-hp-hpux* )
1e9e8aba 46386 INSTALL_DIR="mkdir -p"
a848cd7e
SC
46387 ;;
46388 *) INSTALL_DIR="$INSTALL -d"
46389 ;;
46390 esac
46391
46392
46393 LDFLAGS_GUI=
46394 case ${BAKEFILE_HOST} in
46395 *-*-cygwin* | *-*-mingw32* )
46396 LDFLAGS_GUI="-mwindows"
46397 esac
46398
46399
46400 fi
46401
46402 echo "$as_me:$LINENO: checking if make is GNU make" >&5
46403echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
46404if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
46405 echo $ECHO_N "(cached) $ECHO_C" >&6
46406else
46407
46408 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
46409 egrep -s GNU > /dev/null); then
46410 bakefile_cv_prog_makeisgnu="yes"
46411 else
46412 bakefile_cv_prog_makeisgnu="no"
46413 fi
46414
46415fi
46416echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
46417echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
46418
46419 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
46420 IF_GNU_MAKE=""
46421 else
46422 IF_GNU_MAKE="#"
46423 fi
46424
46425
46426
46427 PLATFORM_UNIX=0
46428 PLATFORM_WIN32=0
46429 PLATFORM_MSDOS=0
46430 PLATFORM_MAC=0
1e9e8aba 46431 PLATFORM_MACOS=0
a848cd7e
SC
46432 PLATFORM_MACOSX=0
46433 PLATFORM_OS2=0
1e9e8aba 46434 PLATFORM_BEOS=0
a848cd7e
SC
46435
46436 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
46437 case "${BAKEFILE_HOST}" in
810b94f0 46438 *-*-mingw32* )
a848cd7e
SC
46439 PLATFORM_WIN32=1
46440 ;;
46441 *-pc-msdosdjgpp )
46442 PLATFORM_MSDOS=1
46443 ;;
46444 *-pc-os2_emx | *-pc-os2-emx )
46445 PLATFORM_OS2=1
46446 ;;
47bd5406 46447 *-*-darwin* )
a848cd7e
SC
46448 PLATFORM_MAC=1
46449 PLATFORM_MACOSX=1
46450 ;;
1e9e8aba
DE
46451 *-*-beos* )
46452 PLATFORM_BEOS=1
46453 ;;
46454 powerpc-apple-macos* )
46455 PLATFORM_MAC=1
46456 PLATFORM_MACOS=1
46457 ;;
a848cd7e
SC
46458 * )
46459 PLATFORM_UNIX=1
46460 ;;
46461 esac
46462 else
46463 case "$BAKEFILE_FORCE_PLATFORM" in
46464 win32 )
46465 PLATFORM_WIN32=1
46466 ;;
46467 msdos )
46468 PLATFORM_MSDOS=1
46469 ;;
46470 os2 )
46471 PLATFORM_OS2=1
46472 ;;
46473 darwin )
46474 PLATFORM_MAC=1
46475 PLATFORM_MACOSX=1
46476 ;;
46477 unix )
46478 PLATFORM_UNIX=1
46479 ;;
1e9e8aba
DE
46480 beos )
46481 PLATFORM_BEOS=1
46482 ;;
a848cd7e
SC
46483 * )
46484 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
46485echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
46486 { (exit 1); exit 1; }; }
46487 ;;
46488 esac
46489 fi
46490
46491
46492
46493
46494
46495
46496
46497
46498
1e9e8aba
DE
46499
46500
a848cd7e
SC
46501 # Check whether --enable-omf or --disable-omf was given.
46502if test "${enable_omf+set}" = set; then
46503 enableval="$enable_omf"
46504 bk_os2_use_omf="$enableval"
46505fi;
46506
46507 case "${BAKEFILE_HOST}" in
46508 *-*-darwin* )
47bd5406
VZ
46509 if test "x$GCC" = "xyes"; then
46510 CFLAGS="$CFLAGS -fno-common"
46511 CXXFLAGS="$CXXFLAGS -fno-common"
46512 fi
46513 if test "x$XLCC" = "xyes"; then
46514 CFLAGS="$CFLAGS -qnocommon"
46515 CXXFLAGS="$CXXFLAGS -qnocommon"
46516 fi
a848cd7e
SC
46517 ;;
46518
46519 *-pc-os2_emx | *-pc-os2-emx )
46520 if test "x$bk_os2_use_omf" = "xyes" ; then
46521 AR=emxomfar
46522 RANLIB=:
46523 LDFLAGS="-Zomf $LDFLAGS"
46524 CFLAGS="-Zomf $CFLAGS"
46525 CXXFLAGS="-Zomf $CXXFLAGS"
46526 OS2_LIBEXT="lib"
46527 else
46528 OS2_LIBEXT="a"
46529 fi
46530 ;;
1e9e8aba
DE
46531
46532 i*86-*-beos* )
46533 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
46534 ;;
a848cd7e
SC
46535 esac
46536
46537
46538 SO_SUFFIX="so"
46539 SO_SUFFIX_MODULE="so"
46540 EXEEXT=""
46541 LIBPREFIX="lib"
46542 LIBEXT=".a"
46543 DLLPREFIX="lib"
46544 DLLPREFIX_MODULE=""
46545 DLLIMP_SUFFIX=""
810b94f0 46546 dlldir="$libdir"
a848cd7e
SC
46547
46548 case "${BAKEFILE_HOST}" in
46549 *-hp-hpux* )
46550 SO_SUFFIX="sl"
46551 SO_SUFFIX_MODULE="sl"
46552 ;;
46553 *-*-aix* )
46554 SO_SUFFIX="a"
46555 SO_SUFFIX_MODULE="a"
46556 ;;
810b94f0
MW
46557 *-*-cygwin* )
46558 SO_SUFFIX="dll"
46559 SO_SUFFIX_MODULE="dll"
46560 DLLIMP_SUFFIX="dll.a"
46561 EXEEXT=".exe"
46562 DLLPREFIX="cyg"
46563 dlldir="$bindir"
46564 ;;
46565 *-*-mingw32* )
a848cd7e
SC
46566 SO_SUFFIX="dll"
46567 SO_SUFFIX_MODULE="dll"
46568 DLLIMP_SUFFIX="dll.a"
46569 EXEEXT=".exe"
46570 DLLPREFIX=""
810b94f0 46571 dlldir="$bindir"
a848cd7e
SC
46572 ;;
46573 *-pc-msdosdjgpp )
46574 EXEEXT=".exe"
46575 DLLPREFIX=""
810b94f0 46576 dlldir="$bindir"
a848cd7e
SC
46577 ;;
46578 *-pc-os2_emx | *-pc-os2-emx )
46579 SO_SUFFIX="dll"
46580 SO_SUFFIX_MODULE="dll"
46581 DLLIMP_SUFFIX=$OS2_LIBEXT
46582 EXEEXT=".exe"
46583 DLLPREFIX=""
46584 LIBPREFIX=""
46585 LIBEXT=".$OS2_LIBEXT"
810b94f0 46586 dlldir="$bindir"
a848cd7e 46587 ;;
47bd5406 46588 *-*-darwin* )
a848cd7e
SC
46589 SO_SUFFIX="dylib"
46590 SO_SUFFIX_MODULE="bundle"
46591 ;;
46592 esac
46593
46594 if test "x$DLLIMP_SUFFIX" = "x" ; then
46595 DLLIMP_SUFFIX="$SO_SUFFIX"
46596 fi
46597
46598
46599
46600
46601
46602
46603
46604
46605
46606
46607
810b94f0 46608
1e9e8aba
DE
46609 PIC_FLAG=""
46610 if test "x$GCC" = "xyes"; then
a848cd7e
SC
46611 PIC_FLAG="-fPIC"
46612 fi
46613
1e9e8aba
DE
46614 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
46615 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
810b94f0 46616 WINDOWS_IMPLIB=0
1e9e8aba 46617
a848cd7e
SC
46618 case "${BAKEFILE_HOST}" in
46619 *-hp-hpux* )
1e9e8aba 46620 if test "x$GCC" != "xyes"; then
a848cd7e
SC
46621 LDFLAGS="$LDFLAGS -L/usr/lib"
46622
46623 SHARED_LD_CC="${CC} -b -o"
46624 SHARED_LD_CXX="${CXX} -b -o"
46625 PIC_FLAG="+Z"
46626 fi
46627 ;;
46628
46629 *-*-linux* )
46630 if test "x$GCC" != "xyes"; then
46631 echo "$as_me:$LINENO: checking for Intel compiler" >&5
46632echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
46633if test "${bakefile_cv_prog_icc+set}" = set; then
46634 echo $ECHO_N "(cached) $ECHO_C" >&6
46635else
46636
46637 cat >conftest.$ac_ext <<_ACEOF
46638/* confdefs.h. */
46639_ACEOF
46640cat confdefs.h >>conftest.$ac_ext
46641cat >>conftest.$ac_ext <<_ACEOF
46642/* end confdefs.h. */
46643
46644int
46645main ()
46646{
46647
46648 #ifndef __INTEL_COMPILER
e5efa97e 46649 This is not ICC
a848cd7e
SC
46650 #endif
46651
46652 ;
46653 return 0;
46654}
46655_ACEOF
46656rm -f conftest.$ac_objext
46657if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 46658 (eval $ac_compile) 2>conftest.er1
a848cd7e 46659 ac_status=$?
ac1cb8d3
VS
46660 grep -v '^ *+' conftest.er1 >conftest.err
46661 rm -f conftest.er1
46662 cat conftest.err >&5
a848cd7e
SC
46663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46664 (exit $ac_status); } &&
c9a66001 46665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
46666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46667 (eval $ac_try) 2>&5
46668 ac_status=$?
46669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46670 (exit $ac_status); }; } &&
46671 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
46672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46673 (eval $ac_try) 2>&5
46674 ac_status=$?
46675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46676 (exit $ac_status); }; }; then
46677 bakefile_cv_prog_icc=yes
46678else
46679 echo "$as_me: failed program was:" >&5
46680sed 's/^/| /' conftest.$ac_ext >&5
46681
46682bakefile_cv_prog_icc=no
46683
46684fi
ac1cb8d3 46685rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
46686
46687fi
46688echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
46689echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
46690 if test "$bakefile_cv_prog_icc" = "yes"; then
46691 PIC_FLAG="-KPIC"
46692 fi
46693 fi
46694 ;;
46695
46696 *-*-solaris2* )
46697 if test "x$GCC" != xyes ; then
46698 SHARED_LD_CC="${CC} -G -o"
46699 SHARED_LD_CXX="${CXX} -G -o"
46700 PIC_FLAG="-KPIC"
46701 fi
46702 ;;
46703
46704 *-*-darwin* )
46705
473276a9
VS
46706D='$'
46707cat <<EOF >shared-ld-sh
a848cd7e
SC
46708#!/bin/sh
46709#-----------------------------------------------------------------------------
46710#-- Name: distrib/mac/shared-ld-sh
46711#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
46712#-- Author: Gilles Depeyrot
46713#-- Copyright: (c) 2002 Gilles Depeyrot
46714#-- Licence: any use permitted
46715#-----------------------------------------------------------------------------
46716
46717verbose=0
46718args=""
46719objects=""
46720linking_flag="-dynamiclib"
810b94f0 46721ldargs="-r -keep_private_externs -nostdlib"
a848cd7e 46722
473276a9
VS
46723while test ${D}# -gt 0; do
46724 case ${D}1 in
a848cd7e
SC
46725
46726 -v)
46727 verbose=1
46728 ;;
46729
46730 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
46731 # collect these options and values
473276a9 46732 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
46733 shift
46734 ;;
46735
810b94f0
MW
46736 -s|-Wl,*)
46737 # collect these load args
46738 ldargs="${D}{ldargs} ${D}1"
2113bc77 46739 ;;
810b94f0
MW
46740
46741 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
a848cd7e 46742 # collect these options
473276a9 46743 args="${D}{args} ${D}1"
a848cd7e
SC
46744 ;;
46745
46746 -dynamiclib|-bundle)
473276a9 46747 linking_flag="${D}1"
a848cd7e
SC
46748 ;;
46749
46750 -*)
473276a9 46751 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
46752 exit 1
46753 ;;
46754
46755 *.o | *.a | *.dylib)
46756 # collect object files
473276a9 46757 objects="${D}{objects} ${D}1"
a848cd7e
SC
46758 ;;
46759
46760 *)
473276a9 46761 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
46762 exit 1
46763 ;;
46764
46765 esac
46766 shift
46767done
46768
810b94f0
MW
46769status=0
46770
a848cd7e
SC
46771#
46772# Link one module containing all the others
46773#
473276a9 46774if test ${D}{verbose} = 1; then
810b94f0 46775 echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
a848cd7e 46776fi
810b94f0 46777c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
473276a9 46778status=${D}?
a848cd7e
SC
46779
46780#
810b94f0
MW
46781# Link the shared library from the single module created, but only if the
46782# previous command didn't fail:
a848cd7e 46783#
810b94f0
MW
46784if test ${D}{status} = 0; then
46785 if test ${D}{verbose} = 1; then
46786 echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
46787 fi
46788 c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
46789 status=${D}?
a848cd7e
SC
46790fi
46791
46792#
46793# Remove intermediate module
46794#
473276a9 46795rm -f master.${D}${D}.o
a848cd7e 46796
810b94f0 46797exit ${D}status
a848cd7e 46798EOF
473276a9 46799
583d6b4b
VZ
46800 chmod +x shared-ld-sh
46801
46802 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
46803 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
46804
46805
46806 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
46807echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
46808if test "${bakefile_cv_gcc31+set}" = set; then
46809 echo $ECHO_N "(cached) $ECHO_C" >&6
46810else
46811
46812 cat >conftest.$ac_ext <<_ACEOF
46813/* confdefs.h. */
46814_ACEOF
46815cat confdefs.h >>conftest.$ac_ext
46816cat >>conftest.$ac_ext <<_ACEOF
46817/* end confdefs.h. */
46818
46819int
46820main ()
46821{
46822
46823 #if (__GNUC__ < 3) || \
46824 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
e5efa97e 46825 This is old gcc
583d6b4b 46826 #endif
a848cd7e 46827
583d6b4b
VZ
46828 ;
46829 return 0;
46830}
46831_ACEOF
46832rm -f conftest.$ac_objext
46833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46834 (eval $ac_compile) 2>conftest.er1
46835 ac_status=$?
46836 grep -v '^ *+' conftest.er1 >conftest.err
46837 rm -f conftest.er1
46838 cat conftest.err >&5
46839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46840 (exit $ac_status); } &&
c9a66001 46841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
583d6b4b
VZ
46842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46843 (eval $ac_try) 2>&5
46844 ac_status=$?
46845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46846 (exit $ac_status); }; } &&
46847 { ac_try='test -s conftest.$ac_objext'
46848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46849 (eval $ac_try) 2>&5
46850 ac_status=$?
46851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46852 (exit $ac_status); }; }; then
46853
46854 bakefile_cv_gcc31=yes
46855
46856else
46857 echo "$as_me: failed program was:" >&5
46858sed 's/^/| /' conftest.$ac_ext >&5
46859
46860
46861 bakefile_cv_gcc31=no
46862
46863
46864fi
46865rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46866
46867fi
46868echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
46869echo "${ECHO_T}$bakefile_cv_gcc31" >&6
46870 if test "$bakefile_cv_gcc31" = "no"; then
a848cd7e 46871 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
a848cd7e 46872 SHARED_LD_CXX="$SHARED_LD_CC"
a848cd7e
SC
46873 else
46874 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e 46875 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e
SC
46876 fi
46877
47bd5406
VZ
46878 if test "x$GCC" == "xyes"; then
46879 PIC_FLAG="-dynamic -fPIC"
46880 fi
46881 if test "x$XLCC" = "xyes"; then
46882 PIC_FLAG="-dynamic -DPIC"
46883 fi
a848cd7e
SC
46884 ;;
46885
46886 *-*-aix* )
f6b50c59 46887 if test "x$GCC" = "xyes"; then
583d6b4b 46888 PIC_FLAG=""
f6b50c59 46889
583d6b4b
VZ
46890 case "${BAKEFILE_HOST}" in
46891 *-*-aix5* )
46892 LD_EXPFULL="-Wl,-bexpfull"
46893 ;;
46894 esac
f6b50c59 46895
583d6b4b
VZ
46896 SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
46897 SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
46898 else
46899 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
a848cd7e
SC
46900set dummy makeC++SharedLib; ac_word=$2
46901echo "$as_me:$LINENO: checking for $ac_word" >&5
46902echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46903if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
46904 echo $ECHO_N "(cached) $ECHO_C" >&6
46905else
46906 if test -n "$AIX_CXX_LD"; then
46907 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
46908else
46909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46910for as_dir in $PATH
46911do
46912 IFS=$as_save_IFS
46913 test -z "$as_dir" && as_dir=.
46914 for ac_exec_ext in '' $ac_executable_extensions; do
46915 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46916 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
46917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46918 break 2
46919 fi
46920done
46921done
46922
46923 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
46924fi
46925fi
46926AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
46927if test -n "$AIX_CXX_LD"; then
46928 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
46929echo "${ECHO_T}$AIX_CXX_LD" >&6
46930else
46931 echo "$as_me:$LINENO: result: no" >&5
46932echo "${ECHO_T}no" >&6
46933fi
46934
f6b50c59 46935 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
a848cd7e
SC
46936 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
46937 fi
46938 ;;
46939
46940 *-*-beos* )
1e9e8aba
DE
46941 SHARED_LD_CC="${LD} -nostart -o"
46942 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
46943 ;;
46944
46945 *-*-irix* )
46946 if test "x$GCC" != "xyes"; then
46947 PIC_FLAG="-KPIC"
46948 fi
46949 ;;
46950
46951 *-*-cygwin* | *-*-mingw32* )
46952 PIC_FLAG=""
1e9e8aba
DE
46953 SHARED_LD_CC="\$(CC) -shared -o"
46954 SHARED_LD_CXX="\$(CXX) -shared -o"
810b94f0 46955 WINDOWS_IMPLIB=1
a848cd7e
SC
46956 ;;
46957
46958 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
46959 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
46960 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 46961 PIC_FLAG=""
473276a9
VS
46962
46963D='$'
46964cat <<EOF >dllar.sh
46965#!/bin/sh
46966#
46967# dllar - a tool to build both a .dll and an .a file
46968# from a set of object (.o) files for EMX/OS2.
46969#
46970# Written by Andrew Zabolotny, bit@freya.etu.ru
46971# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
46972#
46973# This script will accept a set of files on the command line.
46974# All the public symbols from the .o files will be exported into
46975# a .DEF file, then linker will be run (through gcc) against them to
46976# build a shared library consisting of all given .o files. All libraries
46977# (.a) will be first decompressed into component .o files then act as
46978# described above. You can optionally give a description (-d "description")
46979# which will be put into .DLL. To see the list of accepted options (as well
46980# as command-line format) simply run this program without options. The .DLL
46981# is built to be imported by name (there is no guarantee that new versions
46982# of the library you build will have same ordinals for same symbols).
46983#
46984# dllar is free software; you can redistribute it and/or modify
46985# it under the terms of the GNU General Public License as published by
46986# the Free Software Foundation; either version 2, or (at your option)
46987# any later version.
46988#
46989# dllar is distributed in the hope that it will be useful,
46990# but WITHOUT ANY WARRANTY; without even the implied warranty of
46991# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
46992# GNU General Public License for more details.
46993#
46994# You should have received a copy of the GNU General Public License
46995# along with dllar; see the file COPYING. If not, write to the Free
46996# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
46997# 02111-1307, USA.
46998
46999# To successfuly run this program you will need:
47000# - Current drive should have LFN support (HPFS, ext2, network, etc)
47001# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
47002# - gcc
47003# (used to build the .dll)
47004# - emxexp
47005# (used to create .def file from .o files)
47006# - emximp
47007# (used to create .a file from .def file)
47008# - GNU text utilites (cat, sort, uniq)
47009# used to process emxexp output
47010# - GNU file utilities (mv, rm)
47011# - GNU sed
47012# - lxlite (optional, see flag below)
47013# (used for general .dll cleanup)
47014#
47015
47016flag_USE_LXLITE=1;
47017
47018#
47019# helper functions
47020# basnam, variant of basename, which does _not_ remove the path, _iff_
47021# second argument (suffix to remove) is given
47022basnam(){
47023 case ${D}# in
47024 1)
1e9e8aba 47025 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
47026 ;;
47027 2)
47028 echo ${D}1 | sed 's/'${D}2'${D}//'
47029 ;;
47030 *)
47031 echo "error in basnam ${D}*"
47032 exit 8
47033 ;;
47034 esac
47035}
47036
47037# Cleanup temporary files and output
47038CleanUp() {
47039 cd ${D}curDir
47040 for i in ${D}inputFiles ; do
47041 case ${D}i in
47042 *!)
47043 rm -rf \`basnam ${D}i !\`
47044 ;;
47045 *)
47046 ;;
47047 esac
47048 done
47049
47050 # Kill result in case of failure as there is just to many stupid make/nmake
47051 # things out there which doesn't do this.
1e9e8aba 47052 if [ ${D}# -eq 0 ]; then
473276a9
VS
47053 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
47054 fi
47055}
47056
47057# Print usage and exit script with rc=1.
47058PrintHelp() {
b1d22ded
DE
47059 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
47060 echo ' [-name-mangler-script script.sh]'
47061 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
47062 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
47063 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 47064 echo ' [*.o] [*.a]'
473276a9
VS
47065 echo '*> "output_file" should have no extension.'
47066 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
47067 echo ' The import library name is derived from this and is set to "name".a,'
47068 echo ' unless overridden by -import'
47069 echo '*> "importlib_name" should have no extension.'
47070 echo ' If it has the .o, or .a extension, it is automatically removed.'
47071 echo ' This name is used as the import library name and may be longer and'
47072 echo ' more descriptive than the DLL name which has to follow the old '
47073 echo ' 8.3 convention of FAT.'
b1d22ded
DE
47074 echo '*> "script.sh may be given to override the output_file name by a'
47075 echo ' different name. It is mainly useful if the regular make process'
47076 echo ' of some package does not take into account OS/2 restriction of'
47077 echo ' DLL name lengths. It takes the importlib name as input and is'
47078 echo ' supposed to procude a shorter name as output. The script should'
47079 echo ' expect to get importlib_name without extension and should produce'
47080 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
47081 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
47082 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
47083 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
47084 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
47085 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
47086 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
47087 echo ' If the last character of a symbol is "*", all symbols beginning'
47088 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 47089 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 47090 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 47091 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 47092 echo ' C runtime DLLs.'
b1d22ded 47093 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
47094 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
47095 echo ' unchanged to GCC at the end of command line.'
47096 echo '*> If you create a DLL from a library and you do not specify -o,'
47097 echo ' the basename for DLL and import library will be set to library name,'
47098 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
47099 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
47100 echo ' library will be renamed into gcc_s.a.'
47101 echo '--------'
47102 echo 'Example:'
47103 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
47104 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
47105 CleanUp
47106 exit 1
47107}
47108
47109# Execute a command.
47110# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
47111# @Uses Whatever CleanUp() uses.
47112doCommand() {
47113 echo "${D}*"
47114 eval ${D}*
47115 rcCmd=${D}?
47116
1e9e8aba 47117 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
47118 echo "command failed, exit code="${D}rcCmd
47119 CleanUp
47120 exit ${D}rcCmd
47121 fi
47122}
47123
47124# main routine
47125# setup globals
47126cmdLine=${D}*
47127outFile=""
47128outimpFile=""
47129inputFiles=""
b1d22ded 47130renameScript=""
473276a9
VS
47131description=""
47132CC=gcc.exe
47133CFLAGS="-s -Zcrtdll"
47134EXTRA_CFLAGS=""
47135EXPORT_BY_ORDINALS=0
47136exclude_symbols=""
47137library_flags=""
47138curDir=\`pwd\`
47139curDirS=curDir
47140case ${D}curDirS in
47141*/)
47142 ;;
47143*)
47144 curDirS=${D}{curDirS}"/"
47145 ;;
47146esac
47147# Parse commandline
47148libsToLink=0
b1d22ded 47149omfLinking=0
1e9e8aba 47150while [ ${D}1 ]; do
473276a9
VS
47151 case ${D}1 in
47152 -ord*)
47153 EXPORT_BY_ORDINALS=1;
47154 ;;
47155 -o*)
47156 shift
47157 outFile=${D}1
47158 ;;
47159 -i*)
47160 shift
47161 outimpFile=${D}1
47162 ;;
b1d22ded
DE
47163 -name-mangler-script)
47164 shift
47165 renameScript=${D}1
47166 ;;
473276a9
VS
47167 -d*)
47168 shift
47169 description=${D}1
47170 ;;
47171 -f*)
47172 shift
47173 CFLAGS=${D}1
47174 ;;
47175 -c*)
47176 shift
47177 CC=${D}1
47178 ;;
47179 -h*)
47180 PrintHelp
47181 ;;
47182 -ex*)
47183 shift
47184 exclude_symbols=${D}{exclude_symbols}${D}1" "
47185 ;;
47186 -libf*)
47187 shift
47188 library_flags=${D}{library_flags}${D}1" "
47189 ;;
47190 -nocrt*)
47191 CFLAGS="-s"
47192 ;;
47193 -nolxl*)
47194 flag_USE_LXLITE=0
47195 ;;
47196 -* | /*)
47197 case ${D}1 in
47198 -L* | -l*)
47199 libsToLink=1
47200 ;;
b1d22ded
DE
47201 -Zomf)
47202 omfLinking=1
47203 ;;
473276a9
VS
47204 *)
47205 ;;
47206 esac
47207 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
47208 ;;
b1d22ded
DE
47209 *.dll)
47210 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
47211 if [ ${D}omfLinking -eq 1 ]; then
47212 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
47213 else
47214 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
47215 fi
47216 ;;
473276a9
VS
47217 *)
47218 found=0;
1e9e8aba 47219 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
47220 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
47221 else
47222 for file in ${D}1 ; do
1e9e8aba 47223 if [ -f ${D}file ]; then
473276a9
VS
47224 inputFiles="${D}{inputFiles} ${D}file"
47225 found=1
47226 fi
47227 done
1e9e8aba 47228 if [ ${D}found -eq 0 ]; then
473276a9
VS
47229 echo "ERROR: No file(s) found: "${D}1
47230 exit 8
47231 fi
47232 fi
47233 ;;
47234 esac
47235 shift
47236done # iterate cmdline words
47237
47238#
1e9e8aba 47239if [ -z "${D}inputFiles" ]; then
473276a9
VS
47240 echo "dllar: no input files"
47241 PrintHelp
47242fi
47243
47244# Now extract all .o files from .a files
47245newInputFiles=""
47246for file in ${D}inputFiles ; do
47247 case ${D}file in
47248 *.a | *.lib)
47249 case ${D}file in
47250 *.a)
47251 suffix=".a"
47252 AR="ar"
47253 ;;
47254 *.lib)
47255 suffix=".lib"
47256 AR="emxomfar"
47257 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
47258 ;;
47259 *)
47260 ;;
47261 esac
47262 dirname=\`basnam ${D}file ${D}suffix\`"_%"
47263 mkdir ${D}dirname
1e9e8aba 47264 if [ ${D}? -ne 0 ]; then
473276a9
VS
47265 echo "Failed to create subdirectory ./${D}dirname"
47266 CleanUp
47267 exit 8;
47268 fi
47269 # Append '!' to indicate archive
47270 newInputFiles="${D}newInputFiles ${D}{dirname}!"
47271 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
47272 cd ${D}curDir
47273 found=0;
47274 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 47275 if [ -f ${D}subfile ]; then
473276a9 47276 found=1
1e9e8aba 47277 if [ -s ${D}subfile ]; then
473276a9
VS
47278 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
47279 newInputFiles="${D}newInputFiles ${D}subfile"
47280 fi
47281 fi
47282 done
1e9e8aba
DE
47283 if [ ${D}found -eq 0 ]; then
47284 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
47285 fi
47286 ;;
47287 *)
47288 newInputFiles="${D}{newInputFiles} ${D}file"
47289 ;;
47290 esac
47291done
47292inputFiles="${D}newInputFiles"
47293
47294# Output filename(s).
47295do_backup=0;
1e9e8aba 47296if [ -z ${D}outFile ]; then
473276a9
VS
47297 do_backup=1;
47298 set outFile ${D}inputFiles; outFile=${D}2
47299fi
47300
47301# If it is an archive, remove the '!' and the '_%' suffixes
47302case ${D}outFile in
47303*_%!)
47304 outFile=\`basnam ${D}outFile _%!\`
47305 ;;
47306*)
47307 ;;
47308esac
47309case ${D}outFile in
47310*.dll)
47311 outFile=\`basnam ${D}outFile .dll\`
47312 ;;
47313*.DLL)
47314 outFile=\`basnam ${D}outFile .DLL\`
47315 ;;
47316*.o)
47317 outFile=\`basnam ${D}outFile .o\`
47318 ;;
47319*.obj)
47320 outFile=\`basnam ${D}outFile .obj\`
47321 ;;
47322*.a)
47323 outFile=\`basnam ${D}outFile .a\`
47324 ;;
47325*.lib)
47326 outFile=\`basnam ${D}outFile .lib\`
47327 ;;
47328*)
47329 ;;
47330esac
47331case ${D}outimpFile in
47332*.a)
47333 outimpFile=\`basnam ${D}outimpFile .a\`
47334 ;;
47335*.lib)
47336 outimpFile=\`basnam ${D}outimpFile .lib\`
47337 ;;
47338*)
47339 ;;
47340esac
1e9e8aba 47341if [ -z ${D}outimpFile ]; then
473276a9
VS
47342 outimpFile=${D}outFile
47343fi
47344defFile="${D}{outFile}.def"
47345arcFile="${D}{outimpFile}.a"
47346arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
47347
47348#create ${D}dllFile as something matching 8.3 restrictions,
47349if [ -z ${D}renameScript ] ; then
47350 dllFile="${D}outFile"
47351else
47352 dllFile=\`${D}renameScript ${D}outimpFile\`
47353fi
473276a9 47354
1e9e8aba
DE
47355if [ ${D}do_backup -ne 0 ] ; then
47356 if [ -f ${D}arcFile ] ; then
473276a9
VS
47357 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
47358 fi
1e9e8aba 47359 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
47360 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
47361 fi
47362fi
47363
47364# Extract public symbols from all the object files.
47365tmpdefFile=${D}{defFile}_%
47366rm -f ${D}tmpdefFile
47367for file in ${D}inputFiles ; do
47368 case ${D}file in
47369 *!)
47370 ;;
47371 *)
47372 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
47373 ;;
47374 esac
47375done
47376
47377# Create the def file.
47378rm -f ${D}defFile
47379echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
47380dllFile="${D}{dllFile}.dll"
47381if [ ! -z ${D}description ]; then
1e9e8aba 47382 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
47383fi
47384echo "EXPORTS" >> ${D}defFile
47385
47386doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
47387grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
47388
47389# Checks if the export is ok or not.
47390for word in ${D}exclude_symbols; do
47391 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
47392 mv ${D}{tmpdefFile}% ${D}tmpdefFile
47393done
47394
47395
1e9e8aba
DE
47396if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
47397 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
47398 sed '
47399 N
47400 : loop
1e9e8aba 47401 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
47402 t loop
47403 ' > ${D}{tmpdefFile}%
47404 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
47405else
47406 rm -f ${D}{tmpdefFile}%
47407fi
47408cat ${D}tmpdefFile >> ${D}defFile
47409rm -f ${D}tmpdefFile
47410
47411# Do linking, create implib, and apply lxlite.
47412gccCmdl="";
47413for file in ${D}inputFiles ; do
47414 case ${D}file in
47415 *!)
47416 ;;
47417 *)
47418 gccCmdl="${D}gccCmdl ${D}file"
47419 ;;
47420 esac
47421done
47422doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
47423touch "${D}{outFile}.dll"
47424
47425doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 47426if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 47427 add_flags="";
1e9e8aba 47428 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
47429 add_flags="-ynd"
47430 fi
47431 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
47432fi
47433doCommand "emxomf -s -l ${D}arcFile"
47434
47435# Successful exit.
47436CleanUp 1
47437exit 0
47438EOF
47439
47440 chmod +x dllar.sh
a848cd7e
SC
47441 ;;
47442
1e9e8aba 47443 powerpc-apple-macos* | \
0ad5d837 47444 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
a848cd7e
SC
47445 *-*-sunos4* | \
47446 *-*-osf* | \
47447 *-*-dgux5* | \
47a7e797
MW
47448 *-*-sysv5* | \
47449 *-pc-msdosdjgpp )
a848cd7e
SC
47450 ;;
47451
47452 *)
3ecd9f92 47453 esac
a848cd7e 47454
2057db16
VS
47455 if test "x$PIC_FLAG" != "x" ; then
47456 PIC_FLAG="$PIC_FLAG -DPIC"
47457 fi
47458
a848cd7e
SC
47459 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
47460 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
47461 fi
47462 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
47463 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
47464 fi
47465
47466
47467
47468
47469
47470
47471
47472
810b94f0 47473
a848cd7e
SC
47474 USE_SOVERSION=0
47475 USE_SOVERLINUX=0
47476 USE_SOVERSOLARIS=0
810b94f0 47477 USE_SOVERCYGWIN=0
a848cd7e
SC
47478 USE_SOSYMLINKS=0
47479 USE_MACVERSION=0
47480 SONAME_FLAG=
47481
47482 case "${BAKEFILE_HOST}" in
0ad5d837 47483 *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
5f652d0d
VS
47484 SONAME_FLAG="-Wl,-soname,"
47485 USE_SOVERSION=1
47486 USE_SOVERLINUX=1
47487 USE_SOSYMLINKS=1
47488 ;;
47489
a848cd7e
SC
47490 *-*-solaris2* )
47491 SONAME_FLAG="-h "
47492 USE_SOVERSION=1
47493 USE_SOVERSOLARIS=1
47494 USE_SOSYMLINKS=1
47495 ;;
47496
47497 *-*-darwin* )
47498 USE_MACVERSION=1
47499 USE_SOVERSION=1
47500 USE_SOSYMLINKS=1
47501 ;;
810b94f0
MW
47502
47503 *-*-cygwin* )
47504 USE_SOVERSION=1
47505 USE_SOVERCYGWIN=1
47506 ;;
a848cd7e
SC
47507 esac
47508
47509
47510
47511
47512
47513
47514
47515
47516
810b94f0 47517
f10e38c4
VZ
47518 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
47519if test "${enable_dependency_tracking+set}" = set; then
47520 enableval="$enable_dependency_tracking"
47521 bk_use_trackdeps="$enableval"
47522fi;
47523
a848cd7e
SC
47524 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
47525echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
a848cd7e 47526
f10e38c4
VZ
47527 if test "x$bk_use_trackdeps" = "xno" ; then
47528 DEPS_TRACKING=0
47529 echo "$as_me:$LINENO: result: disabled" >&5
47530echo "${ECHO_T}disabled" >&6
47531 else
47532 DEPS_TRACKING=1
47533
47534 if test "x$GCC" = "xyes"; then
47535 DEPSMODE=gcc
47536 case "${BAKEFILE_HOST}" in
47537 *-*-darwin* )
47538 DEPSFLAG="-no-cpp-precomp -MMD"
47539 ;;
47540 * )
47541 DEPSFLAG="-MMD"
47542 ;;
47543 esac
47544 echo "$as_me:$LINENO: result: gcc" >&5
a848cd7e 47545echo "${ECHO_T}gcc" >&6
f10e38c4
VZ
47546 elif test "x$MWCC" = "xyes"; then
47547 DEPSMODE=mwcc
47548 DEPSFLAG="-MM"
47549 echo "$as_me:$LINENO: result: mwcc" >&5
b1d22ded 47550echo "${ECHO_T}mwcc" >&6
f10e38c4
VZ
47551 elif test "x$SUNCC" = "xyes"; then
47552 DEPSMODE=unixcc
47553 DEPSFLAG="-xM1"
47554 echo "$as_me:$LINENO: result: Sun cc" >&5
0ad5d837 47555echo "${ECHO_T}Sun cc" >&6
f10e38c4
VZ
47556 elif test "x$SGICC" = "xyes"; then
47557 DEPSMODE=unixcc
47558 DEPSFLAG="-M"
47559 echo "$as_me:$LINENO: result: SGI cc" >&5
0ad5d837 47560echo "${ECHO_T}SGI cc" >&6
f10e38c4
VZ
47561 elif test "x$HPCC" = "xyes"; then
47562 DEPSMODE=unixcc
47563 DEPSFLAG="+make"
47564 echo "$as_me:$LINENO: result: HP cc" >&5
3006edc0 47565echo "${ECHO_T}HP cc" >&6
f10e38c4
VZ
47566 elif test "x$COMPAQCC" = "xyes"; then
47567 DEPSMODE=gcc
47568 DEPSFLAG="-MD"
47569 echo "$as_me:$LINENO: result: Compaq cc" >&5
a1aa0349 47570echo "${ECHO_T}Compaq cc" >&6
f10e38c4
VZ
47571 else
47572 DEPS_TRACKING=0
47573 echo "$as_me:$LINENO: result: none" >&5
a848cd7e 47574echo "${ECHO_T}none" >&6
f10e38c4 47575 fi
a848cd7e 47576
f10e38c4 47577 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
47578
47579D='$'
47580cat <<EOF >bk-deps
a848cd7e
SC
47581#!/bin/sh
47582
47583# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
47584# script. It is used to track C/C++ files dependencies in portable way.
47585#
47586# Permission is given to use this file in any way.
47587
473276a9 47588DEPSMODE=${DEPSMODE}
a848cd7e 47589DEPSDIR=.deps
0ad5d837 47590DEPSFLAG="${DEPSFLAG}"
a848cd7e 47591
473276a9 47592mkdir -p ${D}DEPSDIR
a848cd7e 47593
473276a9 47594if test ${D}DEPSMODE = gcc ; then
0ad5d837 47595 ${D}* ${D}{DEPSFLAG}
473276a9
VS
47596 status=${D}?
47597 if test ${D}{status} != 0 ; then
47598 exit ${D}{status}
a848cd7e
SC
47599 fi
47600 # move created file to the location we want it in:
473276a9
VS
47601 while test ${D}# -gt 0; do
47602 case "${D}1" in
a848cd7e
SC
47603 -o )
47604 shift
473276a9 47605 objfile=${D}1
a848cd7e
SC
47606 ;;
47607 -* )
47608 ;;
47609 * )
473276a9 47610 srcfile=${D}1
a848cd7e
SC
47611 ;;
47612 esac
47613 shift
47614 done
1e9e8aba
DE
47615 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
47616 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
47617 if test -f ${D}depfile ; then
47618 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
47619 rm -f ${D}depfile
a848cd7e 47620 else
a1aa0349 47621 # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
1e9e8aba 47622 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
a1aa0349
VZ
47623 if test ! -f ${D}depfile ; then
47624 # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
47625 depfile="${D}objfile.d"
47626 fi
473276a9
VS
47627 if test -f ${D}depfile ; then
47628 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
47629 rm -f ${D}depfile
a848cd7e
SC
47630 fi
47631 fi
47632 exit 0
81f90336 47633elif test ${D}DEPSMODE = mwcc ; then
f6b50c59 47634 ${D}* || exit ${D}?
81f90336
MW
47635 # Run mwcc again with -MM and redirect into the dep file we want
47636 # NOTE: We can't use shift here because we need ${D}* to be valid
47637 prevarg=
47638 for arg in ${D}* ; do
47639 if test "${D}prevarg" = "-o"; then
47640 objfile=${D}arg
47641 else
47642 case "${D}arg" in
47643 -* )
47644 ;;
47645 * )
47646 srcfile=${D}arg
47647 ;;
47648 esac
47649 fi
47650 prevarg="${D}arg"
47651 done
0ad5d837 47652 ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
81f90336 47653 exit 0
0ad5d837 47654elif test ${D}DEPSMODE = unixcc; then
f6b50c59 47655 ${D}* || exit ${D}?
a9e5b1f0
MW
47656 # Run compiler again with deps flag and redirect into the dep file.
47657 # It doesn't work if the '-o FILE' option is used, but without it the
47658 # dependency file will contain the wrong name for the object. So it is
47659 # removed from the command line, and the dep file is fixed with sed.
47660 cmd=""
47661 while test ${D}# -gt 0; do
47662 case "${D}1" in
47663 -o )
47664 shift
47665 objfile=${D}1
47666 ;;
47667 * )
47668 eval arg${D}#=\\${D}1
47669 cmd="${D}cmd \\${D}arg${D}#"
47670 ;;
47671 esac
47672 shift
47673 done
0ad5d837 47674 eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
a9e5b1f0 47675 exit 0
a848cd7e 47676else
473276a9
VS
47677 ${D}*
47678 exit ${D}?
a848cd7e
SC
47679fi
47680EOF
473276a9 47681
f10e38c4
VZ
47682 chmod +x bk-deps
47683 fi
a848cd7e
SC
47684 fi
47685
47686
47687
47688
a848cd7e
SC
47689 case ${BAKEFILE_HOST} in
47690 *-*-cygwin* | *-*-mingw32* )
8ced02f6
DE
47691 if test -n "$ac_tool_prefix"; then
47692 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
47693set dummy ${ac_tool_prefix}windres; ac_word=$2
47694echo "$as_me:$LINENO: checking for $ac_word" >&5
47695echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47696if test "${ac_cv_prog_WINDRES+set}" = set; then
47697 echo $ECHO_N "(cached) $ECHO_C" >&6
47698else
47699 if test -n "$WINDRES"; then
47700 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
47701else
47702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47703for as_dir in $PATH
47704do
47705 IFS=$as_save_IFS
47706 test -z "$as_dir" && as_dir=.
47707 for ac_exec_ext in '' $ac_executable_extensions; do
47708 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47709 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
47710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47711 break 2
47712 fi
47713done
47714done
47715
47716fi
47717fi
47718WINDRES=$ac_cv_prog_WINDRES
47719if test -n "$WINDRES"; then
47720 echo "$as_me:$LINENO: result: $WINDRES" >&5
47721echo "${ECHO_T}$WINDRES" >&6
47722else
47723 echo "$as_me:$LINENO: result: no" >&5
47724echo "${ECHO_T}no" >&6
47725fi
47726
47727fi
47728if test -z "$ac_cv_prog_WINDRES"; then
47729 ac_ct_WINDRES=$WINDRES
47730 # Extract the first word of "windres", so it can be a program name with args.
a848cd7e
SC
47731set dummy windres; ac_word=$2
47732echo "$as_me:$LINENO: checking for $ac_word" >&5
47733echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 47734if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
a848cd7e
SC
47735 echo $ECHO_N "(cached) $ECHO_C" >&6
47736else
8ced02f6
DE
47737 if test -n "$ac_ct_WINDRES"; then
47738 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
a848cd7e
SC
47739else
47740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47741for as_dir in $PATH
47742do
47743 IFS=$as_save_IFS
47744 test -z "$as_dir" && as_dir=.
47745 for ac_exec_ext in '' $ac_executable_extensions; do
47746 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 47747 ac_cv_prog_ac_ct_WINDRES="windres"
a848cd7e
SC
47748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47749 break 2
47750 fi
47751done
47752done
47753
a848cd7e
SC
47754fi
47755fi
8ced02f6
DE
47756ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
47757if test -n "$ac_ct_WINDRES"; then
47758 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
47759echo "${ECHO_T}$ac_ct_WINDRES" >&6
a848cd7e
SC
47760else
47761 echo "$as_me:$LINENO: result: no" >&5
47762echo "${ECHO_T}no" >&6
47763fi
47764
8ced02f6
DE
47765 WINDRES=$ac_ct_WINDRES
47766else
47767 WINDRES="$ac_cv_prog_WINDRES"
47768fi
47769
a848cd7e
SC
47770 ;;
47771
1e9e8aba 47772 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
47773 # Extract the first word of "Rez", so it can be a program name with args.
47774set dummy Rez; ac_word=$2
47775echo "$as_me:$LINENO: checking for $ac_word" >&5
47776echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 47777if test "${ac_cv_prog_REZ+set}" = set; then
a848cd7e
SC
47778 echo $ECHO_N "(cached) $ECHO_C" >&6
47779else
8ced02f6
DE
47780 if test -n "$REZ"; then
47781 ac_cv_prog_REZ="$REZ" # Let the user override the test.
a848cd7e
SC
47782else
47783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47784for as_dir in $PATH
47785do
47786 IFS=$as_save_IFS
47787 test -z "$as_dir" && as_dir=.
47788 for ac_exec_ext in '' $ac_executable_extensions; do
47789 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 47790 ac_cv_prog_REZ="Rez"
a848cd7e
SC
47791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47792 break 2
47793 fi
47794done
47795done
47796
8ced02f6 47797 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
a848cd7e
SC
47798fi
47799fi
8ced02f6
DE
47800REZ=$ac_cv_prog_REZ
47801if test -n "$REZ"; then
47802 echo "$as_me:$LINENO: result: $REZ" >&5
47803echo "${ECHO_T}$REZ" >&6
a848cd7e
SC
47804else
47805 echo "$as_me:$LINENO: result: no" >&5
47806echo "${ECHO_T}no" >&6
47807fi
47808
47809 # Extract the first word of "SetFile", so it can be a program name with args.
47810set dummy SetFile; ac_word=$2
47811echo "$as_me:$LINENO: checking for $ac_word" >&5
47812echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47813if test "${ac_cv_prog_SETFILE+set}" = set; then
47814 echo $ECHO_N "(cached) $ECHO_C" >&6
47815else
47816 if test -n "$SETFILE"; then
47817 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
47818else
47819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47820for as_dir in $PATH
47821do
47822 IFS=$as_save_IFS
47823 test -z "$as_dir" && as_dir=.
47824 for ac_exec_ext in '' $ac_executable_extensions; do
47825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47826 ac_cv_prog_SETFILE="SetFile"
47827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47828 break 2
47829 fi
47830done
47831done
47832
47833 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
47834fi
47835fi
47836SETFILE=$ac_cv_prog_SETFILE
47837if test -n "$SETFILE"; then
47838 echo "$as_me:$LINENO: result: $SETFILE" >&5
47839echo "${ECHO_T}$SETFILE" >&6
47840else
47841 echo "$as_me:$LINENO: result: no" >&5
47842echo "${ECHO_T}no" >&6
47843fi
47844
47845 ;;
47846 esac
47847
47848
47849
47850
47851
8ced02f6 47852
f10e38c4 47853 BAKEFILE_BAKEFILE_M4_VERSION="0.2.0"
a848cd7e 47854
dcc1b6ad 47855
f10e38c4 47856BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.0"
a848cd7e 47857
646b6ec1 47858
74b84332 47859
a848cd7e
SC
47860 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
47861if test "${enable_precomp_headers+set}" = set; then
47862 enableval="$enable_precomp_headers"
47863 bk_use_pch="$enableval"
47864fi;
47865
47866 GCC_PCH=0
f10e38c4
VZ
47867 ICC_PCH=0
47868 USE_PCH=0
a848cd7e 47869
5c60e845
MW
47870 case ${BAKEFILE_HOST} in
47871 *-*-cygwin* )
47872 bk_use_pch="no"
47873 ;;
47874 esac
47875
a848cd7e
SC
47876 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
47877 if test "x$GCC" = "xyes"; then
47878 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
47879echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
47880 cat >conftest.$ac_ext <<_ACEOF
47881/* confdefs.h. */
47882_ACEOF
47883cat confdefs.h >>conftest.$ac_ext
47884cat >>conftest.$ac_ext <<_ACEOF
47885/* end confdefs.h. */
47886
47887int
47888main ()
47889{
47890
47891 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
e5efa97e 47892 There is no PCH support
a848cd7e
SC
47893 #endif
47894 #if (__GNUC__ < 3)
e5efa97e 47895 There is no PCH support
a848cd7e
SC
47896 #endif
47897 #if (__GNUC__ == 3) && \
47898 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
f10e38c4
VZ
47899 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
47900 ( defined(__INTEL_COMPILER) )
e5efa97e 47901 There is no PCH support
a848cd7e
SC
47902 #endif
47903
47904 ;
47905 return 0;
47906}
47907_ACEOF
47908rm -f conftest.$ac_objext
47909if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 47910 (eval $ac_compile) 2>conftest.er1
a848cd7e 47911 ac_status=$?
ac1cb8d3
VS
47912 grep -v '^ *+' conftest.er1 >conftest.err
47913 rm -f conftest.er1
47914 cat conftest.err >&5
a848cd7e
SC
47915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47916 (exit $ac_status); } &&
c9a66001 47917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
47918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47919 (eval $ac_try) 2>&5
47920 ac_status=$?
47921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47922 (exit $ac_status); }; } &&
47923 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
47924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47925 (eval $ac_try) 2>&5
47926 ac_status=$?
47927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47928 (exit $ac_status); }; }; then
47929
47930 echo "$as_me:$LINENO: result: yes" >&5
47931echo "${ECHO_T}yes" >&6
a848cd7e
SC
47932 GCC_PCH=1
47933
47934else
47935 echo "$as_me: failed program was:" >&5
47936sed 's/^/| /' conftest.$ac_ext >&5
47937
47938
f10e38c4
VZ
47939 cat >conftest.$ac_ext <<_ACEOF
47940/* confdefs.h. */
47941_ACEOF
47942cat confdefs.h >>conftest.$ac_ext
47943cat >>conftest.$ac_ext <<_ACEOF
47944/* end confdefs.h. */
47945
47946int
47947main ()
47948{
47949
47950 #if !defined(__INTEL_COMPILER) || \
47951 (__INTEL_COMPILER < 800)
e5efa97e 47952 There is no PCH support
f10e38c4
VZ
47953 #endif
47954
47955 ;
47956 return 0;
47957}
47958_ACEOF
47959rm -f conftest.$ac_objext
47960if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47961 (eval $ac_compile) 2>conftest.er1
47962 ac_status=$?
47963 grep -v '^ *+' conftest.er1 >conftest.err
47964 rm -f conftest.er1
47965 cat conftest.err >&5
47966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47967 (exit $ac_status); } &&
c9a66001 47968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
f10e38c4
VZ
47969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47970 (eval $ac_try) 2>&5
47971 ac_status=$?
47972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47973 (exit $ac_status); }; } &&
47974 { ac_try='test -s conftest.$ac_objext'
47975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47976 (eval $ac_try) 2>&5
47977 ac_status=$?
47978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47979 (exit $ac_status); }; }; then
47980
47981 echo "$as_me:$LINENO: result: yes" >&5
47982echo "${ECHO_T}yes" >&6
47983 ICC_PCH=1
47984
47985else
47986 echo "$as_me: failed program was:" >&5
47987sed 's/^/| /' conftest.$ac_ext >&5
47988
47989
47990 echo "$as_me:$LINENO: result: no" >&5
a848cd7e
SC
47991echo "${ECHO_T}no" >&6
47992
47993fi
ac1cb8d3 47994rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f10e38c4
VZ
47995
47996fi
47997rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47998 if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
47999 USE_PCH=1
1e9e8aba
DE
48000
48001D='$'
48002cat <<EOF >bk-make-pch
a848cd7e
SC
48003#!/bin/sh
48004
48005# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
48006# script. It is used to generated precompiled headers.
48007#
48008# Permission is given to use this file in any way.
48009
1e9e8aba
DE
48010outfile="${D}{1}"
48011header="${D}{2}"
a848cd7e
SC
48012shift
48013shift
48014
f10e38c4
VZ
48015compiler=""
48016headerfile=""
48017
1e9e8aba 48018while test ${D}{#} -gt 0; do
f10e38c4 48019 add_to_cmdline=1
1e9e8aba 48020 case "${D}{1}" in
a848cd7e 48021 -I* )
1e9e8aba
DE
48022 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
48023 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
48024 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
48025 fi
48026 ;;
f10e38c4
VZ
48027 -use-pch|-use_pch )
48028 shift
48029 add_to_cmdline=0
48030 ;;
a848cd7e 48031 esac
f10e38c4
VZ
48032 if test ${D}add_to_cmdline = 1 ; then
48033 compiler="${D}{compiler} ${D}{1}"
48034 fi
a848cd7e
SC
48035 shift
48036done
48037
1e9e8aba 48038if test "x${D}{headerfile}" = "x" ; then
f10e38c4 48039 echo "error: can't find header ${D}{header} in include paths" >&2
a848cd7e 48040else
1e9e8aba
DE
48041 if test -f ${D}{outfile} ; then
48042 rm -f ${D}{outfile}
a848cd7e 48043 else
1e9e8aba 48044 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 48045 fi
1e9e8aba 48046 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e 48047 mkdir -p .deps
f10e38c4
VZ
48048 if test "x${GCC_PCH}" = "x1" ; then
48049 # can do this because gcc is >= 3.4:
48050 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
48051 elif test "x${ICC_PCH}" = "x1" ; then
48052 filename=pch_gen-${D}${D}
48053 file=${D}{filename}.c
48054 dfile=${D}{filename}.d
48055 cat > ${D}file <<EOT
48056#include "${D}header"
48057EOT
48058 # using -MF icc complains about differing command lines in creation/use
48059 ${D}compiler -c -create_pch ${D}outfile -MMD ${D}file && \\
48060 sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
48061 rm -f ${D}file ${D}dfile ${D}{filename}.o
48062 fi
1e9e8aba 48063 exit ${D}{?}
a848cd7e
SC
48064fi
48065EOF
1e9e8aba 48066
a848cd7e
SC
48067 chmod +x bk-make-pch
48068 fi
48069 fi
48070 fi
48071
48072
48073
f10e38c4 48074
a848cd7e
SC
48075 COND_BUILD_DEBUG="#"
48076 if test "x$BUILD" = "xdebug" ; then
48077 COND_BUILD_DEBUG=""
48078 fi
48079
48080 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
48081 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
48082 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
48083 fi
48084
48085 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
48086 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
48087 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
48088 fi
48089
48090 COND_BUILD_DEBUG_UNICODE_0="#"
48091 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
48092 COND_BUILD_DEBUG_UNICODE_0=""
48093 fi
48094
48095 COND_BUILD_DEBUG_UNICODE_1="#"
48096 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
48097 COND_BUILD_DEBUG_UNICODE_1=""
48098 fi
48099
48100 COND_BUILD_RELEASE="#"
48101 if test "x$BUILD" = "xrelease" ; then
48102 COND_BUILD_RELEASE=""
48103 fi
48104
48105 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
48106 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
48107 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
48108 fi
48109
48110 COND_BUILD_RELEASE_UNICODE_0="#"
48111 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
48112 COND_BUILD_RELEASE_UNICODE_0=""
48113 fi
48114
48115 COND_BUILD_RELEASE_UNICODE_1="#"
48116 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
48117 COND_BUILD_RELEASE_UNICODE_1=""
48118 fi
48119
48120 COND_DEBUG_FLAG_1="#"
48121 if test "x$DEBUG_FLAG" = "x1" ; then
48122 COND_DEBUG_FLAG_1=""
48123 fi
48124
48125 COND_DEBUG_INFO_0="#"
48126 if test "x$DEBUG_INFO" = "x0" ; then
48127 COND_DEBUG_INFO_0=""
48128 fi
48129
48130 COND_DEBUG_INFO_1="#"
48131 if test "x$DEBUG_INFO" = "x1" ; then
48132 COND_DEBUG_INFO_1=""
48133 fi
48134
48135 COND_DEPS_TRACKING_0="#"
48136 if test "x$DEPS_TRACKING" = "x0" ; then
48137 COND_DEPS_TRACKING_0=""
48138 fi
48139
48140 COND_DEPS_TRACKING_1="#"
48141 if test "x$DEPS_TRACKING" = "x1" ; then
48142 COND_DEPS_TRACKING_1=""
48143 fi
48144
48145 COND_GCC_PCH_1="#"
48146 if test "x$GCC_PCH" = "x1" ; then
48147 COND_GCC_PCH_1=""
48148 fi
48149
f10e38c4
VZ
48150 COND_ICC_PCH_1="#"
48151 if test "x$ICC_PCH" = "x1" ; then
48152 COND_ICC_PCH_1=""
48153 fi
48154
a848cd7e
SC
48155 COND_MONOLITHIC_0="#"
48156 if test "x$MONOLITHIC" = "x0" ; then
48157 COND_MONOLITHIC_0=""
48158 fi
48159
48160 COND_MONOLITHIC_0_SHARED_0="#"
48161 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
48162 COND_MONOLITHIC_0_SHARED_0=""
48163 fi
48164
3f60522a
JS
48165 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#"
48166 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then
48167 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1=""
48168 fi
48169
a848cd7e
SC
48170 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
48171 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
48172 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
48173 fi
48174
90970d69
DE
48175 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
48176 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
48177 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
48178 fi
48179
f10e38c4
VZ
48180 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
48181 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
48182 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
48183 fi
48184
a848cd7e
SC
48185 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
48186 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
48187 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
48188 fi
48189
6671c68b
VZ
48190 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
48191 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
48192 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
48193 fi
48194
a848cd7e
SC
48195 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
48196 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
48197 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
48198 fi
48199
8b6682b9
JS
48200 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#"
48201 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
48202 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1=""
48203 fi
48204
ceec2216
RL
48205 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
48206 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
48207 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
48208 fi
48209
a848cd7e
SC
48210 COND_MONOLITHIC_0_SHARED_1="#"
48211 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
48212 COND_MONOLITHIC_0_SHARED_1=""
48213 fi
48214
3f60522a
JS
48215 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#"
48216 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then
48217 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1=""
48218 fi
48219
a848cd7e
SC
48220 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
48221 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
48222 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
48223 fi
48224
90970d69
DE
48225 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
48226 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
48227 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
48228 fi
48229
f10e38c4
VZ
48230 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
48231 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
48232 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
48233 fi
48234
a848cd7e
SC
48235 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
48236 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
48237 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
48238 fi
48239
6671c68b
VZ
48240 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
48241 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
48242 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
48243 fi
48244
a848cd7e
SC
48245 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
48246 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
48247 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
48248 fi
48249
8b6682b9
JS
48250 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#"
48251 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then
48252 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1=""
48253 fi
48254
ceec2216
RL
48255 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
48256 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
48257 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
48258 fi
48259
e5efa97e
VZ
48260 COND_MONOLITHIC_0_USE_MEDIA_1="#"
48261 if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
48262 COND_MONOLITHIC_0_USE_MEDIA_1=""
48263 fi
48264
a848cd7e
SC
48265 COND_MONOLITHIC_0_USE_ODBC_1="#"
48266 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
48267 COND_MONOLITHIC_0_USE_ODBC_1=""
48268 fi
48269
48270 COND_MONOLITHIC_1="#"
48271 if test "x$MONOLITHIC" = "x1" ; then
48272 COND_MONOLITHIC_1=""
48273 fi
48274
48275 COND_MONOLITHIC_1_SHARED_0="#"
48276 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
48277 COND_MONOLITHIC_1_SHARED_0=""
48278 fi
48279
48280 COND_MONOLITHIC_1_SHARED_1="#"
48281 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
48282 COND_MONOLITHIC_1_SHARED_1=""
48283 fi
48284
48285 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
48286 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
48287 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
48288 fi
48289
48290 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
48291 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
48292 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
48293 fi
48294
eb730a0c
JS
48295 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
48296 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
48297 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
48298 fi
48299
a848cd7e
SC
48300 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
48301 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
48302 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
48303 fi
48304
48305 COND_PLATFORM_MACOSX_1="#"
48306 if test "x$PLATFORM_MACOSX" = "x1" ; then
48307 COND_PLATFORM_MACOSX_1=""
48308 fi
48309
a30f955f
VS
48310 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
48311 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
48312 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
48313 fi
48314
a848cd7e
SC
48315 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
48316 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
48317 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
48318 fi
48319
48320 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
48321 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
48322 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
48323 fi
48324
48325 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
48326 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
48327 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
48328 fi
48329
fc480dc1
DE
48330 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
48331 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
48332 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
48333 fi
48334
1e9e8aba
DE
48335 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
48336 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48337 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
48338 fi
48339
ebee3cd0
VS
48340 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
48341 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
48342 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
48343 fi
48344
48345 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
48346 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
48347 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
48348 fi
48349
a848cd7e
SC
48350 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
48351 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
48352 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
48353 fi
48354
48355 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
48356 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
48357 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
48358 fi
48359
b48a2016
DE
48360 COND_PLATFORM_MACOS_1="#"
48361 if test "x$PLATFORM_MACOS" = "x1" ; then
48362 COND_PLATFORM_MACOS_1=""
48363 fi
48364
083508af
MW
48365 COND_PLATFORM_MAC_1="#"
48366 if test "x$PLATFORM_MAC" = "x1" ; then
48367 COND_PLATFORM_MAC_1=""
48368 fi
48369
e5efa97e
VZ
48370 COND_PLATFORM_MSDOS_0="#"
48371 if test "x$PLATFORM_MSDOS" = "x0" ; then
48372 COND_PLATFORM_MSDOS_0=""
48373 fi
48374
83d8eb47
MW
48375 COND_PLATFORM_MSDOS_1="#"
48376 if test "x$PLATFORM_MSDOS" = "x1" ; then
48377 COND_PLATFORM_MSDOS_1=""
48378 fi
48379
a848cd7e
SC
48380 COND_PLATFORM_OS2_1="#"
48381 if test "x$PLATFORM_OS2" = "x1" ; then
48382 COND_PLATFORM_OS2_1=""
48383 fi
48384
48385 COND_PLATFORM_UNIX_0="#"
48386 if test "x$PLATFORM_UNIX" = "x0" ; then
48387 COND_PLATFORM_UNIX_0=""
48388 fi
48389
48390 COND_PLATFORM_UNIX_1="#"
48391 if test "x$PLATFORM_UNIX" = "x1" ; then
48392 COND_PLATFORM_UNIX_1=""
48393 fi
48394
48395 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
48396 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
48397 COND_PLATFORM_UNIX_1_USE_GUI_1=""
48398 fi
48399
48400 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
48401 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
48402 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
48403 fi
48404
48405 COND_PLATFORM_WIN32_0="#"
48406 if test "x$PLATFORM_WIN32" = "x0" ; then
48407 COND_PLATFORM_WIN32_0=""
48408 fi
48409
48410 COND_PLATFORM_WIN32_1="#"
48411 if test "x$PLATFORM_WIN32" = "x1" ; then
48412 COND_PLATFORM_WIN32_1=""
48413 fi
48414
48415 COND_SHARED_0="#"
48416 if test "x$SHARED" = "x0" ; then
48417 COND_SHARED_0=""
48418 fi
48419
083508af
MW
48420 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
48421 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
48422 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
48423 fi
48424
48425 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
48426 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
48427 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
48428 fi
48429
48430 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
48431 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
48432 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
48433 fi
48434
a848cd7e
SC
48435 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
48436 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
48437 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
48438 fi
48439
48440 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
48441 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
48442 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
48443 fi
48444
48445 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
48446 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
48447 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
48448 fi
48449
48450 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
48451 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
48452 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
48453 fi
48454
083508af
MW
48455 COND_SHARED_0_USE_XRC_1="#"
48456 if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
48457 COND_SHARED_0_USE_XRC_1=""
48458 fi
48459
a848cd7e
SC
48460 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
48461 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
48462 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
48463 fi
48464
48465 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
48466 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
48467 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
48468 fi
48469
48470 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
48471 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
48472 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
48473 fi
48474
48475 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
48476 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
48477 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
48478 fi
48479
48480 COND_SHARED_1="#"
48481 if test "x$SHARED" = "x1" ; then
48482 COND_SHARED_1=""
48483 fi
48484
48485 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
48486 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
48487 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
48488 fi
48489
083508af
MW
48490 COND_SHARED_1_USE_XRC_1="#"
48491 if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
48492 COND_SHARED_1_USE_XRC_1=""
48493 fi
48494
a30f955f
VS
48495 COND_TOOLKIT_="#"
48496 if test "x$TOOLKIT" = "x" ; then
48497 COND_TOOLKIT_=""
48498 fi
48499
a848cd7e
SC
48500 COND_TOOLKIT_COCOA="#"
48501 if test "x$TOOLKIT" = "xCOCOA" ; then
48502 COND_TOOLKIT_COCOA=""
48503 fi
48504
a49baeab
DE
48505 COND_TOOLKIT_COCOA_USE_GUI_1="#"
48506 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
48507 COND_TOOLKIT_COCOA_USE_GUI_1=""
48508 fi
48509
a848cd7e
SC
48510 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
48511 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48512 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
48513 fi
48514
48515 COND_TOOLKIT_GTK="#"
48516 if test "x$TOOLKIT" = "xGTK" ; then
48517 COND_TOOLKIT_GTK=""
48518 fi
48519
d044deea
MW
48520 COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
48521 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
48522 COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
48523 fi
48524
48525 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
48526 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
48527 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
48528 fi
48529
48530 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
48531 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
48532 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
48533 fi
48534
48535 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
48536 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48537 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
48538 fi
48539
48540 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
48541 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
48542 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
48543 fi
48544
48545 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
48546 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48547 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
48548 fi
48549
a848cd7e
SC
48550 COND_TOOLKIT_GTK_USE_GUI_1="#"
48551 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
48552 COND_TOOLKIT_GTK_USE_GUI_1=""
48553 fi
48554
a848cd7e
SC
48555 COND_TOOLKIT_MAC="#"
48556 if test "x$TOOLKIT" = "xMAC" ; then
48557 COND_TOOLKIT_MAC=""
48558 fi
48559
48560 COND_TOOLKIT_MAC_USE_GUI_1="#"
48561 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
48562 COND_TOOLKIT_MAC_USE_GUI_1=""
48563 fi
48564
48565 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
48566 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48567 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
48568 fi
48569
48570 COND_TOOLKIT_MGL="#"
48571 if test "x$TOOLKIT" = "xMGL" ; then
48572 COND_TOOLKIT_MGL=""
48573 fi
48574
48575 COND_TOOLKIT_MGL_USE_GUI_1="#"
48576 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
48577 COND_TOOLKIT_MGL_USE_GUI_1=""
48578 fi
48579
48580 COND_TOOLKIT_MOTIF="#"
48581 if test "x$TOOLKIT" = "xMOTIF" ; then
48582 COND_TOOLKIT_MOTIF=""
48583 fi
48584
48585 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
48586 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
48587 COND_TOOLKIT_MOTIF_USE_GUI_1=""
48588 fi
48589
48590 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
48591 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48592 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
48593 fi
48594
48595 COND_TOOLKIT_MSW="#"
48596 if test "x$TOOLKIT" = "xMSW" ; then
48597 COND_TOOLKIT_MSW=""
48598 fi
48599
48600 COND_TOOLKIT_MSW_USE_GUI_1="#"
48601 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
48602 COND_TOOLKIT_MSW_USE_GUI_1=""
48603 fi
48604
48605 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
48606 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48607 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
48608 fi
48609
0ee4059d
DE
48610 COND_TOOLKIT_MSW_WXUNIV_0="#"
48611 if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
48612 COND_TOOLKIT_MSW_WXUNIV_0=""
48613 fi
48614
a848cd7e
SC
48615 COND_TOOLKIT_PM="#"
48616 if test "x$TOOLKIT" = "xPM" ; then
48617 COND_TOOLKIT_PM=""
48618 fi
48619
48620 COND_TOOLKIT_PM_USE_GUI_1="#"
48621 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
48622 COND_TOOLKIT_PM_USE_GUI_1=""
48623 fi
48624
48625 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
48626 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48627 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
48628 fi
48629
3fd9c298
DE
48630 COND_TOOLKIT_WINCE="#"
48631 if test "x$TOOLKIT" = "xWINCE" ; then
48632 COND_TOOLKIT_WINCE=""
48633 fi
48634
48635 COND_TOOLKIT_WINCE_USE_GUI_1="#"
48636 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
48637 COND_TOOLKIT_WINCE_USE_GUI_1=""
48638 fi
48639
48640 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
48641 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48642 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
48643 fi
48644
0ee4059d
DE
48645 COND_TOOLKIT_WINCE_WXUNIV_0="#"
48646 if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
48647 COND_TOOLKIT_WINCE_WXUNIV_0=""
48648 fi
48649
a848cd7e
SC
48650 COND_TOOLKIT_X11="#"
48651 if test "x$TOOLKIT" = "xX11" ; then
48652 COND_TOOLKIT_X11=""
48653 fi
48654
48655 COND_TOOLKIT_X11_USE_GUI_1="#"
48656 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
48657 COND_TOOLKIT_X11_USE_GUI_1=""
48658 fi
48659
48660 COND_UNICODE_1="#"
48661 if test "x$UNICODE" = "x1" ; then
48662 COND_UNICODE_1=""
48663 fi
48664
48665 COND_USE_EXCEPTIONS_0="#"
48666 if test "x$USE_EXCEPTIONS" = "x0" ; then
48667 COND_USE_EXCEPTIONS_0=""
48668 fi
48669
48670 COND_USE_EXCEPTIONS_1="#"
48671 if test "x$USE_EXCEPTIONS" = "x1" ; then
48672 COND_USE_EXCEPTIONS_1=""
48673 fi
48674
48675 COND_USE_GUI_0="#"
48676 if test "x$USE_GUI" = "x0" ; then
48677 COND_USE_GUI_0=""
48678 fi
48679
48680 COND_USE_GUI_1="#"
48681 if test "x$USE_GUI" = "x1" ; then
48682 COND_USE_GUI_1=""
48683 fi
48684
48685 COND_USE_GUI_1_WXUNIV_0="#"
48686 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48687 COND_USE_GUI_1_WXUNIV_0=""
48688 fi
48689
48690 COND_USE_GUI_1_WXUNIV_1="#"
48691 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
48692 COND_USE_GUI_1_WXUNIV_1=""
48693 fi
48694
48695 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
48696 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
48697 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
48698 fi
48699
48700 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
48701 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
48702 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
48703 fi
48704
48705 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
48706 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
48707 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
48708 fi
48709
083508af
MW
48710 COND_USE_ODBC_1="#"
48711 if test "x$USE_ODBC" = "x1" ; then
48712 COND_USE_ODBC_1=""
48713 fi
48714
48715 COND_USE_OPENGL_1="#"
48716 if test "x$USE_OPENGL" = "x1" ; then
48717 COND_USE_OPENGL_1=""
48718 fi
48719
f10e38c4
VZ
48720 COND_USE_PCH_1="#"
48721 if test "x$USE_PCH" = "x1" ; then
48722 COND_USE_PCH_1=""
48723 fi
48724
a848cd7e
SC
48725 COND_USE_PLUGINS_0="#"
48726 if test "x$USE_PLUGINS" = "x0" ; then
48727 COND_USE_PLUGINS_0=""
48728 fi
48729
0b78747f
MW
48730 COND_USE_RTTI_0="#"
48731 if test "x$USE_RTTI" = "x0" ; then
48732 COND_USE_RTTI_0=""
48733 fi
48734
48735 COND_USE_RTTI_1="#"
48736 if test "x$USE_RTTI" = "x1" ; then
48737 COND_USE_RTTI_1=""
48738 fi
48739
a848cd7e
SC
48740 COND_USE_SOSYMLINKS_1="#"
48741 if test "x$USE_SOSYMLINKS" = "x1" ; then
48742 COND_USE_SOSYMLINKS_1=""
48743 fi
48744
eb730a0c
JS
48745 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
48746 if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
48747 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
48748 fi
48749
a848cd7e
SC
48750 COND_USE_SOVERLINUX_1="#"
48751 if test "x$USE_SOVERLINUX" = "x1" ; then
48752 COND_USE_SOVERLINUX_1=""
48753 fi
48754
48755 COND_USE_SOVERSION_0="#"
48756 if test "x$USE_SOVERSION" = "x0" ; then
48757 COND_USE_SOVERSION_0=""
48758 fi
48759
48760 COND_USE_SOVERSOLARIS_1="#"
48761 if test "x$USE_SOVERSOLARIS" = "x1" ; then
48762 COND_USE_SOVERSOLARIS_1=""
48763 fi
48764
0b78747f
MW
48765 COND_USE_THREADS_0="#"
48766 if test "x$USE_THREADS" = "x0" ; then
48767 COND_USE_THREADS_0=""
48768 fi
48769
48770 COND_USE_THREADS_1="#"
48771 if test "x$USE_THREADS" = "x1" ; then
48772 COND_USE_THREADS_1=""
48773 fi
48774
a13a7f89
RL
48775 COND_USE_XRC_1="#"
48776 if test "x$USE_XRC" = "x1" ; then
48777 COND_USE_XRC_1=""
48778 fi
48779
eb730a0c
JS
48780 COND_WINDOWS_IMPLIB_1="#"
48781 if test "x$WINDOWS_IMPLIB" = "x1" ; then
48782 COND_WINDOWS_IMPLIB_1=""
48783 fi
48784
a848cd7e
SC
48785 COND_WITH_PLUGIN_SDL_1="#"
48786 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
48787 COND_WITH_PLUGIN_SDL_1=""
48788 fi
48789
1e6eb025
VZ
48790 COND_WXUNIV_0="#"
48791 if test "x$WXUNIV" = "x0" ; then
48792 COND_WXUNIV_0=""
48793 fi
48794
a848cd7e
SC
48795 COND_WXUNIV_1="#"
48796 if test "x$WXUNIV" = "x1" ; then
48797 COND_WXUNIV_1=""
48798 fi
48799
48800 COND_WXUSE_EXPAT_BUILTIN="#"
48801 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
48802 COND_WXUSE_EXPAT_BUILTIN=""
48803 fi
48804
48805 COND_WXUSE_LIBJPEG_BUILTIN="#"
48806 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
48807 COND_WXUSE_LIBJPEG_BUILTIN=""
48808 fi
48809
48810 COND_WXUSE_LIBPNG_BUILTIN="#"
48811 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
48812 COND_WXUSE_LIBPNG_BUILTIN=""
48813 fi
48814
48815 COND_WXUSE_LIBTIFF_BUILTIN="#"
48816 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
48817 COND_WXUSE_LIBTIFF_BUILTIN=""
48818 fi
48819
48820 COND_WXUSE_ODBC_BUILTIN="#"
48821 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
48822 COND_WXUSE_ODBC_BUILTIN=""
48823 fi
48824
48825 COND_WXUSE_REGEX_BUILTIN="#"
48826 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
48827 COND_WXUSE_REGEX_BUILTIN=""
48828 fi
48829
48830 COND_WXUSE_ZLIB_BUILTIN="#"
48831 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
48832 COND_WXUSE_ZLIB_BUILTIN=""
48833 fi
48834
48835
48836
810b94f0
MW
48837 if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
48838 { { 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
48839echo "$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;}
48840 { (exit 1); exit 1; }; }
48841 fi
48842
2057db16
VS
48843 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
48844 { { 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
48845echo "$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;}
48846 { (exit 1); exit 1; }; }
48847 fi
48848
a848cd7e 48849
7afc46ab
KO
48850
48851if test "$wxUSE_MAC" = 1 ; then
95768535 48852 if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then
7afc46ab
KO
48853 sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
48854 mv temp bk-deps
48855 chmod +x bk-deps
48856 fi
48857fi
48858
ceec2216
RL
48859if test "$wxUSE_SHARED" = "yes"; then
48860
48861 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
48862 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
48863
5b674b9d
DE
48864 case "${host}" in
48865 *-pc-os2_emx | *-pc-os2-emx )
48866 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48867 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48868 cp -p ${srcdir}/src/os2/dllnames.sh .
48869 cp -p ${srcdir}/src/os2/dllar.sh .
48870 ;;
48871 esac
ceec2216
RL
48872else
48873
48874 EXE_LINKER="$CXX -o"
48875
48876fi
69120ee4
VZ
48877if test "$wxUSE_OMF" = "yes"; then
48878 case "${host}" in
48879 *-pc-os2_emx | *-pc-os2-emx )
48880 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
48881 LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
48882 WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
48883 ;;
48884 esac
48885fi
a848cd7e 48886
c08ebc62 48887if test $GCC_PCH = 1 ; then
254e8e29 48888 CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
ddd14b14 48889fi
a848cd7e 48890
5ff751d6 48891WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
a848cd7e
SC
48892
48893SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
48894
48895
48896
48897
48898
48899
48900
48901
48902
48903
48904
48905
48906
48907
48908
48909
48910
48911
48912
48913
48914
48915
48916
48917
48918
48919
48920
48921
48922
48923
48924
48925
48926
48927
48928
48929
48930
48931
48932
48933
48934
48935
a848cd7e
SC
48936
48937
48938
48939
48940
48941
48942
48943
48944
48945
48946
48947
a848cd7e
SC
48948
48949
ddd14b14 48950
370d2fd7 48951
8ced02f6 48952
a848cd7e
SC
48953
48954
48955echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
48956echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 48957set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
48958if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
48959 echo $ECHO_N "(cached) $ECHO_C" >&6
48960else
48961 cat >conftest.make <<\_ACEOF
48962all:
48963 @echo 'ac_maketemp="$(MAKE)"'
48964_ACEOF
48965# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
48966eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
48967if test -n "$ac_maketemp"; then
48968 eval ac_cv_prog_make_${ac_make}_set=yes
48969else
48970 eval ac_cv_prog_make_${ac_make}_set=no
48971fi
48972rm -f conftest.make
48973fi
48974if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
48975 echo "$as_me:$LINENO: result: yes" >&5
48976echo "${ECHO_T}yes" >&6
48977 SET_MAKE=
48978else
48979 echo "$as_me:$LINENO: result: no" >&5
48980echo "${ECHO_T}no" >&6
48981 SET_MAKE="MAKE=${MAKE-make}"
48982fi
48983
48984
a848cd7e 48985
ceec2216
RL
48986 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
48987
a848cd7e 48988
5c60e845
MW
48989if test "$USE_WIN32" = 1; then
48990 ac_config_commands="$ac_config_commands
48991 rcdefs.h
48992 "
48993
48994fi
48995
ceec2216 48996 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 48997
a848cd7e 48998
ceec2216 48999 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 49000
ceec2216
RL
49001
49002 ac_config_files="$ac_config_files version-script Makefile"
49003
49004
5c60e845 49005 ac_config_commands="$ac_config_commands wx-config"
a848cd7e
SC
49006
49007
9103d280 49008
1c14217d 49009if test "$wxWITH_SUBDIRS" != "no"; then
a848cd7e
SC
49010if test "$wxUSE_GUI" = "yes"; then
49011 SUBDIRS="samples demos utils contrib"
49012else SUBDIRS="samples utils"
49013fi
49014
49015
49016
49017# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
49018if test "${with_cppunit_prefix+set}" = set; then
49019 withval="$with_cppunit_prefix"
49020 cppunit_config_prefix="$withval"
49021else
49022 cppunit_config_prefix=""
49023fi;
49024
49025# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
49026if test "${with_cppunit_exec_prefix+set}" = set; then
49027 withval="$with_cppunit_exec_prefix"
49028 cppunit_config_exec_prefix="$withval"
49029else
49030 cppunit_config_exec_prefix=""
49031fi;
49032
49033 if test x$cppunit_config_exec_prefix != x ; then
49034 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
49035 if test x${CPPUNIT_CONFIG+set} != xset ; then
49036 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
49037 fi
49038 fi
49039 if test x$cppunit_config_prefix != x ; then
49040 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
49041 if test x${CPPUNIT_CONFIG+set} != xset ; then
49042 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
49043 fi
49044 fi
49045
49046 # Extract the first word of "cppunit-config", so it can be a program name with args.
49047set dummy cppunit-config; ac_word=$2
49048echo "$as_me:$LINENO: checking for $ac_word" >&5
49049echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
49050if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
49051 echo $ECHO_N "(cached) $ECHO_C" >&6
49052else
49053 case $CPPUNIT_CONFIG in
49054 [\\/]* | ?:[\\/]*)
49055 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
49056 ;;
49057 *)
49058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49059for as_dir in $PATH
49060do
49061 IFS=$as_save_IFS
49062 test -z "$as_dir" && as_dir=.
49063 for ac_exec_ext in '' $ac_executable_extensions; do
49064 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
49065 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
49066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49067 break 2
49068 fi
49069done
49070done
49071
49072 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
49073 ;;
49074esac
49075fi
49076CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
49077
49078if test -n "$CPPUNIT_CONFIG"; then
49079 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
49080echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
49081else
49082 echo "$as_me:$LINENO: result: no" >&5
49083echo "${ECHO_T}no" >&6
49084fi
49085
49086 cppunit_version_min=1.8.0
49087
49088 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
49089echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
49090 no_cppunit=""
49091 if test "$CPPUNIT_CONFIG" = "no" ; then
3ecd9f92
MW
49092 echo "$as_me:$LINENO: result: no" >&5
49093echo "${ECHO_T}no" >&6
a848cd7e
SC
49094 no_cppunit=yes
49095 else
49096 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
49097 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
49098 cppunit_version=`$CPPUNIT_CONFIG --version`
49099
49100 cppunit_major_version=`echo $cppunit_version | \
49101 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
49102 cppunit_minor_version=`echo $cppunit_version | \
49103 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
49104 cppunit_micro_version=`echo $cppunit_version | \
49105 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
49106
49107 cppunit_major_min=`echo $cppunit_version_min | \
49108 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
49109 cppunit_minor_min=`echo $cppunit_version_min | \
49110 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
49111 cppunit_micro_min=`echo $cppunit_version_min | \
49112 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
49113
49114 cppunit_version_proper=`expr \
49115 $cppunit_major_version \> $cppunit_major_min \| \
49116 $cppunit_major_version \= $cppunit_major_min \& \
49117 $cppunit_minor_version \> $cppunit_minor_min \| \
49118 $cppunit_major_version \= $cppunit_major_min \& \
49119 $cppunit_minor_version \= $cppunit_minor_min \& \
49120 $cppunit_micro_version \>= $cppunit_micro_min `
49121
49122 if test "$cppunit_version_proper" = "1" ; then
49123 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
49124echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
49125 else
49126 echo "$as_me:$LINENO: result: no" >&5
49127echo "${ECHO_T}no" >&6
49128 no_cppunit=yes
49129 fi
49130 fi
49131
49132 if test "x$no_cppunit" = x ; then
c2218763 49133 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
49134 else
49135 CPPUNIT_CFLAGS=""
49136 CPPUNIT_LIBS=""
c2218763 49137 :
a848cd7e
SC
49138 fi
49139
49140
49141
49142
49143
49144for subdir in `echo $SUBDIRS`; do
49145 if test -d ${srcdir}/${subdir} ; then
49146 if test "$wxUSE_GUI" = "yes"; then
49147 if test ${subdir} = "samples"; then
49148 makefiles="samples/Makefile.in $makefiles"
49149 for sample in `echo $SAMPLES_SUBDIRS`; do
49150 if test -d $srcdir/samples/$sample; then
49151 makefiles="samples/$sample/Makefile.in $makefiles"
49152 fi
49153 done
9c112555
MW
49154 else
49155 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
49156 eval "disabled=\$$disabled_var"
49157 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
49158 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"`
a848cd7e
SC
49159 fi
49160 else if test ${subdir} = "samples"; then
49161 makefiles="samples/Makefile.in samples/console/Makefile.in"
49162 elif test ${subdir} = "utils"; then
6537ccf8
VS
49163 makefiles=""
49164 for util in HelpGen tex2rtf ; do
49165 if test -d $srcdir/utils/$util ; then
49166 makefiles="utils/$util/Makefile.in \
49167 utils/$util/src/Makefile.in \
49168 $makefiles"
49169 fi
49170 done
a848cd7e
SC
49171 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
49172 fi
49173 fi
49174
49175 for mkin in $makefiles ; do
49176 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
49177 ac_config_files="$ac_config_files $mk"
49178
49179 done
49180 fi
49181done
1c14217d 49182fi
a848cd7e
SC
49183cat >confcache <<\_ACEOF
49184# This file is a shell script that caches the results of configure
49185# tests run on this system so they can be shared between configure
49186# scripts and configure runs, see configure's option --config-cache.
49187# It is not useful on other systems. If it contains results you don't
49188# want to keep, you may remove or edit it.
49189#
49190# config.status only pays attention to the cache file if you give it
49191# the --recheck option to rerun configure.
49192#
49193# `ac_cv_env_foo' variables (set or unset) will be overridden when
49194# loading this file, other *unset* `ac_cv_foo' will be assigned the
49195# following values.
49196
49197_ACEOF
49198
49199# The following way of writing the cache mishandles newlines in values,
49200# but we know of no workaround that is simple, portable, and efficient.
49201# So, don't put newlines in cache variables' values.
49202# Ultrix sh set writes to stderr and can't be redirected directly,
49203# and sets the high bit in the cache file unless we assign to the vars.
49204{
49205 (set) 2>&1 |
49206 case `(ac_space=' '; set | grep ac_space) 2>&1` in
49207 *ac_space=\ *)
49208 # `set' does not quote correctly, so add quotes (double-quote
49209 # substitution turns \\\\ into \\, and sed turns \\ into \).
49210 sed -n \
ac1cb8d3
VS
49211 "s/'/'\\\\''/g;
49212 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
49213 ;;
49214 *)
49215 # `set' quotes correctly as required by POSIX, so do not add quotes.
49216 sed -n \
ac1cb8d3 49217 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
49218 ;;
49219 esac;
49220} |
49221 sed '
49222 t clear
49223 : clear
49224 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
49225 t end
49226 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
49227 : end' >>confcache
49228if diff $cache_file confcache >/dev/null 2>&1; then :; else
49229 if test -w $cache_file; then
49230 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
49231 cat confcache >$cache_file
49232 else
49233 echo "not updating unwritable cache $cache_file"
49234 fi
49235fi
49236rm -f confcache
49237
49238test "x$prefix" = xNONE && prefix=$ac_default_prefix
49239# Let make expand exec_prefix.
49240test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
49241
49242# VPATH may cause trouble with some makes, so we remove $(srcdir),
49243# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
49244# trailing colons and then remove the whole line if VPATH becomes empty
49245# (actually we leave an empty line to preserve line numbers).
49246if test "x$srcdir" = x.; then
ac1cb8d3 49247 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
49248s/:*\$(srcdir):*/:/;
49249s/:*\${srcdir}:*/:/;
49250s/:*@srcdir@:*/:/;
ac1cb8d3 49251s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 49252s/:*$//;
ac1cb8d3 49253s/^[^=]*=[ ]*$//;
a848cd7e
SC
49254}'
49255fi
49256
49257DEFS=-DHAVE_CONFIG_H
49258
49259ac_libobjs=
49260ac_ltlibobjs=
49261for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
49262 # 1. Remove the extension, and $U if already installed.
49263 ac_i=`echo "$ac_i" |
ac1cb8d3 49264 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
49265 # 2. Add them.
49266 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
49267 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
49268done
49269LIBOBJS=$ac_libobjs
49270
49271LTLIBOBJS=$ac_ltlibobjs
49272
49273
49274
49275: ${CONFIG_STATUS=./config.status}
49276ac_clean_files_save=$ac_clean_files
49277ac_clean_files="$ac_clean_files $CONFIG_STATUS"
49278{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
49279echo "$as_me: creating $CONFIG_STATUS" >&6;}
49280cat >$CONFIG_STATUS <<_ACEOF
49281#! $SHELL
49282# Generated by $as_me.
49283# Run this file to recreate the current configuration.
49284# Compiler output produced by configure, useful for debugging
49285# configure, is in config.log if it exists.
49286
49287debug=false
49288ac_cs_recheck=false
49289ac_cs_silent=false
49290SHELL=\${CONFIG_SHELL-$SHELL}
49291_ACEOF
49292
49293cat >>$CONFIG_STATUS <<\_ACEOF
49294## --------------------- ##
49295## M4sh Initialization. ##
49296## --------------------- ##
49297
49298# Be Bourne compatible
49299if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
49300 emulate sh
49301 NULLCMD=:
49302 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
49303 # is contrary to our usage. Disable this feature.
49304 alias -g '${1+"$@"}'='"$@"'
49305elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
49306 set -o posix
49307fi
ac1cb8d3 49308DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
49309
49310# Support unset when possible.
ac1cb8d3 49311if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
49312 as_unset=unset
49313else
49314 as_unset=false
49315fi
49316
49317
49318# Work around bugs in pre-3.0 UWIN ksh.
49319$as_unset ENV MAIL MAILPATH
49320PS1='$ '
49321PS2='> '
49322PS4='+ '
49323
49324# NLS nuisances.
49325for as_var in \
49326 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49327 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
49328 LC_TELEPHONE LC_TIME
49329do
ac1cb8d3 49330 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
49331 eval $as_var=C; export $as_var
49332 else
49333 $as_unset $as_var
49334 fi
49335done
49336
49337# Required to use basename.
49338if expr a : '\(a\)' >/dev/null 2>&1; then
49339 as_expr=expr
49340else
49341 as_expr=false
49342fi
49343
49344if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
49345 as_basename=basename
49346else
49347 as_basename=false
49348fi
49349
49350
49351# Name of the executable.
49352as_me=`$as_basename "$0" ||
49353$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
49354 X"$0" : 'X\(//\)$' \| \
49355 X"$0" : 'X\(/\)$' \| \
49356 . : '\(.\)' 2>/dev/null ||
49357echo X/"$0" |
49358 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
49359 /^X\/\(\/\/\)$/{ s//\1/; q; }
49360 /^X\/\(\/\).*/{ s//\1/; q; }
49361 s/.*/./; q'`
49362
49363
49364# PATH needs CR, and LINENO needs CR and PATH.
49365# Avoid depending upon Character Ranges.
49366as_cr_letters='abcdefghijklmnopqrstuvwxyz'
49367as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
49368as_cr_Letters=$as_cr_letters$as_cr_LETTERS
49369as_cr_digits='0123456789'
49370as_cr_alnum=$as_cr_Letters$as_cr_digits
49371
49372# The user is always right.
49373if test "${PATH_SEPARATOR+set}" != set; then
49374 echo "#! /bin/sh" >conf$$.sh
49375 echo "exit 0" >>conf$$.sh
49376 chmod +x conf$$.sh
49377 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49378 PATH_SEPARATOR=';'
49379 else
49380 PATH_SEPARATOR=:
49381 fi
49382 rm -f conf$$.sh
49383fi
49384
49385
49386 as_lineno_1=$LINENO
49387 as_lineno_2=$LINENO
49388 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
49389 test "x$as_lineno_1" != "x$as_lineno_2" &&
49390 test "x$as_lineno_3" = "x$as_lineno_2" || {
49391 # Find who we are. Look in the path if we contain no path at all
49392 # relative or not.
49393 case $0 in
49394 *[\\/]* ) as_myself=$0 ;;
49395 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49396for as_dir in $PATH
49397do
49398 IFS=$as_save_IFS
49399 test -z "$as_dir" && as_dir=.
49400 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
49401done
49402
49403 ;;
49404 esac
49405 # We did not find ourselves, most probably we were run as `sh COMMAND'
49406 # in which case we are not to be found in the path.
49407 if test "x$as_myself" = x; then
49408 as_myself=$0
49409 fi
49410 if test ! -f "$as_myself"; then
49411 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
49412echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
49413 { (exit 1); exit 1; }; }
49414 fi
49415 case $CONFIG_SHELL in
49416 '')
49417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49418for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
49419do
49420 IFS=$as_save_IFS
49421 test -z "$as_dir" && as_dir=.
49422 for as_base in sh bash ksh sh5; do
49423 case $as_dir in
49424 /*)
49425 if ("$as_dir/$as_base" -c '
49426 as_lineno_1=$LINENO
49427 as_lineno_2=$LINENO
49428 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
49429 test "x$as_lineno_1" != "x$as_lineno_2" &&
49430 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
49431 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
49432 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
49433 CONFIG_SHELL=$as_dir/$as_base
49434 export CONFIG_SHELL
49435 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
49436 fi;;
49437 esac
49438 done
49439done
49440;;
49441 esac
49442
49443 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
49444 # uniformly replaced by the line number. The first 'sed' inserts a
49445 # line-number line before each line; the second 'sed' does the real
49446 # work. The second script uses 'N' to pair each line-number line
49447 # with the numbered line, and appends trailing '-' during
49448 # substitution so that $LINENO is not a special case at line end.
49449 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
49450 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
49451 sed '=' <$as_myself |
49452 sed '
49453 N
49454 s,$,-,
49455 : loop
49456 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
49457 t loop
49458 s,-$,,
49459 s,^['$as_cr_digits']*\n,,
49460 ' >$as_me.lineno &&
49461 chmod +x $as_me.lineno ||
49462 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
49463echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
49464 { (exit 1); exit 1; }; }
49465
49466 # Don't try to exec as it changes $[0], causing all sort of problems
49467 # (the dirname of $[0] is not the place where we might find the
49468 # original and so on. Autoconf is especially sensible to this).
49469 . ./$as_me.lineno
49470 # Exit status is that of the last command.
49471 exit
49472}
49473
49474
49475case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
49476 *c*,-n*) ECHO_N= ECHO_C='
49477' ECHO_T=' ' ;;
49478 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
49479 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
49480esac
49481
49482if expr a : '\(a\)' >/dev/null 2>&1; then
49483 as_expr=expr
49484else
49485 as_expr=false
49486fi
49487
49488rm -f conf$$ conf$$.exe conf$$.file
49489echo >conf$$.file
49490if ln -s conf$$.file conf$$ 2>/dev/null; then
49491 # We could just check for DJGPP; but this test a) works b) is more generic
49492 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
49493 if test -f conf$$.exe; then
49494 # Don't use ln at all; we don't have any links
49495 as_ln_s='cp -p'
49496 else
49497 as_ln_s='ln -s'
49498 fi
49499elif ln conf$$.file conf$$ 2>/dev/null; then
49500 as_ln_s=ln
49501else
49502 as_ln_s='cp -p'
49503fi
49504rm -f conf$$ conf$$.exe conf$$.file
49505
49506if mkdir -p . 2>/dev/null; then
49507 as_mkdir_p=:
49508else
ac1cb8d3 49509 test -d ./-p && rmdir ./-p
a848cd7e
SC
49510 as_mkdir_p=false
49511fi
49512
49513as_executable_p="test -f"
49514
49515# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 49516as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
49517
49518# Sed expression to map a string onto a valid variable name.
ac1cb8d3 49519as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
49520
49521
49522# IFS
49523# We need space, tab and new line, in precisely that order.
49524as_nl='
49525'
49526IFS=" $as_nl"
49527
49528# CDPATH.
49529$as_unset CDPATH
49530
49531exec 6>&1
49532
49533# Open the log real soon, to keep \$[0] and so on meaningful, and to
49534# report actual input values of CONFIG_FILES etc. instead of their
49535# values after options handling. Logging --version etc. is OK.
49536exec 5>>config.log
49537{
49538 echo
49539 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
49540## Running $as_me. ##
49541_ASBOX
49542} >&5
49543cat >&5 <<_CSEOF
49544
dd8df4fc 49545This file was extended by wxWidgets $as_me 2.7.0, which was
ac1cb8d3 49546generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
49547
49548 CONFIG_FILES = $CONFIG_FILES
49549 CONFIG_HEADERS = $CONFIG_HEADERS
49550 CONFIG_LINKS = $CONFIG_LINKS
49551 CONFIG_COMMANDS = $CONFIG_COMMANDS
49552 $ $0 $@
49553
49554_CSEOF
49555echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
49556echo >&5
49557_ACEOF
49558
49559# Files that config.status was made for.
49560if test -n "$ac_config_files"; then
49561 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
49562fi
49563
49564if test -n "$ac_config_headers"; then
49565 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
49566fi
49567
49568if test -n "$ac_config_links"; then
49569 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
49570fi
49571
49572if test -n "$ac_config_commands"; then
49573 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
49574fi
49575
49576cat >>$CONFIG_STATUS <<\_ACEOF
49577
49578ac_cs_usage="\
49579\`$as_me' instantiates files from templates according to the
49580current configuration.
49581
49582Usage: $0 [OPTIONS] [FILE]...
49583
49584 -h, --help print this help, then exit
49585 -V, --version print version number, then exit
49586 -q, --quiet do not print progress messages
49587 -d, --debug don't remove temporary files
49588 --recheck update $as_me by reconfiguring in the same conditions
49589 --file=FILE[:TEMPLATE]
ac1cb8d3 49590 instantiate the configuration file FILE
a848cd7e 49591 --header=FILE[:TEMPLATE]
ac1cb8d3 49592 instantiate the configuration header FILE
a848cd7e
SC
49593
49594Configuration files:
49595$config_files
49596
49597Configuration headers:
49598$config_headers
49599
49600Configuration commands:
49601$config_commands
49602
49603Report bugs to <bug-autoconf@gnu.org>."
49604_ACEOF
49605
49606cat >>$CONFIG_STATUS <<_ACEOF
49607ac_cs_version="\\
dd8df4fc 49608wxWidgets config.status 2.7.0
ac1cb8d3 49609configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
49610 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
49611
ac1cb8d3 49612Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
49613This config.status script is free software; the Free Software Foundation
49614gives unlimited permission to copy, distribute and modify it."
49615srcdir=$srcdir
49616INSTALL="$INSTALL"
49617_ACEOF
49618
49619cat >>$CONFIG_STATUS <<\_ACEOF
49620# If no file are specified by the user, then we need to provide default
49621# value. By we need to know if files were specified by the user.
49622ac_need_defaults=:
49623while test $# != 0
49624do
49625 case $1 in
49626 --*=*)
49627 ac_option=`expr "x$1" : 'x\([^=]*\)='`
49628 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
49629 ac_shift=:
49630 ;;
49631 -*)
49632 ac_option=$1
49633 ac_optarg=$2
49634 ac_shift=shift
49635 ;;
49636 *) # This is not an option, so the user has probably given explicit
49637 # arguments.
49638 ac_option=$1
49639 ac_need_defaults=false;;
49640 esac
49641
49642 case $ac_option in
49643 # Handling of the options.
49644_ACEOF
49645cat >>$CONFIG_STATUS <<\_ACEOF
49646 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
49647 ac_cs_recheck=: ;;
49648 --version | --vers* | -V )
49649 echo "$ac_cs_version"; exit 0 ;;
49650 --he | --h)
49651 # Conflict between --help and --header
49652 { { echo "$as_me:$LINENO: error: ambiguous option: $1
49653Try \`$0 --help' for more information." >&5
49654echo "$as_me: error: ambiguous option: $1
49655Try \`$0 --help' for more information." >&2;}
49656 { (exit 1); exit 1; }; };;
49657 --help | --hel | -h )
49658 echo "$ac_cs_usage"; exit 0 ;;
49659 --debug | --d* | -d )
49660 debug=: ;;
49661 --file | --fil | --fi | --f )
49662 $ac_shift
49663 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
49664 ac_need_defaults=false;;
49665 --header | --heade | --head | --hea )
49666 $ac_shift
49667 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
49668 ac_need_defaults=false;;
49669 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
49670 | -silent | --silent | --silen | --sile | --sil | --si | --s)
49671 ac_cs_silent=: ;;
49672
49673 # This is an error.
49674 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
49675Try \`$0 --help' for more information." >&5
49676echo "$as_me: error: unrecognized option: $1
49677Try \`$0 --help' for more information." >&2;}
49678 { (exit 1); exit 1; }; } ;;
49679
49680 *) ac_config_targets="$ac_config_targets $1" ;;
49681
49682 esac
49683 shift
49684done
49685
49686ac_configure_extra_args=
49687
49688if $ac_cs_silent; then
49689 exec 6>/dev/null
49690 ac_configure_extra_args="$ac_configure_extra_args --silent"
49691fi
49692
49693_ACEOF
49694cat >>$CONFIG_STATUS <<_ACEOF
49695if \$ac_cs_recheck; then
49696 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
49697 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
49698fi
49699
49700_ACEOF
49701
49702cat >>$CONFIG_STATUS <<_ACEOF
49703#
49704# INIT-COMMANDS section.
49705#
49706
5c60e845
MW
49707
49708 CPP="$CPP"
49709 infile="$srcdir/include/wx/msw/genrcdefs.h"
49710 outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
49711
49712
ceec2216
RL
49713 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
49714 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
49715 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
49716 LN_S="${LN_S}"
a848cd7e
SC
49717
49718
49719_ACEOF
49720
49721
49722
49723cat >>$CONFIG_STATUS <<\_ACEOF
49724for ac_config_target in $ac_config_targets
49725do
49726 case "$ac_config_target" in
49727 # Handling of arguments.
ceec2216
RL
49728 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
49729 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
49730 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
49731 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
49732 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
5c60e845 49733 "rcdefs.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
ceec2216
RL
49734 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
49735 "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
49736 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
49737echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
49738 { (exit 1); exit 1; }; };;
49739 esac
49740done
49741
49742# If the user did not use the arguments to specify the items to instantiate,
49743# then the envvar interface is used. Set only those that are not.
49744# We use the long form for the default assignment because of an extremely
49745# bizarre bug on SunOS 4.1.3.
49746if $ac_need_defaults; then
49747 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
49748 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
49749 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
49750fi
49751
49752# Have a temporary directory for convenience. Make it in the build tree
49753# simply because there is no reason to put it here, and in addition,
49754# creating and moving files from /tmp can sometimes cause problems.
49755# Create a temporary directory, and hook for its removal unless debugging.
49756$debug ||
49757{
49758 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
49759 trap '{ (exit 1); exit 1; }' 1 2 13 15
49760}
49761
49762# Create a (secure) tmp directory for tmp files.
49763
49764{
49765 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
49766 test -n "$tmp" && test -d "$tmp"
49767} ||
49768{
49769 tmp=./confstat$$-$RANDOM
49770 (umask 077 && mkdir $tmp)
49771} ||
49772{
49773 echo "$me: cannot create a temporary directory in ." >&2
49774 { (exit 1); exit 1; }
49775}
49776
49777_ACEOF
49778
49779cat >>$CONFIG_STATUS <<_ACEOF
49780
49781#
49782# CONFIG_FILES section.
49783#
49784
49785# No need to generate the scripts if there are no CONFIG_FILES.
49786# This happens for instance when ./config.status config.h
49787if test -n "\$CONFIG_FILES"; then
49788 # Protect against being on the right side of a sed subst in config.status.
49789 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
49790 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
49791s,@SHELL@,$SHELL,;t t
49792s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
49793s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
49794s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
49795s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
49796s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
49797s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
49798s,@exec_prefix@,$exec_prefix,;t t
49799s,@prefix@,$prefix,;t t
49800s,@program_transform_name@,$program_transform_name,;t t
49801s,@bindir@,$bindir,;t t
49802s,@sbindir@,$sbindir,;t t
49803s,@libexecdir@,$libexecdir,;t t
49804s,@datadir@,$datadir,;t t
49805s,@sysconfdir@,$sysconfdir,;t t
49806s,@sharedstatedir@,$sharedstatedir,;t t
49807s,@localstatedir@,$localstatedir,;t t
49808s,@libdir@,$libdir,;t t
49809s,@includedir@,$includedir,;t t
49810s,@oldincludedir@,$oldincludedir,;t t
49811s,@infodir@,$infodir,;t t
49812s,@mandir@,$mandir,;t t
49813s,@build_alias@,$build_alias,;t t
49814s,@host_alias@,$host_alias,;t t
49815s,@target_alias@,$target_alias,;t t
49816s,@DEFS@,$DEFS,;t t
49817s,@ECHO_C@,$ECHO_C,;t t
49818s,@ECHO_N@,$ECHO_N,;t t
49819s,@ECHO_T@,$ECHO_T,;t t
49820s,@LIBS@,$LIBS,;t t
49821s,@build@,$build,;t t
49822s,@build_cpu@,$build_cpu,;t t
49823s,@build_vendor@,$build_vendor,;t t
49824s,@build_os@,$build_os,;t t
49825s,@host@,$host,;t t
49826s,@host_cpu@,$host_cpu,;t t
49827s,@host_vendor@,$host_vendor,;t t
49828s,@host_os@,$host_os,;t t
49829s,@target@,$target,;t t
49830s,@target_cpu@,$target_cpu,;t t
49831s,@target_vendor@,$target_vendor,;t t
49832s,@target_os@,$target_os,;t t
49833s,@CC@,$CC,;t t
49834s,@CFLAGS@,$CFLAGS,;t t
49835s,@LDFLAGS@,$LDFLAGS,;t t
49836s,@CPPFLAGS@,$CPPFLAGS,;t t
49837s,@ac_ct_CC@,$ac_ct_CC,;t t
49838s,@EXEEXT@,$EXEEXT,;t t
49839s,@OBJEXT@,$OBJEXT,;t t
49840s,@CPP@,$CPP,;t t
49841s,@EGREP@,$EGREP,;t t
49842s,@CXX@,$CXX,;t t
49843s,@CXXFLAGS@,$CXXFLAGS,;t t
49844s,@ac_ct_CXX@,$ac_ct_CXX,;t t
49845s,@RANLIB@,$RANLIB,;t t
49846s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
49847s,@AR@,$AR,;t t
8c80d384 49848s,@ac_ct_AR@,$ac_ct_AR,;t t
a848cd7e
SC
49849s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
49850s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
49851s,@INSTALL_DATA@,$INSTALL_DATA,;t t
49852s,@STRIP@,$STRIP,;t t
8c80d384 49853s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8ced02f6
DE
49854s,@WINDRES@,$WINDRES,;t t
49855s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
8c80d384
DE
49856s,@DLLTOOL@,$DLLTOOL,;t t
49857s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
a848cd7e
SC
49858s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
49859s,@LN_S@,$LN_S,;t t
49860s,@CXXCPP@,$CXXCPP,;t t
49861s,@subdirs@,$subdirs,;t t
49862s,@PKG_CONFIG@,$PKG_CONFIG,;t t
49863s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
49864s,@GTK_LIBS@,$GTK_LIBS,;t t
49865s,@GTK_CONFIG@,$GTK_CONFIG,;t t
a848cd7e
SC
49866s,@X_CFLAGS@,$X_CFLAGS,;t t
49867s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
49868s,@X_LIBS@,$X_LIBS,;t t
49869s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
3ecd9f92 49870s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
a848cd7e
SC
49871s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
49872s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
49873s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
49874s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
49875s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
49876s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
8ced02f6 49877s,@REZ@,$REZ,;t t
a848cd7e
SC
49878s,@DEREZ@,$DEREZ,;t t
49879s,@SETFILE@,$SETFILE,;t t
49880s,@LIBICONV@,$LIBICONV,;t t
49881s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
49882s,@SDL_CONFIG@,$SDL_CONFIG,;t t
49883s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
49884s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
49885s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
49886s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
2b850ae1
RR
49887s,@GNOMEVFS_CFLAGS@,$GNOMEVFS_CFLAGS,;t t
49888s,@GNOMEVFS_LIBS@,$GNOMEVFS_LIBS,;t t
3565d135
RR
49889s,@HILDON_CFLAGS@,$HILDON_CFLAGS,;t t
49890s,@HILDON_LIBS@,$HILDON_LIBS,;t t
f10e38c4
VZ
49891s,@GST_CFLAGS@,$GST_CFLAGS,;t t
49892s,@GST_LIBS@,$GST_LIBS,;t t
a848cd7e
SC
49893s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
49894s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
49895s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
49896s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
49897s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
49898s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
49899s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
49900s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
49901s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
49902s,@VENDOR@,$VENDOR,;t t
49903s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
49904s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
49905s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
49906s,@WXUNIV@,$WXUNIV,;t t
49907s,@MONOLITHIC@,$MONOLITHIC,;t t
49908s,@USE_PLUGINS@,$USE_PLUGINS,;t t
49909s,@EXTRALIBS@,$EXTRALIBS,;t t
49910s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
49911s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
49912s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
49913s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
49914s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
49915s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
49916s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 49917s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
2b850ae1 49918s,@EXTRALIBS_GNOMEVFS@,$EXTRALIBS_GNOMEVFS,;t t
3565d135 49919s,@EXTRALIBS_HILDON@,$EXTRALIBS_HILDON,;t t
a848cd7e
SC
49920s,@UNICODE@,$UNICODE,;t t
49921s,@BUILD@,$BUILD,;t t
49922s,@DEBUG_INFO@,$DEBUG_INFO,;t t
49923s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
49924s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
49925s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
49926s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
49927s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
49928s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
49929s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
49930s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
49931s,@SET_MAKE@,$SET_MAKE,;t t
49932s,@MAKE_SET@,$MAKE_SET,;t t
a848cd7e
SC
49933s,@NM@,$NM,;t t
49934s,@ac_ct_NM@,$ac_ct_NM,;t t
49935s,@INSTALL_DIR@,$INSTALL_DIR,;t t
49936s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
49937s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
49938s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
49939s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
49940s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 49941s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
49942s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
49943s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 49944s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
49945s,@SO_SUFFIX@,$SO_SUFFIX,;t t
49946s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
49947s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
49948s,@LIBPREFIX@,$LIBPREFIX,;t t
49949s,@LIBEXT@,$LIBEXT,;t t
49950s,@DLLPREFIX@,$DLLPREFIX,;t t
49951s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
810b94f0 49952s,@dlldir@,$dlldir,;t t
a848cd7e
SC
49953s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
49954s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
49955s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
49956s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
49957s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
49958s,@PIC_FLAG@,$PIC_FLAG,;t t
810b94f0 49959s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t
a848cd7e
SC
49960s,@USE_SOVERSION@,$USE_SOVERSION,;t t
49961s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
49962s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
810b94f0 49963s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t
a848cd7e
SC
49964s,@USE_MACVERSION@,$USE_MACVERSION,;t t
49965s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
49966s,@SONAME_FLAG@,$SONAME_FLAG,;t t
49967s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
49968s,@GCC_PCH@,$GCC_PCH,;t t
f10e38c4 49969s,@ICC_PCH@,$ICC_PCH,;t t
a848cd7e
SC
49970s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
49971s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
49972s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
49973s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
49974s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
49975s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
49976s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
49977s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
49978s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
49979s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
49980s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
49981s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
49982s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
49983s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
49984s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
f10e38c4 49985s,@COND_ICC_PCH_1@,$COND_ICC_PCH_1,;t t
a848cd7e
SC
49986s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
49987s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
3f60522a 49988s,@COND_MONOLITHIC_0_SHARED_0_USE_AUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1,;t t
a848cd7e 49989s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 49990s,@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 49991s,@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 49992s,@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 49993s,@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 49994s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
8b6682b9 49995s,@COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1@,$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1,;t t
ceec2216 49996s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e 49997s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
3f60522a 49998s,@COND_MONOLITHIC_0_SHARED_1_USE_AUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1,;t t
a848cd7e 49999s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 50000s,@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 50001s,@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 50002s,@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 50003s,@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 50004s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
8b6682b9 50005s,@COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1@,$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1,;t t
ceec2216 50006s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
e5efa97e 50007s,@COND_MONOLITHIC_0_USE_MEDIA_1@,$COND_MONOLITHIC_0_USE_MEDIA_1,;t t
a848cd7e
SC
50008s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
50009s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
50010s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
50011s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
50012s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
50013s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
eb730a0c 50014s,@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1,;t t
a848cd7e
SC
50015s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
50016s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 50017s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
50018s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
50019s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
50020s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 50021s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 50022s,@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
50023s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
50024s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
50025s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
50026s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 50027s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
083508af 50028s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
e5efa97e 50029s,@COND_PLATFORM_MSDOS_0@,$COND_PLATFORM_MSDOS_0,;t t
83d8eb47 50030s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t
a848cd7e
SC
50031s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
50032s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
50033s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
50034s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
50035s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
50036s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
50037s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
50038s,@COND_SHARED_0@,$COND_SHARED_0,;t t
083508af
MW
50039s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
50040s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
50041s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
50042s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
50043s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
50044s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
50045s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af 50046s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
50047s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
50048s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
50049s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
50050s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
50051s,@COND_SHARED_1@,$COND_SHARED_1,;t t
50052s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
083508af 50053s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
a30f955f 50054s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 50055s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 50056s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
50057s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
50058s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
d044deea
MW
50059s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_,;t t
50060s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2,;t t
50061s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1,;t t
50062s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0,;t t
50063s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1,;t t
50064s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0,;t t
a848cd7e 50065s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
a848cd7e
SC
50066s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
50067s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
50068s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
50069s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
50070s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
50071s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
50072s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
50073s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
50074s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
50075s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
50076s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 50077s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
a848cd7e
SC
50078s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
50079s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
50080s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
50081s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
50082s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
50083s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 50084s,@COND_TOOLKIT_WINCE_WXUNIV_0@,$COND_TOOLKIT_WINCE_WXUNIV_0,;t t
a848cd7e
SC
50085s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
50086s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
50087s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
50088s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
50089s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
50090s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
50091s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
50092s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
50093s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
50094s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
50095s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
50096s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af
MW
50097s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
50098s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
f10e38c4 50099s,@COND_USE_PCH_1@,$COND_USE_PCH_1,;t t
a848cd7e 50100s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
0b78747f
MW
50101s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
50102s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
a848cd7e 50103s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
eb730a0c 50104s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t
a848cd7e
SC
50105s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
50106s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
50107s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
0b78747f
MW
50108s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
50109s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
a13a7f89 50110s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
eb730a0c 50111s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t
a848cd7e 50112s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 50113s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
50114s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
50115s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
50116s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
50117s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
50118s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
50119s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
50120s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
50121s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 50122s,@SHARED@,$SHARED,;t t
a848cd7e
SC
50123s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
50124s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
50125s,@USE_GUI@,$USE_GUI,;t t
50126s,@AFMINSTALL@,$AFMINSTALL,;t t
50127s,@WIN32INSTALL@,$WIN32INSTALL,;t t
50128s,@TOOLKIT@,$TOOLKIT,;t t
50129s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 50130s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 50131s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e 50132s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
50133s,@WIDGET_SET@,$WIDGET_SET,;t t
50134s,@WX_RELEASE@,$WX_RELEASE,;t t
50135s,@WX_VERSION@,$WX_VERSION,;t t
50136s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
50137s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
50138s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
5ff751d6
VZ
50139s,@WXCONFIG_CPPFLAGS@,$WXCONFIG_CPPFLAGS,;t t
50140s,@WXCONFIG_CFLAGS@,$WXCONFIG_CFLAGS,;t t
50141s,@WXCONFIG_CXXFLAGS@,$WXCONFIG_CXXFLAGS,;t t
50142s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
a848cd7e
SC
50143s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
50144s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
004ee6da 50145s,@WXCONFIG_RESFLAGS@,$WXCONFIG_RESFLAGS,;t t
ceec2216 50146s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 50147s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
50148s,@DISTDIR@,$DISTDIR,;t t
50149s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
50150s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
50151s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
50152s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
50153s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
004ee6da 50154s,@RESCOMP@,$RESCOMP,;t t
a848cd7e
SC
50155s,@RESFLAGS@,$RESFLAGS,;t t
50156s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
50157s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
50158s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
50159s,@LIBWXMACRES@,$LIBWXMACRES,;t t
8ced02f6 50160s,@POSTLINK_COMMAND@,$POSTLINK_COMMAND,;t t
a848cd7e 50161s,@MACSETFILE@,$MACSETFILE,;t t
a848cd7e 50162s,@GCC@,$GCC,;t t
a848cd7e
SC
50163s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
50164s,@LIBOBJS@,$LIBOBJS,;t t
50165s,@LTLIBOBJS@,$LTLIBOBJS,;t t
50166CEOF
50167
50168_ACEOF
50169
50170 cat >>$CONFIG_STATUS <<\_ACEOF
50171 # Split the substitutions into bite-sized pieces for seds with
50172 # small command number limits, like on Digital OSF/1 and HP-UX.
50173 ac_max_sed_lines=48
50174 ac_sed_frag=1 # Number of current file.
50175 ac_beg=1 # First line for current file.
50176 ac_end=$ac_max_sed_lines # Line after last line for current file.
50177 ac_more_lines=:
50178 ac_sed_cmds=
50179 while $ac_more_lines; do
50180 if test $ac_beg -gt 1; then
50181 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
50182 else
50183 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
50184 fi
50185 if test ! -s $tmp/subs.frag; then
50186 ac_more_lines=false
50187 else
50188 # The purpose of the label and of the branching condition is to
50189 # speed up the sed processing (if there are no `@' at all, there
50190 # is no need to browse any of the substitutions).
50191 # These are the two extra sed commands mentioned above.
50192 (echo ':t
50193 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
50194 if test -z "$ac_sed_cmds"; then
ac1cb8d3 50195 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 50196 else
ac1cb8d3 50197 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
50198 fi
50199 ac_sed_frag=`expr $ac_sed_frag + 1`
50200 ac_beg=$ac_end
50201 ac_end=`expr $ac_end + $ac_max_sed_lines`
50202 fi
50203 done
50204 if test -z "$ac_sed_cmds"; then
50205 ac_sed_cmds=cat
50206 fi
50207fi # test -n "$CONFIG_FILES"
50208
50209_ACEOF
50210cat >>$CONFIG_STATUS <<\_ACEOF
50211for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
50212 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
50213 case $ac_file in
50214 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
50215 cat >$tmp/stdin
50216 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
50217 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 50218 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 50219 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
50220 * ) ac_file_in=$ac_file.in ;;
50221 esac
50222
50223 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
50224 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
50225$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
50226 X"$ac_file" : 'X\(//\)[^/]' \| \
50227 X"$ac_file" : 'X\(//\)$' \| \
50228 X"$ac_file" : 'X\(/\)' \| \
50229 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
50230echo X"$ac_file" |
50231 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50232 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50233 /^X\(\/\/\)$/{ s//\1/; q; }
50234 /^X\(\/\).*/{ s//\1/; q; }
50235 s/.*/./; q'`
50236 { if $as_mkdir_p; then
50237 mkdir -p "$ac_dir"
50238 else
50239 as_dir="$ac_dir"
50240 as_dirs=
50241 while test ! -d "$as_dir"; do
50242 as_dirs="$as_dir $as_dirs"
50243 as_dir=`(dirname "$as_dir") 2>/dev/null ||
50244$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
50245 X"$as_dir" : 'X\(//\)[^/]' \| \
50246 X"$as_dir" : 'X\(//\)$' \| \
50247 X"$as_dir" : 'X\(/\)' \| \
50248 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
50249echo X"$as_dir" |
50250 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50251 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50252 /^X\(\/\/\)$/{ s//\1/; q; }
50253 /^X\(\/\).*/{ s//\1/; q; }
50254 s/.*/./; q'`
50255 done
50256 test ! -n "$as_dirs" || mkdir $as_dirs
50257 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50258echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50259 { (exit 1); exit 1; }; }; }
50260
50261 ac_builddir=.
50262
50263if test "$ac_dir" != .; then
50264 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
50265 # A "../" for each directory in $ac_dir_suffix.
50266 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
50267else
50268 ac_dir_suffix= ac_top_builddir=
50269fi
50270
50271case $srcdir in
50272 .) # No --srcdir option. We are building in place.
50273 ac_srcdir=.
50274 if test -z "$ac_top_builddir"; then
50275 ac_top_srcdir=.
50276 else
50277 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
50278 fi ;;
50279 [\\/]* | ?:[\\/]* ) # Absolute path.
50280 ac_srcdir=$srcdir$ac_dir_suffix;
50281 ac_top_srcdir=$srcdir ;;
50282 *) # Relative path.
50283 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
50284 ac_top_srcdir=$ac_top_builddir$srcdir ;;
50285esac
ac1cb8d3
VS
50286
50287# Do not use `cd foo && pwd` to compute absolute paths, because
50288# the directories may not exist.
50289case `pwd` in
50290.) ac_abs_builddir="$ac_dir";;
50291*)
50292 case "$ac_dir" in
50293 .) ac_abs_builddir=`pwd`;;
50294 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
50295 *) ac_abs_builddir=`pwd`/"$ac_dir";;
50296 esac;;
50297esac
50298case $ac_abs_builddir in
50299.) ac_abs_top_builddir=${ac_top_builddir}.;;
50300*)
50301 case ${ac_top_builddir}. in
50302 .) ac_abs_top_builddir=$ac_abs_builddir;;
50303 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
50304 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
50305 esac;;
50306esac
50307case $ac_abs_builddir in
50308.) ac_abs_srcdir=$ac_srcdir;;
50309*)
50310 case $ac_srcdir in
50311 .) ac_abs_srcdir=$ac_abs_builddir;;
50312 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
50313 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
50314 esac;;
50315esac
50316case $ac_abs_builddir in
50317.) ac_abs_top_srcdir=$ac_top_srcdir;;
50318*)
50319 case $ac_top_srcdir in
50320 .) ac_abs_top_srcdir=$ac_abs_builddir;;
50321 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
50322 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
50323 esac;;
50324esac
a848cd7e
SC
50325
50326
50327 case $INSTALL in
50328 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
50329 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
50330 esac
50331
a848cd7e
SC
50332 # Let's still pretend it is `configure' which instantiates (i.e., don't
50333 # use $as_me), people would be surprised to read:
50334 # /* config.h. Generated by config.status. */
50335 if test x"$ac_file" = x-; then
50336 configure_input=
50337 else
50338 configure_input="$ac_file. "
50339 fi
50340 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 50341 sed 's,.*/,,'` by configure."
a848cd7e
SC
50342
50343 # First look for the input files in the build tree, otherwise in the
50344 # src tree.
50345 ac_file_inputs=`IFS=:
50346 for f in $ac_file_in; do
50347 case $f in
50348 -) echo $tmp/stdin ;;
50349 [\\/$]*)
ac1cb8d3
VS
50350 # Absolute (can't be DOS-style, as IFS=:)
50351 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
50352echo "$as_me: error: cannot find input file: $f" >&2;}
50353 { (exit 1); exit 1; }; }
ac1cb8d3 50354 echo "$f";;
a848cd7e 50355 *) # Relative
ac1cb8d3
VS
50356 if test -f "$f"; then
50357 # Build tree
50358 echo "$f"
50359 elif test -f "$srcdir/$f"; then
50360 # Source tree
50361 echo "$srcdir/$f"
50362 else
50363 # /dev/null tree
50364 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
50365echo "$as_me: error: cannot find input file: $f" >&2;}
50366 { (exit 1); exit 1; }; }
ac1cb8d3 50367 fi;;
a848cd7e
SC
50368 esac
50369 done` || { (exit 1); exit 1; }
c9a66001
VZ
50370
50371 if test x"$ac_file" != x-; then
50372 { echo "$as_me:$LINENO: creating $ac_file" >&5
50373echo "$as_me: creating $ac_file" >&6;}
50374 rm -f "$ac_file"
50375 fi
a848cd7e
SC
50376_ACEOF
50377cat >>$CONFIG_STATUS <<_ACEOF
50378 sed "$ac_vpsub
50379$extrasub
50380_ACEOF
50381cat >>$CONFIG_STATUS <<\_ACEOF
50382:t
50383/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
50384s,@configure_input@,$configure_input,;t t
50385s,@srcdir@,$ac_srcdir,;t t
50386s,@abs_srcdir@,$ac_abs_srcdir,;t t
50387s,@top_srcdir@,$ac_top_srcdir,;t t
50388s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
50389s,@builddir@,$ac_builddir,;t t
50390s,@abs_builddir@,$ac_abs_builddir,;t t
50391s,@top_builddir@,$ac_top_builddir,;t t
50392s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
50393s,@INSTALL@,$ac_INSTALL,;t t
50394" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
50395 rm -f $tmp/stdin
50396 if test x"$ac_file" != x-; then
50397 mv $tmp/out $ac_file
50398 else
50399 cat $tmp/out
50400 rm -f $tmp/out
50401 fi
50402
ceec2216
RL
50403 # Run the commands associated with the file.
50404 case $ac_file in
50405 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
50406 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
50407 esac
a848cd7e
SC
50408done
50409_ACEOF
50410cat >>$CONFIG_STATUS <<\_ACEOF
50411
50412#
50413# CONFIG_HEADER section.
50414#
50415
50416# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
50417# NAME is the cpp macro being defined and VALUE is the value it is being given.
50418#
50419# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
50420ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
50421ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
50422ac_dC=' '
50423ac_dD=',;t'
50424# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 50425ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
50426ac_uB='$,\1#\2define\3'
50427ac_uC=' '
50428ac_uD=',;t'
50429
50430for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
50431 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
50432 case $ac_file in
50433 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
50434 cat >$tmp/stdin
50435 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
50436 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 50437 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 50438 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
50439 * ) ac_file_in=$ac_file.in ;;
50440 esac
50441
50442 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
50443echo "$as_me: creating $ac_file" >&6;}
50444
50445 # First look for the input files in the build tree, otherwise in the
50446 # src tree.
50447 ac_file_inputs=`IFS=:
50448 for f in $ac_file_in; do
50449 case $f in
50450 -) echo $tmp/stdin ;;
50451 [\\/$]*)
ac1cb8d3
VS
50452 # Absolute (can't be DOS-style, as IFS=:)
50453 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
50454echo "$as_me: error: cannot find input file: $f" >&2;}
50455 { (exit 1); exit 1; }; }
ac1cb8d3
VS
50456 # Do quote $f, to prevent DOS paths from being IFS'd.
50457 echo "$f";;
a848cd7e 50458 *) # Relative
ac1cb8d3
VS
50459 if test -f "$f"; then
50460 # Build tree
50461 echo "$f"
50462 elif test -f "$srcdir/$f"; then
50463 # Source tree
50464 echo "$srcdir/$f"
50465 else
50466 # /dev/null tree
50467 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
50468echo "$as_me: error: cannot find input file: $f" >&2;}
50469 { (exit 1); exit 1; }; }
ac1cb8d3 50470 fi;;
a848cd7e
SC
50471 esac
50472 done` || { (exit 1); exit 1; }
50473 # Remove the trailing spaces.
ac1cb8d3 50474 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
50475
50476_ACEOF
50477
50478# Transform confdefs.h into two sed scripts, `conftest.defines' and
50479# `conftest.undefs', that substitutes the proper values into
50480# config.h.in to produce config.h. The first handles `#define'
50481# templates, and the second `#undef' templates.
50482# And first: Protect against being on the right side of a sed subst in
50483# config.status. Protect against being in an unquoted here document
50484# in config.status.
50485rm -f conftest.defines conftest.undefs
50486# Using a here document instead of a string reduces the quoting nightmare.
50487# Putting comments in sed scripts is not portable.
50488#
50489# `end' is used to avoid that the second main sed command (meant for
50490# 0-ary CPP macros) applies to n-ary macro definitions.
50491# See the Autoconf documentation for `clear'.
50492cat >confdef2sed.sed <<\_ACEOF
50493s/[\\&,]/\\&/g
50494s,[\\$`],\\&,g
50495t clear
50496: clear
ac1cb8d3 50497s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 50498t end
ac1cb8d3 50499s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
50500: end
50501_ACEOF
50502# If some macros were called several times there might be several times
50503# the same #defines, which is useless. Nevertheless, we may not want to
50504# sort them, since we want the *last* AC-DEFINE to be honored.
50505uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
50506sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
50507rm -f confdef2sed.sed
50508
50509# This sed command replaces #undef with comments. This is necessary, for
50510# example, in the case of _POSIX_SOURCE, which is predefined and required
50511# on some systems where configure will not decide to define it.
50512cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 50513s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
50514_ACEOF
50515
50516# Break up conftest.defines because some shells have a limit on the size
50517# of here documents, and old seds have small limits too (100 cmds).
50518echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 50519echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
50520echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
50521echo ' :' >>$CONFIG_STATUS
50522rm -f conftest.tail
50523while grep . conftest.defines >/dev/null
50524do
50525 # Write a limited-size here document to $tmp/defines.sed.
50526 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
50527 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 50528 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
50529 # Work around the forget-to-reset-the-flag bug.
50530 echo 't clr' >>$CONFIG_STATUS
50531 echo ': clr' >>$CONFIG_STATUS
50532 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
50533 echo 'CEOF
50534 sed -f $tmp/defines.sed $tmp/in >$tmp/out
50535 rm -f $tmp/in
50536 mv $tmp/out $tmp/in
50537' >>$CONFIG_STATUS
50538 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
50539 rm -f conftest.defines
50540 mv conftest.tail conftest.defines
50541done
50542rm -f conftest.defines
50543echo ' fi # grep' >>$CONFIG_STATUS
50544echo >>$CONFIG_STATUS
50545
50546# Break up conftest.undefs because some shells have a limit on the size
50547# of here documents, and old seds have small limits too (100 cmds).
50548echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
50549rm -f conftest.tail
50550while grep . conftest.undefs >/dev/null
50551do
50552 # Write a limited-size here document to $tmp/undefs.sed.
50553 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
50554 # Speed up: don't consider the non `#undef'
ac1cb8d3 50555 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
50556 # Work around the forget-to-reset-the-flag bug.
50557 echo 't clr' >>$CONFIG_STATUS
50558 echo ': clr' >>$CONFIG_STATUS
50559 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
50560 echo 'CEOF
50561 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
50562 rm -f $tmp/in
50563 mv $tmp/out $tmp/in
50564' >>$CONFIG_STATUS
50565 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
50566 rm -f conftest.undefs
50567 mv conftest.tail conftest.undefs
50568done
50569rm -f conftest.undefs
50570
50571cat >>$CONFIG_STATUS <<\_ACEOF
50572 # Let's still pretend it is `configure' which instantiates (i.e., don't
50573 # use $as_me), people would be surprised to read:
50574 # /* config.h. Generated by config.status. */
50575 if test x"$ac_file" = x-; then
50576 echo "/* Generated by configure. */" >$tmp/config.h
50577 else
50578 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
50579 fi
50580 cat $tmp/in >>$tmp/config.h
50581 rm -f $tmp/in
50582 if test x"$ac_file" != x-; then
50583 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
50584 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
50585echo "$as_me: $ac_file is unchanged" >&6;}
50586 else
50587 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
50588$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
50589 X"$ac_file" : 'X\(//\)[^/]' \| \
50590 X"$ac_file" : 'X\(//\)$' \| \
50591 X"$ac_file" : 'X\(/\)' \| \
50592 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
50593echo X"$ac_file" |
50594 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50595 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50596 /^X\(\/\/\)$/{ s//\1/; q; }
50597 /^X\(\/\).*/{ s//\1/; q; }
50598 s/.*/./; q'`
50599 { if $as_mkdir_p; then
50600 mkdir -p "$ac_dir"
50601 else
50602 as_dir="$ac_dir"
50603 as_dirs=
50604 while test ! -d "$as_dir"; do
50605 as_dirs="$as_dir $as_dirs"
50606 as_dir=`(dirname "$as_dir") 2>/dev/null ||
50607$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
50608 X"$as_dir" : 'X\(//\)[^/]' \| \
50609 X"$as_dir" : 'X\(//\)$' \| \
50610 X"$as_dir" : 'X\(/\)' \| \
50611 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
50612echo X"$as_dir" |
50613 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50614 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50615 /^X\(\/\/\)$/{ s//\1/; q; }
50616 /^X\(\/\).*/{ s//\1/; q; }
50617 s/.*/./; q'`
50618 done
50619 test ! -n "$as_dirs" || mkdir $as_dirs
50620 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50621echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50622 { (exit 1); exit 1; }; }; }
50623
50624 rm -f $ac_file
50625 mv $tmp/config.h $ac_file
50626 fi
50627 else
50628 cat $tmp/config.h
50629 rm -f $tmp/config.h
50630 fi
50631done
50632_ACEOF
50633cat >>$CONFIG_STATUS <<\_ACEOF
50634
50635#
50636# CONFIG_COMMANDS section.
50637#
50638for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
50639 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
50640 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
50641 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
50642$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
50643 X"$ac_dest" : 'X\(//\)[^/]' \| \
50644 X"$ac_dest" : 'X\(//\)$' \| \
50645 X"$ac_dest" : 'X\(/\)' \| \
50646 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
50647echo X"$ac_dest" |
50648 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50649 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50650 /^X\(\/\/\)$/{ s//\1/; q; }
50651 /^X\(\/\).*/{ s//\1/; q; }
50652 s/.*/./; q'`
ac1cb8d3
VS
50653 { if $as_mkdir_p; then
50654 mkdir -p "$ac_dir"
50655 else
50656 as_dir="$ac_dir"
50657 as_dirs=
50658 while test ! -d "$as_dir"; do
50659 as_dirs="$as_dir $as_dirs"
50660 as_dir=`(dirname "$as_dir") 2>/dev/null ||
50661$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50662 X"$as_dir" : 'X\(//\)[^/]' \| \
50663 X"$as_dir" : 'X\(//\)$' \| \
50664 X"$as_dir" : 'X\(/\)' \| \
50665 . : '\(.\)' 2>/dev/null ||
50666echo X"$as_dir" |
50667 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50668 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50669 /^X\(\/\/\)$/{ s//\1/; q; }
50670 /^X\(\/\).*/{ s//\1/; q; }
50671 s/.*/./; q'`
50672 done
50673 test ! -n "$as_dirs" || mkdir $as_dirs
50674 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50675echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50676 { (exit 1); exit 1; }; }; }
50677
a848cd7e
SC
50678 ac_builddir=.
50679
50680if test "$ac_dir" != .; then
50681 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
50682 # A "../" for each directory in $ac_dir_suffix.
50683 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
50684else
50685 ac_dir_suffix= ac_top_builddir=
50686fi
50687
50688case $srcdir in
50689 .) # No --srcdir option. We are building in place.
50690 ac_srcdir=.
50691 if test -z "$ac_top_builddir"; then
50692 ac_top_srcdir=.
50693 else
50694 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
50695 fi ;;
50696 [\\/]* | ?:[\\/]* ) # Absolute path.
50697 ac_srcdir=$srcdir$ac_dir_suffix;
50698 ac_top_srcdir=$srcdir ;;
50699 *) # Relative path.
50700 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
50701 ac_top_srcdir=$ac_top_builddir$srcdir ;;
50702esac
ac1cb8d3
VS
50703
50704# Do not use `cd foo && pwd` to compute absolute paths, because
50705# the directories may not exist.
50706case `pwd` in
50707.) ac_abs_builddir="$ac_dir";;
50708*)
50709 case "$ac_dir" in
50710 .) ac_abs_builddir=`pwd`;;
50711 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
50712 *) ac_abs_builddir=`pwd`/"$ac_dir";;
50713 esac;;
50714esac
50715case $ac_abs_builddir in
50716.) ac_abs_top_builddir=${ac_top_builddir}.;;
50717*)
50718 case ${ac_top_builddir}. in
50719 .) ac_abs_top_builddir=$ac_abs_builddir;;
50720 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
50721 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
50722 esac;;
50723esac
50724case $ac_abs_builddir in
50725.) ac_abs_srcdir=$ac_srcdir;;
50726*)
50727 case $ac_srcdir in
50728 .) ac_abs_srcdir=$ac_abs_builddir;;
50729 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
50730 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
50731 esac;;
50732esac
50733case $ac_abs_builddir in
50734.) ac_abs_top_srcdir=$ac_top_srcdir;;
50735*)
50736 case $ac_top_srcdir in
50737 .) ac_abs_top_srcdir=$ac_abs_builddir;;
50738 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
50739 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
50740 esac;;
50741esac
a848cd7e
SC
50742
50743
50744 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
50745echo "$as_me: executing $ac_dest commands" >&6;}
50746 case $ac_dest in
5c60e845
MW
50747 rcdefs.h )
50748 mkdir -p $outdir &&
50749 $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
50750 ;;
ceec2216
RL
50751 wx-config ) rm -f wx-config
50752 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
50753 ;;
a848cd7e
SC
50754 esac
50755done
50756_ACEOF
50757
50758cat >>$CONFIG_STATUS <<\_ACEOF
50759
50760{ (exit 0); exit 0; }
50761_ACEOF
50762chmod +x $CONFIG_STATUS
50763ac_clean_files=$ac_clean_files_save
50764
50765
50766# configure is writing to config.log, and then calls config.status.
50767# config.status does its own redirection, appending to config.log.
50768# Unfortunately, on DOS this fails, as config.log is still kept open
50769# by configure, so config.status won't be able to write to it; its
50770# output is simply discarded. So we exec the FD to /dev/null,
50771# effectively closing config.log, so it can be properly (re)opened and
50772# appended to by config.status. When coming back to configure, we
50773# need to make the FD available again.
50774if test "$no_create" != yes; then
50775 ac_cs_success=:
50776 ac_config_status_args=
50777 test "$silent" = yes &&
50778 ac_config_status_args="$ac_config_status_args --quiet"
50779 exec 5>/dev/null
50780 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
50781 exec 5>>config.log
50782 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
50783 # would make configure fail if this is the last instruction.
50784 $ac_cs_success || { (exit 1); exit 1; }
50785fi
50786
50787#
50788# CONFIG_SUBDIRS section.
50789#
50790if test "$no_recursion" != yes; then
50791
50792 # Remove --cache-file and --srcdir arguments so they do not pile up.
50793 ac_sub_configure_args=
50794 ac_prev=
50795 for ac_arg in $ac_configure_args; do
50796 if test -n "$ac_prev"; then
50797 ac_prev=
50798 continue
50799 fi
50800 case $ac_arg in
50801 -cache-file | --cache-file | --cache-fil | --cache-fi \
50802 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
50803 ac_prev=cache_file ;;
50804 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
50805 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
50806 | --c=*)
50807 ;;
50808 --config-cache | -C)
50809 ;;
50810 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
50811 ac_prev=srcdir ;;
50812 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
50813 ;;
50814 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
50815 ac_prev=prefix ;;
50816 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
50817 ;;
50818 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
50819 esac
50820 done
50821
50822 # Always prepend --prefix to ensure using the same prefix
50823 # in subdir configurations.
50824 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
50825
50826 ac_popdir=`pwd`
50827 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
50828
50829 # Do not complain, so a configure script can configure whichever
50830 # parts of a large source tree are present.
50831 test -d $srcdir/$ac_dir || continue
50832
50833 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
50834echo "$as_me: configuring in $ac_dir" >&6;}
50835 { if $as_mkdir_p; then
50836 mkdir -p "$ac_dir"
50837 else
50838 as_dir="$ac_dir"
50839 as_dirs=
50840 while test ! -d "$as_dir"; do
50841 as_dirs="$as_dir $as_dirs"
50842 as_dir=`(dirname "$as_dir") 2>/dev/null ||
50843$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
50844 X"$as_dir" : 'X\(//\)[^/]' \| \
50845 X"$as_dir" : 'X\(//\)$' \| \
50846 X"$as_dir" : 'X\(/\)' \| \
50847 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
50848echo X"$as_dir" |
50849 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50850 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50851 /^X\(\/\/\)$/{ s//\1/; q; }
50852 /^X\(\/\).*/{ s//\1/; q; }
50853 s/.*/./; q'`
50854 done
50855 test ! -n "$as_dirs" || mkdir $as_dirs
50856 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50857echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50858 { (exit 1); exit 1; }; }; }
50859
50860 ac_builddir=.
50861
50862if test "$ac_dir" != .; then
50863 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
50864 # A "../" for each directory in $ac_dir_suffix.
50865 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
50866else
50867 ac_dir_suffix= ac_top_builddir=
50868fi
50869
50870case $srcdir in
50871 .) # No --srcdir option. We are building in place.
50872 ac_srcdir=.
50873 if test -z "$ac_top_builddir"; then
50874 ac_top_srcdir=.
50875 else
50876 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
50877 fi ;;
50878 [\\/]* | ?:[\\/]* ) # Absolute path.
50879 ac_srcdir=$srcdir$ac_dir_suffix;
50880 ac_top_srcdir=$srcdir ;;
50881 *) # Relative path.
50882 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
50883 ac_top_srcdir=$ac_top_builddir$srcdir ;;
50884esac
ac1cb8d3
VS
50885
50886# Do not use `cd foo && pwd` to compute absolute paths, because
50887# the directories may not exist.
50888case `pwd` in
50889.) ac_abs_builddir="$ac_dir";;
50890*)
50891 case "$ac_dir" in
50892 .) ac_abs_builddir=`pwd`;;
50893 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
50894 *) ac_abs_builddir=`pwd`/"$ac_dir";;
50895 esac;;
50896esac
50897case $ac_abs_builddir in
50898.) ac_abs_top_builddir=${ac_top_builddir}.;;
50899*)
50900 case ${ac_top_builddir}. in
50901 .) ac_abs_top_builddir=$ac_abs_builddir;;
50902 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
50903 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
50904 esac;;
50905esac
50906case $ac_abs_builddir in
50907.) ac_abs_srcdir=$ac_srcdir;;
50908*)
50909 case $ac_srcdir in
50910 .) ac_abs_srcdir=$ac_abs_builddir;;
50911 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
50912 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
50913 esac;;
50914esac
50915case $ac_abs_builddir in
50916.) ac_abs_top_srcdir=$ac_top_srcdir;;
50917*)
50918 case $ac_top_srcdir in
50919 .) ac_abs_top_srcdir=$ac_abs_builddir;;
50920 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
50921 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
50922 esac;;
50923esac
a848cd7e
SC
50924
50925
50926 cd $ac_dir
50927
50928 # Check for guested configure; otherwise get Cygnus style configure.
50929 if test -f $ac_srcdir/configure.gnu; then
50930 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
50931 elif test -f $ac_srcdir/configure; then
50932 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
50933 elif test -f $ac_srcdir/configure.in; then
50934 ac_sub_configure=$ac_configure
50935 else
50936 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
50937echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
50938 ac_sub_configure=
50939 fi
50940
50941 # The recursion is here.
50942 if test -n "$ac_sub_configure"; then
50943 # Make the cache file name correct relative to the subdirectory.
50944 case $cache_file in
50945 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
50946 *) # Relative path.
ac1cb8d3 50947 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
50948 esac
50949
50950 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
50951echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
50952 # The eval makes quoting arguments work.
50953 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
50954 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
50955 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
50956echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
50957 { (exit 1); exit 1; }; }
50958 fi
50959
c9a66001 50960 cd "$ac_popdir"
a848cd7e
SC
50961 done
50962fi
50963
50964
50965echo
77ffb593 50966echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 50967echo ""
c2e9ada4 50968echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_DESC}"
77ffb593 50969echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 50970
77ffb593
JS
50971echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
50972echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
50973echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 50974
77ffb593 50975echo " What level of wxWidgets compatibility should be enabled?"
dee1a63f
MB
50976echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-no}"
50977echo " wxWidgets 2.6 ${WXWIN_COMPATIBILITY_2_6:-yes}"
a848cd7e 50978
77ffb593 50979echo " Which libraries should wxWidgets use?"
a848cd7e
SC
50980echo " jpeg ${wxUSE_LIBJPEG-none}"
50981echo " png ${wxUSE_LIBPNG-none}"
50982echo " regex ${wxUSE_REGEX}"
50983echo " tiff ${wxUSE_LIBTIFF-none}"
50984if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
50985echo " xpm ${wxUSE_LIBXPM-none}"
50986fi
50987echo " zlib ${wxUSE_ZLIB}"
50988echo " odbc ${wxUSE_ODBC}"
50989echo " expat ${wxUSE_EXPAT}"
50990echo " libmspack ${wxUSE_LIBMSPACK}"
50991echo " sdl ${wxUSE_LIBSDL}"
50992
50993echo ""
50994