]> git.saurik.com Git - wxWidgets.git/blame - configure
renamed wxComboControl to wxComboCtrl and related wxUSE_XXX and configure switches...
[wxWidgets.git] / configure
CommitLineData
a848cd7e
SC
1#! /bin/sh
2# From configure.in Id: configure.in.
3# Guess values for system-dependent variables and create Makefiles.
dd8df4fc 4# Generated by GNU Autoconf 2.59 for wxWidgets 2.7.0.
a848cd7e 5#
77ffb593 6# Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e 7#
ac1cb8d3 8# Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24fi
ac1cb8d3 25DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
26
27# Support unset when possible.
ac1cb8d3 28if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
29 as_unset=unset
30else
31 as_unset=false
32fi
33
34
35# Work around bugs in pre-3.0 UWIN ksh.
36$as_unset ENV MAIL MAILPATH
37PS1='$ '
38PS2='> '
39PS4='+ '
40
41# NLS nuisances.
42for as_var in \
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 LC_TELEPHONE LC_TIME
46do
ac1cb8d3 47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
51 fi
52done
53
54# Required to use basename.
55if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57else
58 as_expr=false
59fi
60
61if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63else
64 as_basename=false
65fi
66
67
68# Name of the executable.
69as_me=`$as_basename "$0" ||
70$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
74echo X/"$0" |
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
78 s/.*/./; q'`
79
80
81# PATH needs CR, and LINENO needs CR and PATH.
82# Avoid depending upon Character Ranges.
83as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86as_cr_digits='0123456789'
87as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89# The user is always right.
90if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
93 chmod +x conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95 PATH_SEPARATOR=';'
96 else
97 PATH_SEPARATOR=:
98 fi
99 rm -f conf$$.sh
100fi
101
102
103 as_lineno_1=$LINENO
104 as_lineno_2=$LINENO
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
109 # relative or not.
110 case $0 in
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113for as_dir in $PATH
114do
115 IFS=$as_save_IFS
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118done
119
120 ;;
121 esac
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
125 as_myself=$0
126 fi
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
130 fi
131 case $CONFIG_SHELL in
132 '')
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135do
136 IFS=$as_save_IFS
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
139 case $as_dir in
140 /*)
141 if ("$as_dir/$as_base" -c '
142 as_lineno_1=$LINENO
143 as_lineno_2=$LINENO
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
150 export CONFIG_SHELL
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 fi;;
153 esac
154 done
155done
156;;
157 esac
158
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
168 sed '
169 N
170 s,$,-,
171 : loop
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 t loop
174 s,-$,,
175 s,^['$as_cr_digits']*\n,,
176 ' >$as_me.lineno &&
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
180
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
184 . ./$as_me.lineno
185 # Exit status is that of the last command.
186 exit
187}
188
189
190case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
192' ECHO_T=' ' ;;
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195esac
196
197if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199else
200 as_expr=false
201fi
202
203rm -f conf$$ conf$$.exe conf$$.file
204echo >conf$$.file
205if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
210 as_ln_s='cp -p'
211 else
212 as_ln_s='ln -s'
213 fi
214elif ln conf$$.file conf$$ 2>/dev/null; then
215 as_ln_s=ln
216else
217 as_ln_s='cp -p'
218fi
219rm -f conf$$ conf$$.exe conf$$.file
220
221if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223else
ac1cb8d3 224 test -d ./-p && rmdir ./-p
a848cd7e
SC
225 as_mkdir_p=false
226fi
227
228as_executable_p="test -f"
229
230# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 231as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
232
233# Sed expression to map a string onto a valid variable name.
ac1cb8d3 234as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
235
236
237# IFS
238# We need space, tab and new line, in precisely that order.
239as_nl='
240'
241IFS=" $as_nl"
242
243# CDPATH.
244$as_unset CDPATH
245
246
247# Name of the host.
248# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249# so uname gets run too.
250ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251
252exec 6>&1
253
254#
255# Initializations.
256#
257ac_default_prefix=/usr/local
258ac_config_libobj_dir=.
259cross_compiling=no
260subdirs=
261MFLAGS=
262MAKEFLAGS=
263SHELL=${CONFIG_SHELL-/bin/sh}
264
265# Maximum number of lines to put in a shell here document.
266# This variable seems obsolete. It should probably be removed, and
267# only ac_max_sed_lines should be used.
268: ${ac_max_here_lines=38}
269
270# Identity of this package.
77ffb593
JS
271PACKAGE_NAME='wxWidgets'
272PACKAGE_TARNAME='wxwidgets'
dd8df4fc
VZ
273PACKAGE_VERSION='2.7.0'
274PACKAGE_STRING='wxWidgets 2.7.0'
77ffb593 275PACKAGE_BUGREPORT='wx-dev@lists.wxwidgets.org'
a848cd7e
SC
276
277ac_unique_file="wx-config.in"
278# Factoring default headers for most tests.
279ac_includes_default="\
280#include <stdio.h>
281#if HAVE_SYS_TYPES_H
282# include <sys/types.h>
283#endif
284#if HAVE_SYS_STAT_H
285# include <sys/stat.h>
286#endif
287#if STDC_HEADERS
288# include <stdlib.h>
289# include <stddef.h>
290#else
291# if HAVE_STDLIB_H
292# include <stdlib.h>
293# endif
294#endif
295#if HAVE_STRING_H
296# if !STDC_HEADERS && HAVE_MEMORY_H
297# include <memory.h>
298# endif
299# include <string.h>
300#endif
301#if HAVE_STRINGS_H
302# include <strings.h>
303#endif
304#if HAVE_INTTYPES_H
305# include <inttypes.h>
306#else
307# if HAVE_STDINT_H
308# include <stdint.h>
309# endif
310#endif
311#if HAVE_UNISTD_H
312# include <unistd.h>
313#endif"
314
315ac_subdirs_all="$ac_subdirs_all src/expat"
2b850ae1 316ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR ac_ct_AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP ac_ct_STRIP WINDRES ac_ct_WINDRES DLLTOOL ac_ct_DLLTOOL IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS REZ DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS LIBGNOMEPRINTUI_CFLAGS LIBGNOMEPRINTUI_LIBS GNOMEVFS_CFLAGS GNOMEVFS_LIBS HILDON_CFLAGS HILDON_LIBS GST_CFLAGS GST_LIBS CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WX_FLAVOUR WX_LIB_FLAVOUR WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL EXTRALIBS_GNOMEPRINT EXTRALIBS_GNOMEVFS EXTRALIBS_HILDON UNICODE BUILD DEBUG_INFO DEBUG_FLAG TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX CPPUNIT_CFLAGS CPPUNIT_LIBS SET_MAKE MAKE_SET NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOS PLATFORM_MACOSX PLATFORM_OS2 PLATFORM_BEOS SO_SUFFIX SO_SUFFIX_MODULE DLLIMP_SUFFIX LIBPREFIX LIBEXT DLLPREFIX DLLPREFIX_MODULE dlldir AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG WINDOWS_IMPLIB USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_SOVERCYGWIN USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH ICC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_ICC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1 COND_MONOLITHIC_0_USE_MEDIA_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_ COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF COND_PLATFORM_MACOSX_1_TOOLKIT_X11 COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MACOS_1 COND_PLATFORM_MAC_1 COND_PLATFORM_MSDOS_0 COND_PLATFORM_MSDOS_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_USE_XRC_1 COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_SHARED_1_USE_XRC_1 COND_TOOLKIT_ COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_TOOLKIT_VERSION_ COND_TOOLKIT_GTK_TOOLKIT_VERSION_2 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE COND_TOOLKIT_WINCE_USE_GUI_1 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_OPENGL_1 COND_USE_PCH_1 COND_USE_PLUGINS_0 COND_USE_RTTI_0 COND_USE_RTTI_1 COND_USE_SOSYMLINKS_1 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_USE_THREADS_0 COND_USE_THREADS_1 COND_USE_XRC_1 COND_WINDOWS_IMPLIB_1 COND_WITH_PLUGIN_SDL_1 COND_WXUNIV_0 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_CPPFLAGS WXCONFIG_CFLAGS WXCONFIG_CXXFLAGS WXCONFIG_LIBS WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WXCONFIG_RESFLAGS EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESCOMP RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES POSTLINK_COMMAND MACSETFILE GCC CPPUNIT_CONFIG LIBOBJS LTLIBOBJS'
a848cd7e
SC
317ac_subst_files=''
318
319# Initialize some variables set by options.
320ac_init_help=
321ac_init_version=false
322# The variables have the same names as the options, with
323# dashes changed to underlines.
324cache_file=/dev/null
325exec_prefix=NONE
326no_create=
327no_recursion=
328prefix=NONE
329program_prefix=NONE
330program_suffix=NONE
331program_transform_name=s,x,x,
332silent=
333site=
334srcdir=
335verbose=
336x_includes=NONE
337x_libraries=NONE
338
339# Installation directory options.
340# These are left unexpanded so users can "make install exec_prefix=/foo"
341# and all the variables that are supposed to be based on exec_prefix
342# by default will actually change.
343# Use braces instead of parens because sh, perl, etc. also accept them.
344bindir='${exec_prefix}/bin'
345sbindir='${exec_prefix}/sbin'
346libexecdir='${exec_prefix}/libexec'
347datadir='${prefix}/share'
348sysconfdir='${prefix}/etc'
349sharedstatedir='${prefix}/com'
350localstatedir='${prefix}/var'
351libdir='${exec_prefix}/lib'
352includedir='${prefix}/include'
353oldincludedir='/usr/include'
354infodir='${prefix}/info'
355mandir='${prefix}/man'
356
357ac_prev=
358for ac_option
359do
360 # If the previous option needs an argument, assign it.
361 if test -n "$ac_prev"; then
362 eval "$ac_prev=\$ac_option"
363 ac_prev=
364 continue
365 fi
366
367 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368
369 # Accept the important Cygnus configure options, so we can diagnose typos.
370
371 case $ac_option in
372
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 ac_prev=bindir ;;
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 bindir=$ac_optarg ;;
377
378 -build | --build | --buil | --bui | --bu)
379 ac_prev=build_alias ;;
380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
381 build_alias=$ac_optarg ;;
382
383 -cache-file | --cache-file | --cache-fil | --cache-fi \
384 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385 ac_prev=cache_file ;;
386 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
388 cache_file=$ac_optarg ;;
389
390 --config-cache | -C)
391 cache_file=config.cache ;;
392
393 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394 ac_prev=datadir ;;
395 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 | --da=*)
397 datadir=$ac_optarg ;;
398
399 -disable-* | --disable-*)
400 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
401 # Reject names that are not valid shell variable names.
402 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404 { (exit 1); exit 1; }; }
405 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406 eval "enable_$ac_feature=no" ;;
407
408 -enable-* | --enable-*)
409 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
410 # Reject names that are not valid shell variable names.
411 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413 { (exit 1); exit 1; }; }
414 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415 case $ac_option in
416 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 *) ac_optarg=yes ;;
418 esac
419 eval "enable_$ac_feature='$ac_optarg'" ;;
420
421 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423 | --exec | --exe | --ex)
424 ac_prev=exec_prefix ;;
425 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427 | --exec=* | --exe=* | --ex=*)
428 exec_prefix=$ac_optarg ;;
429
430 -gas | --gas | --ga | --g)
431 # Obsolete; use --with-gas.
432 with_gas=yes ;;
433
434 -help | --help | --hel | --he | -h)
435 ac_init_help=long ;;
436 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437 ac_init_help=recursive ;;
438 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439 ac_init_help=short ;;
440
441 -host | --host | --hos | --ho)
442 ac_prev=host_alias ;;
443 -host=* | --host=* | --hos=* | --ho=*)
444 host_alias=$ac_optarg ;;
445
446 -includedir | --includedir | --includedi | --included | --include \
447 | --includ | --inclu | --incl | --inc)
448 ac_prev=includedir ;;
449 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450 | --includ=* | --inclu=* | --incl=* | --inc=*)
451 includedir=$ac_optarg ;;
452
453 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 ac_prev=infodir ;;
455 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
456 infodir=$ac_optarg ;;
457
458 -libdir | --libdir | --libdi | --libd)
459 ac_prev=libdir ;;
460 -libdir=* | --libdir=* | --libdi=* | --libd=*)
461 libdir=$ac_optarg ;;
462
463 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464 | --libexe | --libex | --libe)
465 ac_prev=libexecdir ;;
466 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467 | --libexe=* | --libex=* | --libe=*)
468 libexecdir=$ac_optarg ;;
469
470 -localstatedir | --localstatedir | --localstatedi | --localstated \
471 | --localstate | --localstat | --localsta | --localst \
472 | --locals | --local | --loca | --loc | --lo)
473 ac_prev=localstatedir ;;
474 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
477 localstatedir=$ac_optarg ;;
478
479 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 ac_prev=mandir ;;
481 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 mandir=$ac_optarg ;;
483
484 -nfp | --nfp | --nf)
485 # Obsolete; use --without-fp.
486 with_fp=no ;;
487
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489 | --no-cr | --no-c | -n)
490 no_create=yes ;;
491
492 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 no_recursion=yes ;;
495
496 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498 | --oldin | --oldi | --old | --ol | --o)
499 ac_prev=oldincludedir ;;
500 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
503 oldincludedir=$ac_optarg ;;
504
505 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 ac_prev=prefix ;;
507 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508 prefix=$ac_optarg ;;
509
510 -program-prefix | --program-prefix | --program-prefi | --program-pref \
511 | --program-pre | --program-pr | --program-p)
512 ac_prev=program_prefix ;;
513 -program-prefix=* | --program-prefix=* | --program-prefi=* \
514 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
515 program_prefix=$ac_optarg ;;
516
517 -program-suffix | --program-suffix | --program-suffi | --program-suff \
518 | --program-suf | --program-su | --program-s)
519 ac_prev=program_suffix ;;
520 -program-suffix=* | --program-suffix=* | --program-suffi=* \
521 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
522 program_suffix=$ac_optarg ;;
523
524 -program-transform-name | --program-transform-name \
525 | --program-transform-nam | --program-transform-na \
526 | --program-transform-n | --program-transform- \
527 | --program-transform | --program-transfor \
528 | --program-transfo | --program-transf \
529 | --program-trans | --program-tran \
530 | --progr-tra | --program-tr | --program-t)
531 ac_prev=program_transform_name ;;
532 -program-transform-name=* | --program-transform-name=* \
533 | --program-transform-nam=* | --program-transform-na=* \
534 | --program-transform-n=* | --program-transform-=* \
535 | --program-transform=* | --program-transfor=* \
536 | --program-transfo=* | --program-transf=* \
537 | --program-trans=* | --program-tran=* \
538 | --progr-tra=* | --program-tr=* | --program-t=*)
539 program_transform_name=$ac_optarg ;;
540
541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542 | -silent | --silent | --silen | --sile | --sil)
543 silent=yes ;;
544
545 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546 ac_prev=sbindir ;;
547 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548 | --sbi=* | --sb=*)
549 sbindir=$ac_optarg ;;
550
551 -sharedstatedir | --sharedstatedir | --sharedstatedi \
552 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553 | --sharedst | --shareds | --shared | --share | --shar \
554 | --sha | --sh)
555 ac_prev=sharedstatedir ;;
556 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559 | --sha=* | --sh=*)
560 sharedstatedir=$ac_optarg ;;
561
562 -site | --site | --sit)
563 ac_prev=site ;;
564 -site=* | --site=* | --sit=*)
565 site=$ac_optarg ;;
566
567 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 ac_prev=srcdir ;;
569 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570 srcdir=$ac_optarg ;;
571
572 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573 | --syscon | --sysco | --sysc | --sys | --sy)
574 ac_prev=sysconfdir ;;
575 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
577 sysconfdir=$ac_optarg ;;
578
579 -target | --target | --targe | --targ | --tar | --ta | --t)
580 ac_prev=target_alias ;;
581 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
582 target_alias=$ac_optarg ;;
583
584 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 verbose=yes ;;
586
587 -version | --version | --versio | --versi | --vers | -V)
588 ac_init_version=: ;;
589
590 -with-* | --with-*)
591 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
592 # Reject names that are not valid shell variable names.
593 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594 { echo "$as_me: error: invalid package name: $ac_package" >&2
595 { (exit 1); exit 1; }; }
596 ac_package=`echo $ac_package| sed 's/-/_/g'`
597 case $ac_option in
598 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 *) ac_optarg=yes ;;
600 esac
601 eval "with_$ac_package='$ac_optarg'" ;;
602
603 -without-* | --without-*)
604 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
605 # Reject names that are not valid shell variable names.
606 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607 { echo "$as_me: error: invalid package name: $ac_package" >&2
608 { (exit 1); exit 1; }; }
609 ac_package=`echo $ac_package | sed 's/-/_/g'`
610 eval "with_$ac_package=no" ;;
611
612 --x)
613 # Obsolete; use --with-x.
614 with_x=yes ;;
615
616 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617 | --x-incl | --x-inc | --x-in | --x-i)
618 ac_prev=x_includes ;;
619 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
621 x_includes=$ac_optarg ;;
622
623 -x-libraries | --x-libraries | --x-librarie | --x-librari \
624 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625 ac_prev=x_libraries ;;
626 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
628 x_libraries=$ac_optarg ;;
629
630 -*) { echo "$as_me: error: unrecognized option: $ac_option
631Try \`$0 --help' for more information." >&2
632 { (exit 1); exit 1; }; }
633 ;;
634
635 *=*)
636 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637 # Reject names that are not valid shell variable names.
638 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640 { (exit 1); exit 1; }; }
641 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642 eval "$ac_envvar='$ac_optarg'"
643 export $ac_envvar ;;
644
645 *)
646 # FIXME: should be removed in autoconf 3.0.
647 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 ;;
652
653 esac
654done
655
656if test -n "$ac_prev"; then
657 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658 { echo "$as_me: error: missing argument to $ac_option" >&2
659 { (exit 1); exit 1; }; }
660fi
661
662# Be sure to have absolute paths.
663for ac_var in exec_prefix prefix
664do
665 eval ac_val=$`echo $ac_var`
666 case $ac_val in
667 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669 { (exit 1); exit 1; }; };;
670 esac
671done
672
673# Be sure to have absolute paths.
674for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
ac1cb8d3 675 localstatedir libdir includedir oldincludedir infodir mandir
a848cd7e
SC
676do
677 eval ac_val=$`echo $ac_var`
678 case $ac_val in
679 [\\/$]* | ?:[\\/]* ) ;;
680 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681 { (exit 1); exit 1; }; };;
682 esac
683done
684
685# There might be people who depend on the old broken behavior: `$host'
686# used to hold the argument of --host etc.
687# FIXME: To remove some day.
688build=$build_alias
689host=$host_alias
690target=$target_alias
691
692# FIXME: To remove some day.
693if test "x$host_alias" != x; then
694 if test "x$build_alias" = x; then
695 cross_compiling=maybe
696 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697 If a cross compiler is detected then cross compile mode will be used." >&2
698 elif test "x$build_alias" != "x$host_alias"; then
699 cross_compiling=yes
700 fi
701fi
702
703ac_tool_prefix=
704test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706test "$silent" = yes && exec 6>/dev/null
707
708
709# Find the source files, if location was not specified.
710if test -z "$srcdir"; then
711 ac_srcdir_defaulted=yes
712 # Try the directory containing this script, then its parent.
713 ac_confdir=`(dirname "$0") 2>/dev/null ||
714$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
719echo X"$0" |
720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722 /^X\(\/\/\)$/{ s//\1/; q; }
723 /^X\(\/\).*/{ s//\1/; q; }
724 s/.*/./; q'`
725 srcdir=$ac_confdir
726 if test ! -r $srcdir/$ac_unique_file; then
727 srcdir=..
728 fi
729else
730 ac_srcdir_defaulted=no
731fi
732if test ! -r $srcdir/$ac_unique_file; then
733 if test "$ac_srcdir_defaulted" = yes; then
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735 { (exit 1); exit 1; }; }
736 else
737 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738 { (exit 1); exit 1; }; }
739 fi
740fi
741(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743 { (exit 1); exit 1; }; }
744srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745ac_env_build_alias_set=${build_alias+set}
746ac_env_build_alias_value=$build_alias
747ac_cv_env_build_alias_set=${build_alias+set}
748ac_cv_env_build_alias_value=$build_alias
749ac_env_host_alias_set=${host_alias+set}
750ac_env_host_alias_value=$host_alias
751ac_cv_env_host_alias_set=${host_alias+set}
752ac_cv_env_host_alias_value=$host_alias
753ac_env_target_alias_set=${target_alias+set}
754ac_env_target_alias_value=$target_alias
755ac_cv_env_target_alias_set=${target_alias+set}
756ac_cv_env_target_alias_value=$target_alias
757ac_env_CC_set=${CC+set}
758ac_env_CC_value=$CC
759ac_cv_env_CC_set=${CC+set}
760ac_cv_env_CC_value=$CC
761ac_env_CFLAGS_set=${CFLAGS+set}
762ac_env_CFLAGS_value=$CFLAGS
763ac_cv_env_CFLAGS_set=${CFLAGS+set}
764ac_cv_env_CFLAGS_value=$CFLAGS
765ac_env_LDFLAGS_set=${LDFLAGS+set}
766ac_env_LDFLAGS_value=$LDFLAGS
767ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768ac_cv_env_LDFLAGS_value=$LDFLAGS
769ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_env_CPPFLAGS_value=$CPPFLAGS
771ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773ac_env_CPP_set=${CPP+set}
774ac_env_CPP_value=$CPP
775ac_cv_env_CPP_set=${CPP+set}
776ac_cv_env_CPP_value=$CPP
777ac_env_CXX_set=${CXX+set}
778ac_env_CXX_value=$CXX
779ac_cv_env_CXX_set=${CXX+set}
780ac_cv_env_CXX_value=$CXX
781ac_env_CXXFLAGS_set=${CXXFLAGS+set}
782ac_env_CXXFLAGS_value=$CXXFLAGS
783ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
784ac_cv_env_CXXFLAGS_value=$CXXFLAGS
785ac_env_CXXCPP_set=${CXXCPP+set}
786ac_env_CXXCPP_value=$CXXCPP
787ac_cv_env_CXXCPP_set=${CXXCPP+set}
788ac_cv_env_CXXCPP_value=$CXXCPP
789
790#
791# Report the --help message.
792#
793if test "$ac_init_help" = "long"; then
794 # Omit some internal or obsolete options to make the list less imposing.
795 # This message is too long to be a string in the A/UX 3.1 sh.
796 cat <<_ACEOF
dd8df4fc 797\`configure' configures wxWidgets 2.7.0 to adapt to many kinds of systems.
a848cd7e
SC
798
799Usage: $0 [OPTION]... [VAR=VALUE]...
800
801To assign environment variables (e.g., CC, CFLAGS...), specify them as
802VAR=VALUE. See below for descriptions of some of the useful variables.
803
804Defaults for the options are specified in brackets.
805
806Configuration:
807 -h, --help display this help and exit
808 --help=short display options specific to this package
809 --help=recursive display the short help of all the included packages
810 -V, --version display version information and exit
811 -q, --quiet, --silent do not print \`checking...' messages
812 --cache-file=FILE cache test results in FILE [disabled]
813 -C, --config-cache alias for \`--cache-file=config.cache'
814 -n, --no-create do not create output files
815 --srcdir=DIR find the sources in DIR [configure dir or \`..']
816
817_ACEOF
818
819 cat <<_ACEOF
820Installation directories:
821 --prefix=PREFIX install architecture-independent files in PREFIX
ac1cb8d3 822 [$ac_default_prefix]
a848cd7e 823 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ac1cb8d3 824 [PREFIX]
a848cd7e
SC
825
826By default, \`make install' will install all the files in
827\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
828an installation prefix other than \`$ac_default_prefix' using \`--prefix',
829for instance \`--prefix=\$HOME'.
830
831For better control, use the options below.
832
833Fine tuning of the installation directories:
834 --bindir=DIR user executables [EPREFIX/bin]
835 --sbindir=DIR system admin executables [EPREFIX/sbin]
836 --libexecdir=DIR program executables [EPREFIX/libexec]
837 --datadir=DIR read-only architecture-independent data [PREFIX/share]
838 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
839 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
840 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
841 --libdir=DIR object code libraries [EPREFIX/lib]
842 --includedir=DIR C header files [PREFIX/include]
843 --oldincludedir=DIR C header files for non-gcc [/usr/include]
844 --infodir=DIR info documentation [PREFIX/info]
845 --mandir=DIR man documentation [PREFIX/man]
846_ACEOF
847
848 cat <<\_ACEOF
849
850X features:
851 --x-includes=DIR X include files are in DIR
852 --x-libraries=DIR X library files are in DIR
853
854System types:
855 --build=BUILD configure for building on BUILD [guessed]
856 --host=HOST cross-compile to build programs to run on HOST [BUILD]
857 --target=TARGET configure for building compilers for TARGET [HOST]
858_ACEOF
859fi
860
861if test -n "$ac_init_help"; then
862 case $ac_init_help in
dd8df4fc 863 short | recursive ) echo "Configuration of wxWidgets 2.7.0:";;
a848cd7e
SC
864 esac
865 cat <<\_ACEOF
866
867Optional Features:
868 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
869 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
870 --enable-gui use GUI classes
77ffb593
JS
871 --enable-monolithic build wxWidgets as single library
872 --enable-plugins build parts of wxWidgets as loadable components
873 --enable-universal use wxWidgets GUI controls instead of native ones
a848cd7e 874 --enable-nanox use NanoX
f34ca037 875 --disable-gtk2 use GTK+ 1.2 instead of 2.0
a848cd7e
SC
876 --enable-gpe use GNOME PDA Environment features if possible
877 --enable-shared create shared library code
878 --enable-optimise create optimised code
879 --enable-debug same as debug_flag and debug_info
880 --enable-stl use STL for containers
881 --enable-omf use OMF object format
882 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
883 --enable-debug_info create code with debugging information
884 --enable-debug_gdb create code with extra GDB debugging information
885 --enable-debug_cntxt use wxDebugContext
886 --enable-mem_tracing create code with memory tracing
887 --enable-profile create code with profiling information
888 --enable-no_rtti create code without RTTI information
889 --enable-no_exceptions create code without C++ exceptions handling
890 --enable-permissive compile code disregarding strict ANSI
891 --enable-no_deps create code without dependency information
7afc46ab 892 --enable-universal_binary create Mac PowerPC and Intel Universal binary (not yet working)
dee1a63f
MB
893 --enable-compat24 enable wxWidgets 2.4 compatibility
894 --disable-compat26 disable wxWidgets 2.6 compatibility
ffa0583f 895 --disable-rpath disable use of rpath for uninstalled builds
a848cd7e
SC
896 --enable-intl use internationalization system
897 --enable-config use wxConfig (and derived) classes
898 --enable-protocols use wxProtocol and derived classes
899 --enable-ftp use wxFTP (requires wxProtocol
900 --enable-http use wxHTTP (requires wxProtocol
901 --enable-fileproto use wxFileProto class (requires wxProtocol
902 --enable-sockets use socket/network classes
903 --enable-ole use OLE classes (Win32 only)
904 --enable-dataobj use data object classes
905 --enable-ipc use interprocess communication (wxSocket etc.)
906 --enable-apple_ieee use the Apple IEEE codec
81f90336 907 --enable-arcstream use wxArchive streams
eaff0f0d 908 --enable-backtrace use wxStackWalker class for getting backtraces
36b6448c 909 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
a848cd7e
SC
910 --enable-cmdline use wxCmdLineParser class
911 --enable-datetime use wxDateTime class
36b6448c 912 --enable-debugreport use wxDebugReport class
a848cd7e
SC
913 --enable-dialupman use dialup network classes
914 --enable-dynlib use wxLibrary class for DLL loading
915 --enable-dynamicloader use (new) wxDynamicLibrary class
916 --enable-exceptions build exception-safe library
917 --enable-ffile use wxFFile class
918 --enable-file use wxFile class
919 --enable-filesystem use virtual file systems classes
920 --enable-fontmap use font encodings conversion classes
921 --enable-fs_inet use virtual HTTP/FTP filesystems
922 --enable-fs_zip use virtual ZIP filesystems
923 --enable-geometry use geometry class
924 --enable-log use logging system
925 --enable-longlong use wxLongLong class
926 --enable-mimetype use wxMimeTypesManager
927 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
928 --enable-snglinst use wxSingleInstanceChecker class
a848cd7e 929 --enable-std_iostreams use standard C++ stream classes
59746b65 930 --enable-std_string use standard C++ string classes
07158944 931 --enable-stdpaths use wxStandardPaths class
a848cd7e 932 --enable-stopwatch use wxStopWatch class
07158944 933 --enable-streams use wxStream etc classes
a848cd7e
SC
934 --enable-sysoptions use wxSystemOptions
935 --enable-textbuf use wxTextBuffer class
936 --enable-textfile use wxTextFile class
937 --enable-timer use wxTimer class
938 --enable-unicode compile wxString with Unicode support
939 --enable-sound use wxSound class
3b57de8b 940 --enable-mediactrl use wxMediaCtrl class
f10e38c4 941 --enable-gstreamer8 force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix
77ffb593 942 --enable-wxprintfv use wxWidgets implementation of vprintf()
81f90336 943 --enable-zipstream use wxZip streams
a848cd7e
SC
944 --enable-url use wxURL class
945 --enable-protocol use wxProtocol class
946 --enable-protocol-http HTTP support in wxProtocol
947 --enable-protocol-ftp FTP support in wxProtocol
948 --enable-protocol-file FILE support in wxProtocol
949 --enable-threads use threads
950 --enable-docview use document view architecture
951 --enable-help use help subsystem
952 --enable-mshtmlhelp use MS HTML Help (win32)
953 --enable-html use wxHTML sub-library
954 --enable-htmlhelp use wxHTML-based help
9a8f0513 955 --enable-xrc use XRC resources sub-library
a848cd7e
SC
956 --enable-constraints use layout-constraints system
957 --enable-printarch use printing architecture
958 --enable-mdi use multiple document interface architecture
8a7b1113 959 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
960 --enable-loggui use standard GUI logger
961 --enable-logwin use wxLogWindow
962 --enable-logdialog use wxLogDialog
646b6ec1 963 --enable-webkit use wxWebKitCtrl (Mac)
91dea314 964 --enable-richtext use wxRichTextCtrl
a848cd7e
SC
965 --enable-postscript use wxPostscriptDC device context (default for gtk+)
966 --enable-prologio not available; see contrib
967 --enable-resources not available; see contrib
968 --enable-clipboard use wxClipboard class
969 --enable-dnd use Drag'n'Drop classes
970 --enable-metafile use win32 metafiles
971 --enable-controls use all usual controls
972 --enable-accel use accelerators
973 --enable-button use wxButton class
974 --enable-bmpbutton use wxBitmapButton class
975 --enable-calendar use wxCalendarCtrl class
976 --enable-caret use wxCaret class
977 --enable-checkbox use wxCheckBox class
978 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
979 --enable-choice use wxChoice class
92bbdbcd 980 --enable-choicebook use wxChoicebook class
a848cd7e 981 --enable-combobox use wxComboBox class
a57d600f 982 --enable-comboctrl use wxComboCtrl class
da98e9be 983 --enable-datepick use wxDatePickerCtrl class
a848cd7e
SC
984 --enable-display use wxDisplay class
985 --enable-gauge use wxGauge class
986 --enable-grid use wxGrid class
20e34ecc 987 --enable-dataviewctrl, use wxDataViewCtrl class
a848cd7e
SC
988 --enable-imaglist use wxImageList class
989 --enable-listbook use wxListbook class
990 --enable-listbox use wxListBox class
991 --enable-listctrl use wxListCtrl class
992 --enable-notebook use wxNotebook class
a57d600f 993 --enable-odcombobox use wxOwnerDrawnComboBox class
a848cd7e
SC
994 --enable-radiobox use wxRadioBox class
995 --enable-radiobtn use wxRadioButton class
996 --enable-sash use wxSashWindow class
997 --enable-scrollbar use wxScrollBar class and scrollable windows
998 --enable-slider use wxSlider class
999 --enable-spinbtn use wxSpinButton class
1000 --enable-spinctrl use wxSpinCtrl class
1001 --enable-splitter use wxSplitterWindow class
1002 --enable-statbmp use wxStaticBitmap class
1003 --enable-statbox use wxStaticBox class
1004 --enable-statline use wxStaticLine class
1005 --enable-stattext use wxStaticText class
1006 --enable-statusbar use wxStatusBar class
1007 --enable-tabdialog use wxTabControl class
1008 --enable-textctrl use wxTextCtrl class
1009 --enable-togglebtn use wxToggleButton class
1010 --enable-toolbar use wxToolBar class
1011 --enable-tbarnative use native wxToolBar class
1012 --enable-tbarsmpl use wxToolBarSimple class
0093c2fc 1013 --enable-treebook use wxTreebook class
5ec3bc43 1014 --enable-toolbook use wxToolbook class
a848cd7e
SC
1015 --enable-treectrl use wxTreeCtrl class
1016 --enable-tipwindow use wxTipWindow class
1017 --enable-popupwin use wxPopUpWindow class
1018 --enable-commondlg use all common dialogs
1019 --enable-choicedlg use wxChoiceDialog
1020 --enable-coldlg use wxColourDialog
1021 --enable-filedlg use wxFileDialog
1022 --enable-finddlg use wxFindReplaceDialog
1023 --enable-fontdlg use wxFontDialog
1024 --enable-dirdlg use wxDirDialog
1025 --enable-msgdlg use wxMessageDialog
1026 --enable-numberdlg use wxNumberEntryDialog
1027 --enable-splash use wxSplashScreen
1028 --enable-textdlg use wxTextDialog
1029 --enable-tipdlg use startup tips
1030 --enable-progressdlg use wxProgressDialog
1031 --enable-wizarddlg use wxWizard
1032 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1033 --enable-miniframe use wxMiniFrame class
1034 --enable-tooltips use wxToolTip class
1035 --enable-splines use spline drawing code
fbe2ca43 1036 --enable-mousewheel use mousewheel
a848cd7e
SC
1037 --enable-validators use wxValidator and derived classes
1038 --enable-busyinfo use wxBusyInfo
4cb1d3da 1039 --enable-joystick use wxJoystick
38b4a946 1040 --enable-metafiles use wxMetaFile (Win32 only)
a848cd7e
SC
1041 --enable-dragimage use wxDragImage
1042 --enable-accessibility enable accessibility support
38b4a946 1043 --enable-dccache cache temporary wxDC objects (Win32 only)
a848cd7e
SC
1044 --enable-palette use wxPalette class
1045 --enable-image use wxImage class
1046 --enable-gif use gif images (GIF file format)
1047 --enable-pcx use pcx images (PCX file format)
1048 --enable-iff use iff images (IFF file format)
1049 --enable-pnm use pnm images (PNM file format)
1050 --enable-xpm use xpm images (XPM file format)
1051 --enable-icocur use Windows ICO and CUR formats
77ffb593 1052 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1053 --enable-vendor=VENDOR vendor name (win32 DLL only)
1054 --disable-largefile omit support for large files
1055 --disable-gtktest do not try to compile and run a test GTK+ program
1056 --disable-gtktest Do not try to compile and run a test GTK program
1057 --disable-sdltest Do not try to compile and run a test SDL program
1058 --enable-omf use OMF object format (OS/2)
f10e38c4
VZ
1059 --disable-dependency-tracking
1060 don't use dependency tracking even if the compiler
1061 can
ebee3cd0
VS
1062 --disable-precomp-headers
1063 don't use precompiled headers even if compiler can
a848cd7e
SC
1064
1065Optional Packages:
1066 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1067 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1c14217d 1068 --without-subdirs don't generate makefiles for samples/demos/...
f34ca037 1069 --with-gtk[=VERSION] use GTK+, VERSION can be 2 (default), 1 or "any"
a848cd7e
SC
1070 --with-motif use Motif/Lesstif
1071 --with-mac use Mac OS X
1072 --with-cocoa use Cocoa
1073 --with-wine use Wine
1074 --with-msw use MS-Windows
1075 --with-pm use OS/2 Presentation Manager
1076 --with-mgl use SciTech MGL
1077 --with-microwin use MicroWindows
1078 --with-x11 use X11
1079 --with-libpng use libpng (PNG image format)
1080 --with-libjpeg use libjpeg (JPEG file format)
1081 --with-libtiff use libtiff (TIFF file format)
1082 --with-libxpm use libxpm (XPM file format)
1083 --with-libmspack use libmspack (CHM help files loading)
1084 --with-sdl use SDL for audio on Unix
2b850ae1
RR
1085 --with-gnomeprint use GNOME print for printing under GNOME
1086 --with-gnomevfs use GNOME VFS for associating MIME types
3565d135 1087 --with-hildon use Hildon framework for Nokia 770
a848cd7e
SC
1088 --with-opengl use OpenGL (or Mesa)
1089 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1090 --with-regex enable support for wxRegEx class
1091 --with-zlib use zlib for LZW compression
1092 --with-odbc use the IODBC and wxODBC classes
1093 --with-expat enable XML support using expat parser
ceec2216 1094 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1095 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1096 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1097 --with-x use the X Window System
1098 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1099 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1100 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1101 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1102 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1103
1104Some influential environment variables:
dcc1b6ad
VS
1105 CC C compiler command
1106 CFLAGS C compiler flags
1107 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1108 nonstandard directory <lib dir>
1109 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1110 headers in a nonstandard directory <include dir>
1111 CPP C preprocessor
1112 CXX C++ compiler command
1113 CXXFLAGS C++ compiler flags
1114 CXXCPP C++ preprocessor
a848cd7e
SC
1115
1116Use these variables to override the choices made by `configure' or to help
1117it to find libraries and programs with nonstandard names/locations.
1118
77ffb593 1119Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1120_ACEOF
1121fi
1122
1123if test "$ac_init_help" = "recursive"; then
1124 # If there are subdirs, report their specific --help.
1125 ac_popdir=`pwd`
1126 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1127 test -d $ac_dir || continue
1128 ac_builddir=.
1129
1130if test "$ac_dir" != .; then
1131 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1132 # A "../" for each directory in $ac_dir_suffix.
1133 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1134else
1135 ac_dir_suffix= ac_top_builddir=
1136fi
1137
1138case $srcdir in
1139 .) # No --srcdir option. We are building in place.
1140 ac_srcdir=.
1141 if test -z "$ac_top_builddir"; then
1142 ac_top_srcdir=.
1143 else
1144 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1145 fi ;;
1146 [\\/]* | ?:[\\/]* ) # Absolute path.
1147 ac_srcdir=$srcdir$ac_dir_suffix;
1148 ac_top_srcdir=$srcdir ;;
1149 *) # Relative path.
1150 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1151 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1152esac
ac1cb8d3
VS
1153
1154# Do not use `cd foo && pwd` to compute absolute paths, because
1155# the directories may not exist.
1156case `pwd` in
1157.) ac_abs_builddir="$ac_dir";;
1158*)
1159 case "$ac_dir" in
1160 .) ac_abs_builddir=`pwd`;;
1161 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1162 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1163 esac;;
1164esac
1165case $ac_abs_builddir in
1166.) ac_abs_top_builddir=${ac_top_builddir}.;;
1167*)
1168 case ${ac_top_builddir}. in
1169 .) ac_abs_top_builddir=$ac_abs_builddir;;
1170 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1171 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1172 esac;;
1173esac
1174case $ac_abs_builddir in
1175.) ac_abs_srcdir=$ac_srcdir;;
1176*)
1177 case $ac_srcdir in
1178 .) ac_abs_srcdir=$ac_abs_builddir;;
1179 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1180 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1181 esac;;
1182esac
1183case $ac_abs_builddir in
1184.) ac_abs_top_srcdir=$ac_top_srcdir;;
1185*)
1186 case $ac_top_srcdir in
1187 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1188 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1189 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1190 esac;;
1191esac
a848cd7e
SC
1192
1193 cd $ac_dir
1194 # Check for guested configure; otherwise get Cygnus style configure.
1195 if test -f $ac_srcdir/configure.gnu; then
1196 echo
1197 $SHELL $ac_srcdir/configure.gnu --help=recursive
1198 elif test -f $ac_srcdir/configure; then
1199 echo
1200 $SHELL $ac_srcdir/configure --help=recursive
1201 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1202 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1203 echo
1204 $ac_configure --help
1205 else
1206 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1207 fi
5d7b7554 1208 cd "$ac_popdir"
a848cd7e
SC
1209 done
1210fi
1211
1212test -n "$ac_init_help" && exit 0
1213if $ac_init_version; then
1214 cat <<\_ACEOF
dd8df4fc 1215wxWidgets configure 2.7.0
ac1cb8d3 1216generated by GNU Autoconf 2.59
a848cd7e 1217
ac1cb8d3 1218Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1219This configure script is free software; the Free Software Foundation
1220gives unlimited permission to copy, distribute and modify it.
1221_ACEOF
1222 exit 0
1223fi
1224exec 5>config.log
1225cat >&5 <<_ACEOF
1226This file contains any messages produced by compilers while
1227running configure, to aid debugging if configure makes a mistake.
1228
dd8df4fc 1229It was created by wxWidgets $as_me 2.7.0, which was
ac1cb8d3 1230generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1231
1232 $ $0 $@
1233
1234_ACEOF
1235{
1236cat <<_ASUNAME
1237## --------- ##
1238## Platform. ##
1239## --------- ##
1240
1241hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1242uname -m = `(uname -m) 2>/dev/null || echo unknown`
1243uname -r = `(uname -r) 2>/dev/null || echo unknown`
1244uname -s = `(uname -s) 2>/dev/null || echo unknown`
1245uname -v = `(uname -v) 2>/dev/null || echo unknown`
1246
1247/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1248/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1249
1250/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1251/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1252/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1253hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1254/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1255/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1256/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1257
1258_ASUNAME
1259
1260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1261for as_dir in $PATH
1262do
1263 IFS=$as_save_IFS
1264 test -z "$as_dir" && as_dir=.
1265 echo "PATH: $as_dir"
1266done
1267
1268} >&5
1269
1270cat >&5 <<_ACEOF
1271
1272
1273## ----------- ##
1274## Core tests. ##
1275## ----------- ##
1276
1277_ACEOF
1278
1279
1280# Keep a trace of the command line.
1281# Strip out --no-create and --no-recursion so they do not pile up.
1282# Strip out --silent because we don't want to record it for future runs.
1283# Also quote any args containing shell meta-characters.
1284# Make two passes to allow for proper duplicate-argument suppression.
1285ac_configure_args=
1286ac_configure_args0=
1287ac_configure_args1=
1288ac_sep=
1289ac_must_keep_next=false
1290for ac_pass in 1 2
1291do
1292 for ac_arg
1293 do
1294 case $ac_arg in
1295 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1296 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1297 | -silent | --silent | --silen | --sile | --sil)
1298 continue ;;
1299 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1300 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1301 esac
1302 case $ac_pass in
1303 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1304 2)
1305 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1306 if test $ac_must_keep_next = true; then
ac1cb8d3 1307 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1308 else
ac1cb8d3
VS
1309 case $ac_arg in
1310 *=* | --config-cache | -C | -disable-* | --disable-* \
1311 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1312 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1313 | -with-* | --with-* | -without-* | --without-* | --x)
1314 case "$ac_configure_args0 " in
1315 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1316 esac
1317 ;;
1318 -* ) ac_must_keep_next=true ;;
1319 esac
a848cd7e
SC
1320 fi
1321 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1322 # Get rid of the leading space.
1323 ac_sep=" "
1324 ;;
1325 esac
1326 done
1327done
1328$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1329$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1330
1331# When interrupted or exit'd, cleanup temporary files, and complete
1332# config.log. We remove comments because anyway the quotes in there
1333# would cause problems or look ugly.
1334# WARNING: Be sure not to use single quotes in there, as some shells,
1335# such as our DU 5.0 friend, will then `close' the trap.
1336trap 'exit_status=$?
1337 # Save into config.log some information that might help in debugging.
1338 {
1339 echo
1340
1341 cat <<\_ASBOX
1342## ---------------- ##
1343## Cache variables. ##
1344## ---------------- ##
1345_ASBOX
1346 echo
1347 # The following way of writing the cache mishandles newlines in values,
1348{
1349 (set) 2>&1 |
1350 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1351 *ac_space=\ *)
1352 sed -n \
ac1cb8d3
VS
1353 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1354 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1355 ;;
1356 *)
1357 sed -n \
ac1cb8d3 1358 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1359 ;;
1360 esac;
1361}
1362 echo
1363
1364 cat <<\_ASBOX
1365## ----------------- ##
1366## Output variables. ##
1367## ----------------- ##
1368_ASBOX
1369 echo
1370 for ac_var in $ac_subst_vars
1371 do
1372 eval ac_val=$`echo $ac_var`
1373 echo "$ac_var='"'"'$ac_val'"'"'"
1374 done | sort
1375 echo
1376
1377 if test -n "$ac_subst_files"; then
1378 cat <<\_ASBOX
1379## ------------- ##
1380## Output files. ##
1381## ------------- ##
1382_ASBOX
1383 echo
1384 for ac_var in $ac_subst_files
1385 do
1386 eval ac_val=$`echo $ac_var`
ac1cb8d3 1387 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1388 done | sort
1389 echo
1390 fi
1391
1392 if test -s confdefs.h; then
1393 cat <<\_ASBOX
1394## ----------- ##
1395## confdefs.h. ##
1396## ----------- ##
1397_ASBOX
1398 echo
1399 sed "/^$/d" confdefs.h | sort
1400 echo
1401 fi
1402 test "$ac_signal" != 0 &&
1403 echo "$as_me: caught signal $ac_signal"
1404 echo "$as_me: exit $exit_status"
1405 } >&5
ac1cb8d3 1406 rm -f core *.core &&
a848cd7e
SC
1407 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1408 exit $exit_status
1409 ' 0
1410for ac_signal in 1 2 13 15; do
1411 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1412done
1413ac_signal=0
1414
1415# confdefs.h avoids OS command line length limits that DEFS can exceed.
1416rm -rf conftest* confdefs.h
1417# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1418echo >confdefs.h
1419
1420# Predefined preprocessor variables.
1421
1422cat >>confdefs.h <<_ACEOF
1423#define PACKAGE_NAME "$PACKAGE_NAME"
1424_ACEOF
1425
1426
1427cat >>confdefs.h <<_ACEOF
1428#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1429_ACEOF
1430
1431
1432cat >>confdefs.h <<_ACEOF
1433#define PACKAGE_VERSION "$PACKAGE_VERSION"
1434_ACEOF
1435
1436
1437cat >>confdefs.h <<_ACEOF
1438#define PACKAGE_STRING "$PACKAGE_STRING"
1439_ACEOF
1440
1441
1442cat >>confdefs.h <<_ACEOF
1443#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1444_ACEOF
1445
1446
1447# Let the site file select an alternate cache file if it wants to.
1448# Prefer explicitly selected file to automatically selected ones.
1449if test -z "$CONFIG_SITE"; then
1450 if test "x$prefix" != xNONE; then
1451 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1452 else
1453 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1454 fi
1455fi
1456for ac_site_file in $CONFIG_SITE; do
1457 if test -r "$ac_site_file"; then
1458 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1459echo "$as_me: loading site script $ac_site_file" >&6;}
1460 sed 's/^/| /' "$ac_site_file" >&5
1461 . "$ac_site_file"
1462 fi
1463done
1464
1465if test -r "$cache_file"; then
1466 # Some versions of bash will fail to source /dev/null (special
1467 # files actually), so we avoid doing that.
1468 if test -f "$cache_file"; then
1469 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1470echo "$as_me: loading cache $cache_file" >&6;}
1471 case $cache_file in
1472 [\\/]* | ?:[\\/]* ) . $cache_file;;
1473 *) . ./$cache_file;;
1474 esac
1475 fi
1476else
1477 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1478echo "$as_me: creating cache $cache_file" >&6;}
1479 >$cache_file
1480fi
1481
1482# Check that the precious variables saved in the cache have kept the same
1483# value.
1484ac_cache_corrupted=false
1485for ac_var in `(set) 2>&1 |
ac1cb8d3 1486 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1487 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1488 eval ac_new_set=\$ac_env_${ac_var}_set
1489 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1490 eval ac_new_val="\$ac_env_${ac_var}_value"
1491 case $ac_old_set,$ac_new_set in
1492 set,)
1493 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1494echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1495 ac_cache_corrupted=: ;;
1496 ,set)
1497 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1498echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1499 ac_cache_corrupted=: ;;
1500 ,);;
1501 *)
1502 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1503 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1504echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1505 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1506echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1507 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1508echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1509 ac_cache_corrupted=:
a848cd7e
SC
1510 fi;;
1511 esac
1512 # Pass precious variables to config.status.
1513 if test "$ac_new_set" = set; then
1514 case $ac_new_val in
1515 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1516 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1517 *) ac_arg=$ac_var=$ac_new_val ;;
1518 esac
1519 case " $ac_configure_args " in
1520 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1521 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1522 esac
1523 fi
1524done
1525if $ac_cache_corrupted; then
1526 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1527echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1528 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1529echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1530 { (exit 1); exit 1; }; }
1531fi
1532
1533ac_ext=c
1534ac_cpp='$CPP $CPPFLAGS'
1535ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1536ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1537ac_compiler_gnu=$ac_cv_c_compiler_gnu
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568ac_aux_dir=
1569for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1570 if test -f $ac_dir/install-sh; then
1571 ac_aux_dir=$ac_dir
1572 ac_install_sh="$ac_aux_dir/install-sh -c"
1573 break
1574 elif test -f $ac_dir/install.sh; then
1575 ac_aux_dir=$ac_dir
1576 ac_install_sh="$ac_aux_dir/install.sh -c"
1577 break
1578 elif test -f $ac_dir/shtool; then
1579 ac_aux_dir=$ac_dir
1580 ac_install_sh="$ac_aux_dir/shtool install -c"
1581 break
1582 fi
1583done
1584if test -z "$ac_aux_dir"; then
1585 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1586echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1587 { (exit 1); exit 1; }; }
1588fi
1589ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1590ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1591ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1592
1593# Make sure we can run config.sub.
1594$ac_config_sub sun4 >/dev/null 2>&1 ||
1595 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1596echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1597 { (exit 1); exit 1; }; }
1598
1599echo "$as_me:$LINENO: checking build system type" >&5
1600echo $ECHO_N "checking build system type... $ECHO_C" >&6
1601if test "${ac_cv_build+set}" = set; then
1602 echo $ECHO_N "(cached) $ECHO_C" >&6
1603else
1604 ac_cv_build_alias=$build_alias
1605test -z "$ac_cv_build_alias" &&
1606 ac_cv_build_alias=`$ac_config_guess`
1607test -z "$ac_cv_build_alias" &&
1608 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1609echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1610 { (exit 1); exit 1; }; }
1611ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1612 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1613echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1614 { (exit 1); exit 1; }; }
1615
1616fi
1617echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1618echo "${ECHO_T}$ac_cv_build" >&6
1619build=$ac_cv_build
1620build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1621build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1622build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1623
1624
1625echo "$as_me:$LINENO: checking host system type" >&5
1626echo $ECHO_N "checking host system type... $ECHO_C" >&6
1627if test "${ac_cv_host+set}" = set; then
1628 echo $ECHO_N "(cached) $ECHO_C" >&6
1629else
1630 ac_cv_host_alias=$host_alias
1631test -z "$ac_cv_host_alias" &&
1632 ac_cv_host_alias=$ac_cv_build_alias
1633ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1634 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1635echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1636 { (exit 1); exit 1; }; }
1637
1638fi
1639echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1640echo "${ECHO_T}$ac_cv_host" >&6
1641host=$ac_cv_host
1642host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1643host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1644host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1645
1646
1647echo "$as_me:$LINENO: checking target system type" >&5
1648echo $ECHO_N "checking target system type... $ECHO_C" >&6
1649if test "${ac_cv_target+set}" = set; then
1650 echo $ECHO_N "(cached) $ECHO_C" >&6
1651else
1652 ac_cv_target_alias=$target_alias
1653test "x$ac_cv_target_alias" = "x" &&
1654 ac_cv_target_alias=$ac_cv_host_alias
1655ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1656 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1657echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1658 { (exit 1); exit 1; }; }
1659
1660fi
1661echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1662echo "${ECHO_T}$ac_cv_target" >&6
1663target=$ac_cv_target
1664target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1665target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1666target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1667
1668
1669# The aliases save the names the user supplied, while $host etc.
1670# will get canonicalized.
1671test -n "$target_alias" &&
1672 test "$program_prefix$program_suffix$program_transform_name" = \
1673 NONENONEs,x,x, &&
1674 program_prefix=${target_alias}-
1675
1676
1677
ceec2216 1678wx_major_version_number=2
dd8df4fc
VZ
1679wx_minor_version_number=7
1680wx_release_number=0
1681wx_subrelease_number=0
a848cd7e 1682
ceec2216
RL
1683WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1684WX_VERSION=$WX_RELEASE.$wx_release_number
1685WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1686
ceec2216 1687WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1688
a848cd7e
SC
1689
1690
1691
1692USE_UNIX=1
1693USE_OS2=0
1694USE_WIN32=0
1695USE_DOS=0
1696USE_BEOS=0
1697USE_MAC=0
1698
1699USE_AIX=
1700USE_BSD= USE_DARWIN= USE_FREEBSD=
1701USE_GNU= USE_HPUX=
1702USE_LINUX=
1703USE_NETBSD=
1704USE_OPENBSD=
1705USE_OSF= USE_SGI=
1706USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1707USE_ULTRIX=
1708USE_UNIXWARE=
1709
1710USE_ALPHA=
1711
1712NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1713
1714ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1715
1716DEFAULT_wxUSE_COCOA=0
1717DEFAULT_wxUSE_GTK=0
1718DEFAULT_wxUSE_MAC=0
1719DEFAULT_wxUSE_MGL=0
1720DEFAULT_wxUSE_MICROWIN=0
1721DEFAULT_wxUSE_MOTIF=0
1722DEFAULT_wxUSE_MSW=0
1723DEFAULT_wxUSE_PM=0
1724DEFAULT_wxUSE_X11=0
1725
1726DEFAULT_DEFAULT_wxUSE_COCOA=0
1727DEFAULT_DEFAULT_wxUSE_GTK=0
1728DEFAULT_DEFAULT_wxUSE_MAC=0
1729DEFAULT_DEFAULT_wxUSE_MGL=0
1730DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1731DEFAULT_DEFAULT_wxUSE_MOTIF=0
1732DEFAULT_DEFAULT_wxUSE_MSW=0
1733DEFAULT_DEFAULT_wxUSE_PM=0
1734DEFAULT_DEFAULT_wxUSE_X11=0
1735
1736PROGRAM_EXT=
1737SO_SUFFIX=so
1738SAMPLES_RPATH_FLAG=
1739SAMPLES_RPATH_POSTLINK=
1740
a03b8b04
RD
1741DEFAULT_STD_FLAG=yes
1742
a848cd7e
SC
1743case "${host}" in
1744 *-hp-hpux* )
1745 USE_HPUX=1
1746 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1747 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1748 SO_SUFFIX=sl
1749 cat >>confdefs.h <<\_ACEOF
1750#define __HPUX__ 1
1751_ACEOF
1752
2eef8513 1753
c92ad099 1754 CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
a848cd7e
SC
1755 ;;
1756 *-*-linux* )
1757 USE_LINUX=1
1758 cat >>confdefs.h <<\_ACEOF
1759#define __LINUX__ 1
1760_ACEOF
1761
1762 TMP=`uname -m`
1763 if test "x$TMP" = "xalpha"; then
1764 USE_ALPHA=1
1765 cat >>confdefs.h <<\_ACEOF
1766#define __ALPHA__ 1
1767_ACEOF
1768
1769 fi
1770 DEFAULT_DEFAULT_wxUSE_GTK=1
1771 ;;
1772 *-*-gnu* | *-*-k*bsd*-gnu )
1773 USE_GNU=1
1774 TMP=`uname -m`
1775 if test "x$TMP" = "xalpha"; then
1776 USE_ALPHA=1
1777 cat >>confdefs.h <<\_ACEOF
1778#define __ALPHA__ 1
1779_ACEOF
1780
1781 fi
1782 DEFAULT_DEFAULT_wxUSE_GTK=1
1783 ;;
1784 *-*-irix5* | *-*-irix6* )
1785 USE_SGI=1
1786 USE_SVR4=1
1787 cat >>confdefs.h <<\_ACEOF
1788#define __SGI__ 1
1789_ACEOF
1790
1791 cat >>confdefs.h <<\_ACEOF
1792#define __SVR4__ 1
1793_ACEOF
1794
1795 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1796 ;;
1797 *-*-solaris2* )
1798 USE_SUN=1
1799 USE_SOLARIS=1
1800 USE_SVR4=1
1801 cat >>confdefs.h <<\_ACEOF
1802#define __SUN__ 1
1803_ACEOF
1804
1805 cat >>confdefs.h <<\_ACEOF
1806#define __SOLARIS__ 1
1807_ACEOF
1808
1809 cat >>confdefs.h <<\_ACEOF
1810#define __SVR4__ 1
1811_ACEOF
1812
1813 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1814 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1815 ;;
1816 *-*-sunos4* )
1817 USE_SUN=1
1818 USE_SUNOS=1
1819 USE_BSD=1
1820 cat >>confdefs.h <<\_ACEOF
1821#define __SUN__ 1
1822_ACEOF
1823
1824 cat >>confdefs.h <<\_ACEOF
1825#define __SUNOS__ 1
1826_ACEOF
1827
1828 cat >>confdefs.h <<\_ACEOF
1829#define __BSD__ 1
1830_ACEOF
1831
1832 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1833 ;;
1834 *-*-freebsd*)
1835 USE_BSD=1
1836 USE_FREEBSD=1
1837 cat >>confdefs.h <<\_ACEOF
1838#define __FREEBSD__ 1
1839_ACEOF
1840
1841 cat >>confdefs.h <<\_ACEOF
1842#define __BSD__ 1
1843_ACEOF
1844
1845 DEFAULT_DEFAULT_wxUSE_GTK=1
1846 ;;
1847 *-*-openbsd*)
1848 USE_BSD=1
1849 USE_OPENBSD=1
1850 cat >>confdefs.h <<\_ACEOF
1851#define __OPENBSD__ 1
1852_ACEOF
1853
1854 cat >>confdefs.h <<\_ACEOF
1855#define __BSD__ 1
1856_ACEOF
1857
1858 DEFAULT_DEFAULT_wxUSE_GTK=1
1859 ;;
1860 *-*-netbsd*)
1861 USE_BSD=1
1862 USE_NETBSD=1
1863 cat >>confdefs.h <<\_ACEOF
1864#define __NETBSD__ 1
1865_ACEOF
1866
1867 cat >>confdefs.h <<\_ACEOF
1868#define __BSD__ 1
1869_ACEOF
1870
1871 DEFAULT_DEFAULT_wxUSE_GTK=1
728258f4 1872 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
def7c04a 1873
def7c04a 1874 CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
a848cd7e
SC
1875 ;;
1876 *-*-osf* )
1877 USE_ALPHA=1
1878 USE_OSF=1
1879 cat >>confdefs.h <<\_ACEOF
1880#define __ALPHA__ 1
1881_ACEOF
1882
1883 cat >>confdefs.h <<\_ACEOF
1884#define __OSF__ 1
1885_ACEOF
1886
1887 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1888 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1889 ;;
1890 *-*-dgux5* )
1891 USE_ALPHA=1
1892 USE_SVR4=1
1893 cat >>confdefs.h <<\_ACEOF
1894#define __ALPHA__ 1
1895_ACEOF
1896
1897 cat >>confdefs.h <<\_ACEOF
1898#define __SVR4__ 1
1899_ACEOF
1900
1901 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1902 ;;
1903 *-*-sysv5* )
1904 USE_SYSV=1
1905 USE_SVR4=1
1906 cat >>confdefs.h <<\_ACEOF
1907#define __SYSV__ 1
1908_ACEOF
1909
1910 cat >>confdefs.h <<\_ACEOF
1911#define __SVR4__ 1
1912_ACEOF
1913
1914 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1915 ;;
1916 *-*-aix* )
1917 USE_AIX=1
1918 USE_SYSV=1
1919 USE_SVR4=1
1920 SO_SUFFIX=a
1921 cat >>confdefs.h <<\_ACEOF
1922#define __AIX__ 1
1923_ACEOF
1924
1925 cat >>confdefs.h <<\_ACEOF
1926#define __SYSV__ 1
1927_ACEOF
1928
1929 cat >>confdefs.h <<\_ACEOF
1930#define __SVR4__ 1
1931_ACEOF
1932
1933 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1934 ;;
1935
1936 *-*-*UnixWare*)
1937 USE_SYSV=1
1938 USE_SVR4=1
1939 USE_UNIXWARE=1
1940 cat >>confdefs.h <<\_ACEOF
1941#define __UNIXWARE__ 1
1942_ACEOF
1943
1944 ;;
1945
1946 *-*-cygwin* | *-*-mingw32* )
1947 SO_SUFFIX=dll
1948 PROGRAM_EXT=".exe"
a848cd7e 1949 DEFAULT_DEFAULT_wxUSE_MSW=1
a03b8b04 1950 DEFAULT_STD_FLAG=no
a848cd7e
SC
1951 ;;
1952
1953 *-pc-msdosdjgpp )
1954 USE_UNIX=0
1955 USE_DOS=1
1956 cat >>confdefs.h <<\_ACEOF
1957#define __DOS__ 1
1958_ACEOF
1959
1960 PROGRAM_EXT=".exe"
1961 DEFAULT_DEFAULT_wxUSE_MGL=1
a848cd7e
SC
1962 ;;
1963
1964 *-pc-os2_emx | *-pc-os2-emx )
1965 cat >>confdefs.h <<\_ACEOF
1966#define __EMX__ 1
1967_ACEOF
1968
1969 USE_OS2=1
1970 cat >>confdefs.h <<\_ACEOF
1971#define __OS2__ 1
1972_ACEOF
1973
1974 PROGRAM_EXT=".exe"
1975 DEFAULT_DEFAULT_wxUSE_PM=1
1976 CXX=gcc
1977 LDFLAGS="$LDFLAGS -Zcrtdll"
1978 ac_executable_extensions=".exe"
1979 export ac_executable_extensions
1980 ac_save_IFS="$IFS"
1981 IFS='\\'
1982 ac_TEMP_PATH=
1983 for ac_dir in $PATH; do
1984 IFS=$ac_save_IFS
1985 if test -z "$ac_TEMP_PATH"; then
1986 ac_TEMP_PATH="$ac_dir"
1987 else
1988 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1989 fi
1990 done
1991 export PATH="$ac_TEMP_PATH"
1992 unset ac_TEMP_PATH
a03b8b04 1993 DEFAULT_STD_FLAG=no
a848cd7e
SC
1994 ;;
1995
cfda0ea8 1996 *-*-darwin* )
a848cd7e
SC
1997 USE_BSD=1
1998 USE_DARWIN=1
1999 SO_SUFFIX=dylib
2000 cat >>confdefs.h <<\_ACEOF
2001#define __BSD__ 1
2002_ACEOF
2003
2004 cat >>confdefs.h <<\_ACEOF
2005#define __DARWIN__ 1
a848cd7e
SC
2006_ACEOF
2007
2008 cat >>confdefs.h <<\_ACEOF
2009#define TARGET_CARBON 1
2010_ACEOF
2011
2012 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2013 DEFAULT_STD_FLAG=no
a848cd7e 2014 ;;
1e9e8aba
DE
2015 powerpc-apple-macos* )
2016 USE_UNIX=0
2017 ac_cv_c_bigendian=yes
2018 SO_SUFFIX=shlib
2019 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2020 DEFAULT_STD_FLAG=no
1e9e8aba 2021 ;;
a848cd7e
SC
2022
2023 *-*-beos* )
2024 USE_BEOS=1
2025 cat >>confdefs.h <<\_ACEOF
2026#define __BEOS__ 1
2027_ACEOF
2028
2029 ;;
2030
2031 *)
2032 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
2033echo "$as_me: error: unknown system type ${host}." >&2;}
2034 { (exit 1); exit 1; }; }
2035esac
2036
2037
2038
2039
2040 wx_arg_cache_file="configarg.cache"
2041 echo "loading argument cache $wx_arg_cache_file"
2042 rm -f ${wx_arg_cache_file}.tmp
2043 touch ${wx_arg_cache_file}.tmp
2044 touch ${wx_arg_cache_file}
2045
2046
2047DEBUG_CONFIGURE=0
2048if test $DEBUG_CONFIGURE = 1; then
2049 DEFAULT_wxUSE_UNIVERSAL=no
2050 DEFAULT_wxUSE_STL=no
2051
2052 DEFAULT_wxUSE_NANOX=no
2053
2054 DEFAULT_wxUSE_THREADS=yes
2055
2056 DEFAULT_wxUSE_SHARED=yes
2057 DEFAULT_wxUSE_OPTIMISE=no
2058 DEFAULT_wxUSE_PROFILE=no
2059 DEFAULT_wxUSE_NO_DEPS=no
2060 DEFAULT_wxUSE_NO_RTTI=no
2061 DEFAULT_wxUSE_NO_EXCEPTIONS=no
7afc46ab 2062 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
ffa0583f 2063 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2064 DEFAULT_wxUSE_PERMISSIVE=no
2065 DEFAULT_wxUSE_DEBUG_FLAG=yes
2066 DEFAULT_wxUSE_DEBUG_INFO=yes
2067 DEFAULT_wxUSE_DEBUG_GDB=yes
2068 DEFAULT_wxUSE_MEM_TRACING=no
2069 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2070 DEFAULT_wxUSE_DMALLOC=no
2071 DEFAULT_wxUSE_APPLE_IEEE=no
2072
2073 DEFAULT_wxUSE_EXCEPTIONS=no
2074 DEFAULT_wxUSE_LOG=yes
2075 DEFAULT_wxUSE_LOGWINDOW=no
2076 DEFAULT_wxUSE_LOGGUI=no
2077 DEFAULT_wxUSE_LOGDIALOG=no
2078
2079 DEFAULT_wxUSE_GUI=yes
2080 DEFAULT_wxUSE_CONTROLS=no
2081
2082 DEFAULT_wxUSE_REGEX=no
2083 DEFAULT_wxUSE_XML=no
2084 DEFAULT_wxUSE_EXPAT=no
2085 DEFAULT_wxUSE_ZLIB=no
2086 DEFAULT_wxUSE_LIBPNG=no
2087 DEFAULT_wxUSE_LIBJPEG=no
2088 DEFAULT_wxUSE_LIBTIFF=no
2089 DEFAULT_wxUSE_LIBXPM=no
2090 DEFAULT_wxUSE_LIBMSPACK=no
2091 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2092 DEFAULT_wxUSE_LIBGNOMEPRINT=no
2b850ae1 2093 DEFAULT_wxUSE_LIBGNOMEVFS=no
3565d135 2094 DEFAULT_wxUSE_LIBHILDON=no
a848cd7e
SC
2095 DEFAULT_wxUSE_ODBC=no
2096 DEFAULT_wxUSE_OPENGL=no
2097
2098 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
eaff0f0d 2099 DEFAULT_wxUSE_STACKWALKER=no
36b6448c 2100 DEFAULT_wxUSE_DEBUGREPORT=no
a848cd7e
SC
2101 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2102 DEFAULT_wxUSE_STD_IOSTREAM=no
59746b65 2103 DEFAULT_wxUSE_STD_STRING=no
a848cd7e
SC
2104 DEFAULT_wxUSE_CMDLINE_PARSER=no
2105 DEFAULT_wxUSE_DATETIME=no
2106 DEFAULT_wxUSE_TIMER=no
2107 DEFAULT_wxUSE_STOPWATCH=no
2108 DEFAULT_wxUSE_FILE=no
2109 DEFAULT_wxUSE_FFILE=no
07158944 2110 DEFAULT_wxUSE_STDPATHS=no
a848cd7e
SC
2111 DEFAULT_wxUSE_TEXTBUFFER=no
2112 DEFAULT_wxUSE_TEXTFILE=no
2113 DEFAULT_wxUSE_SOUND=no
3b57de8b 2114 DEFAULT_wxUSE_MEDIACTRL=no
f10e38c4 2115 DEFAULT_wxUSE_GSTREAMER8=no
a848cd7e
SC
2116 DEFAULT_wxUSE_INTL=no
2117 DEFAULT_wxUSE_CONFIG=no
2118 DEFAULT_wxUSE_FONTMAP=no
2119 DEFAULT_wxUSE_STREAMS=no
2120 DEFAULT_wxUSE_SOCKETS=no
2121 DEFAULT_wxUSE_OLE=no
2122 DEFAULT_wxUSE_DATAOBJ=no
2123 DEFAULT_wxUSE_DIALUP_MANAGER=no
2124 DEFAULT_wxUSE_JOYSTICK=no
2125 DEFAULT_wxUSE_DYNLIB_CLASS=no
2126 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2127 DEFAULT_wxUSE_LONGLONG=no
2128 DEFAULT_wxUSE_GEOMETRY=no
2129
2130 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2131 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2132 DEFAULT_wxUSE_POSTSCRIPT=no
2133
2134 DEFAULT_wxUSE_CLIPBOARD=no
2135 DEFAULT_wxUSE_TOOLTIPS=no
2136 DEFAULT_wxUSE_DRAG_AND_DROP=no
2137 DEFAULT_wxUSE_DRAGIMAGE=no
2138 DEFAULT_wxUSE_SPLINES=no
fbe2ca43 2139 DEFAULT_wxUSE_MOUSEWHEEL=no
a848cd7e 2140
8a7b1113 2141 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2142 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2143 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2144 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2145
2146 DEFAULT_wxUSE_RESOURCES=no
2147 DEFAULT_wxUSE_CONSTRAINTS=no
2148 DEFAULT_wxUSE_IPC=no
2149 DEFAULT_wxUSE_HELP=no
2150 DEFAULT_wxUSE_MS_HTML_HELP=no
2151 DEFAULT_wxUSE_WXHTML_HELP=no
2152 DEFAULT_wxUSE_TREELAYOUT=no
2153 DEFAULT_wxUSE_METAFILE=no
2154 DEFAULT_wxUSE_MIMETYPE=no
2155 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2156 DEFAULT_wxUSE_PROTOCOL=no
2157 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2158 DEFAULT_wxUSE_PROTOCOL_FTP=no
2159 DEFAULT_wxUSE_PROTOCOL_FILE=no
2160 DEFAULT_wxUSE_URL=no
2161
2162 DEFAULT_wxUSE_COMMONDLGS=no
2163 DEFAULT_wxUSE_CHOICEDLG=no
2164 DEFAULT_wxUSE_COLOURDLG=no
2165 DEFAULT_wxUSE_DIRDLG=no
2166 DEFAULT_wxUSE_FILEDLG=no
2167 DEFAULT_wxUSE_FINDREPLDLG=no
2168 DEFAULT_wxUSE_FONTDLG=no
2169 DEFAULT_wxUSE_MSGDLG=no
2170 DEFAULT_wxUSE_NUMBERDLG=no
2171 DEFAULT_wxUSE_TEXTDLG=no
2172 DEFAULT_wxUSE_SPLASH=no
2173 DEFAULT_wxUSE_STARTUP_TIPS=no
2174 DEFAULT_wxUSE_PROGRESSDLG=no
2175 DEFAULT_wxUSE_WIZARDDLG=no
2176
2177 DEFAULT_wxUSE_MENUS=no
2178 DEFAULT_wxUSE_MINIFRAME=no
2179 DEFAULT_wxUSE_HTML=no
91dea314 2180 DEFAULT_wxUSE_RICHTEXT=no
9a8f0513 2181 DEFAULT_wxUSE_XRC=no
646b6ec1 2182 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2183 DEFAULT_wxUSE_FILESYSTEM=no
2184 DEFAULT_wxUSE_FS_INET=no
2185 DEFAULT_wxUSE_FS_ZIP=no
2186 DEFAULT_wxUSE_BUSYINFO=no
9e8e867f 2187 DEFAULT_wxUSE_ARCHIVE_STREAMS=no
a848cd7e 2188 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2189 DEFAULT_wxUSE_VALIDATORS=no
2190
2191 DEFAULT_wxUSE_ACCEL=no
2192 DEFAULT_wxUSE_BUTTON=no
2193 DEFAULT_wxUSE_BMPBUTTON=no
2194 DEFAULT_wxUSE_CALCTRL=no
2195 DEFAULT_wxUSE_CARET=no
2196 DEFAULT_wxUSE_CHECKBOX=no
2197 DEFAULT_wxUSE_CHECKLST=no
2198 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2199 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e 2200 DEFAULT_wxUSE_COMBOBOX=no
a57d600f 2201 DEFAULT_wxUSE_COMBOCTRL=no
da98e9be 2202 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
2203 DEFAULT_wxUSE_DISPLAY=no
2204 DEFAULT_wxUSE_GAUGE=no
2205 DEFAULT_wxUSE_GRID=no
20e34ecc 2206 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
2207 DEFAULT_wxUSE_IMAGLIST=no
2208 DEFAULT_wxUSE_LISTBOOK=no
2209 DEFAULT_wxUSE_LISTBOX=no
2210 DEFAULT_wxUSE_LISTCTRL=no
2211 DEFAULT_wxUSE_NOTEBOOK=no
a57d600f 2212 DEFAULT_wxUSE_ODCOMBOBOX=no
a848cd7e
SC
2213 DEFAULT_wxUSE_RADIOBOX=no
2214 DEFAULT_wxUSE_RADIOBTN=no
2215 DEFAULT_wxUSE_SASH=no
2216 DEFAULT_wxUSE_SCROLLBAR=no
2217 DEFAULT_wxUSE_SLIDER=no
2218 DEFAULT_wxUSE_SPINBTN=no
2219 DEFAULT_wxUSE_SPINCTRL=no
2220 DEFAULT_wxUSE_SPLITTER=no
2221 DEFAULT_wxUSE_STATBMP=no
2222 DEFAULT_wxUSE_STATBOX=no
2223 DEFAULT_wxUSE_STATLINE=no
2224 DEFAULT_wxUSE_STATTEXT=no
2225 DEFAULT_wxUSE_STATUSBAR=yes
f10e38c4 2226 DEFAULT_wxUSE_TAB_DIALOG=no
a848cd7e
SC
2227 DEFAULT_wxUSE_TEXTCTRL=no
2228 DEFAULT_wxUSE_TOGGLEBTN=no
2229 DEFAULT_wxUSE_TOOLBAR=no
2230 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2231 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
0093c2fc 2232 DEFAULT_wxUSE_TREEBOOK=no
5ec3bc43 2233 DEFAULT_wxUSE_TOOLBOOK=no
a848cd7e
SC
2234 DEFAULT_wxUSE_TREECTRL=no
2235 DEFAULT_wxUSE_POPUPWIN=no
2236 DEFAULT_wxUSE_TIPWINDOW=no
2237
2238 DEFAULT_wxUSE_UNICODE=no
2239 DEFAULT_wxUSE_UNICODE_MSLU=no
2240 DEFAULT_wxUSE_WCSRTOMBS=no
2241
2242 DEFAULT_wxUSE_PALETTE=no
2243 DEFAULT_wxUSE_IMAGE=no
2244 DEFAULT_wxUSE_GIF=no
2245 DEFAULT_wxUSE_PCX=no
2246 DEFAULT_wxUSE_PNM=no
2247 DEFAULT_wxUSE_IFF=no
2248 DEFAULT_wxUSE_XPM=no
2249 DEFAULT_wxUSE_ICO_CUR=no
2250 DEFAULT_wxUSE_ACCESSIBILITY=no
2251
2252 DEFAULT_wxUSE_MONOLITHIC=no
2253 DEFAULT_wxUSE_PLUGINS=no
2254 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2255else
2256 DEFAULT_wxUSE_UNIVERSAL=no
2257 DEFAULT_wxUSE_STL=no
2258
2259 DEFAULT_wxUSE_NANOX=no
2260
2261 DEFAULT_wxUSE_THREADS=yes
2262
2263 DEFAULT_wxUSE_SHARED=yes
2264 DEFAULT_wxUSE_OPTIMISE=yes
2265 DEFAULT_wxUSE_PROFILE=no
2266 DEFAULT_wxUSE_NO_DEPS=no
2267 DEFAULT_wxUSE_NO_RTTI=no
2268 DEFAULT_wxUSE_NO_EXCEPTIONS=no
7afc46ab 2269 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
ffa0583f 2270 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2271 DEFAULT_wxUSE_PERMISSIVE=no
2272 DEFAULT_wxUSE_DEBUG_FLAG=no
2273 DEFAULT_wxUSE_DEBUG_INFO=no
2274 DEFAULT_wxUSE_DEBUG_GDB=no
2275 DEFAULT_wxUSE_MEM_TRACING=no
2276 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2277 DEFAULT_wxUSE_DMALLOC=no
2278 DEFAULT_wxUSE_APPLE_IEEE=yes
2279
2280 DEFAULT_wxUSE_EXCEPTIONS=yes
2281 DEFAULT_wxUSE_LOG=yes
2282 DEFAULT_wxUSE_LOGWINDOW=yes
2283 DEFAULT_wxUSE_LOGGUI=yes
2284 DEFAULT_wxUSE_LOGDIALOG=yes
2285
2286 DEFAULT_wxUSE_GUI=yes
2287
2288 DEFAULT_wxUSE_REGEX=yes
2289 DEFAULT_wxUSE_XML=yes
2290 DEFAULT_wxUSE_EXPAT=yes
2291 DEFAULT_wxUSE_ZLIB=yes
2292 DEFAULT_wxUSE_LIBPNG=yes
2293 DEFAULT_wxUSE_LIBJPEG=yes
2294 DEFAULT_wxUSE_LIBTIFF=yes
2295 DEFAULT_wxUSE_LIBXPM=yes
2296 DEFAULT_wxUSE_LIBMSPACK=yes
2297 DEFAULT_wxUSE_LIBSDL=no
a03b8b04 2298 DEFAULT_wxUSE_LIBGNOMEPRINT=no
2b850ae1 2299 DEFAULT_wxUSE_LIBGNOMEVFS=no
3565d135 2300 DEFAULT_wxUSE_LIBHILDON=no
a848cd7e 2301 DEFAULT_wxUSE_ODBC=no
52cb607e 2302 DEFAULT_wxUSE_OPENGL=no
a848cd7e
SC
2303
2304 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
eaff0f0d 2305 DEFAULT_wxUSE_STACKWALKER=yes
6671c68b 2306 DEFAULT_wxUSE_DEBUGREPORT=yes
a848cd7e 2307 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
a03b8b04
RD
2308 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2309 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
a848cd7e
SC
2310 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2311 DEFAULT_wxUSE_DATETIME=yes
2312 DEFAULT_wxUSE_TIMER=yes
2313 DEFAULT_wxUSE_STOPWATCH=yes
2314 DEFAULT_wxUSE_FILE=yes
2315 DEFAULT_wxUSE_FFILE=yes
07158944 2316 DEFAULT_wxUSE_STDPATHS=yes
a848cd7e
SC
2317 DEFAULT_wxUSE_TEXTBUFFER=yes
2318 DEFAULT_wxUSE_TEXTFILE=yes
2319 DEFAULT_wxUSE_SOUND=yes
3b57de8b 2320 DEFAULT_wxUSE_MEDIACTRL=no
f10e38c4 2321 DEFAULT_wxUSE_GSTREAMER8=no
a848cd7e
SC
2322 DEFAULT_wxUSE_INTL=yes
2323 DEFAULT_wxUSE_CONFIG=yes
2324 DEFAULT_wxUSE_FONTMAP=yes
2325 DEFAULT_wxUSE_STREAMS=yes
2326 DEFAULT_wxUSE_SOCKETS=yes
2327 DEFAULT_wxUSE_OLE=yes
2328 DEFAULT_wxUSE_DATAOBJ=yes
2329 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2330 DEFAULT_wxUSE_JOYSTICK=yes
2331 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2332 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2333 DEFAULT_wxUSE_LONGLONG=yes
2334 DEFAULT_wxUSE_GEOMETRY=yes
2335
2336 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2337 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2338 DEFAULT_wxUSE_POSTSCRIPT=yes
2339
2340 DEFAULT_wxUSE_CLIPBOARD=yes
2341 DEFAULT_wxUSE_TOOLTIPS=yes
2342 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2343 DEFAULT_wxUSE_DRAGIMAGE=yes
2344 DEFAULT_wxUSE_SPLINES=yes
fbe2ca43 2345 DEFAULT_wxUSE_MOUSEWHEEL=yes
a848cd7e 2346
8a7b1113 2347 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2348 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2349 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2350 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2351
2352 DEFAULT_wxUSE_RESOURCES=no
2353 DEFAULT_wxUSE_CONSTRAINTS=yes
2354 DEFAULT_wxUSE_IPC=yes
2355 DEFAULT_wxUSE_HELP=yes
2356 DEFAULT_wxUSE_MS_HTML_HELP=yes
2357 DEFAULT_wxUSE_WXHTML_HELP=yes
2358 DEFAULT_wxUSE_TREELAYOUT=yes
2359 DEFAULT_wxUSE_METAFILE=yes
2360 DEFAULT_wxUSE_MIMETYPE=yes
2361 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2362 DEFAULT_wxUSE_PROTOCOL=yes
2363 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2364 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2365 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2366 DEFAULT_wxUSE_URL=yes
2367
2368 DEFAULT_wxUSE_COMMONDLGS=yes
2369 DEFAULT_wxUSE_CHOICEDLG=yes
2370 DEFAULT_wxUSE_COLOURDLG=yes
2371 DEFAULT_wxUSE_DIRDLG=yes
2372 DEFAULT_wxUSE_FILEDLG=yes
2373 DEFAULT_wxUSE_FINDREPLDLG=yes
2374 DEFAULT_wxUSE_FONTDLG=yes
2375 DEFAULT_wxUSE_MSGDLG=yes
2376 DEFAULT_wxUSE_NUMBERDLG=yes
2377 DEFAULT_wxUSE_TEXTDLG=yes
2378 DEFAULT_wxUSE_SPLASH=yes
2379 DEFAULT_wxUSE_STARTUP_TIPS=yes
2380 DEFAULT_wxUSE_PROGRESSDLG=yes
2381 DEFAULT_wxUSE_WIZARDDLG=yes
2382
2383 DEFAULT_wxUSE_MENUS=yes
2384 DEFAULT_wxUSE_MINIFRAME=yes
2385 DEFAULT_wxUSE_HTML=yes
91dea314 2386 DEFAULT_wxUSE_RICHTEXT=yes
9a8f0513 2387 DEFAULT_wxUSE_XRC=yes
646b6ec1 2388 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2389 DEFAULT_wxUSE_FILESYSTEM=yes
2390 DEFAULT_wxUSE_FS_INET=yes
2391 DEFAULT_wxUSE_FS_ZIP=yes
2392 DEFAULT_wxUSE_BUSYINFO=yes
9e8e867f 2393 DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
a848cd7e 2394 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2395 DEFAULT_wxUSE_VALIDATORS=yes
2396
2397 DEFAULT_wxUSE_ACCEL=yes
2398 DEFAULT_wxUSE_BUTTON=yes
2399 DEFAULT_wxUSE_BMPBUTTON=yes
2400 DEFAULT_wxUSE_CALCTRL=yes
2401 DEFAULT_wxUSE_CARET=yes
2402 DEFAULT_wxUSE_CHECKBOX=yes
2403 DEFAULT_wxUSE_CHECKLST=yes
2404 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2405 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e 2406 DEFAULT_wxUSE_COMBOBOX=yes
a57d600f 2407 DEFAULT_wxUSE_COMBOCTRL=yes
da98e9be 2408 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
2409 DEFAULT_wxUSE_DISPLAY=yes
2410 DEFAULT_wxUSE_GAUGE=yes
2411 DEFAULT_wxUSE_GRID=yes
20e34ecc 2412 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
2413 DEFAULT_wxUSE_IMAGLIST=yes
2414 DEFAULT_wxUSE_LISTBOOK=yes
2415 DEFAULT_wxUSE_LISTBOX=yes
2416 DEFAULT_wxUSE_LISTCTRL=yes
2417 DEFAULT_wxUSE_NOTEBOOK=yes
a57d600f 2418 DEFAULT_wxUSE_ODCOMBOBOX=yes
a848cd7e
SC
2419 DEFAULT_wxUSE_RADIOBOX=yes
2420 DEFAULT_wxUSE_RADIOBTN=yes
2421 DEFAULT_wxUSE_SASH=yes
2422 DEFAULT_wxUSE_SCROLLBAR=yes
2423 DEFAULT_wxUSE_SLIDER=yes
2424 DEFAULT_wxUSE_SPINBTN=yes
2425 DEFAULT_wxUSE_SPINCTRL=yes
2426 DEFAULT_wxUSE_SPLITTER=yes
2427 DEFAULT_wxUSE_STATBMP=yes
2428 DEFAULT_wxUSE_STATBOX=yes
2429 DEFAULT_wxUSE_STATLINE=yes
2430 DEFAULT_wxUSE_STATTEXT=yes
2431 DEFAULT_wxUSE_STATUSBAR=yes
f10e38c4 2432 DEFAULT_wxUSE_TAB_DIALOG=no
a848cd7e
SC
2433 DEFAULT_wxUSE_TEXTCTRL=yes
2434 DEFAULT_wxUSE_TOGGLEBTN=yes
2435 DEFAULT_wxUSE_TOOLBAR=yes
2436 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2437 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
0093c2fc 2438 DEFAULT_wxUSE_TREEBOOK=yes
5ec3bc43 2439 DEFAULT_wxUSE_TOOLBOOK=yes
a848cd7e
SC
2440 DEFAULT_wxUSE_TREECTRL=yes
2441 DEFAULT_wxUSE_POPUPWIN=yes
2442 DEFAULT_wxUSE_TIPWINDOW=yes
2443
78de529b 2444 DEFAULT_wxUSE_UNICODE=no
a848cd7e
SC
2445 DEFAULT_wxUSE_UNICODE_MSLU=yes
2446 DEFAULT_wxUSE_WCSRTOMBS=no
2447
2448 DEFAULT_wxUSE_PALETTE=yes
2449 DEFAULT_wxUSE_IMAGE=yes
2450 DEFAULT_wxUSE_GIF=yes
2451 DEFAULT_wxUSE_PCX=yes
2452 DEFAULT_wxUSE_IFF=no
2453 DEFAULT_wxUSE_PNM=yes
2454 DEFAULT_wxUSE_XPM=yes
2455 DEFAULT_wxUSE_ICO_CUR=yes
2456 DEFAULT_wxUSE_ACCESSIBILITY=no
2457
2458 DEFAULT_wxUSE_MONOLITHIC=no
2459 DEFAULT_wxUSE_PLUGINS=no
2460 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e 2461
f34ca037 2462 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2463fi
2464
2465
2466
f34ca037 2467
a848cd7e
SC
2468for toolkit in `echo $ALL_TOOLKITS`; do
2469 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2470 if test "x$LINE" != "x" ; then
2471 has_toolkit_in_cache=1
2472 eval "DEFAULT_$LINE"
2473 eval "CACHE_$toolkit=1"
f34ca037
MW
2474
2475 LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2476 if test "x$LINE" != "x" ; then
2477 eval "DEFAULT_$LINE"
2478 fi
a848cd7e
SC
2479 fi
2480done
2481
2482
2483
2484 enablestring=
2485 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2486echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2487 no_cache=0
2488 # Check whether --enable-gui or --disable-gui was given.
2489if test "${enable_gui+set}" = set; then
2490 enableval="$enable_gui"
2491
2492 if test "$enableval" = yes; then
2493 ac_cv_use_gui='wxUSE_GUI=yes'
2494 else
2495 ac_cv_use_gui='wxUSE_GUI=no'
2496 fi
2497
2498else
2499
2500 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2501 if test "x$LINE" != x ; then
2502 eval "DEFAULT_$LINE"
2503 else
2504 no_cache=1
2505 fi
2506
2507 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2508
2509fi;
2510
2511 eval "$ac_cv_use_gui"
2512 if test "$no_cache" != 1; then
2513 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2514 fi
2515
2516 if test "$wxUSE_GUI" = yes; then
2517 echo "$as_me:$LINENO: result: yes" >&5
2518echo "${ECHO_T}yes" >&6
2519 else
2520 echo "$as_me:$LINENO: result: no" >&5
2521echo "${ECHO_T}no" >&6
2522 fi
2523
2524
2525 enablestring=
2526 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2527echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2528 no_cache=0
2529 # Check whether --enable-monolithic or --disable-monolithic was given.
2530if test "${enable_monolithic+set}" = set; then
2531 enableval="$enable_monolithic"
2532
2533 if test "$enableval" = yes; then
2534 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2535 else
2536 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2537 fi
2538
2539else
2540
2541 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2542 if test "x$LINE" != x ; then
2543 eval "DEFAULT_$LINE"
2544 else
2545 no_cache=1
2546 fi
2547
2548 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2549
2550fi;
2551
2552 eval "$ac_cv_use_monolithic"
2553 if test "$no_cache" != 1; then
2554 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2555 fi
2556
2557 if test "$wxUSE_MONOLITHIC" = yes; then
2558 echo "$as_me:$LINENO: result: yes" >&5
2559echo "${ECHO_T}yes" >&6
2560 else
2561 echo "$as_me:$LINENO: result: no" >&5
2562echo "${ECHO_T}no" >&6
2563 fi
2564
2565
2566 enablestring=
2567 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2568echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2569 no_cache=0
2570 # Check whether --enable-plugins or --disable-plugins was given.
2571if test "${enable_plugins+set}" = set; then
2572 enableval="$enable_plugins"
2573
2574 if test "$enableval" = yes; then
2575 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2576 else
2577 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2578 fi
2579
2580else
2581
2582 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2583 if test "x$LINE" != x ; then
2584 eval "DEFAULT_$LINE"
2585 else
2586 no_cache=1
2587 fi
2588
2589 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2590
2591fi;
2592
2593 eval "$ac_cv_use_plugins"
2594 if test "$no_cache" != 1; then
2595 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2596 fi
2597
2598 if test "$wxUSE_PLUGINS" = yes; then
2599 echo "$as_me:$LINENO: result: yes" >&5
2600echo "${ECHO_T}yes" >&6
2601 else
2602 echo "$as_me:$LINENO: result: no" >&5
2603echo "${ECHO_T}no" >&6
2604 fi
2605
2606
1c14217d
VZ
2607 withstring=without
2608 echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
2609echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6
2610 no_cache=0
2611
2612# Check whether --with-subdirs or --without-subdirs was given.
2613if test "${with_subdirs+set}" = set; then
2614 withval="$with_subdirs"
2615
2616 if test "$withval" = yes; then
2617 ac_cv_use_subdirs='wxWITH_SUBDIRS=yes'
2618 else
2619 ac_cv_use_subdirs='wxWITH_SUBDIRS=no'
2620 fi
2621
2622else
2623
2624 LINE=`grep "wxWITH_SUBDIRS" ${wx_arg_cache_file}`
2625 if test "x$LINE" != x ; then
2626 eval "DEFAULT_$LINE"
2627 else
2628 no_cache=1
2629 fi
2630
2631 ac_cv_use_subdirs='wxWITH_SUBDIRS='$DEFAULT_wxWITH_SUBDIRS
2632
2633fi;
2634
2635 eval "$ac_cv_use_subdirs"
2636 if test "$no_cache" != 1; then
2637 echo $ac_cv_use_subdirs >> ${wx_arg_cache_file}.tmp
2638 fi
2639
2640 if test "$wxWITH_SUBDIRS" = yes; then
2641 echo "$as_me:$LINENO: result: yes" >&5
2642echo "${ECHO_T}yes" >&6
2643 else
2644 echo "$as_me:$LINENO: result: no" >&5
2645echo "${ECHO_T}no" >&6
2646 fi
2647
2648
a848cd7e
SC
2649if test "$wxUSE_GUI" = "yes"; then
2650
2651
2652 enablestring=
2653 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2654echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2655 no_cache=0
2656 # Check whether --enable-universal or --disable-universal was given.
2657if test "${enable_universal+set}" = set; then
2658 enableval="$enable_universal"
2659
2660 if test "$enableval" = yes; then
2661 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2662 else
2663 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2664 fi
2665
2666else
2667
2668 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2669 if test "x$LINE" != x ; then
2670 eval "DEFAULT_$LINE"
2671 else
2672 no_cache=1
2673 fi
2674
2675 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2676
2677fi;
2678
2679 eval "$ac_cv_use_universal"
2680 if test "$no_cache" != 1; then
2681 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2682 fi
2683
2684 if test "$wxUSE_UNIVERSAL" = yes; then
2685 echo "$as_me:$LINENO: result: yes" >&5
2686echo "${ECHO_T}yes" >&6
2687 else
2688 echo "$as_me:$LINENO: result: no" >&5
2689echo "${ECHO_T}no" >&6
2690 fi
2691
2692
2693# Check whether --with-gtk or --without-gtk was given.
2694if test "${with_gtk+set}" = set; then
2695 withval="$with_gtk"
2696 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2697fi;
2698
2699# Check whether --with-motif or --without-motif was given.
2700if test "${with_motif+set}" = set; then
2701 withval="$with_motif"
2702 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2703fi;
2704
2705# Check whether --with-mac or --without-mac was given.
2706if test "${with_mac+set}" = set; then
2707 withval="$with_mac"
c228d3a4 2708 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2709fi;
2710
2711# Check whether --with-cocoa or --without-cocoa was given.
2712if test "${with_cocoa+set}" = set; then
2713 withval="$with_cocoa"
c228d3a4 2714 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2715fi;
2716
2717# Check whether --with-wine or --without-wine was given.
2718if test "${with_wine+set}" = set; then
2719 withval="$with_wine"
2720 wxUSE_WINE="$withval" CACHE_WINE=1
2721fi;
2722
2723# Check whether --with-msw or --without-msw was given.
2724if test "${with_msw+set}" = set; then
2725 withval="$with_msw"
2726 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2727fi;
2728
2729# Check whether --with-pm or --without-pm was given.
2730if test "${with_pm+set}" = set; then
2731 withval="$with_pm"
2732 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2733fi;
2734
2735# Check whether --with-mgl or --without-mgl was given.
2736if test "${with_mgl+set}" = set; then
2737 withval="$with_mgl"
2738 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2739fi;
2740
2741# Check whether --with-microwin or --without-microwin was given.
2742if test "${with_microwin+set}" = set; then
2743 withval="$with_microwin"
2744 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2745fi;
2746
2747# Check whether --with-x11 or --without-x11 was given.
2748if test "${with_x11+set}" = set; then
2749 withval="$with_x11"
2750 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2751fi;
2752
2753 enablestring=
2754 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2755echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2756 no_cache=0
2757 # Check whether --enable-nanox or --disable-nanox was given.
2758if test "${enable_nanox+set}" = set; then
2759 enableval="$enable_nanox"
2760
2761 if test "$enableval" = yes; then
2762 ac_cv_use_nanox='wxUSE_NANOX=yes'
2763 else
2764 ac_cv_use_nanox='wxUSE_NANOX=no'
2765 fi
2766
2767else
2768
2769 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2770 if test "x$LINE" != x ; then
2771 eval "DEFAULT_$LINE"
2772 else
2773 no_cache=1
2774 fi
2775
2776 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2777
2778fi;
2779
2780 eval "$ac_cv_use_nanox"
2781 if test "$no_cache" != 1; then
2782 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2783 fi
2784
2785 if test "$wxUSE_NANOX" = yes; then
2786 echo "$as_me:$LINENO: result: yes" >&5
2787echo "${ECHO_T}yes" >&6
2788 else
2789 echo "$as_me:$LINENO: result: no" >&5
2790echo "${ECHO_T}no" >&6
2791 fi
2792
2793
f34ca037
MW
2794# Check whether --enable-gtk2 or --disable-gtk2 was given.
2795if test "${enable_gtk2+set}" = set; then
2796 enableval="$enable_gtk2"
2797 wxUSE_GTK2="$enableval"
2798fi;
a848cd7e 2799
a848cd7e
SC
2800 enablestring=
2801 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2802echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2803 no_cache=0
2804 # Check whether --enable-gpe or --disable-gpe was given.
2805if test "${enable_gpe+set}" = set; then
2806 enableval="$enable_gpe"
2807
2808 if test "$enableval" = yes; then
2809 ac_cv_use_gpe='wxUSE_GPE=yes'
2810 else
2811 ac_cv_use_gpe='wxUSE_GPE=no'
2812 fi
2813
2814else
2815
2816 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2817 if test "x$LINE" != x ; then
2818 eval "DEFAULT_$LINE"
2819 else
2820 no_cache=1
2821 fi
2822
2823 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2824
2825fi;
2826
2827 eval "$ac_cv_use_gpe"
2828 if test "$no_cache" != 1; then
2829 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2830 fi
2831
2832 if test "$wxUSE_GPE" = yes; then
2833 echo "$as_me:$LINENO: result: yes" >&5
2834echo "${ECHO_T}yes" >&6
2835 else
2836 echo "$as_me:$LINENO: result: no" >&5
2837echo "${ECHO_T}no" >&6
2838 fi
2839
2840
2841
2842 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2843echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2844 no_cache=0
2845
2846# Check whether --with-libpng or --without-libpng was given.
2847if test "${with_libpng+set}" = set; then
2848 withval="$with_libpng"
2849
2850 if test "$withval" = yes; then
2851 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2852 elif test "$withval" = no; then
2853 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2854 elif test "$withval" = sys; then
2855 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2856 elif test "$withval" = builtin; then
2857 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2858 else
2859 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2860echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2861 { (exit 1); exit 1; }; }
2862 fi
2863
2864else
2865
2866 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2867 if test "x$LINE" != x ; then
2868 eval "DEFAULT_$LINE"
2869 else
2870 no_cache=1
2871 fi
2872
2873 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2874
2875fi;
2876
2877 eval "$ac_cv_use_libpng"
2878 if test "$no_cache" != 1; then
2879 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2880 fi
2881
2882 if test "$wxUSE_LIBPNG" = yes; then
2883 echo "$as_me:$LINENO: result: yes" >&5
2884echo "${ECHO_T}yes" >&6
2885 elif test "$wxUSE_LIBPNG" = no; then
2886 echo "$as_me:$LINENO: result: no" >&5
2887echo "${ECHO_T}no" >&6
2888 elif test "$wxUSE_LIBPNG" = sys; then
2889 echo "$as_me:$LINENO: result: system version" >&5
2890echo "${ECHO_T}system version" >&6
2891 elif test "$wxUSE_LIBPNG" = builtin; then
2892 echo "$as_me:$LINENO: result: builtin version" >&5
2893echo "${ECHO_T}builtin version" >&6
2894 else
2895 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2896echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2897 { (exit 1); exit 1; }; }
2898 fi
2899
2900
2901 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2902echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2903 no_cache=0
2904
2905# Check whether --with-libjpeg or --without-libjpeg was given.
2906if test "${with_libjpeg+set}" = set; then
2907 withval="$with_libjpeg"
2908
2909 if test "$withval" = yes; then
2910 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2911 elif test "$withval" = no; then
2912 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2913 elif test "$withval" = sys; then
2914 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2915 elif test "$withval" = builtin; then
2916 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2917 else
2918 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2919echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2920 { (exit 1); exit 1; }; }
2921 fi
2922
2923else
2924
2925 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2926 if test "x$LINE" != x ; then
2927 eval "DEFAULT_$LINE"
2928 else
2929 no_cache=1
2930 fi
2931
2932 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2933
2934fi;
2935
2936 eval "$ac_cv_use_libjpeg"
2937 if test "$no_cache" != 1; then
2938 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2939 fi
2940
2941 if test "$wxUSE_LIBJPEG" = yes; then
2942 echo "$as_me:$LINENO: result: yes" >&5
2943echo "${ECHO_T}yes" >&6
2944 elif test "$wxUSE_LIBJPEG" = no; then
2945 echo "$as_me:$LINENO: result: no" >&5
2946echo "${ECHO_T}no" >&6
2947 elif test "$wxUSE_LIBJPEG" = sys; then
2948 echo "$as_me:$LINENO: result: system version" >&5
2949echo "${ECHO_T}system version" >&6
2950 elif test "$wxUSE_LIBJPEG" = builtin; then
2951 echo "$as_me:$LINENO: result: builtin version" >&5
2952echo "${ECHO_T}builtin version" >&6
2953 else
2954 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2955echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2956 { (exit 1); exit 1; }; }
2957 fi
2958
2959
2960 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2961echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2962 no_cache=0
2963
2964# Check whether --with-libtiff or --without-libtiff was given.
2965if test "${with_libtiff+set}" = set; then
2966 withval="$with_libtiff"
2967
2968 if test "$withval" = yes; then
2969 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2970 elif test "$withval" = no; then
2971 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2972 elif test "$withval" = sys; then
2973 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2974 elif test "$withval" = builtin; then
2975 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2976 else
2977 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2978echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2979 { (exit 1); exit 1; }; }
2980 fi
2981
2982else
2983
2984 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2985 if test "x$LINE" != x ; then
2986 eval "DEFAULT_$LINE"
2987 else
2988 no_cache=1
2989 fi
2990
2991 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2992
2993fi;
2994
2995 eval "$ac_cv_use_libtiff"
2996 if test "$no_cache" != 1; then
2997 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2998 fi
2999
3000 if test "$wxUSE_LIBTIFF" = yes; then
3001 echo "$as_me:$LINENO: result: yes" >&5
3002echo "${ECHO_T}yes" >&6
3003 elif test "$wxUSE_LIBTIFF" = no; then
3004 echo "$as_me:$LINENO: result: no" >&5
3005echo "${ECHO_T}no" >&6
3006 elif test "$wxUSE_LIBTIFF" = sys; then
3007 echo "$as_me:$LINENO: result: system version" >&5
3008echo "${ECHO_T}system version" >&6
3009 elif test "$wxUSE_LIBTIFF" = builtin; then
3010 echo "$as_me:$LINENO: result: builtin version" >&5
3011echo "${ECHO_T}builtin version" >&6
3012 else
3013 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3014echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3015 { (exit 1); exit 1; }; }
3016 fi
3017
3018
3019 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3020echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
3021 no_cache=0
3022
3023# Check whether --with-libxpm or --without-libxpm was given.
3024if test "${with_libxpm+set}" = set; then
3025 withval="$with_libxpm"
3026
3027 if test "$withval" = yes; then
3028 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
3029 elif test "$withval" = no; then
3030 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
3031 elif test "$withval" = sys; then
3032 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
3033 elif test "$withval" = builtin; then
3034 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3035 else
3036 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3037echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3038 { (exit 1); exit 1; }; }
3039 fi
3040
3041else
3042
3043 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
3044 if test "x$LINE" != x ; then
3045 eval "DEFAULT_$LINE"
3046 else
3047 no_cache=1
3048 fi
3049
3050 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
3051
3052fi;
3053
3054 eval "$ac_cv_use_libxpm"
3055 if test "$no_cache" != 1; then
3056 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
3057 fi
3058
3059 if test "$wxUSE_LIBXPM" = yes; then
3060 echo "$as_me:$LINENO: result: yes" >&5
3061echo "${ECHO_T}yes" >&6
3062 elif test "$wxUSE_LIBXPM" = no; then
3063 echo "$as_me:$LINENO: result: no" >&5
3064echo "${ECHO_T}no" >&6
3065 elif test "$wxUSE_LIBXPM" = sys; then
3066 echo "$as_me:$LINENO: result: system version" >&5
3067echo "${ECHO_T}system version" >&6
3068 elif test "$wxUSE_LIBXPM" = builtin; then
3069 echo "$as_me:$LINENO: result: builtin version" >&5
3070echo "${ECHO_T}builtin version" >&6
3071 else
3072 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3073echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3074 { (exit 1); exit 1; }; }
3075 fi
3076
3077
1c14217d
VZ
3078 withstring=
3079 echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3080echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6
a848cd7e
SC
3081 no_cache=0
3082
3083# Check whether --with-libmspack or --without-libmspack was given.
3084if test "${with_libmspack+set}" = set; then
3085 withval="$with_libmspack"
3086
3087 if test "$withval" = yes; then
3088 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3089 else
3090 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3091 fi
3092
3093else
3094
3095 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3096 if test "x$LINE" != x ; then
3097 eval "DEFAULT_$LINE"
3098 else
3099 no_cache=1
3100 fi
3101
3102 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3103
3104fi;
3105
3106 eval "$ac_cv_use_libmspack"
3107 if test "$no_cache" != 1; then
3108 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3109 fi
3110
3111 if test "$wxUSE_LIBMSPACK" = yes; then
3112 echo "$as_me:$LINENO: result: yes" >&5
3113echo "${ECHO_T}yes" >&6
3114 else
3115 echo "$as_me:$LINENO: result: no" >&5
3116echo "${ECHO_T}no" >&6
3117 fi
3118
3119
1c14217d
VZ
3120 withstring=
3121 echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
3122echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6
a848cd7e
SC
3123 no_cache=0
3124
3125# Check whether --with-sdl or --without-sdl was given.
3126if test "${with_sdl+set}" = set; then
3127 withval="$with_sdl"
3128
3129 if test "$withval" = yes; then
3130 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3131 else
3132 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3133 fi
3134
3135else
3136
3137 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3138 if test "x$LINE" != x ; then
3139 eval "DEFAULT_$LINE"
3140 else
3141 no_cache=1
3142 fi
3143
3144 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3145
3146fi;
3147
3148 eval "$ac_cv_use_sdl"
3149 if test "$no_cache" != 1; then
3150 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3151 fi
3152
3153 if test "$wxUSE_LIBSDL" = yes; then
3154 echo "$as_me:$LINENO: result: yes" >&5
3155echo "${ECHO_T}yes" >&6
3156 else
3157 echo "$as_me:$LINENO: result: no" >&5
3158echo "${ECHO_T}no" >&6
3159 fi
3160
3161
1c14217d
VZ
3162 withstring=
3163 echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3164echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6
d1c38808
VZ
3165 no_cache=0
3166
3167# Check whether --with-gnomeprint or --without-gnomeprint was given.
3168if test "${with_gnomeprint+set}" = set; then
3169 withval="$with_gnomeprint"
3170
3171 if test "$withval" = yes; then
3172 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3173 else
3174 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3175 fi
3176
3177else
3178
3179 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3180 if test "x$LINE" != x ; then
3181 eval "DEFAULT_$LINE"
3182 else
3183 no_cache=1
3184 fi
3185
3186 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3187
3188fi;
3189
3190 eval "$ac_cv_use_gnomeprint"
3191 if test "$no_cache" != 1; then
3192 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3193 fi
3194
3195 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3196 echo "$as_me:$LINENO: result: yes" >&5
3197echo "${ECHO_T}yes" >&6
3198 else
3199 echo "$as_me:$LINENO: result: no" >&5
3200echo "${ECHO_T}no" >&6
3201 fi
3202
3203
2b850ae1
RR
3204 withstring=
3205 echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
3206echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6
3207 no_cache=0
3208
3209# Check whether --with-gnomevfs or --without-gnomevfs was given.
3210if test "${with_gnomevfs+set}" = set; then
3211 withval="$with_gnomevfs"
3212
3213 if test "$withval" = yes; then
3214 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
3215 else
3216 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
3217 fi
3218
3219else
3220
3221 LINE=`grep "wxUSE_LIBGNOMEVFS" ${wx_arg_cache_file}`
3222 if test "x$LINE" != x ; then
3223 eval "DEFAULT_$LINE"
3224 else
3225 no_cache=1
3226 fi
3227
3228 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS='$DEFAULT_wxUSE_LIBGNOMEVFS
3229
3230fi;
3231
3232 eval "$ac_cv_use_gnomevfs"
3233 if test "$no_cache" != 1; then
3234 echo $ac_cv_use_gnomevfs >> ${wx_arg_cache_file}.tmp
3235 fi
3236
3237 if test "$wxUSE_LIBGNOMEVFS" = yes; then
3238 echo "$as_me:$LINENO: result: yes" >&5
3239echo "${ECHO_T}yes" >&6
3240 else
3241 echo "$as_me:$LINENO: result: no" >&5
3242echo "${ECHO_T}no" >&6
3243 fi
3244
3245
3565d135
RR
3246 withstring=
3247 echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
3248echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6
3249 no_cache=0
3250
3251# Check whether --with-hildon or --without-hildon was given.
3252if test "${with_hildon+set}" = set; then
3253 withval="$with_hildon"
3254
3255 if test "$withval" = yes; then
3256 ac_cv_use_hildon='wxUSE_LIBHILDON=yes'
3257 else
3258 ac_cv_use_hildon='wxUSE_LIBHILDON=no'
3259 fi
3260
3261else
3262
3263 LINE=`grep "wxUSE_LIBHILDON" ${wx_arg_cache_file}`
3264 if test "x$LINE" != x ; then
3265 eval "DEFAULT_$LINE"
3266 else
3267 no_cache=1
3268 fi
3269
3270 ac_cv_use_hildon='wxUSE_LIBHILDON='$DEFAULT_wxUSE_LIBHILDON
3271
3272fi;
3273
3274 eval "$ac_cv_use_hildon"
3275 if test "$no_cache" != 1; then
3276 echo $ac_cv_use_hildon >> ${wx_arg_cache_file}.tmp
3277 fi
3278
3279 if test "$wxUSE_LIBHILDON" = yes; then
3280 echo "$as_me:$LINENO: result: yes" >&5
3281echo "${ECHO_T}yes" >&6
3282 else
3283 echo "$as_me:$LINENO: result: no" >&5
3284echo "${ECHO_T}no" >&6
3285 fi
3286
3287
1c14217d
VZ
3288 withstring=
3289 echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
3290echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6
a848cd7e
SC
3291 no_cache=0
3292
3293# Check whether --with-opengl or --without-opengl was given.
3294if test "${with_opengl+set}" = set; then
3295 withval="$with_opengl"
3296
3297 if test "$withval" = yes; then
3298 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3299 else
3300 ac_cv_use_opengl='wxUSE_OPENGL=no'
3301 fi
3302
3303else
3304
3305 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3306 if test "x$LINE" != x ; then
3307 eval "DEFAULT_$LINE"
3308 else
3309 no_cache=1
3310 fi
3311
3312 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3313
3314fi;
3315
3316 eval "$ac_cv_use_opengl"
3317 if test "$no_cache" != 1; then
3318 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3319 fi
3320
3321 if test "$wxUSE_OPENGL" = yes; then
3322 echo "$as_me:$LINENO: result: yes" >&5
3323echo "${ECHO_T}yes" >&6
3324 else
3325 echo "$as_me:$LINENO: result: no" >&5
3326echo "${ECHO_T}no" >&6
3327 fi
3328
3329
3330fi
3331
3332
1c14217d
VZ
3333 withstring=
3334 echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
3335echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6
a848cd7e
SC
3336 no_cache=0
3337
3338# Check whether --with-dmalloc or --without-dmalloc was given.
3339if test "${with_dmalloc+set}" = set; then
3340 withval="$with_dmalloc"
3341
3342 if test "$withval" = yes; then
3343 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3344 else
3345 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3346 fi
3347
3348else
3349
3350 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3351 if test "x$LINE" != x ; then
3352 eval "DEFAULT_$LINE"
3353 else
3354 no_cache=1
3355 fi
3356
3357 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3358
3359fi;
3360
3361 eval "$ac_cv_use_dmalloc"
3362 if test "$no_cache" != 1; then
3363 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3364 fi
3365
3366 if test "$wxUSE_DMALLOC" = yes; then
3367 echo "$as_me:$LINENO: result: yes" >&5
3368echo "${ECHO_T}yes" >&6
3369 else
3370 echo "$as_me:$LINENO: result: no" >&5
3371echo "${ECHO_T}no" >&6
3372 fi
3373
3374
3375 echo "$as_me:$LINENO: checking for --with-regex" >&5
3376echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3377 no_cache=0
3378
3379# Check whether --with-regex or --without-regex was given.
3380if test "${with_regex+set}" = set; then
3381 withval="$with_regex"
3382
3383 if test "$withval" = yes; then
3384 ac_cv_use_regex='wxUSE_REGEX=yes'
3385 elif test "$withval" = no; then
3386 ac_cv_use_regex='wxUSE_REGEX=no'
3387 elif test "$withval" = sys; then
3388 ac_cv_use_regex='wxUSE_REGEX=sys'
3389 elif test "$withval" = builtin; then
3390 ac_cv_use_regex='wxUSE_REGEX=builtin'
3391 else
3392 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3393echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3394 { (exit 1); exit 1; }; }
3395 fi
3396
3397else
3398
3399 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3400 if test "x$LINE" != x ; then
3401 eval "DEFAULT_$LINE"
3402 else
3403 no_cache=1
3404 fi
3405
3406 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3407
3408fi;
3409
3410 eval "$ac_cv_use_regex"
3411 if test "$no_cache" != 1; then
3412 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3413 fi
3414
3415 if test "$wxUSE_REGEX" = yes; then
3416 echo "$as_me:$LINENO: result: yes" >&5
3417echo "${ECHO_T}yes" >&6
3418 elif test "$wxUSE_REGEX" = no; then
3419 echo "$as_me:$LINENO: result: no" >&5
3420echo "${ECHO_T}no" >&6
3421 elif test "$wxUSE_REGEX" = sys; then
3422 echo "$as_me:$LINENO: result: system version" >&5
3423echo "${ECHO_T}system version" >&6
3424 elif test "$wxUSE_REGEX" = builtin; then
3425 echo "$as_me:$LINENO: result: builtin version" >&5
3426echo "${ECHO_T}builtin version" >&6
3427 else
3428 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3429echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3430 { (exit 1); exit 1; }; }
3431 fi
3432
3433
3434 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3435echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3436 no_cache=0
3437
3438# Check whether --with-zlib or --without-zlib was given.
3439if test "${with_zlib+set}" = set; then
3440 withval="$with_zlib"
3441
3442 if test "$withval" = yes; then
3443 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3444 elif test "$withval" = no; then
3445 ac_cv_use_zlib='wxUSE_ZLIB=no'
3446 elif test "$withval" = sys; then
3447 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3448 elif test "$withval" = builtin; then
3449 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3450 else
3451 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3452echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3453 { (exit 1); exit 1; }; }
3454 fi
3455
3456else
3457
3458 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3459 if test "x$LINE" != x ; then
3460 eval "DEFAULT_$LINE"
3461 else
3462 no_cache=1
3463 fi
3464
3465 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3466
3467fi;
3468
3469 eval "$ac_cv_use_zlib"
3470 if test "$no_cache" != 1; then
3471 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3472 fi
3473
3474 if test "$wxUSE_ZLIB" = yes; then
3475 echo "$as_me:$LINENO: result: yes" >&5
3476echo "${ECHO_T}yes" >&6
3477 elif test "$wxUSE_ZLIB" = no; then
3478 echo "$as_me:$LINENO: result: no" >&5
3479echo "${ECHO_T}no" >&6
3480 elif test "$wxUSE_ZLIB" = sys; then
3481 echo "$as_me:$LINENO: result: system version" >&5
3482echo "${ECHO_T}system version" >&6
3483 elif test "$wxUSE_ZLIB" = builtin; then
3484 echo "$as_me:$LINENO: result: builtin version" >&5
3485echo "${ECHO_T}builtin version" >&6
3486 else
3487 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3488echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3489 { (exit 1); exit 1; }; }
3490 fi
3491
3492
3493 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3494echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3495 no_cache=0
3496
3497# Check whether --with-odbc or --without-odbc was given.
3498if test "${with_odbc+set}" = set; then
3499 withval="$with_odbc"
3500
3501 if test "$withval" = yes; then
3502 ac_cv_use_odbc='wxUSE_ODBC=yes'
3503 elif test "$withval" = no; then
3504 ac_cv_use_odbc='wxUSE_ODBC=no'
3505 elif test "$withval" = sys; then
3506 ac_cv_use_odbc='wxUSE_ODBC=sys'
3507 elif test "$withval" = builtin; then
3508 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3509 else
3510 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3511echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3512 { (exit 1); exit 1; }; }
3513 fi
3514
3515else
3516
3517 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3518 if test "x$LINE" != x ; then
3519 eval "DEFAULT_$LINE"
3520 else
3521 no_cache=1
3522 fi
3523
3524 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3525
3526fi;
3527
3528 eval "$ac_cv_use_odbc"
3529 if test "$no_cache" != 1; then
3530 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3531 fi
3532
3533 if test "$wxUSE_ODBC" = yes; then
3534 echo "$as_me:$LINENO: result: yes" >&5
3535echo "${ECHO_T}yes" >&6
3536 elif test "$wxUSE_ODBC" = no; then
3537 echo "$as_me:$LINENO: result: no" >&5
3538echo "${ECHO_T}no" >&6
3539 elif test "$wxUSE_ODBC" = sys; then
3540 echo "$as_me:$LINENO: result: system version" >&5
3541echo "${ECHO_T}system version" >&6
3542 elif test "$wxUSE_ODBC" = builtin; then
3543 echo "$as_me:$LINENO: result: builtin version" >&5
3544echo "${ECHO_T}builtin version" >&6
3545 else
3546 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3547echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3548 { (exit 1); exit 1; }; }
3549 fi
3550
3551
3552 echo "$as_me:$LINENO: checking for --with-expat" >&5
3553echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3554 no_cache=0
3555
3556# Check whether --with-expat or --without-expat was given.
3557if test "${with_expat+set}" = set; then
3558 withval="$with_expat"
3559
3560 if test "$withval" = yes; then
3561 ac_cv_use_expat='wxUSE_EXPAT=yes'
3562 elif test "$withval" = no; then
3563 ac_cv_use_expat='wxUSE_EXPAT=no'
3564 elif test "$withval" = sys; then
3565 ac_cv_use_expat='wxUSE_EXPAT=sys'
3566 elif test "$withval" = builtin; then
3567 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3568 else
3569 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3570echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3571 { (exit 1); exit 1; }; }
3572 fi
3573
3574else
3575
3576 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3577 if test "x$LINE" != x ; then
3578 eval "DEFAULT_$LINE"
3579 else
3580 no_cache=1
3581 fi
3582
3583 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3584
3585fi;
3586
3587 eval "$ac_cv_use_expat"
3588 if test "$no_cache" != 1; then
3589 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3590 fi
3591
3592 if test "$wxUSE_EXPAT" = yes; then
3593 echo "$as_me:$LINENO: result: yes" >&5
3594echo "${ECHO_T}yes" >&6
3595 elif test "$wxUSE_EXPAT" = no; then
3596 echo "$as_me:$LINENO: result: no" >&5
3597echo "${ECHO_T}no" >&6
3598 elif test "$wxUSE_EXPAT" = sys; then
3599 echo "$as_me:$LINENO: result: system version" >&5
3600echo "${ECHO_T}system version" >&6
3601 elif test "$wxUSE_EXPAT" = builtin; then
3602 echo "$as_me:$LINENO: result: builtin version" >&5
3603echo "${ECHO_T}builtin version" >&6
3604 else
3605 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3606echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3607 { (exit 1); exit 1; }; }
3608 fi
3609
3610
3611
3612
3613 enablestring=
3614 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3615echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3616 no_cache=0
3617 # Check whether --enable-shared or --disable-shared was given.
3618if test "${enable_shared+set}" = set; then
3619 enableval="$enable_shared"
3620
3621 if test "$enableval" = yes; then
3622 ac_cv_use_shared='wxUSE_SHARED=yes'
3623 else
3624 ac_cv_use_shared='wxUSE_SHARED=no'
3625 fi
3626
3627else
3628
3629 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3630 if test "x$LINE" != x ; then
3631 eval "DEFAULT_$LINE"
3632 else
3633 no_cache=1
3634 fi
3635
3636 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3637
3638fi;
3639
3640 eval "$ac_cv_use_shared"
3641 if test "$no_cache" != 1; then
3642 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3643 fi
3644
3645 if test "$wxUSE_SHARED" = yes; then
3646 echo "$as_me:$LINENO: result: yes" >&5
3647echo "${ECHO_T}yes" >&6
3648 else
3649 echo "$as_me:$LINENO: result: no" >&5
3650echo "${ECHO_T}no" >&6
3651 fi
3652
3653
3654 enablestring=
3655 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3656echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3657 no_cache=0
3658 # Check whether --enable-optimise or --disable-optimise was given.
3659if test "${enable_optimise+set}" = set; then
3660 enableval="$enable_optimise"
3661
3662 if test "$enableval" = yes; then
3663 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3664 else
3665 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3666 fi
3667
3668else
3669
3670 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3671 if test "x$LINE" != x ; then
3672 eval "DEFAULT_$LINE"
3673 else
3674 no_cache=1
3675 fi
3676
3677 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3678
3679fi;
3680
3681 eval "$ac_cv_use_optimise"
3682 if test "$no_cache" != 1; then
3683 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3684 fi
3685
3686 if test "$wxUSE_OPTIMISE" = yes; then
3687 echo "$as_me:$LINENO: result: yes" >&5
3688echo "${ECHO_T}yes" >&6
3689 else
3690 echo "$as_me:$LINENO: result: no" >&5
3691echo "${ECHO_T}no" >&6
3692 fi
3693
3694
3695 enablestring=
3696 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3697echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3698 no_cache=0
3699 # Check whether --enable-debug or --disable-debug was given.
3700if test "${enable_debug+set}" = set; then
3701 enableval="$enable_debug"
3702
3703 if test "$enableval" = yes; then
3704 ac_cv_use_debug='wxUSE_DEBUG=yes'
3705 else
3706 ac_cv_use_debug='wxUSE_DEBUG=no'
3707 fi
3708
3709else
3710
3711 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3712 if test "x$LINE" != x ; then
3713 eval "DEFAULT_$LINE"
3714 else
3715 no_cache=1
3716 fi
3717
3718 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3719
3720fi;
3721
3722 eval "$ac_cv_use_debug"
3723 if test "$no_cache" != 1; then
3724 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3725 fi
3726
3727 if test "$wxUSE_DEBUG" = yes; then
3728 echo "$as_me:$LINENO: result: yes" >&5
3729echo "${ECHO_T}yes" >&6
3730 else
3731 echo "$as_me:$LINENO: result: no" >&5
3732echo "${ECHO_T}no" >&6
3733 fi
3734
3735
3736 enablestring=
3737 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3738echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3739 no_cache=0
3740 # Check whether --enable-stl or --disable-stl was given.
3741if test "${enable_stl+set}" = set; then
3742 enableval="$enable_stl"
3743
3744 if test "$enableval" = yes; then
3745 ac_cv_use_stl='wxUSE_STL=yes'
3746 else
3747 ac_cv_use_stl='wxUSE_STL=no'
3748 fi
3749
3750else
3751
3752 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3753 if test "x$LINE" != x ; then
3754 eval "DEFAULT_$LINE"
3755 else
3756 no_cache=1
3757 fi
3758
3759 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3760
3761fi;
3762
3763 eval "$ac_cv_use_stl"
3764 if test "$no_cache" != 1; then
3765 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3766 fi
3767
3768 if test "$wxUSE_STL" = yes; then
3769 echo "$as_me:$LINENO: result: yes" >&5
3770echo "${ECHO_T}yes" >&6
3771 else
3772 echo "$as_me:$LINENO: result: no" >&5
3773echo "${ECHO_T}no" >&6
3774 fi
3775
3776if test "$USE_OS2" = "1"; then
69120ee4 3777 DEFAULT_wxUSE_OMF=no
a848cd7e
SC
3778
3779 enablestring=
3780 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3781echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3782 no_cache=0
3783 # Check whether --enable-omf or --disable-omf was given.
3784if test "${enable_omf+set}" = set; then
3785 enableval="$enable_omf"
3786
3787 if test "$enableval" = yes; then
3788 ac_cv_use_omf='wxUSE_OMF=yes'
3789 else
3790 ac_cv_use_omf='wxUSE_OMF=no'
3791 fi
3792
3793else
3794
3795 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3796 if test "x$LINE" != x ; then
3797 eval "DEFAULT_$LINE"
3798 else
3799 no_cache=1
3800 fi
3801
3802 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3803
3804fi;
3805
3806 eval "$ac_cv_use_omf"
3807 if test "$no_cache" != 1; then
3808 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3809 fi
3810
3811 if test "$wxUSE_OMF" = yes; then
3812 echo "$as_me:$LINENO: result: yes" >&5
3813echo "${ECHO_T}yes" >&6
3814 else
3815 echo "$as_me:$LINENO: result: no" >&5
3816echo "${ECHO_T}no" >&6
3817 fi
3818
3819fi
3820
3821if test "$wxUSE_DEBUG" = "yes"; then
3822 DEFAULT_wxUSE_DEBUG_FLAG=yes
3823 DEFAULT_wxUSE_DEBUG_INFO=yes
3824 BUILD=debug
3825elif test "$wxUSE_DEBUG" = "no"; then
3826 DEFAULT_wxUSE_DEBUG_FLAG=no
3827 DEFAULT_wxUSE_DEBUG_INFO=no
3828 BUILD=release
3829fi
3830
3831
3832 enablestring=
3833 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3834echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3835 no_cache=0
3836 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3837if test "${enable_debug_flag+set}" = set; then
3838 enableval="$enable_debug_flag"
3839
3840 if test "$enableval" = yes; then
3841 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3842 else
3843 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3844 fi
3845
3846else
3847
3848 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3849 if test "x$LINE" != x ; then
3850 eval "DEFAULT_$LINE"
3851 else
3852 no_cache=1
3853 fi
3854
3855 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3856
3857fi;
3858
3859 eval "$ac_cv_use_debug_flag"
3860 if test "$no_cache" != 1; then
3861 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3862 fi
3863
3864 if test "$wxUSE_DEBUG_FLAG" = yes; then
3865 echo "$as_me:$LINENO: result: yes" >&5
3866echo "${ECHO_T}yes" >&6
3867 else
3868 echo "$as_me:$LINENO: result: no" >&5
3869echo "${ECHO_T}no" >&6
3870 fi
3871
3872
3873 enablestring=
3874 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3875echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3876 no_cache=0
3877 # Check whether --enable-debug_info or --disable-debug_info was given.
3878if test "${enable_debug_info+set}" = set; then
3879 enableval="$enable_debug_info"
3880
3881 if test "$enableval" = yes; then
3882 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3883 else
3884 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3885 fi
3886
3887else
3888
3889 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3890 if test "x$LINE" != x ; then
3891 eval "DEFAULT_$LINE"
3892 else
3893 no_cache=1
3894 fi
3895
3896 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3897
3898fi;
3899
3900 eval "$ac_cv_use_debug_info"
3901 if test "$no_cache" != 1; then
3902 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3903 fi
3904
3905 if test "$wxUSE_DEBUG_INFO" = yes; then
3906 echo "$as_me:$LINENO: result: yes" >&5
3907echo "${ECHO_T}yes" >&6
3908 else
3909 echo "$as_me:$LINENO: result: no" >&5
3910echo "${ECHO_T}no" >&6
3911 fi
3912
3913
3914 enablestring=
3915 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3916echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3917 no_cache=0
3918 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3919if test "${enable_debug_gdb+set}" = set; then
3920 enableval="$enable_debug_gdb"
3921
3922 if test "$enableval" = yes; then
3923 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3924 else
3925 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3926 fi
3927
3928else
3929
3930 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3931 if test "x$LINE" != x ; then
3932 eval "DEFAULT_$LINE"
3933 else
3934 no_cache=1
3935 fi
3936
3937 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3938
3939fi;
3940
3941 eval "$ac_cv_use_debug_gdb"
3942 if test "$no_cache" != 1; then
3943 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3944 fi
3945
3946 if test "$wxUSE_DEBUG_GDB" = yes; then
3947 echo "$as_me:$LINENO: result: yes" >&5
3948echo "${ECHO_T}yes" >&6
3949 else
3950 echo "$as_me:$LINENO: result: no" >&5
3951echo "${ECHO_T}no" >&6
3952 fi
3953
3954
3955 enablestring=
3956 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3957echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3958 no_cache=0
3959 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3960if test "${enable_debug_cntxt+set}" = set; then
3961 enableval="$enable_debug_cntxt"
3962
3963 if test "$enableval" = yes; then
3964 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3965 else
3966 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3967 fi
3968
3969else
3970
3971 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3972 if test "x$LINE" != x ; then
3973 eval "DEFAULT_$LINE"
3974 else
3975 no_cache=1
3976 fi
3977
3978 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3979
3980fi;
3981
3982 eval "$ac_cv_use_debug_cntxt"
3983 if test "$no_cache" != 1; then
3984 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3985 fi
3986
3987 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3988 echo "$as_me:$LINENO: result: yes" >&5
3989echo "${ECHO_T}yes" >&6
3990 else
3991 echo "$as_me:$LINENO: result: no" >&5
3992echo "${ECHO_T}no" >&6
3993 fi
3994
3995
3996 enablestring=
3997 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3998echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3999 no_cache=0
4000 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
4001if test "${enable_mem_tracing+set}" = set; then
4002 enableval="$enable_mem_tracing"
4003
4004 if test "$enableval" = yes; then
4005 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
4006 else
4007 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
4008 fi
4009
4010else
4011
4012 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
4013 if test "x$LINE" != x ; then
4014 eval "DEFAULT_$LINE"
4015 else
4016 no_cache=1
4017 fi
4018
4019 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
4020
4021fi;
4022
4023 eval "$ac_cv_use_mem_tracing"
4024 if test "$no_cache" != 1; then
4025 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
4026 fi
4027
4028 if test "$wxUSE_MEM_TRACING" = yes; then
4029 echo "$as_me:$LINENO: result: yes" >&5
4030echo "${ECHO_T}yes" >&6
4031 else
4032 echo "$as_me:$LINENO: result: no" >&5
4033echo "${ECHO_T}no" >&6
4034 fi
4035
4036
4037 enablestring=
4038 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
4039echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
4040 no_cache=0
4041 # Check whether --enable-profile or --disable-profile was given.
4042if test "${enable_profile+set}" = set; then
4043 enableval="$enable_profile"
4044
4045 if test "$enableval" = yes; then
4046 ac_cv_use_profile='wxUSE_PROFILE=yes'
4047 else
4048 ac_cv_use_profile='wxUSE_PROFILE=no'
4049 fi
4050
4051else
4052
4053 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
4054 if test "x$LINE" != x ; then
4055 eval "DEFAULT_$LINE"
4056 else
4057 no_cache=1
4058 fi
4059
4060 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
4061
4062fi;
4063
4064 eval "$ac_cv_use_profile"
4065 if test "$no_cache" != 1; then
4066 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
4067 fi
4068
4069 if test "$wxUSE_PROFILE" = yes; then
4070 echo "$as_me:$LINENO: result: yes" >&5
4071echo "${ECHO_T}yes" >&6
4072 else
4073 echo "$as_me:$LINENO: result: no" >&5
4074echo "${ECHO_T}no" >&6
4075 fi
4076
4077
4078 enablestring=
4079 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
4080echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
4081 no_cache=0
4082 # Check whether --enable-no_rtti or --disable-no_rtti was given.
4083if test "${enable_no_rtti+set}" = set; then
4084 enableval="$enable_no_rtti"
4085
4086 if test "$enableval" = yes; then
4087 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
4088 else
4089 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
4090 fi
4091
4092else
4093
4094 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
4095 if test "x$LINE" != x ; then
4096 eval "DEFAULT_$LINE"
4097 else
4098 no_cache=1
4099 fi
4100
4101 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
4102
4103fi;
4104
4105 eval "$ac_cv_use_no_rtti"
4106 if test "$no_cache" != 1; then
4107 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
4108 fi
4109
4110 if test "$wxUSE_NO_RTTI" = yes; then
4111 echo "$as_me:$LINENO: result: yes" >&5
4112echo "${ECHO_T}yes" >&6
4113 else
4114 echo "$as_me:$LINENO: result: no" >&5
4115echo "${ECHO_T}no" >&6
4116 fi
4117
4118
4119 enablestring=
4120 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
4121echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
4122 no_cache=0
4123 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
4124if test "${enable_no_exceptions+set}" = set; then
4125 enableval="$enable_no_exceptions"
4126
4127 if test "$enableval" = yes; then
4128 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
4129 else
4130 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
4131 fi
4132
4133else
4134
4135 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
4136 if test "x$LINE" != x ; then
4137 eval "DEFAULT_$LINE"
4138 else
4139 no_cache=1
4140 fi
4141
4142 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
4143
4144fi;
4145
4146 eval "$ac_cv_use_no_exceptions"
4147 if test "$no_cache" != 1; then
4148 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
4149 fi
4150
4151 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
4152 echo "$as_me:$LINENO: result: yes" >&5
4153echo "${ECHO_T}yes" >&6
4154 else
4155 echo "$as_me:$LINENO: result: no" >&5
4156echo "${ECHO_T}no" >&6
4157 fi
4158
4159
4160 enablestring=
4161 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
4162echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
4163 no_cache=0
4164 # Check whether --enable-permissive or --disable-permissive was given.
4165if test "${enable_permissive+set}" = set; then
4166 enableval="$enable_permissive"
4167
4168 if test "$enableval" = yes; then
4169 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4170 else
4171 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4172 fi
4173
4174else
4175
4176 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4177 if test "x$LINE" != x ; then
4178 eval "DEFAULT_$LINE"
4179 else
4180 no_cache=1
4181 fi
4182
4183 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4184
4185fi;
4186
4187 eval "$ac_cv_use_permissive"
4188 if test "$no_cache" != 1; then
4189 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4190 fi
4191
4192 if test "$wxUSE_PERMISSIVE" = yes; then
4193 echo "$as_me:$LINENO: result: yes" >&5
4194echo "${ECHO_T}yes" >&6
4195 else
4196 echo "$as_me:$LINENO: result: no" >&5
4197echo "${ECHO_T}no" >&6
4198 fi
4199
4200
4201 enablestring=
4202 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4203echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4204 no_cache=0
4205 # Check whether --enable-no_deps or --disable-no_deps was given.
4206if test "${enable_no_deps+set}" = set; then
4207 enableval="$enable_no_deps"
4208
4209 if test "$enableval" = yes; then
4210 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4211 else
4212 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4213 fi
4214
4215else
4216
4217 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4218 if test "x$LINE" != x ; then
4219 eval "DEFAULT_$LINE"
4220 else
4221 no_cache=1
4222 fi
4223
4224 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4225
4226fi;
4227
4228 eval "$ac_cv_use_no_deps"
4229 if test "$no_cache" != 1; then
4230 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4231 fi
4232
4233 if test "$wxUSE_NO_DEPS" = yes; then
4234 echo "$as_me:$LINENO: result: yes" >&5
4235echo "${ECHO_T}yes" >&6
4236 else
4237 echo "$as_me:$LINENO: result: no" >&5
4238echo "${ECHO_T}no" >&6
4239 fi
4240
4241
7afc46ab
KO
4242 enablestring=
4243 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
4244echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6
4245 no_cache=0
4246 # Check whether --enable-universal_binary or --disable-universal_binary was given.
4247if test "${enable_universal_binary+set}" = set; then
4248 enableval="$enable_universal_binary"
4249
4250 if test "$enableval" = yes; then
4251 ac_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY=yes'
4252 else
4253 ac_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY=no'
4254 fi
4255
4256else
4257
4258 LINE=`grep "wxUSE_UNIVERSAL_BINARY" ${wx_arg_cache_file}`
4259 if test "x$LINE" != x ; then
4260 eval "DEFAULT_$LINE"
4261 else
4262 no_cache=1
4263 fi
4264
4265 ac_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
4266
4267fi;
4268
4269 eval "$ac_cv_use_universal_binary"
4270 if test "$no_cache" != 1; then
4271 echo $ac_cv_use_universal_binary >> ${wx_arg_cache_file}.tmp
4272 fi
4273
4274 if test "$wxUSE_UNIVERSAL_BINARY" = yes; then
4275 echo "$as_me:$LINENO: result: yes" >&5
4276echo "${ECHO_T}yes" >&6
4277 else
4278 echo "$as_me:$LINENO: result: no" >&5
4279echo "${ECHO_T}no" >&6
4280 fi
4281
4282
a848cd7e 4283
dee1a63f
MB
4284 enablestring=enable
4285 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4286echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
a848cd7e 4287 no_cache=0
dee1a63f
MB
4288 # Check whether --enable-compat24 or --disable-compat24 was given.
4289if test "${enable_compat24+set}" = set; then
4290 enableval="$enable_compat24"
a848cd7e
SC
4291
4292 if test "$enableval" = yes; then
dee1a63f 4293 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
a848cd7e 4294 else
dee1a63f 4295 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
a848cd7e
SC
4296 fi
4297
4298else
4299
dee1a63f 4300 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
a848cd7e
SC
4301 if test "x$LINE" != x ; then
4302 eval "DEFAULT_$LINE"
4303 else
4304 no_cache=1
4305 fi
4306
dee1a63f 4307 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
a848cd7e
SC
4308
4309fi;
4310
dee1a63f 4311 eval "$ac_cv_use_compat24"
a848cd7e 4312 if test "$no_cache" != 1; then
dee1a63f 4313 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4314 fi
4315
dee1a63f 4316 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
a848cd7e
SC
4317 echo "$as_me:$LINENO: result: yes" >&5
4318echo "${ECHO_T}yes" >&6
4319 else
4320 echo "$as_me:$LINENO: result: no" >&5
4321echo "${ECHO_T}no" >&6
4322 fi
4323
4324
4325 enablestring=disable
dee1a63f
MB
4326 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
4327echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6
a848cd7e 4328 no_cache=0
dee1a63f
MB
4329 # Check whether --enable-compat26 or --disable-compat26 was given.
4330if test "${enable_compat26+set}" = set; then
4331 enableval="$enable_compat26"
a848cd7e
SC
4332
4333 if test "$enableval" = yes; then
dee1a63f 4334 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
a848cd7e 4335 else
dee1a63f 4336 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
a848cd7e
SC
4337 fi
4338
4339else
4340
dee1a63f 4341 LINE=`grep "WXWIN_COMPATIBILITY_2_6" ${wx_arg_cache_file}`
a848cd7e
SC
4342 if test "x$LINE" != x ; then
4343 eval "DEFAULT_$LINE"
4344 else
4345 no_cache=1
4346 fi
4347
dee1a63f 4348 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6='$DEFAULT_WXWIN_COMPATIBILITY_2_6
a848cd7e
SC
4349
4350fi;
4351
dee1a63f 4352 eval "$ac_cv_use_compat26"
a848cd7e 4353 if test "$no_cache" != 1; then
dee1a63f 4354 echo $ac_cv_use_compat26 >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4355 fi
4356
dee1a63f 4357 if test "$WXWIN_COMPATIBILITY_2_6" = yes; then
a848cd7e
SC
4358 echo "$as_me:$LINENO: result: yes" >&5
4359echo "${ECHO_T}yes" >&6
4360 else
4361 echo "$as_me:$LINENO: result: no" >&5
4362echo "${ECHO_T}no" >&6
4363 fi
4364
4365
ffa0583f
RL
4366
4367 enablestring=
4368 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4369echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4370 no_cache=0
4371 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4372if test "${enable_rpath+set}" = set; then
4373 enableval="$enable_rpath"
ffa0583f
RL
4374
4375 if test "$enableval" = yes; then
4376 ac_cv_use_rpath='wxUSE_RPATH=yes'
4377 else
4378 ac_cv_use_rpath='wxUSE_RPATH=no'
4379 fi
4380
4381else
4382
4383 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4384 if test "x$LINE" != x ; then
4385 eval "DEFAULT_$LINE"
4386 else
4387 no_cache=1
4388 fi
4389
4390 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4391
a848cd7e
SC
4392fi;
4393
ffa0583f
RL
4394 eval "$ac_cv_use_rpath"
4395 if test "$no_cache" != 1; then
4396 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4397 fi
4398
4399 if test "$wxUSE_RPATH" = yes; then
4400 echo "$as_me:$LINENO: result: yes" >&5
4401echo "${ECHO_T}yes" >&6
4402 else
4403 echo "$as_me:$LINENO: result: no" >&5
4404echo "${ECHO_T}no" >&6
4405 fi
4406
a848cd7e
SC
4407
4408
4409
4410
4411 enablestring=
4412 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4413echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4414 no_cache=0
4415 # Check whether --enable-intl or --disable-intl was given.
4416if test "${enable_intl+set}" = set; then
4417 enableval="$enable_intl"
4418
4419 if test "$enableval" = yes; then
4420 ac_cv_use_intl='wxUSE_INTL=yes'
4421 else
4422 ac_cv_use_intl='wxUSE_INTL=no'
4423 fi
4424
4425else
4426
4427 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4428 if test "x$LINE" != x ; then
4429 eval "DEFAULT_$LINE"
4430 else
4431 no_cache=1
4432 fi
4433
4434 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4435
4436fi;
4437
4438 eval "$ac_cv_use_intl"
4439 if test "$no_cache" != 1; then
4440 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4441 fi
4442
4443 if test "$wxUSE_INTL" = yes; then
4444 echo "$as_me:$LINENO: result: yes" >&5
4445echo "${ECHO_T}yes" >&6
4446 else
4447 echo "$as_me:$LINENO: result: no" >&5
4448echo "${ECHO_T}no" >&6
4449 fi
4450
4451
4452 enablestring=
4453 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4454echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4455 no_cache=0
4456 # Check whether --enable-config or --disable-config was given.
4457if test "${enable_config+set}" = set; then
4458 enableval="$enable_config"
4459
4460 if test "$enableval" = yes; then
4461 ac_cv_use_config='wxUSE_CONFIG=yes'
4462 else
4463 ac_cv_use_config='wxUSE_CONFIG=no'
4464 fi
4465
4466else
4467
4468 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4469 if test "x$LINE" != x ; then
4470 eval "DEFAULT_$LINE"
4471 else
4472 no_cache=1
4473 fi
4474
4475 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4476
4477fi;
4478
4479 eval "$ac_cv_use_config"
4480 if test "$no_cache" != 1; then
4481 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4482 fi
4483
4484 if test "$wxUSE_CONFIG" = yes; then
4485 echo "$as_me:$LINENO: result: yes" >&5
4486echo "${ECHO_T}yes" >&6
4487 else
4488 echo "$as_me:$LINENO: result: no" >&5
4489echo "${ECHO_T}no" >&6
4490 fi
4491
4492
4493
4494 enablestring=
4495 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4496echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4497 no_cache=0
4498 # Check whether --enable-protocols or --disable-protocols was given.
4499if test "${enable_protocols+set}" = set; then
4500 enableval="$enable_protocols"
4501
4502 if test "$enableval" = yes; then
4503 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4504 else
4505 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4506 fi
4507
4508else
4509
4510 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4511 if test "x$LINE" != x ; then
4512 eval "DEFAULT_$LINE"
4513 else
4514 no_cache=1
4515 fi
4516
4517 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4518
4519fi;
4520
4521 eval "$ac_cv_use_protocols"
4522 if test "$no_cache" != 1; then
4523 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4524 fi
4525
4526 if test "$wxUSE_PROTOCOL" = yes; then
4527 echo "$as_me:$LINENO: result: yes" >&5
4528echo "${ECHO_T}yes" >&6
4529 else
4530 echo "$as_me:$LINENO: result: no" >&5
4531echo "${ECHO_T}no" >&6
4532 fi
4533
4534
4535 enablestring=
4536 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4537echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4538 no_cache=0
4539 # Check whether --enable-ftp or --disable-ftp was given.
4540if test "${enable_ftp+set}" = set; then
4541 enableval="$enable_ftp"
4542
4543 if test "$enableval" = yes; then
4544 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4545 else
4546 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4547 fi
4548
4549else
4550
4551 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4552 if test "x$LINE" != x ; then
4553 eval "DEFAULT_$LINE"
4554 else
4555 no_cache=1
4556 fi
4557
4558 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4559
4560fi;
4561
4562 eval "$ac_cv_use_ftp"
4563 if test "$no_cache" != 1; then
4564 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4565 fi
4566
4567 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4568 echo "$as_me:$LINENO: result: yes" >&5
4569echo "${ECHO_T}yes" >&6
4570 else
4571 echo "$as_me:$LINENO: result: no" >&5
4572echo "${ECHO_T}no" >&6
4573 fi
4574
4575
4576 enablestring=
4577 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4578echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4579 no_cache=0
4580 # Check whether --enable-http or --disable-http was given.
4581if test "${enable_http+set}" = set; then
4582 enableval="$enable_http"
4583
4584 if test "$enableval" = yes; then
4585 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4586 else
4587 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4588 fi
4589
4590else
4591
4592 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4593 if test "x$LINE" != x ; then
4594 eval "DEFAULT_$LINE"
4595 else
4596 no_cache=1
4597 fi
4598
4599 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4600
4601fi;
4602
4603 eval "$ac_cv_use_http"
4604 if test "$no_cache" != 1; then
4605 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4606 fi
4607
4608 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4609 echo "$as_me:$LINENO: result: yes" >&5
4610echo "${ECHO_T}yes" >&6
4611 else
4612 echo "$as_me:$LINENO: result: no" >&5
4613echo "${ECHO_T}no" >&6
4614 fi
4615
4616
4617 enablestring=
4618 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4619echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4620 no_cache=0
4621 # Check whether --enable-fileproto or --disable-fileproto was given.
4622if test "${enable_fileproto+set}" = set; then
4623 enableval="$enable_fileproto"
4624
4625 if test "$enableval" = yes; then
4626 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4627 else
4628 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4629 fi
4630
4631else
4632
4633 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4634 if test "x$LINE" != x ; then
4635 eval "DEFAULT_$LINE"
4636 else
4637 no_cache=1
4638 fi
4639
4640 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4641
4642fi;
4643
4644 eval "$ac_cv_use_fileproto"
4645 if test "$no_cache" != 1; then
4646 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4647 fi
4648
4649 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4650 echo "$as_me:$LINENO: result: yes" >&5
4651echo "${ECHO_T}yes" >&6
4652 else
4653 echo "$as_me:$LINENO: result: no" >&5
4654echo "${ECHO_T}no" >&6
4655 fi
4656
4657
4658 enablestring=
4659 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4660echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4661 no_cache=0
4662 # Check whether --enable-sockets or --disable-sockets was given.
4663if test "${enable_sockets+set}" = set; then
4664 enableval="$enable_sockets"
4665
4666 if test "$enableval" = yes; then
4667 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4668 else
4669 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4670 fi
4671
4672else
4673
4674 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4675 if test "x$LINE" != x ; then
4676 eval "DEFAULT_$LINE"
4677 else
4678 no_cache=1
4679 fi
4680
4681 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4682
4683fi;
4684
4685 eval "$ac_cv_use_sockets"
4686 if test "$no_cache" != 1; then
4687 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4688 fi
4689
4690 if test "$wxUSE_SOCKETS" = yes; then
4691 echo "$as_me:$LINENO: result: yes" >&5
4692echo "${ECHO_T}yes" >&6
4693 else
4694 echo "$as_me:$LINENO: result: no" >&5
4695echo "${ECHO_T}no" >&6
4696 fi
4697
4698
4699 enablestring=
4700 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4701echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4702 no_cache=0
4703 # Check whether --enable-ole or --disable-ole was given.
4704if test "${enable_ole+set}" = set; then
4705 enableval="$enable_ole"
4706
4707 if test "$enableval" = yes; then
4708 ac_cv_use_ole='wxUSE_OLE=yes'
4709 else
4710 ac_cv_use_ole='wxUSE_OLE=no'
4711 fi
4712
4713else
4714
4715 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4716 if test "x$LINE" != x ; then
4717 eval "DEFAULT_$LINE"
4718 else
4719 no_cache=1
4720 fi
4721
4722 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4723
4724fi;
4725
4726 eval "$ac_cv_use_ole"
4727 if test "$no_cache" != 1; then
4728 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4729 fi
4730
4731 if test "$wxUSE_OLE" = yes; then
4732 echo "$as_me:$LINENO: result: yes" >&5
4733echo "${ECHO_T}yes" >&6
4734 else
4735 echo "$as_me:$LINENO: result: no" >&5
4736echo "${ECHO_T}no" >&6
4737 fi
4738
4739
4740 enablestring=
4741 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4742echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4743 no_cache=0
4744 # Check whether --enable-dataobj or --disable-dataobj was given.
4745if test "${enable_dataobj+set}" = set; then
4746 enableval="$enable_dataobj"
4747
4748 if test "$enableval" = yes; then
4749 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4750 else
4751 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4752 fi
4753
4754else
4755
4756 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4757 if test "x$LINE" != x ; then
4758 eval "DEFAULT_$LINE"
4759 else
4760 no_cache=1
4761 fi
4762
4763 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4764
4765fi;
4766
4767 eval "$ac_cv_use_dataobj"
4768 if test "$no_cache" != 1; then
4769 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4770 fi
4771
4772 if test "$wxUSE_DATAOBJ" = yes; then
4773 echo "$as_me:$LINENO: result: yes" >&5
4774echo "${ECHO_T}yes" >&6
4775 else
4776 echo "$as_me:$LINENO: result: no" >&5
4777echo "${ECHO_T}no" >&6
4778 fi
4779
4780
4781
4782 enablestring=
4783 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4784echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4785 no_cache=0
4786 # Check whether --enable-ipc or --disable-ipc was given.
4787if test "${enable_ipc+set}" = set; then
4788 enableval="$enable_ipc"
4789
4790 if test "$enableval" = yes; then
4791 ac_cv_use_ipc='wxUSE_IPC=yes'
4792 else
4793 ac_cv_use_ipc='wxUSE_IPC=no'
4794 fi
4795
4796else
4797
4798 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4799 if test "x$LINE" != x ; then
4800 eval "DEFAULT_$LINE"
4801 else
4802 no_cache=1
4803 fi
4804
4805 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4806
4807fi;
4808
4809 eval "$ac_cv_use_ipc"
4810 if test "$no_cache" != 1; then
4811 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4812 fi
4813
4814 if test "$wxUSE_IPC" = yes; then
4815 echo "$as_me:$LINENO: result: yes" >&5
4816echo "${ECHO_T}yes" >&6
4817 else
4818 echo "$as_me:$LINENO: result: no" >&5
4819echo "${ECHO_T}no" >&6
4820 fi
4821
4822
4823
4824 enablestring=
4825 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4826echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4827 no_cache=0
4828 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4829if test "${enable_apple_ieee+set}" = set; then
4830 enableval="$enable_apple_ieee"
4831
4832 if test "$enableval" = yes; then
4833 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4834 else
4835 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4836 fi
4837
4838else
4839
4840 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4841 if test "x$LINE" != x ; then
4842 eval "DEFAULT_$LINE"
4843 else
4844 no_cache=1
4845 fi
4846
4847 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4848
4849fi;
4850
4851 eval "$ac_cv_use_apple_ieee"
4852 if test "$no_cache" != 1; then
4853 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4854 fi
4855
4856 if test "$wxUSE_APPLE_IEEE" = yes; then
4857 echo "$as_me:$LINENO: result: yes" >&5
4858echo "${ECHO_T}yes" >&6
4859 else
4860 echo "$as_me:$LINENO: result: no" >&5
4861echo "${ECHO_T}no" >&6
4862 fi
4863
4864
81f90336
MW
4865 enablestring=
4866 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
4867echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
4868 no_cache=0
4869 # Check whether --enable-arcstream or --disable-arcstream was given.
4870if test "${enable_arcstream+set}" = set; then
4871 enableval="$enable_arcstream"
4872
4873 if test "$enableval" = yes; then
9e8e867f 4874 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
81f90336 4875 else
9e8e867f 4876 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
81f90336
MW
4877 fi
4878
4879else
4880
9e8e867f 4881 LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
81f90336
MW
4882 if test "x$LINE" != x ; then
4883 eval "DEFAULT_$LINE"
4884 else
4885 no_cache=1
4886 fi
4887
9e8e867f 4888 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
81f90336
MW
4889
4890fi;
4891
4892 eval "$ac_cv_use_arcstream"
4893 if test "$no_cache" != 1; then
4894 echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
4895 fi
4896
9e8e867f 4897 if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
81f90336
MW
4898 echo "$as_me:$LINENO: result: yes" >&5
4899echo "${ECHO_T}yes" >&6
4900 else
4901 echo "$as_me:$LINENO: result: no" >&5
4902echo "${ECHO_T}no" >&6
4903 fi
4904
4905
a848cd7e 4906 enablestring=
36b6448c
VZ
4907 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
4908echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
a848cd7e 4909 no_cache=0
36b6448c
VZ
4910 # Check whether --enable-backtrace or --disable-backtrace was given.
4911if test "${enable_backtrace+set}" = set; then
4912 enableval="$enable_backtrace"
a848cd7e
SC
4913
4914 if test "$enableval" = yes; then
36b6448c 4915 ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
a848cd7e 4916 else
36b6448c 4917 ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
a848cd7e
SC
4918 fi
4919
4920else
4921
36b6448c 4922 LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
a848cd7e
SC
4923 if test "x$LINE" != x ; then
4924 eval "DEFAULT_$LINE"
4925 else
4926 no_cache=1
4927 fi
4928
36b6448c 4929 ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
a848cd7e
SC
4930
4931fi;
4932
36b6448c 4933 eval "$ac_cv_use_backtrace"
a848cd7e 4934 if test "$no_cache" != 1; then
36b6448c 4935 echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4936 fi
4937
36b6448c 4938 if test "$wxUSE_STACKWALKER" = yes; then
a848cd7e
SC
4939 echo "$as_me:$LINENO: result: yes" >&5
4940echo "${ECHO_T}yes" >&6
4941 else
4942 echo "$as_me:$LINENO: result: no" >&5
4943echo "${ECHO_T}no" >&6
4944 fi
4945
4946
eaff0f0d 4947 enablestring=
36b6448c
VZ
4948 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4949echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eaff0f0d 4950 no_cache=0
36b6448c
VZ
4951 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4952if test "${enable_catch_segvs+set}" = set; then
4953 enableval="$enable_catch_segvs"
eaff0f0d
VZ
4954
4955 if test "$enableval" = yes; then
36b6448c 4956 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
eaff0f0d 4957 else
36b6448c 4958 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
eaff0f0d
VZ
4959 fi
4960
4961else
4962
36b6448c 4963 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
eaff0f0d
VZ
4964 if test "x$LINE" != x ; then
4965 eval "DEFAULT_$LINE"
4966 else
4967 no_cache=1
4968 fi
4969
36b6448c 4970 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eaff0f0d
VZ
4971
4972fi;
4973
36b6448c 4974 eval "$ac_cv_use_catch_segvs"
eaff0f0d 4975 if test "$no_cache" != 1; then
36b6448c 4976 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
eaff0f0d
VZ
4977 fi
4978
36b6448c 4979 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
eaff0f0d
VZ
4980 echo "$as_me:$LINENO: result: yes" >&5
4981echo "${ECHO_T}yes" >&6
4982 else
4983 echo "$as_me:$LINENO: result: no" >&5
4984echo "${ECHO_T}no" >&6
4985 fi
4986
4987
a848cd7e
SC
4988 enablestring=
4989 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4990echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4991 no_cache=0
4992 # Check whether --enable-cmdline or --disable-cmdline was given.
4993if test "${enable_cmdline+set}" = set; then
4994 enableval="$enable_cmdline"
4995
4996 if test "$enableval" = yes; then
4997 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4998 else
4999 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
5000 fi
5001
5002else
5003
5004 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
5005 if test "x$LINE" != x ; then
5006 eval "DEFAULT_$LINE"
5007 else
5008 no_cache=1
5009 fi
5010
5011 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
5012
5013fi;
5014
5015 eval "$ac_cv_use_cmdline"
5016 if test "$no_cache" != 1; then
5017 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
5018 fi
5019
5020 if test "$wxUSE_CMDLINE_PARSER" = yes; then
5021 echo "$as_me:$LINENO: result: yes" >&5
5022echo "${ECHO_T}yes" >&6
5023 else
5024 echo "$as_me:$LINENO: result: no" >&5
5025echo "${ECHO_T}no" >&6
5026 fi
5027
5028
5029 enablestring=
5030 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
5031echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
5032 no_cache=0
5033 # Check whether --enable-datetime or --disable-datetime was given.
5034if test "${enable_datetime+set}" = set; then
5035 enableval="$enable_datetime"
5036
5037 if test "$enableval" = yes; then
5038 ac_cv_use_datetime='wxUSE_DATETIME=yes'
5039 else
5040 ac_cv_use_datetime='wxUSE_DATETIME=no'
5041 fi
5042
5043else
5044
5045 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
5046 if test "x$LINE" != x ; then
5047 eval "DEFAULT_$LINE"
5048 else
5049 no_cache=1
5050 fi
5051
5052 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
5053
5054fi;
5055
5056 eval "$ac_cv_use_datetime"
5057 if test "$no_cache" != 1; then
5058 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
5059 fi
5060
5061 if test "$wxUSE_DATETIME" = yes; then
5062 echo "$as_me:$LINENO: result: yes" >&5
5063echo "${ECHO_T}yes" >&6
5064 else
5065 echo "$as_me:$LINENO: result: no" >&5
5066echo "${ECHO_T}no" >&6
5067 fi
5068
5069
36b6448c
VZ
5070 enablestring=
5071 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
5072echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
5073 no_cache=0
5074 # Check whether --enable-debugreport or --disable-debugreport was given.
5075if test "${enable_debugreport+set}" = set; then
5076 enableval="$enable_debugreport"
5077
5078 if test "$enableval" = yes; then
5079 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
5080 else
5081 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
5082 fi
5083
5084else
5085
5086 LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
5087 if test "x$LINE" != x ; then
5088 eval "DEFAULT_$LINE"
5089 else
5090 no_cache=1
5091 fi
5092
5093 ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
5094
5095fi;
5096
5097 eval "$ac_cv_use_debugreport"
5098 if test "$no_cache" != 1; then
5099 echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
5100 fi
5101
5102 if test "$wxUSE_DEBUGREPORT" = yes; then
5103 echo "$as_me:$LINENO: result: yes" >&5
5104echo "${ECHO_T}yes" >&6
5105 else
5106 echo "$as_me:$LINENO: result: no" >&5
5107echo "${ECHO_T}no" >&6
5108 fi
5109
5110
a848cd7e
SC
5111 enablestring=
5112 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
5113echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
5114 no_cache=0
5115 # Check whether --enable-dialupman or --disable-dialupman was given.
5116if test "${enable_dialupman+set}" = set; then
5117 enableval="$enable_dialupman"
5118
5119 if test "$enableval" = yes; then
5120 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
5121 else
5122 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
5123 fi
5124
5125else
5126
5127 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
5128 if test "x$LINE" != x ; then
5129 eval "DEFAULT_$LINE"
5130 else
5131 no_cache=1
5132 fi
5133
5134 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
5135
5136fi;
5137
5138 eval "$ac_cv_use_dialupman"
5139 if test "$no_cache" != 1; then
5140 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
5141 fi
5142
5143 if test "$wxUSE_DIALUP_MANAGER" = yes; then
5144 echo "$as_me:$LINENO: result: yes" >&5
5145echo "${ECHO_T}yes" >&6
5146 else
5147 echo "$as_me:$LINENO: result: no" >&5
5148echo "${ECHO_T}no" >&6
5149 fi
5150
5151
5152 enablestring=
5153 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
5154echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
5155 no_cache=0
5156 # Check whether --enable-dynlib or --disable-dynlib was given.
5157if test "${enable_dynlib+set}" = set; then
5158 enableval="$enable_dynlib"
5159
5160 if test "$enableval" = yes; then
5161 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
5162 else
5163 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
5164 fi
5165
5166else
5167
5168 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
5169 if test "x$LINE" != x ; then
5170 eval "DEFAULT_$LINE"
5171 else
5172 no_cache=1
5173 fi
5174
5175 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
5176
5177fi;
5178
5179 eval "$ac_cv_use_dynlib"
5180 if test "$no_cache" != 1; then
5181 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
5182 fi
5183
5184 if test "$wxUSE_DYNLIB_CLASS" = yes; then
5185 echo "$as_me:$LINENO: result: yes" >&5
5186echo "${ECHO_T}yes" >&6
5187 else
5188 echo "$as_me:$LINENO: result: no" >&5
5189echo "${ECHO_T}no" >&6
5190 fi
5191
5192
5193 enablestring=
5194 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
5195echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
5196 no_cache=0
5197 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
5198if test "${enable_dynamicloader+set}" = set; then
5199 enableval="$enable_dynamicloader"
5200
5201 if test "$enableval" = yes; then
5202 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
5203 else
5204 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
5205 fi
5206
5207else
5208
5209 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
5210 if test "x$LINE" != x ; then
5211 eval "DEFAULT_$LINE"
5212 else
5213 no_cache=1
5214 fi
5215
5216 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5217
5218fi;
5219
5220 eval "$ac_cv_use_dynamicloader"
5221 if test "$no_cache" != 1; then
5222 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5223 fi
5224
5225 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5226 echo "$as_me:$LINENO: result: yes" >&5
5227echo "${ECHO_T}yes" >&6
5228 else
5229 echo "$as_me:$LINENO: result: no" >&5
5230echo "${ECHO_T}no" >&6
5231 fi
5232
5233
5234 enablestring=
5235 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5236echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5237 no_cache=0
5238 # Check whether --enable-exceptions or --disable-exceptions was given.
5239if test "${enable_exceptions+set}" = set; then
5240 enableval="$enable_exceptions"
5241
5242 if test "$enableval" = yes; then
5243 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5244 else
5245 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5246 fi
5247
5248else
5249
5250 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5251 if test "x$LINE" != x ; then
5252 eval "DEFAULT_$LINE"
5253 else
5254 no_cache=1
5255 fi
5256
5257 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5258
5259fi;
5260
5261 eval "$ac_cv_use_exceptions"
5262 if test "$no_cache" != 1; then
5263 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5264 fi
5265
5266 if test "$wxUSE_EXCEPTIONS" = yes; then
5267 echo "$as_me:$LINENO: result: yes" >&5
5268echo "${ECHO_T}yes" >&6
5269 else
5270 echo "$as_me:$LINENO: result: no" >&5
5271echo "${ECHO_T}no" >&6
5272 fi
5273
5274
5275 enablestring=
5276 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5277echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5278 no_cache=0
5279 # Check whether --enable-ffile or --disable-ffile was given.
5280if test "${enable_ffile+set}" = set; then
5281 enableval="$enable_ffile"
5282
5283 if test "$enableval" = yes; then
5284 ac_cv_use_ffile='wxUSE_FFILE=yes'
5285 else
5286 ac_cv_use_ffile='wxUSE_FFILE=no'
5287 fi
5288
5289else
5290
5291 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5292 if test "x$LINE" != x ; then
5293 eval "DEFAULT_$LINE"
5294 else
5295 no_cache=1
5296 fi
5297
5298 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5299
5300fi;
5301
5302 eval "$ac_cv_use_ffile"
5303 if test "$no_cache" != 1; then
5304 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5305 fi
5306
5307 if test "$wxUSE_FFILE" = yes; then
5308 echo "$as_me:$LINENO: result: yes" >&5
5309echo "${ECHO_T}yes" >&6
5310 else
5311 echo "$as_me:$LINENO: result: no" >&5
5312echo "${ECHO_T}no" >&6
5313 fi
5314
5315
5316 enablestring=
5317 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5318echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5319 no_cache=0
5320 # Check whether --enable-file or --disable-file was given.
5321if test "${enable_file+set}" = set; then
5322 enableval="$enable_file"
5323
5324 if test "$enableval" = yes; then
5325 ac_cv_use_file='wxUSE_FILE=yes'
5326 else
5327 ac_cv_use_file='wxUSE_FILE=no'
5328 fi
5329
5330else
5331
5332 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5333 if test "x$LINE" != x ; then
5334 eval "DEFAULT_$LINE"
5335 else
5336 no_cache=1
5337 fi
5338
5339 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5340
5341fi;
5342
5343 eval "$ac_cv_use_file"
5344 if test "$no_cache" != 1; then
5345 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5346 fi
5347
5348 if test "$wxUSE_FILE" = yes; then
5349 echo "$as_me:$LINENO: result: yes" >&5
5350echo "${ECHO_T}yes" >&6
5351 else
5352 echo "$as_me:$LINENO: result: no" >&5
5353echo "${ECHO_T}no" >&6
5354 fi
5355
5356
5357 enablestring=
5358 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5359echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5360 no_cache=0
5361 # Check whether --enable-filesystem or --disable-filesystem was given.
5362if test "${enable_filesystem+set}" = set; then
5363 enableval="$enable_filesystem"
5364
5365 if test "$enableval" = yes; then
5366 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5367 else
5368 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5369 fi
5370
5371else
5372
5373 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5374 if test "x$LINE" != x ; then
5375 eval "DEFAULT_$LINE"
5376 else
5377 no_cache=1
5378 fi
5379
5380 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5381
5382fi;
5383
5384 eval "$ac_cv_use_filesystem"
5385 if test "$no_cache" != 1; then
5386 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5387 fi
5388
5389 if test "$wxUSE_FILESYSTEM" = yes; then
5390 echo "$as_me:$LINENO: result: yes" >&5
5391echo "${ECHO_T}yes" >&6
5392 else
5393 echo "$as_me:$LINENO: result: no" >&5
5394echo "${ECHO_T}no" >&6
5395 fi
5396
5397
5398 enablestring=
5399 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5400echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5401 no_cache=0
5402 # Check whether --enable-fontmap or --disable-fontmap was given.
5403if test "${enable_fontmap+set}" = set; then
5404 enableval="$enable_fontmap"
5405
5406 if test "$enableval" = yes; then
5407 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5408 else
5409 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5410 fi
5411
5412else
5413
5414 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5415 if test "x$LINE" != x ; then
5416 eval "DEFAULT_$LINE"
5417 else
5418 no_cache=1
5419 fi
5420
5421 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5422
5423fi;
5424
5425 eval "$ac_cv_use_fontmap"
5426 if test "$no_cache" != 1; then
5427 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5428 fi
5429
5430 if test "$wxUSE_FONTMAP" = yes; then
5431 echo "$as_me:$LINENO: result: yes" >&5
5432echo "${ECHO_T}yes" >&6
5433 else
5434 echo "$as_me:$LINENO: result: no" >&5
5435echo "${ECHO_T}no" >&6
5436 fi
5437
5438
5439 enablestring=
5440 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5441echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5442 no_cache=0
5443 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5444if test "${enable_fs_inet+set}" = set; then
5445 enableval="$enable_fs_inet"
5446
5447 if test "$enableval" = yes; then
5448 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5449 else
5450 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5451 fi
5452
5453else
5454
5455 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5456 if test "x$LINE" != x ; then
5457 eval "DEFAULT_$LINE"
5458 else
5459 no_cache=1
5460 fi
5461
5462 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5463
5464fi;
5465
5466 eval "$ac_cv_use_fs_inet"
5467 if test "$no_cache" != 1; then
5468 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5469 fi
5470
5471 if test "$wxUSE_FS_INET" = yes; then
5472 echo "$as_me:$LINENO: result: yes" >&5
5473echo "${ECHO_T}yes" >&6
5474 else
5475 echo "$as_me:$LINENO: result: no" >&5
5476echo "${ECHO_T}no" >&6
5477 fi
5478
5479
5480 enablestring=
5481 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5482echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5483 no_cache=0
5484 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5485if test "${enable_fs_zip+set}" = set; then
5486 enableval="$enable_fs_zip"
5487
5488 if test "$enableval" = yes; then
5489 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5490 else
5491 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5492 fi
5493
5494else
5495
5496 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5497 if test "x$LINE" != x ; then
5498 eval "DEFAULT_$LINE"
5499 else
5500 no_cache=1
5501 fi
5502
5503 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5504
5505fi;
5506
5507 eval "$ac_cv_use_fs_zip"
5508 if test "$no_cache" != 1; then
5509 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5510 fi
5511
5512 if test "$wxUSE_FS_ZIP" = yes; then
5513 echo "$as_me:$LINENO: result: yes" >&5
5514echo "${ECHO_T}yes" >&6
5515 else
5516 echo "$as_me:$LINENO: result: no" >&5
5517echo "${ECHO_T}no" >&6
5518 fi
5519
5520
5521 enablestring=
5522 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5523echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5524 no_cache=0
5525 # Check whether --enable-geometry or --disable-geometry was given.
5526if test "${enable_geometry+set}" = set; then
5527 enableval="$enable_geometry"
5528
5529 if test "$enableval" = yes; then
5530 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5531 else
5532 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5533 fi
5534
5535else
5536
5537 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5538 if test "x$LINE" != x ; then
5539 eval "DEFAULT_$LINE"
5540 else
5541 no_cache=1
5542 fi
5543
5544 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5545
5546fi;
5547
5548 eval "$ac_cv_use_geometry"
5549 if test "$no_cache" != 1; then
5550 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5551 fi
5552
5553 if test "$wxUSE_GEOMETRY" = yes; then
5554 echo "$as_me:$LINENO: result: yes" >&5
5555echo "${ECHO_T}yes" >&6
5556 else
5557 echo "$as_me:$LINENO: result: no" >&5
5558echo "${ECHO_T}no" >&6
5559 fi
5560
5561
5562 enablestring=
5563 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5564echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5565 no_cache=0
5566 # Check whether --enable-log or --disable-log was given.
5567if test "${enable_log+set}" = set; then
5568 enableval="$enable_log"
5569
5570 if test "$enableval" = yes; then
5571 ac_cv_use_log='wxUSE_LOG=yes'
5572 else
5573 ac_cv_use_log='wxUSE_LOG=no'
5574 fi
5575
5576else
5577
5578 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5579 if test "x$LINE" != x ; then
5580 eval "DEFAULT_$LINE"
5581 else
5582 no_cache=1
5583 fi
5584
5585 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5586
5587fi;
5588
5589 eval "$ac_cv_use_log"
5590 if test "$no_cache" != 1; then
5591 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5592 fi
5593
5594 if test "$wxUSE_LOG" = yes; then
5595 echo "$as_me:$LINENO: result: yes" >&5
5596echo "${ECHO_T}yes" >&6
5597 else
5598 echo "$as_me:$LINENO: result: no" >&5
5599echo "${ECHO_T}no" >&6
5600 fi
5601
5602
5603 enablestring=
5604 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5605echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5606 no_cache=0
5607 # Check whether --enable-longlong or --disable-longlong was given.
5608if test "${enable_longlong+set}" = set; then
5609 enableval="$enable_longlong"
5610
5611 if test "$enableval" = yes; then
5612 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5613 else
5614 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5615 fi
5616
5617else
5618
5619 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5620 if test "x$LINE" != x ; then
5621 eval "DEFAULT_$LINE"
5622 else
5623 no_cache=1
5624 fi
5625
5626 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5627
5628fi;
5629
5630 eval "$ac_cv_use_longlong"
5631 if test "$no_cache" != 1; then
5632 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5633 fi
5634
5635 if test "$wxUSE_LONGLONG" = yes; then
5636 echo "$as_me:$LINENO: result: yes" >&5
5637echo "${ECHO_T}yes" >&6
5638 else
5639 echo "$as_me:$LINENO: result: no" >&5
5640echo "${ECHO_T}no" >&6
5641 fi
5642
5643
5644 enablestring=
5645 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5646echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5647 no_cache=0
5648 # Check whether --enable-mimetype or --disable-mimetype was given.
5649if test "${enable_mimetype+set}" = set; then
5650 enableval="$enable_mimetype"
5651
5652 if test "$enableval" = yes; then
5653 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5654 else
5655 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5656 fi
5657
5658else
5659
5660 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5661 if test "x$LINE" != x ; then
5662 eval "DEFAULT_$LINE"
5663 else
5664 no_cache=1
5665 fi
5666
5667 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5668
5669fi;
5670
5671 eval "$ac_cv_use_mimetype"
5672 if test "$no_cache" != 1; then
5673 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5674 fi
5675
5676 if test "$wxUSE_MIMETYPE" = yes; then
5677 echo "$as_me:$LINENO: result: yes" >&5
5678echo "${ECHO_T}yes" >&6
5679 else
5680 echo "$as_me:$LINENO: result: no" >&5
5681echo "${ECHO_T}no" >&6
5682 fi
5683
5684
5685 enablestring=
5686 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5687echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5688 no_cache=0
5689 # Check whether --enable-mslu or --disable-mslu was given.
5690if test "${enable_mslu+set}" = set; then
5691 enableval="$enable_mslu"
5692
5693 if test "$enableval" = yes; then
5694 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5695 else
5696 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5697 fi
5698
5699else
5700
5701 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5702 if test "x$LINE" != x ; then
5703 eval "DEFAULT_$LINE"
5704 else
5705 no_cache=1
5706 fi
5707
5708 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5709
5710fi;
5711
5712 eval "$ac_cv_use_mslu"
5713 if test "$no_cache" != 1; then
5714 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5715 fi
5716
5717 if test "$wxUSE_UNICODE_MSLU" = yes; then
5718 echo "$as_me:$LINENO: result: yes" >&5
5719echo "${ECHO_T}yes" >&6
5720 else
5721 echo "$as_me:$LINENO: result: no" >&5
5722echo "${ECHO_T}no" >&6
5723 fi
5724
5725
5726 enablestring=
5727 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5728echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5729 no_cache=0
5730 # Check whether --enable-snglinst or --disable-snglinst was given.
5731if test "${enable_snglinst+set}" = set; then
5732 enableval="$enable_snglinst"
5733
5734 if test "$enableval" = yes; then
5735 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5736 else
5737 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5738 fi
5739
5740else
5741
5742 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5743 if test "x$LINE" != x ; then
5744 eval "DEFAULT_$LINE"
5745 else
5746 no_cache=1
5747 fi
5748
5749 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5750
5751fi;
5752
5753 eval "$ac_cv_use_snglinst"
5754 if test "$no_cache" != 1; then
5755 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5756 fi
5757
5758 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5759 echo "$as_me:$LINENO: result: yes" >&5
5760echo "${ECHO_T}yes" >&6
5761 else
5762 echo "$as_me:$LINENO: result: no" >&5
5763echo "${ECHO_T}no" >&6
5764 fi
5765
5766
5767 enablestring=
07158944
VZ
5768 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5769echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
a848cd7e 5770 no_cache=0
07158944
VZ
5771 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5772if test "${enable_std_iostreams+set}" = set; then
5773 enableval="$enable_std_iostreams"
a848cd7e
SC
5774
5775 if test "$enableval" = yes; then
07158944 5776 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
a848cd7e 5777 else
07158944 5778 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
a848cd7e
SC
5779 fi
5780
5781else
5782
07158944 5783 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
a848cd7e
SC
5784 if test "x$LINE" != x ; then
5785 eval "DEFAULT_$LINE"
5786 else
5787 no_cache=1
5788 fi
5789
07158944 5790 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
a848cd7e
SC
5791
5792fi;
5793
07158944 5794 eval "$ac_cv_use_std_iostreams"
a848cd7e 5795 if test "$no_cache" != 1; then
07158944 5796 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5797 fi
5798
07158944 5799 if test "$wxUSE_STD_IOSTREAM" = yes; then
a848cd7e
SC
5800 echo "$as_me:$LINENO: result: yes" >&5
5801echo "${ECHO_T}yes" >&6
5802 else
5803 echo "$as_me:$LINENO: result: no" >&5
5804echo "${ECHO_T}no" >&6
5805 fi
5806
5807
59746b65
MW
5808 enablestring=
5809 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
5810echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6
5811 no_cache=0
5812 # Check whether --enable-std_string or --disable-std_string was given.
5813if test "${enable_std_string+set}" = set; then
5814 enableval="$enable_std_string"
5815
5816 if test "$enableval" = yes; then
5817 ac_cv_use_std_string='wxUSE_STD_STRING=yes'
5818 else
5819 ac_cv_use_std_string='wxUSE_STD_STRING=no'
5820 fi
5821
5822else
5823
5824 LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}`
5825 if test "x$LINE" != x ; then
5826 eval "DEFAULT_$LINE"
5827 else
5828 no_cache=1
5829 fi
5830
5831 ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING
5832
5833fi;
5834
5835 eval "$ac_cv_use_std_string"
5836 if test "$no_cache" != 1; then
5837 echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp
5838 fi
5839
5840 if test "$wxUSE_STD_STRING" = yes; then
5841 echo "$as_me:$LINENO: result: yes" >&5
5842echo "${ECHO_T}yes" >&6
5843 else
5844 echo "$as_me:$LINENO: result: no" >&5
5845echo "${ECHO_T}no" >&6
5846 fi
5847
5848
a848cd7e 5849 enablestring=
07158944
VZ
5850 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
5851echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
a848cd7e 5852 no_cache=0
07158944
VZ
5853 # Check whether --enable-stdpaths or --disable-stdpaths was given.
5854if test "${enable_stdpaths+set}" = set; then
5855 enableval="$enable_stdpaths"
a848cd7e
SC
5856
5857 if test "$enableval" = yes; then
07158944 5858 ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
a848cd7e 5859 else
07158944 5860 ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
a848cd7e
SC
5861 fi
5862
5863else
5864
07158944 5865 LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
a848cd7e
SC
5866 if test "x$LINE" != x ; then
5867 eval "DEFAULT_$LINE"
5868 else
5869 no_cache=1
5870 fi
5871
07158944 5872 ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
a848cd7e
SC
5873
5874fi;
5875
07158944 5876 eval "$ac_cv_use_stdpaths"
a848cd7e 5877 if test "$no_cache" != 1; then
07158944 5878 echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5879 fi
5880
07158944 5881 if test "$wxUSE_STDPATHS" = yes; then
a848cd7e
SC
5882 echo "$as_me:$LINENO: result: yes" >&5
5883echo "${ECHO_T}yes" >&6
5884 else
5885 echo "$as_me:$LINENO: result: no" >&5
5886echo "${ECHO_T}no" >&6
5887 fi
5888
5889
5890 enablestring=
5891 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5892echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5893 no_cache=0
5894 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5895if test "${enable_stopwatch+set}" = set; then
5896 enableval="$enable_stopwatch"
5897
5898 if test "$enableval" = yes; then
5899 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5900 else
5901 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5902 fi
5903
5904else
5905
5906 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5907 if test "x$LINE" != x ; then
5908 eval "DEFAULT_$LINE"
5909 else
5910 no_cache=1
5911 fi
5912
5913 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5914
5915fi;
5916
5917 eval "$ac_cv_use_stopwatch"
5918 if test "$no_cache" != 1; then
5919 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5920 fi
5921
5922 if test "$wxUSE_STOPWATCH" = yes; then
5923 echo "$as_me:$LINENO: result: yes" >&5
5924echo "${ECHO_T}yes" >&6
5925 else
5926 echo "$as_me:$LINENO: result: no" >&5
5927echo "${ECHO_T}no" >&6
5928 fi
5929
5930
07158944
VZ
5931 enablestring=
5932 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5933echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5934 no_cache=0
5935 # Check whether --enable-streams or --disable-streams was given.
5936if test "${enable_streams+set}" = set; then
5937 enableval="$enable_streams"
5938
5939 if test "$enableval" = yes; then
5940 ac_cv_use_streams='wxUSE_STREAMS=yes'
5941 else
5942 ac_cv_use_streams='wxUSE_STREAMS=no'
5943 fi
5944
5945else
5946
5947 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5948 if test "x$LINE" != x ; then
5949 eval "DEFAULT_$LINE"
5950 else
5951 no_cache=1
5952 fi
5953
5954 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5955
5956fi;
5957
5958 eval "$ac_cv_use_streams"
5959 if test "$no_cache" != 1; then
5960 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5961 fi
5962
5963 if test "$wxUSE_STREAMS" = yes; then
5964 echo "$as_me:$LINENO: result: yes" >&5
5965echo "${ECHO_T}yes" >&6
5966 else
5967 echo "$as_me:$LINENO: result: no" >&5
5968echo "${ECHO_T}no" >&6
5969 fi
5970
5971
a848cd7e
SC
5972 enablestring=
5973 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5974echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5975 no_cache=0
5976 # Check whether --enable-system_options or --disable-system_options was given.
5977if test "${enable_system_options+set}" = set; then
5978 enableval="$enable_system_options"
5979
5980 if test "$enableval" = yes; then
5981 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5982 else
5983 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5984 fi
5985
5986else
5987
5988 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5989 if test "x$LINE" != x ; then
5990 eval "DEFAULT_$LINE"
5991 else
5992 no_cache=1
5993 fi
5994
5995 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5996
5997fi;
5998
5999 eval "$ac_cv_use_system_options"
6000 if test "$no_cache" != 1; then
6001 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
6002 fi
6003
6004 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
6005 echo "$as_me:$LINENO: result: yes" >&5
6006echo "${ECHO_T}yes" >&6
6007 else
6008 echo "$as_me:$LINENO: result: no" >&5
6009echo "${ECHO_T}no" >&6
6010 fi
6011
6012
6013 enablestring=
6014 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
6015echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
6016 no_cache=0
6017 # Check whether --enable-textbuf or --disable-textbuf was given.
6018if test "${enable_textbuf+set}" = set; then
6019 enableval="$enable_textbuf"
6020
6021 if test "$enableval" = yes; then
6022 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
6023 else
6024 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
6025 fi
6026
6027else
6028
6029 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
6030 if test "x$LINE" != x ; then
6031 eval "DEFAULT_$LINE"
6032 else
6033 no_cache=1
6034 fi
6035
6036 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
6037
6038fi;
6039
6040 eval "$ac_cv_use_textbuf"
6041 if test "$no_cache" != 1; then
6042 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
6043 fi
6044
6045 if test "$wxUSE_TEXTBUFFER" = yes; then
6046 echo "$as_me:$LINENO: result: yes" >&5
6047echo "${ECHO_T}yes" >&6
6048 else
6049 echo "$as_me:$LINENO: result: no" >&5
6050echo "${ECHO_T}no" >&6
6051 fi
6052
6053
6054 enablestring=
6055 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
6056echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
6057 no_cache=0
6058 # Check whether --enable-textfile or --disable-textfile was given.
6059if test "${enable_textfile+set}" = set; then
6060 enableval="$enable_textfile"
6061
6062 if test "$enableval" = yes; then
6063 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
6064 else
6065 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
6066 fi
6067
6068else
6069
6070 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
6071 if test "x$LINE" != x ; then
6072 eval "DEFAULT_$LINE"
6073 else
6074 no_cache=1
6075 fi
6076
6077 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
6078
6079fi;
6080
6081 eval "$ac_cv_use_textfile"
6082 if test "$no_cache" != 1; then
6083 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
6084 fi
6085
6086 if test "$wxUSE_TEXTFILE" = yes; then
6087 echo "$as_me:$LINENO: result: yes" >&5
6088echo "${ECHO_T}yes" >&6
6089 else
6090 echo "$as_me:$LINENO: result: no" >&5
6091echo "${ECHO_T}no" >&6
6092 fi
6093
6094
6095 enablestring=
6096 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
6097echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
6098 no_cache=0
6099 # Check whether --enable-timer or --disable-timer was given.
6100if test "${enable_timer+set}" = set; then
6101 enableval="$enable_timer"
6102
6103 if test "$enableval" = yes; then
6104 ac_cv_use_timer='wxUSE_TIMER=yes'
6105 else
6106 ac_cv_use_timer='wxUSE_TIMER=no'
6107 fi
6108
6109else
6110
6111 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
6112 if test "x$LINE" != x ; then
6113 eval "DEFAULT_$LINE"
6114 else
6115 no_cache=1
6116 fi
6117
6118 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
6119
6120fi;
6121
6122 eval "$ac_cv_use_timer"
6123 if test "$no_cache" != 1; then
6124 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
6125 fi
6126
6127 if test "$wxUSE_TIMER" = yes; then
6128 echo "$as_me:$LINENO: result: yes" >&5
6129echo "${ECHO_T}yes" >&6
6130 else
6131 echo "$as_me:$LINENO: result: no" >&5
6132echo "${ECHO_T}no" >&6
6133 fi
6134
6135
6136 enablestring=
6137 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
6138echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
6139 no_cache=0
6140 # Check whether --enable-unicode or --disable-unicode was given.
6141if test "${enable_unicode+set}" = set; then
6142 enableval="$enable_unicode"
6143
6144 if test "$enableval" = yes; then
6145 ac_cv_use_unicode='wxUSE_UNICODE=yes'
6146 else
6147 ac_cv_use_unicode='wxUSE_UNICODE=no'
6148 fi
6149
6150else
6151
6152 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
6153 if test "x$LINE" != x ; then
6154 eval "DEFAULT_$LINE"
6155 else
6156 no_cache=1
6157 fi
6158
6159 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
6160
6161fi;
6162
6163 eval "$ac_cv_use_unicode"
6164 if test "$no_cache" != 1; then
6165 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
6166 fi
6167
6168 if test "$wxUSE_UNICODE" = yes; then
6169 echo "$as_me:$LINENO: result: yes" >&5
6170echo "${ECHO_T}yes" >&6
6171 else
6172 echo "$as_me:$LINENO: result: no" >&5
6173echo "${ECHO_T}no" >&6
6174 fi
6175
6176
6177 enablestring=
6178 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
6179echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
6180 no_cache=0
6181 # Check whether --enable-sound or --disable-sound was given.
6182if test "${enable_sound+set}" = set; then
6183 enableval="$enable_sound"
6184
6185 if test "$enableval" = yes; then
6186 ac_cv_use_sound='wxUSE_SOUND=yes'
6187 else
6188 ac_cv_use_sound='wxUSE_SOUND=no'
6189 fi
6190
6191else
6192
6193 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
6194 if test "x$LINE" != x ; then
6195 eval "DEFAULT_$LINE"
6196 else
6197 no_cache=1
6198 fi
6199
6200 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
6201
6202fi;
6203
6204 eval "$ac_cv_use_sound"
6205 if test "$no_cache" != 1; then
6206 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
6207 fi
6208
6209 if test "$wxUSE_SOUND" = yes; then
6210 echo "$as_me:$LINENO: result: yes" >&5
6211echo "${ECHO_T}yes" >&6
6212 else
6213 echo "$as_me:$LINENO: result: no" >&5
6214echo "${ECHO_T}no" >&6
6215 fi
6216
6217
3b57de8b
RL
6218 enablestring=
6219 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
6220echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
6221 no_cache=0
6222 # Check whether --enable-mediactrl or --disable-mediactrl was given.
6223if test "${enable_mediactrl+set}" = set; then
6224 enableval="$enable_mediactrl"
6225
6226 if test "$enableval" = yes; then
6227 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
6228 else
6229 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6230 fi
6231
6232else
6233
6234 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6235 if test "x$LINE" != x ; then
6236 eval "DEFAULT_$LINE"
6237 else
6238 no_cache=1
6239 fi
6240
6241 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6242
6243fi;
6244
6245 eval "$ac_cv_use_mediactrl"
6246 if test "$no_cache" != 1; then
6247 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6248 fi
6249
6250 if test "$wxUSE_MEDIACTRL" = yes; then
6251 echo "$as_me:$LINENO: result: yes" >&5
6252echo "${ECHO_T}yes" >&6
6253 else
6254 echo "$as_me:$LINENO: result: no" >&5
6255echo "${ECHO_T}no" >&6
6256 fi
6257
6258
f10e38c4
VZ
6259 enablestring=
6260 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
6261echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6
6262 no_cache=0
6263 # Check whether --enable-gstreamer8 or --disable-gstreamer8 was given.
6264if test "${enable_gstreamer8+set}" = set; then
6265 enableval="$enable_gstreamer8"
6266
6267 if test "$enableval" = yes; then
6268 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
6269 else
6270 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
6271 fi
6272
6273else
6274
6275 LINE=`grep "wxUSE_GSTREAMER8" ${wx_arg_cache_file}`
6276 if test "x$LINE" != x ; then
6277 eval "DEFAULT_$LINE"
6278 else
6279 no_cache=1
6280 fi
6281
6282 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8='$DEFAULT_wxUSE_GSTREAMER8
6283
6284fi;
6285
6286 eval "$ac_cv_use_gstreamer8"
6287 if test "$no_cache" != 1; then
6288 echo $ac_cv_use_gstreamer8 >> ${wx_arg_cache_file}.tmp
6289 fi
6290
6291 if test "$wxUSE_GSTREAMER8" = yes; then
6292 echo "$as_me:$LINENO: result: yes" >&5
6293echo "${ECHO_T}yes" >&6
6294 else
6295 echo "$as_me:$LINENO: result: no" >&5
6296echo "${ECHO_T}no" >&6
6297 fi
6298
6299
a848cd7e
SC
6300 enablestring=
6301 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
6302echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
6303 no_cache=0
6304 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
6305if test "${enable_wxprintfv+set}" = set; then
6306 enableval="$enable_wxprintfv"
6307
6308 if test "$enableval" = yes; then
6309 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
6310 else
6311 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
6312 fi
6313
6314else
6315
6316 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
6317 if test "x$LINE" != x ; then
6318 eval "DEFAULT_$LINE"
6319 else
6320 no_cache=1
6321 fi
6322
6323 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
6324
6325fi;
6326
6327 eval "$ac_cv_use_wxprintfv"
6328 if test "$no_cache" != 1; then
6329 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
6330 fi
6331
6332 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
6333 echo "$as_me:$LINENO: result: yes" >&5
6334echo "${ECHO_T}yes" >&6
6335 else
6336 echo "$as_me:$LINENO: result: no" >&5
6337echo "${ECHO_T}no" >&6
6338 fi
6339
6340
6341 enablestring=
6342 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6343echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6344 no_cache=0
6345 # Check whether --enable-zipstream or --disable-zipstream was given.
6346if test "${enable_zipstream+set}" = set; then
6347 enableval="$enable_zipstream"
6348
6349 if test "$enableval" = yes; then
6350 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6351 else
6352 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6353 fi
6354
6355else
6356
6357 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6358 if test "x$LINE" != x ; then
6359 eval "DEFAULT_$LINE"
6360 else
6361 no_cache=1
6362 fi
6363
6364 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6365
6366fi;
6367
6368 eval "$ac_cv_use_zipstream"
6369 if test "$no_cache" != 1; then
6370 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6371 fi
6372
6373 if test "$wxUSE_ZIPSTREAM" = yes; then
6374 echo "$as_me:$LINENO: result: yes" >&5
6375echo "${ECHO_T}yes" >&6
6376 else
6377 echo "$as_me:$LINENO: result: no" >&5
6378echo "${ECHO_T}no" >&6
6379 fi
6380
6381
a848cd7e
SC
6382
6383 enablestring=
6384 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6385echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6386 no_cache=0
6387 # Check whether --enable-url or --disable-url was given.
6388if test "${enable_url+set}" = set; then
6389 enableval="$enable_url"
6390
6391 if test "$enableval" = yes; then
6392 ac_cv_use_url='wxUSE_URL=yes'
6393 else
6394 ac_cv_use_url='wxUSE_URL=no'
6395 fi
6396
6397else
6398
6399 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6400 if test "x$LINE" != x ; then
6401 eval "DEFAULT_$LINE"
6402 else
6403 no_cache=1
6404 fi
6405
6406 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6407
6408fi;
6409
6410 eval "$ac_cv_use_url"
6411 if test "$no_cache" != 1; then
6412 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6413 fi
6414
6415 if test "$wxUSE_URL" = yes; then
6416 echo "$as_me:$LINENO: result: yes" >&5
6417echo "${ECHO_T}yes" >&6
6418 else
6419 echo "$as_me:$LINENO: result: no" >&5
6420echo "${ECHO_T}no" >&6
6421 fi
6422
6423
6424 enablestring=
6425 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6426echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6427 no_cache=0
6428 # Check whether --enable-protocol or --disable-protocol was given.
6429if test "${enable_protocol+set}" = set; then
6430 enableval="$enable_protocol"
6431
6432 if test "$enableval" = yes; then
6433 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6434 else
6435 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6436 fi
6437
6438else
6439
6440 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6441 if test "x$LINE" != x ; then
6442 eval "DEFAULT_$LINE"
6443 else
6444 no_cache=1
6445 fi
6446
6447 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6448
6449fi;
6450
6451 eval "$ac_cv_use_protocol"
6452 if test "$no_cache" != 1; then
6453 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6454 fi
6455
6456 if test "$wxUSE_PROTOCOL" = yes; then
6457 echo "$as_me:$LINENO: result: yes" >&5
6458echo "${ECHO_T}yes" >&6
6459 else
6460 echo "$as_me:$LINENO: result: no" >&5
6461echo "${ECHO_T}no" >&6
6462 fi
6463
6464
6465 enablestring=
6466 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6467echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6468 no_cache=0
6469 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6470if test "${enable_protocol_http+set}" = set; then
6471 enableval="$enable_protocol_http"
6472
6473 if test "$enableval" = yes; then
6474 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6475 else
6476 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6477 fi
6478
6479else
6480
6481 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6482 if test "x$LINE" != x ; then
6483 eval "DEFAULT_$LINE"
6484 else
6485 no_cache=1
6486 fi
6487
6488 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6489
6490fi;
6491
6492 eval "$ac_cv_use_protocol_http"
6493 if test "$no_cache" != 1; then
6494 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6495 fi
6496
6497 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6498 echo "$as_me:$LINENO: result: yes" >&5
6499echo "${ECHO_T}yes" >&6
6500 else
6501 echo "$as_me:$LINENO: result: no" >&5
6502echo "${ECHO_T}no" >&6
6503 fi
6504
6505
6506 enablestring=
6507 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6508echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6509 no_cache=0
6510 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6511if test "${enable_protocol_ftp+set}" = set; then
6512 enableval="$enable_protocol_ftp"
6513
6514 if test "$enableval" = yes; then
6515 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6516 else
6517 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6518 fi
6519
6520else
6521
6522 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6523 if test "x$LINE" != x ; then
6524 eval "DEFAULT_$LINE"
6525 else
6526 no_cache=1
6527 fi
6528
6529 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6530
6531fi;
6532
6533 eval "$ac_cv_use_protocol_ftp"
6534 if test "$no_cache" != 1; then
6535 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6536 fi
6537
6538 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6539 echo "$as_me:$LINENO: result: yes" >&5
6540echo "${ECHO_T}yes" >&6
6541 else
6542 echo "$as_me:$LINENO: result: no" >&5
6543echo "${ECHO_T}no" >&6
6544 fi
6545
6546
6547 enablestring=
6548 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6549echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6550 no_cache=0
6551 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6552if test "${enable_protocol_file+set}" = set; then
6553 enableval="$enable_protocol_file"
6554
6555 if test "$enableval" = yes; then
6556 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6557 else
6558 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6559 fi
6560
6561else
6562
6563 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6564 if test "x$LINE" != x ; then
6565 eval "DEFAULT_$LINE"
6566 else
6567 no_cache=1
6568 fi
6569
6570 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6571
6572fi;
6573
6574 eval "$ac_cv_use_protocol_file"
6575 if test "$no_cache" != 1; then
6576 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6577 fi
6578
6579 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6580 echo "$as_me:$LINENO: result: yes" >&5
6581echo "${ECHO_T}yes" >&6
6582 else
6583 echo "$as_me:$LINENO: result: no" >&5
6584echo "${ECHO_T}no" >&6
6585 fi
6586
6587
6588
6589
6590
6591 enablestring=
6592 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6593echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6594 no_cache=0
6595 # Check whether --enable-threads or --disable-threads was given.
6596if test "${enable_threads+set}" = set; then
6597 enableval="$enable_threads"
6598
6599 if test "$enableval" = yes; then
6600 ac_cv_use_threads='wxUSE_THREADS=yes'
6601 else
6602 ac_cv_use_threads='wxUSE_THREADS=no'
6603 fi
6604
6605else
6606
6607 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6608 if test "x$LINE" != x ; then
6609 eval "DEFAULT_$LINE"
6610 else
6611 no_cache=1
6612 fi
6613
6614 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6615
6616fi;
6617
6618 eval "$ac_cv_use_threads"
6619 if test "$no_cache" != 1; then
6620 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6621 fi
6622
6623 if test "$wxUSE_THREADS" = yes; then
6624 echo "$as_me:$LINENO: result: yes" >&5
6625echo "${ECHO_T}yes" >&6
6626 else
6627 echo "$as_me:$LINENO: result: no" >&5
6628echo "${ECHO_T}no" >&6
6629 fi
6630
6631
6632if test "$wxUSE_GUI" = "yes"; then
6633
6634
6635
6636 enablestring=
6637 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6638echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6639 no_cache=0
6640 # Check whether --enable-docview or --disable-docview was given.
6641if test "${enable_docview+set}" = set; then
6642 enableval="$enable_docview"
6643
6644 if test "$enableval" = yes; then
6645 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6646 else
6647 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6648 fi
6649
6650else
6651
6652 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6653 if test "x$LINE" != x ; then
6654 eval "DEFAULT_$LINE"
6655 else
6656 no_cache=1
6657 fi
6658
6659 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6660
6661fi;
6662
6663 eval "$ac_cv_use_docview"
6664 if test "$no_cache" != 1; then
6665 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6666 fi
6667
6668 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6669 echo "$as_me:$LINENO: result: yes" >&5
6670echo "${ECHO_T}yes" >&6
6671 else
6672 echo "$as_me:$LINENO: result: no" >&5
6673echo "${ECHO_T}no" >&6
6674 fi
6675
6676
6677 enablestring=
6678 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6679echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6680 no_cache=0
6681 # Check whether --enable-help or --disable-help was given.
6682if test "${enable_help+set}" = set; then
6683 enableval="$enable_help"
6684
6685 if test "$enableval" = yes; then
6686 ac_cv_use_help='wxUSE_HELP=yes'
6687 else
6688 ac_cv_use_help='wxUSE_HELP=no'
6689 fi
6690
6691else
6692
6693 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6694 if test "x$LINE" != x ; then
6695 eval "DEFAULT_$LINE"
6696 else
6697 no_cache=1
6698 fi
6699
6700 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6701
6702fi;
6703
6704 eval "$ac_cv_use_help"
6705 if test "$no_cache" != 1; then
6706 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6707 fi
6708
6709 if test "$wxUSE_HELP" = yes; then
6710 echo "$as_me:$LINENO: result: yes" >&5
6711echo "${ECHO_T}yes" >&6
6712 else
6713 echo "$as_me:$LINENO: result: no" >&5
6714echo "${ECHO_T}no" >&6
6715 fi
6716
6717
6718 enablestring=
6719 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6720echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6721 no_cache=0
6722 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6723if test "${enable_mshtmlhelp+set}" = set; then
6724 enableval="$enable_mshtmlhelp"
6725
6726 if test "$enableval" = yes; then
6727 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6728 else
6729 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6730 fi
6731
6732else
6733
6734 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6735 if test "x$LINE" != x ; then
6736 eval "DEFAULT_$LINE"
6737 else
6738 no_cache=1
6739 fi
6740
6741 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6742
6743fi;
6744
6745 eval "$ac_cv_use_mshtmlhelp"
6746 if test "$no_cache" != 1; then
6747 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6748 fi
6749
6750 if test "$wxUSE_MS_HTML_HELP" = yes; then
6751 echo "$as_me:$LINENO: result: yes" >&5
6752echo "${ECHO_T}yes" >&6
6753 else
6754 echo "$as_me:$LINENO: result: no" >&5
6755echo "${ECHO_T}no" >&6
6756 fi
6757
6758
6759 enablestring=
6760 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6761echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6762 no_cache=0
6763 # Check whether --enable-html or --disable-html was given.
6764if test "${enable_html+set}" = set; then
6765 enableval="$enable_html"
6766
6767 if test "$enableval" = yes; then
6768 ac_cv_use_html='wxUSE_HTML=yes'
6769 else
6770 ac_cv_use_html='wxUSE_HTML=no'
6771 fi
6772
6773else
6774
6775 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6776 if test "x$LINE" != x ; then
6777 eval "DEFAULT_$LINE"
6778 else
6779 no_cache=1
6780 fi
6781
6782 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6783
6784fi;
6785
6786 eval "$ac_cv_use_html"
6787 if test "$no_cache" != 1; then
6788 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6789 fi
6790
6791 if test "$wxUSE_HTML" = yes; then
6792 echo "$as_me:$LINENO: result: yes" >&5
6793echo "${ECHO_T}yes" >&6
6794 else
6795 echo "$as_me:$LINENO: result: no" >&5
6796echo "${ECHO_T}no" >&6
6797 fi
6798
6799
6800 enablestring=
6801 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6802echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6803 no_cache=0
6804 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6805if test "${enable_htmlhelp+set}" = set; then
6806 enableval="$enable_htmlhelp"
6807
6808 if test "$enableval" = yes; then
6809 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6810 else
6811 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6812 fi
6813
6814else
6815
6816 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6817 if test "x$LINE" != x ; then
6818 eval "DEFAULT_$LINE"
6819 else
6820 no_cache=1
6821 fi
6822
6823 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6824
6825fi;
6826
6827 eval "$ac_cv_use_htmlhelp"
6828 if test "$no_cache" != 1; then
6829 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6830 fi
6831
6832 if test "$wxUSE_WXHTML_HELP" = yes; then
6833 echo "$as_me:$LINENO: result: yes" >&5
6834echo "${ECHO_T}yes" >&6
6835 else
6836 echo "$as_me:$LINENO: result: no" >&5
6837echo "${ECHO_T}no" >&6
6838 fi
6839
6840
9a8f0513
VS
6841 enablestring=
6842 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6843echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6844 no_cache=0
6845 # Check whether --enable-xrc or --disable-xrc was given.
6846if test "${enable_xrc+set}" = set; then
6847 enableval="$enable_xrc"
6848
6849 if test "$enableval" = yes; then
6850 ac_cv_use_xrc='wxUSE_XRC=yes'
6851 else
6852 ac_cv_use_xrc='wxUSE_XRC=no'
6853 fi
6854
6855else
6856
6857 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6858 if test "x$LINE" != x ; then
6859 eval "DEFAULT_$LINE"
6860 else
6861 no_cache=1
6862 fi
6863
6864 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6865
6866fi;
6867
6868 eval "$ac_cv_use_xrc"
6869 if test "$no_cache" != 1; then
6870 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6871 fi
6872
6873 if test "$wxUSE_XRC" = yes; then
6874 echo "$as_me:$LINENO: result: yes" >&5
6875echo "${ECHO_T}yes" >&6
6876 else
6877 echo "$as_me:$LINENO: result: no" >&5
6878echo "${ECHO_T}no" >&6
6879 fi
6880
6881
a848cd7e
SC
6882 enablestring=
6883 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6884echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6885 no_cache=0
6886 # Check whether --enable-constraints or --disable-constraints was given.
6887if test "${enable_constraints+set}" = set; then
6888 enableval="$enable_constraints"
6889
6890 if test "$enableval" = yes; then
6891 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6892 else
6893 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6894 fi
6895
6896else
6897
6898 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6899 if test "x$LINE" != x ; then
6900 eval "DEFAULT_$LINE"
6901 else
6902 no_cache=1
6903 fi
6904
6905 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6906
6907fi;
6908
6909 eval "$ac_cv_use_constraints"
6910 if test "$no_cache" != 1; then
6911 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6912 fi
6913
6914 if test "$wxUSE_CONSTRAINTS" = yes; then
6915 echo "$as_me:$LINENO: result: yes" >&5
6916echo "${ECHO_T}yes" >&6
6917 else
6918 echo "$as_me:$LINENO: result: no" >&5
6919echo "${ECHO_T}no" >&6
6920 fi
6921
6922
6923 enablestring=
6924 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6925echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6926 no_cache=0
6927 # Check whether --enable-printarch or --disable-printarch was given.
6928if test "${enable_printarch+set}" = set; then
6929 enableval="$enable_printarch"
6930
6931 if test "$enableval" = yes; then
6932 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6933 else
6934 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6935 fi
6936
6937else
6938
6939 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6940 if test "x$LINE" != x ; then
6941 eval "DEFAULT_$LINE"
6942 else
6943 no_cache=1
6944 fi
6945
6946 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6947
6948fi;
6949
6950 eval "$ac_cv_use_printarch"
6951 if test "$no_cache" != 1; then
6952 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6953 fi
6954
6955 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6956 echo "$as_me:$LINENO: result: yes" >&5
6957echo "${ECHO_T}yes" >&6
6958 else
6959 echo "$as_me:$LINENO: result: no" >&5
6960echo "${ECHO_T}no" >&6
6961 fi
6962
6963
6964 enablestring=
6965 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6966echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6967 no_cache=0
6968 # Check whether --enable-mdi or --disable-mdi was given.
6969if test "${enable_mdi+set}" = set; then
6970 enableval="$enable_mdi"
6971
6972 if test "$enableval" = yes; then
8a7b1113 6973 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 6974 else
8a7b1113 6975 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
6976 fi
6977
6978else
6979
8a7b1113 6980 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
6981 if test "x$LINE" != x ; then
6982 eval "DEFAULT_$LINE"
6983 else
6984 no_cache=1
6985 fi
6986
8a7b1113 6987 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
6988
6989fi;
6990
6991 eval "$ac_cv_use_mdi"
6992 if test "$no_cache" != 1; then
6993 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6994 fi
6995
8a7b1113
VZ
6996 if test "$wxUSE_MDI" = yes; then
6997 echo "$as_me:$LINENO: result: yes" >&5
6998echo "${ECHO_T}yes" >&6
6999 else
7000 echo "$as_me:$LINENO: result: no" >&5
7001echo "${ECHO_T}no" >&6
7002 fi
7003
7004
7005 enablestring=
7006 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
7007echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
7008 no_cache=0
7009 # Check whether --enable-mdidoc or --disable-mdidoc was given.
7010if test "${enable_mdidoc+set}" = set; then
7011 enableval="$enable_mdidoc"
7012
7013 if test "$enableval" = yes; then
7014 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
7015 else
7016 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
7017 fi
7018
7019else
7020
7021 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
7022 if test "x$LINE" != x ; then
7023 eval "DEFAULT_$LINE"
7024 else
7025 no_cache=1
7026 fi
7027
7028 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
7029
7030fi;
7031
7032 eval "$ac_cv_use_mdidoc"
7033 if test "$no_cache" != 1; then
7034 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
7035 fi
7036
a848cd7e
SC
7037 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
7038 echo "$as_me:$LINENO: result: yes" >&5
7039echo "${ECHO_T}yes" >&6
7040 else
7041 echo "$as_me:$LINENO: result: no" >&5
7042echo "${ECHO_T}no" >&6
7043 fi
7044
7045
7046 enablestring=
7047 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
7048echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
7049 no_cache=0
7050 # Check whether --enable-loggui or --disable-loggui was given.
7051if test "${enable_loggui+set}" = set; then
7052 enableval="$enable_loggui"
7053
7054 if test "$enableval" = yes; then
7055 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
7056 else
7057 ac_cv_use_loggui='wxUSE_LOGGUI=no'
7058 fi
7059
7060else
7061
7062 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
7063 if test "x$LINE" != x ; then
7064 eval "DEFAULT_$LINE"
7065 else
7066 no_cache=1
7067 fi
7068
7069 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
7070
7071fi;
7072
7073 eval "$ac_cv_use_loggui"
7074 if test "$no_cache" != 1; then
7075 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
7076 fi
7077
7078 if test "$wxUSE_LOGGUI" = yes; then
7079 echo "$as_me:$LINENO: result: yes" >&5
7080echo "${ECHO_T}yes" >&6
7081 else
7082 echo "$as_me:$LINENO: result: no" >&5
7083echo "${ECHO_T}no" >&6
7084 fi
7085
7086
7087 enablestring=
7088 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
7089echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
7090 no_cache=0
7091 # Check whether --enable-logwin or --disable-logwin was given.
7092if test "${enable_logwin+set}" = set; then
7093 enableval="$enable_logwin"
7094
7095 if test "$enableval" = yes; then
7096 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
7097 else
7098 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
7099 fi
7100
7101else
7102
7103 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
7104 if test "x$LINE" != x ; then
7105 eval "DEFAULT_$LINE"
7106 else
7107 no_cache=1
7108 fi
7109
7110 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
7111
7112fi;
7113
7114 eval "$ac_cv_use_logwin"
7115 if test "$no_cache" != 1; then
7116 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
7117 fi
7118
7119 if test "$wxUSE_LOGWINDOW" = yes; then
7120 echo "$as_me:$LINENO: result: yes" >&5
7121echo "${ECHO_T}yes" >&6
7122 else
7123 echo "$as_me:$LINENO: result: no" >&5
7124echo "${ECHO_T}no" >&6
7125 fi
7126
7127
7128 enablestring=
7129 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
7130echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
7131 no_cache=0
7132 # Check whether --enable-logdialog or --disable-logdialog was given.
7133if test "${enable_logdialog+set}" = set; then
7134 enableval="$enable_logdialog"
7135
7136 if test "$enableval" = yes; then
7137 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
7138 else
7139 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
7140 fi
7141
7142else
7143
7144 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
7145 if test "x$LINE" != x ; then
7146 eval "DEFAULT_$LINE"
7147 else
7148 no_cache=1
7149 fi
7150
7151 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
7152
7153fi;
7154
7155 eval "$ac_cv_use_logdialog"
7156 if test "$no_cache" != 1; then
7157 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
7158 fi
7159
7160 if test "$wxUSE_LOGDIALOG" = yes; then
7161 echo "$as_me:$LINENO: result: yes" >&5
7162echo "${ECHO_T}yes" >&6
7163 else
7164 echo "$as_me:$LINENO: result: no" >&5
7165echo "${ECHO_T}no" >&6
7166 fi
7167
7168
646b6ec1
VS
7169 enablestring=
7170 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
7171echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
7172 no_cache=0
7173 # Check whether --enable-webkit or --disable-webkit was given.
7174if test "${enable_webkit+set}" = set; then
7175 enableval="$enable_webkit"
7176
7177 if test "$enableval" = yes; then
7178 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
7179 else
7180 ac_cv_use_webkit='wxUSE_WEBKIT=no'
7181 fi
7182
7183else
7184
7185 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
7186 if test "x$LINE" != x ; then
7187 eval "DEFAULT_$LINE"
7188 else
7189 no_cache=1
7190 fi
7191
7192 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
7193
7194fi;
7195
7196 eval "$ac_cv_use_webkit"
7197 if test "$no_cache" != 1; then
7198 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
7199 fi
7200
7201 if test "$wxUSE_WEBKIT" = yes; then
7202 echo "$as_me:$LINENO: result: yes" >&5
7203echo "${ECHO_T}yes" >&6
7204 else
7205 echo "$as_me:$LINENO: result: no" >&5
7206echo "${ECHO_T}no" >&6
7207 fi
7208
7209
91dea314
MW
7210 enablestring=
7211 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
7212echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
7213 no_cache=0
7214 # Check whether --enable-html or --disable-html was given.
7215if test "${enable_html+set}" = set; then
7216 enableval="$enable_html"
7217
7218 if test "$enableval" = yes; then
7219 ac_cv_use_html='wxUSE_RICHTEXT=yes'
7220 else
7221 ac_cv_use_html='wxUSE_RICHTEXT=no'
7222 fi
7223
7224else
7225
7226 LINE=`grep "wxUSE_RICHTEXT" ${wx_arg_cache_file}`
7227 if test "x$LINE" != x ; then
7228 eval "DEFAULT_$LINE"
7229 else
7230 no_cache=1
7231 fi
7232
7233 ac_cv_use_html='wxUSE_RICHTEXT='$DEFAULT_wxUSE_RICHTEXT
7234
7235fi;
7236
7237 eval "$ac_cv_use_html"
7238 if test "$no_cache" != 1; then
7239 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
7240 fi
7241
7242 if test "$wxUSE_RICHTEXT" = yes; then
7243 echo "$as_me:$LINENO: result: yes" >&5
7244echo "${ECHO_T}yes" >&6
7245 else
7246 echo "$as_me:$LINENO: result: no" >&5
7247echo "${ECHO_T}no" >&6
7248 fi
7249
7250
a848cd7e
SC
7251
7252 enablestring=
7253 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
7254echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
7255 no_cache=0
7256 # Check whether --enable-postscript or --disable-postscript was given.
7257if test "${enable_postscript+set}" = set; then
7258 enableval="$enable_postscript"
7259
7260 if test "$enableval" = yes; then
7261 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
7262 else
7263 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
7264 fi
7265
7266else
7267
7268 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
7269 if test "x$LINE" != x ; then
7270 eval "DEFAULT_$LINE"
7271 else
7272 no_cache=1
7273 fi
7274
7275 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
7276
7277fi;
7278
7279 eval "$ac_cv_use_postscript"
7280 if test "$no_cache" != 1; then
7281 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
7282 fi
7283
7284 if test "$wxUSE_POSTSCRIPT" = yes; then
7285 echo "$as_me:$LINENO: result: yes" >&5
7286echo "${ECHO_T}yes" >&6
7287 else
7288 echo "$as_me:$LINENO: result: no" >&5
7289echo "${ECHO_T}no" >&6
7290 fi
7291
7292
7293
7294
7295
7296 enablestring=
7297 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
7298echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
7299 no_cache=0
7300 # Check whether --enable-prologio or --disable-prologio was given.
7301if test "${enable_prologio+set}" = set; then
7302 enableval="$enable_prologio"
7303
7304 if test "$enableval" = yes; then
7305 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
7306 else
7307 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
7308 fi
7309
7310else
7311
7312 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7313 if test "x$LINE" != x ; then
7314 eval "DEFAULT_$LINE"
7315 else
7316 no_cache=1
7317 fi
7318
7319 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7320
7321fi;
7322
7323 eval "$ac_cv_use_prologio"
7324 if test "$no_cache" != 1; then
7325 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7326 fi
7327
7328 if test "$wxUSE_PROLOGIO" = yes; then
7329 echo "$as_me:$LINENO: result: yes" >&5
7330echo "${ECHO_T}yes" >&6
7331 else
7332 echo "$as_me:$LINENO: result: no" >&5
7333echo "${ECHO_T}no" >&6
7334 fi
7335
7336
7337 enablestring=
7338 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7339echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7340 no_cache=0
7341 # Check whether --enable-resources or --disable-resources was given.
7342if test "${enable_resources+set}" = set; then
7343 enableval="$enable_resources"
7344
7345 if test "$enableval" = yes; then
7346 ac_cv_use_resources='wxUSE_RESOURCES=yes'
7347 else
7348 ac_cv_use_resources='wxUSE_RESOURCES=no'
7349 fi
7350
7351else
7352
7353 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7354 if test "x$LINE" != x ; then
7355 eval "DEFAULT_$LINE"
7356 else
7357 no_cache=1
7358 fi
7359
7360 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7361
7362fi;
7363
7364 eval "$ac_cv_use_resources"
7365 if test "$no_cache" != 1; then
7366 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7367 fi
7368
7369 if test "$wxUSE_RESOURCES" = yes; then
7370 echo "$as_me:$LINENO: result: yes" >&5
7371echo "${ECHO_T}yes" >&6
7372 else
7373 echo "$as_me:$LINENO: result: no" >&5
7374echo "${ECHO_T}no" >&6
7375 fi
7376
7377
7378
7379
7380 enablestring=
7381 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7382echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7383 no_cache=0
7384 # Check whether --enable-clipboard or --disable-clipboard was given.
7385if test "${enable_clipboard+set}" = set; then
7386 enableval="$enable_clipboard"
7387
7388 if test "$enableval" = yes; then
7389 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7390 else
7391 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7392 fi
7393
7394else
7395
7396 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7397 if test "x$LINE" != x ; then
7398 eval "DEFAULT_$LINE"
7399 else
7400 no_cache=1
7401 fi
7402
7403 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7404
7405fi;
7406
7407 eval "$ac_cv_use_clipboard"
7408 if test "$no_cache" != 1; then
7409 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7410 fi
7411
7412 if test "$wxUSE_CLIPBOARD" = yes; then
7413 echo "$as_me:$LINENO: result: yes" >&5
7414echo "${ECHO_T}yes" >&6
7415 else
7416 echo "$as_me:$LINENO: result: no" >&5
7417echo "${ECHO_T}no" >&6
7418 fi
7419
7420
7421 enablestring=
7422 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7423echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7424 no_cache=0
7425 # Check whether --enable-dnd or --disable-dnd was given.
7426if test "${enable_dnd+set}" = set; then
7427 enableval="$enable_dnd"
7428
7429 if test "$enableval" = yes; then
7430 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7431 else
7432 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7433 fi
7434
7435else
7436
7437 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7438 if test "x$LINE" != x ; then
7439 eval "DEFAULT_$LINE"
7440 else
7441 no_cache=1
7442 fi
7443
7444 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7445
7446fi;
7447
7448 eval "$ac_cv_use_dnd"
7449 if test "$no_cache" != 1; then
7450 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7451 fi
7452
7453 if test "$wxUSE_DRAG_AND_DROP" = yes; then
7454 echo "$as_me:$LINENO: result: yes" >&5
7455echo "${ECHO_T}yes" >&6
7456 else
7457 echo "$as_me:$LINENO: result: no" >&5
7458echo "${ECHO_T}no" >&6
7459 fi
7460
7461
7462 enablestring=
7463 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7464echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7465 no_cache=0
7466 # Check whether --enable-metafile or --disable-metafile was given.
7467if test "${enable_metafile+set}" = set; then
7468 enableval="$enable_metafile"
7469
7470 if test "$enableval" = yes; then
7471 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7472 else
7473 ac_cv_use_metafile='wxUSE_METAFILE=no'
7474 fi
7475
7476else
7477
7478 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7479 if test "x$LINE" != x ; then
7480 eval "DEFAULT_$LINE"
7481 else
7482 no_cache=1
7483 fi
7484
7485 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7486
7487fi;
7488
7489 eval "$ac_cv_use_metafile"
7490 if test "$no_cache" != 1; then
7491 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7492 fi
7493
7494 if test "$wxUSE_METAFILE" = yes; then
7495 echo "$as_me:$LINENO: result: yes" >&5
7496echo "${ECHO_T}yes" >&6
7497 else
7498 echo "$as_me:$LINENO: result: no" >&5
7499echo "${ECHO_T}no" >&6
7500 fi
7501
7502
7503
7504
7505
7506 enablestring=
7507 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7508echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7509 no_cache=0
7510 # Check whether --enable-controls or --disable-controls was given.
7511if test "${enable_controls+set}" = set; then
7512 enableval="$enable_controls"
7513
7514 if test "$enableval" = yes; then
7515 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7516 else
7517 ac_cv_use_controls='wxUSE_CONTROLS=no'
7518 fi
7519
7520else
7521
7522 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7523 if test "x$LINE" != x ; then
7524 eval "DEFAULT_$LINE"
7525 else
7526 no_cache=1
7527 fi
7528
7529 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7530
7531fi;
7532
7533 eval "$ac_cv_use_controls"
7534 if test "$no_cache" != 1; then
7535 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7536 fi
7537
7538 if test "$wxUSE_CONTROLS" = yes; then
7539 echo "$as_me:$LINENO: result: yes" >&5
7540echo "${ECHO_T}yes" >&6
7541 else
7542 echo "$as_me:$LINENO: result: no" >&5
7543echo "${ECHO_T}no" >&6
7544 fi
7545
7546
7547if test "$wxUSE_CONTROLS" = "yes"; then
7548 DEFAULT_wxUSE_ACCEL=yes
7549 DEFAULT_wxUSE_BMPBUTTON=yes
7550 DEFAULT_wxUSE_BUTTON=yes
da98e9be 7551 DEFAULT_wxUSE_CALCTRL=yes
a848cd7e
SC
7552 DEFAULT_wxUSE_CARET=yes
7553 DEFAULT_wxUSE_COMBOBOX=yes
7554 DEFAULT_wxUSE_CHECKBOX=yes
7555 DEFAULT_wxUSE_CHECKLISTBOX=yes
7556 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7557 DEFAULT_wxUSE_CHOICEBOOK=yes
da98e9be 7558 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
7559 DEFAULT_wxUSE_GAUGE=yes
7560 DEFAULT_wxUSE_GRID=yes
20e34ecc 7561 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
7562 DEFAULT_wxUSE_IMAGLIST=yes
7563 DEFAULT_wxUSE_LISTBOOK=yes
7564 DEFAULT_wxUSE_LISTBOX=yes
7565 DEFAULT_wxUSE_LISTCTRL=yes
7566 DEFAULT_wxUSE_NOTEBOOK=yes
7567 DEFAULT_wxUSE_RADIOBOX=yes
7568 DEFAULT_wxUSE_RADIOBTN=yes
7569 DEFAULT_wxUSE_SASH=yes
7570 DEFAULT_wxUSE_SCROLLBAR=yes
7571 DEFAULT_wxUSE_SLIDER=yes
7572 DEFAULT_wxUSE_SPINBTN=yes
7573 DEFAULT_wxUSE_SPINCTRL=yes
7574 DEFAULT_wxUSE_SPLITTER=yes
7575 DEFAULT_wxUSE_STATBMP=yes
7576 DEFAULT_wxUSE_STATBOX=yes
7577 DEFAULT_wxUSE_STATLINE=yes
7578 DEFAULT_wxUSE_STATUSBAR=yes
7579 DEFAULT_wxUSE_TAB_DIALOG=yes
7580 DEFAULT_wxUSE_TOGGLEBTN=yes
7581 DEFAULT_wxUSE_TOOLBAR=yes
7582 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7583 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
7584 DEFAULT_wxUSE_TOOLTIPS=yes
0093c2fc 7585 DEFAULT_wxUSE_TREEBOOK=yes
5ec3bc43 7586 DEFAULT_wxUSE_TOOLBOOK=yes
a848cd7e
SC
7587 DEFAULT_wxUSE_TREECTRL=yes
7588 DEFAULT_wxUSE_POPUPWIN=yes
7589 DEFAULT_wxUSE_TIPWINDOW=yes
7590elif test "$wxUSE_CONTROLS" = "no"; then
7591 DEFAULT_wxUSE_ACCEL=no
7592 DEFAULT_wxUSE_BMPBUTTON=no
7593 DEFAULT_wxUSE_BUTTON=no
7594 DEFAULT_wxUSE_CALCTRL=no
7595 DEFAULT_wxUSE_CARET=no
7596 DEFAULT_wxUSE_COMBOBOX=no
7597 DEFAULT_wxUSE_CHECKBOX=no
7598 DEFAULT_wxUSE_CHECKLISTBOX=no
7599 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7600 DEFAULT_wxUSE_CHOICEBOOK=no
da98e9be 7601 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
7602 DEFAULT_wxUSE_GAUGE=no
7603 DEFAULT_wxUSE_GRID=no
20e34ecc 7604 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
7605 DEFAULT_wxUSE_IMAGLIST=no
7606 DEFAULT_wxUSE_LISTBOOK=no
7607 DEFAULT_wxUSE_LISTBOX=no
7608 DEFAULT_wxUSE_LISTCTRL=no
7609 DEFAULT_wxUSE_NOTEBOOK=no
7610 DEFAULT_wxUSE_RADIOBOX=no
7611 DEFAULT_wxUSE_RADIOBTN=no
7612 DEFAULT_wxUSE_SASH=no
7613 DEFAULT_wxUSE_SCROLLBAR=no
7614 DEFAULT_wxUSE_SLIDER=no
7615 DEFAULT_wxUSE_SPINBTN=no
7616 DEFAULT_wxUSE_SPINCTRL=no
7617 DEFAULT_wxUSE_SPLITTER=no
7618 DEFAULT_wxUSE_STATBMP=no
7619 DEFAULT_wxUSE_STATBOX=no
7620 DEFAULT_wxUSE_STATLINE=no
7621 DEFAULT_wxUSE_STATUSBAR=no
7622 DEFAULT_wxUSE_TAB_DIALOG=no
7623 DEFAULT_wxUSE_TOGGLEBTN=no
7624 DEFAULT_wxUSE_TOOLBAR=no
7625 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7626 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7627 DEFAULT_wxUSE_TOOLTIPS=no
0093c2fc 7628 DEFAULT_wxUSE_TREEBOOK=no
5ec3bc43 7629 DEFAULT_wxUSE_TOOLBOOK=no
a848cd7e
SC
7630 DEFAULT_wxUSE_TREECTRL=no
7631 DEFAULT_wxUSE_POPUPWIN=no
7632 DEFAULT_wxUSE_TIPWINDOW=no
7633fi
7634
a848cd7e
SC
7635
7636 enablestring=
7637 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7638echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7639 no_cache=0
7640 # Check whether --enable-accel or --disable-accel was given.
7641if test "${enable_accel+set}" = set; then
7642 enableval="$enable_accel"
7643
7644 if test "$enableval" = yes; then
7645 ac_cv_use_accel='wxUSE_ACCEL=yes'
7646 else
7647 ac_cv_use_accel='wxUSE_ACCEL=no'
7648 fi
7649
7650else
7651
7652 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7653 if test "x$LINE" != x ; then
7654 eval "DEFAULT_$LINE"
7655 else
7656 no_cache=1
7657 fi
7658
7659 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7660
7661fi;
7662
7663 eval "$ac_cv_use_accel"
7664 if test "$no_cache" != 1; then
7665 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7666 fi
7667
7668 if test "$wxUSE_ACCEL" = yes; then
7669 echo "$as_me:$LINENO: result: yes" >&5
7670echo "${ECHO_T}yes" >&6
7671 else
7672 echo "$as_me:$LINENO: result: no" >&5
7673echo "${ECHO_T}no" >&6
7674 fi
7675
7676
7677 enablestring=
7678 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7679echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7680 no_cache=0
7681 # Check whether --enable-button or --disable-button was given.
7682if test "${enable_button+set}" = set; then
7683 enableval="$enable_button"
7684
7685 if test "$enableval" = yes; then
7686 ac_cv_use_button='wxUSE_BUTTON=yes'
7687 else
7688 ac_cv_use_button='wxUSE_BUTTON=no'
7689 fi
7690
7691else
7692
7693 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7694 if test "x$LINE" != x ; then
7695 eval "DEFAULT_$LINE"
7696 else
7697 no_cache=1
7698 fi
7699
7700 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7701
7702fi;
7703
7704 eval "$ac_cv_use_button"
7705 if test "$no_cache" != 1; then
7706 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7707 fi
7708
7709 if test "$wxUSE_BUTTON" = yes; then
7710 echo "$as_me:$LINENO: result: yes" >&5
7711echo "${ECHO_T}yes" >&6
7712 else
7713 echo "$as_me:$LINENO: result: no" >&5
7714echo "${ECHO_T}no" >&6
7715 fi
7716
7717
7718 enablestring=
7719 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7720echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7721 no_cache=0
7722 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7723if test "${enable_bmpbutton+set}" = set; then
7724 enableval="$enable_bmpbutton"
7725
7726 if test "$enableval" = yes; then
7727 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7728 else
7729 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7730 fi
7731
7732else
7733
7734 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7735 if test "x$LINE" != x ; then
7736 eval "DEFAULT_$LINE"
7737 else
7738 no_cache=1
7739 fi
7740
7741 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7742
7743fi;
7744
7745 eval "$ac_cv_use_bmpbutton"
7746 if test "$no_cache" != 1; then
7747 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7748 fi
7749
7750 if test "$wxUSE_BMPBUTTON" = yes; then
7751 echo "$as_me:$LINENO: result: yes" >&5
7752echo "${ECHO_T}yes" >&6
7753 else
7754 echo "$as_me:$LINENO: result: no" >&5
7755echo "${ECHO_T}no" >&6
7756 fi
7757
7758
7759 enablestring=
7760 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7761echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7762 no_cache=0
7763 # Check whether --enable-calendar or --disable-calendar was given.
7764if test "${enable_calendar+set}" = set; then
7765 enableval="$enable_calendar"
7766
7767 if test "$enableval" = yes; then
7768 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7769 else
7770 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7771 fi
7772
7773else
7774
7775 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7776 if test "x$LINE" != x ; then
7777 eval "DEFAULT_$LINE"
7778 else
7779 no_cache=1
7780 fi
7781
7782 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7783
7784fi;
7785
7786 eval "$ac_cv_use_calendar"
7787 if test "$no_cache" != 1; then
7788 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7789 fi
7790
7791 if test "$wxUSE_CALCTRL" = yes; then
7792 echo "$as_me:$LINENO: result: yes" >&5
7793echo "${ECHO_T}yes" >&6
7794 else
7795 echo "$as_me:$LINENO: result: no" >&5
7796echo "${ECHO_T}no" >&6
7797 fi
7798
7799
7800 enablestring=
7801 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7802echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7803 no_cache=0
7804 # Check whether --enable-caret or --disable-caret was given.
7805if test "${enable_caret+set}" = set; then
7806 enableval="$enable_caret"
7807
7808 if test "$enableval" = yes; then
7809 ac_cv_use_caret='wxUSE_CARET=yes'
7810 else
7811 ac_cv_use_caret='wxUSE_CARET=no'
7812 fi
7813
7814else
7815
7816 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7817 if test "x$LINE" != x ; then
7818 eval "DEFAULT_$LINE"
7819 else
7820 no_cache=1
7821 fi
7822
7823 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7824
7825fi;
7826
7827 eval "$ac_cv_use_caret"
7828 if test "$no_cache" != 1; then
7829 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7830 fi
7831
7832 if test "$wxUSE_CARET" = yes; then
7833 echo "$as_me:$LINENO: result: yes" >&5
7834echo "${ECHO_T}yes" >&6
7835 else
7836 echo "$as_me:$LINENO: result: no" >&5
7837echo "${ECHO_T}no" >&6
7838 fi
7839
7840
7841 enablestring=
7842 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7843echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7844 no_cache=0
7845 # Check whether --enable-checkbox or --disable-checkbox was given.
7846if test "${enable_checkbox+set}" = set; then
7847 enableval="$enable_checkbox"
7848
7849 if test "$enableval" = yes; then
7850 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7851 else
7852 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7853 fi
7854
7855else
7856
7857 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7858 if test "x$LINE" != x ; then
7859 eval "DEFAULT_$LINE"
7860 else
7861 no_cache=1
7862 fi
7863
7864 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7865
7866fi;
7867
7868 eval "$ac_cv_use_checkbox"
7869 if test "$no_cache" != 1; then
7870 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7871 fi
7872
7873 if test "$wxUSE_CHECKBOX" = yes; then
7874 echo "$as_me:$LINENO: result: yes" >&5
7875echo "${ECHO_T}yes" >&6
7876 else
7877 echo "$as_me:$LINENO: result: no" >&5
7878echo "${ECHO_T}no" >&6
7879 fi
7880
7881
7882 enablestring=
7883 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7884echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7885 no_cache=0
7886 # Check whether --enable-checklst or --disable-checklst was given.
7887if test "${enable_checklst+set}" = set; then
7888 enableval="$enable_checklst"
7889
7890 if test "$enableval" = yes; then
7891 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7892 else
7893 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7894 fi
7895
7896else
7897
7898 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7899 if test "x$LINE" != x ; then
7900 eval "DEFAULT_$LINE"
7901 else
7902 no_cache=1
7903 fi
7904
7905 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7906
7907fi;
7908
7909 eval "$ac_cv_use_checklst"
7910 if test "$no_cache" != 1; then
7911 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7912 fi
7913
7914 if test "$wxUSE_CHECKLST" = yes; then
7915 echo "$as_me:$LINENO: result: yes" >&5
7916echo "${ECHO_T}yes" >&6
7917 else
7918 echo "$as_me:$LINENO: result: no" >&5
7919echo "${ECHO_T}no" >&6
7920 fi
7921
7922
7923 enablestring=
7924 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7925echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7926 no_cache=0
7927 # Check whether --enable-choice or --disable-choice was given.
7928if test "${enable_choice+set}" = set; then
7929 enableval="$enable_choice"
7930
7931 if test "$enableval" = yes; then
7932 ac_cv_use_choice='wxUSE_CHOICE=yes'
7933 else
7934 ac_cv_use_choice='wxUSE_CHOICE=no'
7935 fi
7936
7937else
7938
7939 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7940 if test "x$LINE" != x ; then
7941 eval "DEFAULT_$LINE"
7942 else
7943 no_cache=1
7944 fi
7945
7946 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7947
7948fi;
7949
7950 eval "$ac_cv_use_choice"
7951 if test "$no_cache" != 1; then
7952 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7953 fi
7954
7955 if test "$wxUSE_CHOICE" = yes; then
7956 echo "$as_me:$LINENO: result: yes" >&5
7957echo "${ECHO_T}yes" >&6
7958 else
7959 echo "$as_me:$LINENO: result: no" >&5
7960echo "${ECHO_T}no" >&6
7961 fi
7962
7963
92bbdbcd
WS
7964 enablestring=
7965 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
7966echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
7967 no_cache=0
7968 # Check whether --enable-choicebook or --disable-choicebook was given.
7969if test "${enable_choicebook+set}" = set; then
7970 enableval="$enable_choicebook"
7971
7972 if test "$enableval" = yes; then
7973 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
7974 else
7975 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
7976 fi
7977
7978else
7979
7980 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
7981 if test "x$LINE" != x ; then
7982 eval "DEFAULT_$LINE"
7983 else
7984 no_cache=1
7985 fi
7986
7987 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
7988
7989fi;
7990
7991 eval "$ac_cv_use_choicebook"
7992 if test "$no_cache" != 1; then
7993 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
7994 fi
7995
7996 if test "$wxUSE_CHOICEBOOK" = yes; then
7997 echo "$as_me:$LINENO: result: yes" >&5
7998echo "${ECHO_T}yes" >&6
7999 else
8000 echo "$as_me:$LINENO: result: no" >&5
8001echo "${ECHO_T}no" >&6
8002 fi
8003
8004
a848cd7e
SC
8005 enablestring=
8006 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
8007echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
8008 no_cache=0
8009 # Check whether --enable-combobox or --disable-combobox was given.
8010if test "${enable_combobox+set}" = set; then
8011 enableval="$enable_combobox"
8012
8013 if test "$enableval" = yes; then
8014 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
8015 else
8016 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
8017 fi
8018
8019else
8020
8021 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
8022 if test "x$LINE" != x ; then
8023 eval "DEFAULT_$LINE"
8024 else
8025 no_cache=1
8026 fi
8027
8028 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
8029
8030fi;
8031
8032 eval "$ac_cv_use_combobox"
8033 if test "$no_cache" != 1; then
8034 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
8035 fi
8036
8037 if test "$wxUSE_COMBOBOX" = yes; then
8038 echo "$as_me:$LINENO: result: yes" >&5
8039echo "${ECHO_T}yes" >&6
8040 else
8041 echo "$as_me:$LINENO: result: no" >&5
8042echo "${ECHO_T}no" >&6
8043 fi
8044
8045
642bcba9 8046 enablestring=
a57d600f
VZ
8047 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
8048echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6
642bcba9 8049 no_cache=0
a57d600f
VZ
8050 # Check whether --enable-comboctrl or --disable-comboctrl was given.
8051if test "${enable_comboctrl+set}" = set; then
8052 enableval="$enable_comboctrl"
642bcba9
VZ
8053
8054 if test "$enableval" = yes; then
a57d600f 8055 ac_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
642bcba9 8056 else
a57d600f 8057 ac_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
642bcba9
VZ
8058 fi
8059
8060else
8061
a57d600f 8062 LINE=`grep "wxUSE_COMBOCTRL" ${wx_arg_cache_file}`
642bcba9
VZ
8063 if test "x$LINE" != x ; then
8064 eval "DEFAULT_$LINE"
8065 else
8066 no_cache=1
8067 fi
8068
a57d600f 8069 ac_cv_use_comboctrl='wxUSE_COMBOCTRL='$DEFAULT_wxUSE_COMBOCTRL
642bcba9
VZ
8070
8071fi;
8072
a57d600f 8073 eval "$ac_cv_use_comboctrl"
642bcba9 8074 if test "$no_cache" != 1; then
a57d600f 8075 echo $ac_cv_use_comboctrl >> ${wx_arg_cache_file}.tmp
642bcba9
VZ
8076 fi
8077
a57d600f 8078 if test "$wxUSE_COMBOCTRL" = yes; then
642bcba9
VZ
8079 echo "$as_me:$LINENO: result: yes" >&5
8080echo "${ECHO_T}yes" >&6
8081 else
8082 echo "$as_me:$LINENO: result: no" >&5
8083echo "${ECHO_T}no" >&6
8084 fi
8085
8086
da98e9be
VZ
8087 enablestring=
8088 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
8089echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
8090 no_cache=0
8091 # Check whether --enable-datepick or --disable-datepick was given.
8092if test "${enable_datepick+set}" = set; then
8093 enableval="$enable_datepick"
8094
8095 if test "$enableval" = yes; then
8096 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
8097 else
8098 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
8099 fi
8100
8101else
8102
8103 LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
8104 if test "x$LINE" != x ; then
8105 eval "DEFAULT_$LINE"
8106 else
8107 no_cache=1
8108 fi
8109
8110 ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
8111
8112fi;
8113
8114 eval "$ac_cv_use_datepick"
8115 if test "$no_cache" != 1; then
8116 echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
8117 fi
8118
8119 if test "$wxUSE_DATEPICKCTRL" = yes; then
8120 echo "$as_me:$LINENO: result: yes" >&5
8121echo "${ECHO_T}yes" >&6
8122 else
8123 echo "$as_me:$LINENO: result: no" >&5
8124echo "${ECHO_T}no" >&6
8125 fi
8126
8127
a848cd7e
SC
8128 enablestring=
8129 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
8130echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
8131 no_cache=0
8132 # Check whether --enable-display or --disable-display was given.
8133if test "${enable_display+set}" = set; then
8134 enableval="$enable_display"
8135
8136 if test "$enableval" = yes; then
8137 ac_cv_use_display='wxUSE_DISPLAY=yes'
8138 else
8139 ac_cv_use_display='wxUSE_DISPLAY=no'
8140 fi
8141
8142else
8143
8144 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
8145 if test "x$LINE" != x ; then
8146 eval "DEFAULT_$LINE"
8147 else
8148 no_cache=1
8149 fi
8150
8151 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
8152
8153fi;
8154
8155 eval "$ac_cv_use_display"
8156 if test "$no_cache" != 1; then
8157 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
8158 fi
8159
8160 if test "$wxUSE_DISPLAY" = yes; then
8161 echo "$as_me:$LINENO: result: yes" >&5
8162echo "${ECHO_T}yes" >&6
8163 else
8164 echo "$as_me:$LINENO: result: no" >&5
8165echo "${ECHO_T}no" >&6
8166 fi
8167
8168
8169 enablestring=
8170 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
8171echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
8172 no_cache=0
8173 # Check whether --enable-gauge or --disable-gauge was given.
8174if test "${enable_gauge+set}" = set; then
8175 enableval="$enable_gauge"
8176
8177 if test "$enableval" = yes; then
8178 ac_cv_use_gauge='wxUSE_GAUGE=yes'
8179 else
8180 ac_cv_use_gauge='wxUSE_GAUGE=no'
8181 fi
8182
8183else
8184
8185 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
8186 if test "x$LINE" != x ; then
8187 eval "DEFAULT_$LINE"
8188 else
8189 no_cache=1
8190 fi
8191
8192 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
8193
8194fi;
8195
8196 eval "$ac_cv_use_gauge"
8197 if test "$no_cache" != 1; then
8198 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
8199 fi
8200
8201 if test "$wxUSE_GAUGE" = yes; then
8202 echo "$as_me:$LINENO: result: yes" >&5
8203echo "${ECHO_T}yes" >&6
8204 else
8205 echo "$as_me:$LINENO: result: no" >&5
8206echo "${ECHO_T}no" >&6
8207 fi
8208
8209
8210 enablestring=
8211 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
8212echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
8213 no_cache=0
8214 # Check whether --enable-grid or --disable-grid was given.
8215if test "${enable_grid+set}" = set; then
8216 enableval="$enable_grid"
8217
8218 if test "$enableval" = yes; then
8219 ac_cv_use_grid='wxUSE_GRID=yes'
8220 else
8221 ac_cv_use_grid='wxUSE_GRID=no'
8222 fi
8223
8224else
8225
8226 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
8227 if test "x$LINE" != x ; then
8228 eval "DEFAULT_$LINE"
8229 else
8230 no_cache=1
8231 fi
8232
8233 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
8234
8235fi;
8236
8237 eval "$ac_cv_use_grid"
8238 if test "$no_cache" != 1; then
8239 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
8240 fi
8241
8242 if test "$wxUSE_GRID" = yes; then
8243 echo "$as_me:$LINENO: result: yes" >&5
8244echo "${ECHO_T}yes" >&6
8245 else
8246 echo "$as_me:$LINENO: result: no" >&5
8247echo "${ECHO_T}no" >&6
8248 fi
8249
8250
20e34ecc
RR
8251 enablestring=
8252 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
8253echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6
8254 no_cache=0
8255 # Check whether --enable-dataviewctrl or --disable-dataviewctrl was given.
8256if test "${enable_dataviewctrl+set}" = set; then
8257 enableval="$enable_dataviewctrl"
8258
8259 if test "$enableval" = yes; then
8260 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
8261 else
8262 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
8263 fi
8264
8265else
8266
8267 LINE=`grep "wxUSE_DATAVIEWCTRL" ${wx_arg_cache_file}`
8268 if test "x$LINE" != x ; then
8269 eval "DEFAULT_$LINE"
8270 else
8271 no_cache=1
8272 fi
8273
8274 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL='$DEFAULT_wxUSE_DATAVIEWCTRL
8275
8276fi;
8277
8278 eval "$ac_cv_use_dataviewctrl"
8279 if test "$no_cache" != 1; then
8280 echo $ac_cv_use_dataviewctrl >> ${wx_arg_cache_file}.tmp
8281 fi
8282
8283 if test "$wxUSE_DATAVIEWCTRL" = yes; then
8284 echo "$as_me:$LINENO: result: yes" >&5
8285echo "${ECHO_T}yes" >&6
8286 else
8287 echo "$as_me:$LINENO: result: no" >&5
8288echo "${ECHO_T}no" >&6
8289 fi
8290
8291
a848cd7e
SC
8292 enablestring=
8293 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
8294echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
8295 no_cache=0
8296 # Check whether --enable-imaglist or --disable-imaglist was given.
8297if test "${enable_imaglist+set}" = set; then
8298 enableval="$enable_imaglist"
8299
8300 if test "$enableval" = yes; then
8301 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
8302 else
8303 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
8304 fi
8305
8306else
8307
8308 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
8309 if test "x$LINE" != x ; then
8310 eval "DEFAULT_$LINE"
8311 else
8312 no_cache=1
8313 fi
8314
8315 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
8316
8317fi;
8318
8319 eval "$ac_cv_use_imaglist"
8320 if test "$no_cache" != 1; then
8321 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
8322 fi
8323
8324 if test "$wxUSE_IMAGLIST" = yes; then
8325 echo "$as_me:$LINENO: result: yes" >&5
8326echo "${ECHO_T}yes" >&6
8327 else
8328 echo "$as_me:$LINENO: result: no" >&5
8329echo "${ECHO_T}no" >&6
8330 fi
8331
8332
8333 enablestring=
8334 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
8335echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
8336 no_cache=0
8337 # Check whether --enable-listbook or --disable-listbook was given.
8338if test "${enable_listbook+set}" = set; then
8339 enableval="$enable_listbook"
8340
8341 if test "$enableval" = yes; then
8342 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
8343 else
8344 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
8345 fi
8346
8347else
8348
8349 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
8350 if test "x$LINE" != x ; then
8351 eval "DEFAULT_$LINE"
8352 else
8353 no_cache=1
8354 fi
8355
8356 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
8357
8358fi;
8359
8360 eval "$ac_cv_use_listbook"
8361 if test "$no_cache" != 1; then
8362 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
8363 fi
8364
8365 if test "$wxUSE_LISTBOOK" = yes; then
8366 echo "$as_me:$LINENO: result: yes" >&5
8367echo "${ECHO_T}yes" >&6
8368 else
8369 echo "$as_me:$LINENO: result: no" >&5
8370echo "${ECHO_T}no" >&6
8371 fi
8372
8373
8374 enablestring=
8375 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
8376echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
8377 no_cache=0
8378 # Check whether --enable-listbox or --disable-listbox was given.
8379if test "${enable_listbox+set}" = set; then
8380 enableval="$enable_listbox"
8381
8382 if test "$enableval" = yes; then
8383 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
8384 else
8385 ac_cv_use_listbox='wxUSE_LISTBOX=no'
8386 fi
8387
8388else
8389
8390 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
8391 if test "x$LINE" != x ; then
8392 eval "DEFAULT_$LINE"
8393 else
8394 no_cache=1
8395 fi
8396
8397 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
8398
8399fi;
8400
8401 eval "$ac_cv_use_listbox"
8402 if test "$no_cache" != 1; then
8403 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
8404 fi
8405
8406 if test "$wxUSE_LISTBOX" = yes; then
8407 echo "$as_me:$LINENO: result: yes" >&5
8408echo "${ECHO_T}yes" >&6
8409 else
8410 echo "$as_me:$LINENO: result: no" >&5
8411echo "${ECHO_T}no" >&6
8412 fi
8413
8414
8415 enablestring=
8416 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
8417echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
8418 no_cache=0
8419 # Check whether --enable-listctrl or --disable-listctrl was given.
8420if test "${enable_listctrl+set}" = set; then
8421 enableval="$enable_listctrl"
8422
8423 if test "$enableval" = yes; then
8424 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
8425 else
8426 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
8427 fi
8428
8429else
8430
8431 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
8432 if test "x$LINE" != x ; then
8433 eval "DEFAULT_$LINE"
8434 else
8435 no_cache=1
8436 fi
8437
8438 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
8439
8440fi;
8441
8442 eval "$ac_cv_use_listctrl"
8443 if test "$no_cache" != 1; then
8444 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
8445 fi
8446
8447 if test "$wxUSE_LISTCTRL" = yes; then
8448 echo "$as_me:$LINENO: result: yes" >&5
8449echo "${ECHO_T}yes" >&6
8450 else
8451 echo "$as_me:$LINENO: result: no" >&5
8452echo "${ECHO_T}no" >&6
8453 fi
8454
8455
8456 enablestring=
8457 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
8458echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
8459 no_cache=0
8460 # Check whether --enable-notebook or --disable-notebook was given.
8461if test "${enable_notebook+set}" = set; then
8462 enableval="$enable_notebook"
8463
8464 if test "$enableval" = yes; then
8465 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
8466 else
8467 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
8468 fi
8469
8470else
8471
8472 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
8473 if test "x$LINE" != x ; then
8474 eval "DEFAULT_$LINE"
8475 else
8476 no_cache=1
8477 fi
8478
8479 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
8480
8481fi;
8482
8483 eval "$ac_cv_use_notebook"
8484 if test "$no_cache" != 1; then
8485 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
8486 fi
8487
8488 if test "$wxUSE_NOTEBOOK" = yes; then
8489 echo "$as_me:$LINENO: result: yes" >&5
8490echo "${ECHO_T}yes" >&6
8491 else
8492 echo "$as_me:$LINENO: result: no" >&5
8493echo "${ECHO_T}no" >&6
8494 fi
8495
8496
642bcba9 8497 enablestring=
a57d600f
VZ
8498 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
8499echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6
642bcba9 8500 no_cache=0
a57d600f
VZ
8501 # Check whether --enable-odcombobox or --disable-odcombobox was given.
8502if test "${enable_odcombobox+set}" = set; then
8503 enableval="$enable_odcombobox"
642bcba9
VZ
8504
8505 if test "$enableval" = yes; then
a57d600f 8506 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
642bcba9 8507 else
a57d600f 8508 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
642bcba9
VZ
8509 fi
8510
8511else
8512
a57d600f 8513 LINE=`grep "wxUSE_ODCOMBOBOX" ${wx_arg_cache_file}`
642bcba9
VZ
8514 if test "x$LINE" != x ; then
8515 eval "DEFAULT_$LINE"
8516 else
8517 no_cache=1
8518 fi
8519
a57d600f 8520 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX='$DEFAULT_wxUSE_ODCOMBOBOX
642bcba9
VZ
8521
8522fi;
8523
a57d600f 8524 eval "$ac_cv_use_odcombobox"
642bcba9 8525 if test "$no_cache" != 1; then
a57d600f 8526 echo $ac_cv_use_odcombobox >> ${wx_arg_cache_file}.tmp
642bcba9
VZ
8527 fi
8528
a57d600f 8529 if test "$wxUSE_ODCOMBOBOX" = yes; then
642bcba9
VZ
8530 echo "$as_me:$LINENO: result: yes" >&5
8531echo "${ECHO_T}yes" >&6
8532 else
8533 echo "$as_me:$LINENO: result: no" >&5
8534echo "${ECHO_T}no" >&6
8535 fi
8536
8537
a848cd7e
SC
8538 enablestring=
8539 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
8540echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
8541 no_cache=0
8542 # Check whether --enable-radiobox or --disable-radiobox was given.
8543if test "${enable_radiobox+set}" = set; then
8544 enableval="$enable_radiobox"
8545
8546 if test "$enableval" = yes; then
8547 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
8548 else
8549 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
8550 fi
8551
8552else
8553
8554 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
8555 if test "x$LINE" != x ; then
8556 eval "DEFAULT_$LINE"
8557 else
8558 no_cache=1
8559 fi
8560
8561 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
8562
8563fi;
8564
8565 eval "$ac_cv_use_radiobox"
8566 if test "$no_cache" != 1; then
8567 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
8568 fi
8569
8570 if test "$wxUSE_RADIOBOX" = yes; then
8571 echo "$as_me:$LINENO: result: yes" >&5
8572echo "${ECHO_T}yes" >&6
8573 else
8574 echo "$as_me:$LINENO: result: no" >&5
8575echo "${ECHO_T}no" >&6
8576 fi
8577
8578
8579 enablestring=
8580 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
8581echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
8582 no_cache=0
8583 # Check whether --enable-radiobtn or --disable-radiobtn was given.
8584if test "${enable_radiobtn+set}" = set; then
8585 enableval="$enable_radiobtn"
8586
8587 if test "$enableval" = yes; then
8588 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
8589 else
8590 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
8591 fi
8592
8593else
8594
8595 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
8596 if test "x$LINE" != x ; then
8597 eval "DEFAULT_$LINE"
8598 else
8599 no_cache=1
8600 fi
8601
8602 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
8603
8604fi;
8605
8606 eval "$ac_cv_use_radiobtn"
8607 if test "$no_cache" != 1; then
8608 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
8609 fi
8610
8611 if test "$wxUSE_RADIOBTN" = yes; then
8612 echo "$as_me:$LINENO: result: yes" >&5
8613echo "${ECHO_T}yes" >&6
8614 else
8615 echo "$as_me:$LINENO: result: no" >&5
8616echo "${ECHO_T}no" >&6
8617 fi
8618
8619
8620 enablestring=
8621 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
8622echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
8623 no_cache=0
8624 # Check whether --enable-sash or --disable-sash was given.
8625if test "${enable_sash+set}" = set; then
8626 enableval="$enable_sash"
8627
8628 if test "$enableval" = yes; then
8629 ac_cv_use_sash='wxUSE_SASH=yes'
8630 else
8631 ac_cv_use_sash='wxUSE_SASH=no'
8632 fi
8633
8634else
8635
8636 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
8637 if test "x$LINE" != x ; then
8638 eval "DEFAULT_$LINE"
8639 else
8640 no_cache=1
8641 fi
8642
8643 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
8644
8645fi;
8646
8647 eval "$ac_cv_use_sash"
8648 if test "$no_cache" != 1; then
8649 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
8650 fi
8651
8652 if test "$wxUSE_SASH" = yes; then
8653 echo "$as_me:$LINENO: result: yes" >&5
8654echo "${ECHO_T}yes" >&6
8655 else
8656 echo "$as_me:$LINENO: result: no" >&5
8657echo "${ECHO_T}no" >&6
8658 fi
8659
8660
8661 enablestring=
8662 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
8663echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
8664 no_cache=0
8665 # Check whether --enable-scrollbar or --disable-scrollbar was given.
8666if test "${enable_scrollbar+set}" = set; then
8667 enableval="$enable_scrollbar"
8668
8669 if test "$enableval" = yes; then
8670 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
8671 else
8672 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
8673 fi
8674
8675else
8676
8677 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
8678 if test "x$LINE" != x ; then
8679 eval "DEFAULT_$LINE"
8680 else
8681 no_cache=1
8682 fi
8683
8684 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
8685
8686fi;
8687
8688 eval "$ac_cv_use_scrollbar"
8689 if test "$no_cache" != 1; then
8690 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
8691 fi
8692
8693 if test "$wxUSE_SCROLLBAR" = yes; then
8694 echo "$as_me:$LINENO: result: yes" >&5
8695echo "${ECHO_T}yes" >&6
8696 else
8697 echo "$as_me:$LINENO: result: no" >&5
8698echo "${ECHO_T}no" >&6
8699 fi
8700
8701
8702 enablestring=
8703 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
8704echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
8705 no_cache=0
8706 # Check whether --enable-slider or --disable-slider was given.
8707if test "${enable_slider+set}" = set; then
8708 enableval="$enable_slider"
8709
8710 if test "$enableval" = yes; then
8711 ac_cv_use_slider='wxUSE_SLIDER=yes'
8712 else
8713 ac_cv_use_slider='wxUSE_SLIDER=no'
8714 fi
8715
8716else
8717
8718 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
8719 if test "x$LINE" != x ; then
8720 eval "DEFAULT_$LINE"
8721 else
8722 no_cache=1
8723 fi
8724
8725 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
8726
8727fi;
8728
8729 eval "$ac_cv_use_slider"
8730 if test "$no_cache" != 1; then
8731 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
8732 fi
8733
8734 if test "$wxUSE_SLIDER" = yes; then
8735 echo "$as_me:$LINENO: result: yes" >&5
8736echo "${ECHO_T}yes" >&6
8737 else
8738 echo "$as_me:$LINENO: result: no" >&5
8739echo "${ECHO_T}no" >&6
8740 fi
8741
8742
8743 enablestring=
8744 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
8745echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
8746 no_cache=0
8747 # Check whether --enable-spinbtn or --disable-spinbtn was given.
8748if test "${enable_spinbtn+set}" = set; then
8749 enableval="$enable_spinbtn"
8750
8751 if test "$enableval" = yes; then
8752 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
8753 else
8754 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
8755 fi
8756
8757else
8758
8759 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
8760 if test "x$LINE" != x ; then
8761 eval "DEFAULT_$LINE"
8762 else
8763 no_cache=1
8764 fi
8765
8766 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
8767
8768fi;
8769
8770 eval "$ac_cv_use_spinbtn"
8771 if test "$no_cache" != 1; then
8772 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
8773 fi
8774
8775 if test "$wxUSE_SPINBTN" = yes; then
8776 echo "$as_me:$LINENO: result: yes" >&5
8777echo "${ECHO_T}yes" >&6
8778 else
8779 echo "$as_me:$LINENO: result: no" >&5
8780echo "${ECHO_T}no" >&6
8781 fi
8782
8783
8784 enablestring=
8785 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
8786echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
8787 no_cache=0
8788 # Check whether --enable-spinctrl or --disable-spinctrl was given.
8789if test "${enable_spinctrl+set}" = set; then
8790 enableval="$enable_spinctrl"
8791
8792 if test "$enableval" = yes; then
8793 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
8794 else
8795 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
8796 fi
8797
8798else
8799
8800 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
8801 if test "x$LINE" != x ; then
8802 eval "DEFAULT_$LINE"
8803 else
8804 no_cache=1
8805 fi
8806
8807 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
8808
8809fi;
8810
8811 eval "$ac_cv_use_spinctrl"
8812 if test "$no_cache" != 1; then
8813 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
8814 fi
8815
8816 if test "$wxUSE_SPINCTRL" = yes; then
8817 echo "$as_me:$LINENO: result: yes" >&5
8818echo "${ECHO_T}yes" >&6
8819 else
8820 echo "$as_me:$LINENO: result: no" >&5
8821echo "${ECHO_T}no" >&6
8822 fi
8823
8824
8825 enablestring=
8826 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
8827echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
8828 no_cache=0
8829 # Check whether --enable-splitter or --disable-splitter was given.
8830if test "${enable_splitter+set}" = set; then
8831 enableval="$enable_splitter"
8832
8833 if test "$enableval" = yes; then
8834 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
8835 else
8836 ac_cv_use_splitter='wxUSE_SPLITTER=no'
8837 fi
8838
8839else
8840
8841 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
8842 if test "x$LINE" != x ; then
8843 eval "DEFAULT_$LINE"
8844 else
8845 no_cache=1
8846 fi
8847
8848 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
8849
8850fi;
8851
8852 eval "$ac_cv_use_splitter"
8853 if test "$no_cache" != 1; then
8854 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
8855 fi
8856
8857 if test "$wxUSE_SPLITTER" = yes; then
8858 echo "$as_me:$LINENO: result: yes" >&5
8859echo "${ECHO_T}yes" >&6
8860 else
8861 echo "$as_me:$LINENO: result: no" >&5
8862echo "${ECHO_T}no" >&6
8863 fi
8864
8865
8866 enablestring=
8867 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
8868echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
8869 no_cache=0
8870 # Check whether --enable-statbmp or --disable-statbmp was given.
8871if test "${enable_statbmp+set}" = set; then
8872 enableval="$enable_statbmp"
8873
8874 if test "$enableval" = yes; then
8875 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8876 else
8877 ac_cv_use_statbmp='wxUSE_STATBMP=no'
8878 fi
8879
8880else
8881
8882 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8883 if test "x$LINE" != x ; then
8884 eval "DEFAULT_$LINE"
8885 else
8886 no_cache=1
8887 fi
8888
8889 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8890
8891fi;
8892
8893 eval "$ac_cv_use_statbmp"
8894 if test "$no_cache" != 1; then
8895 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8896 fi
8897
8898 if test "$wxUSE_STATBMP" = yes; then
8899 echo "$as_me:$LINENO: result: yes" >&5
8900echo "${ECHO_T}yes" >&6
8901 else
8902 echo "$as_me:$LINENO: result: no" >&5
8903echo "${ECHO_T}no" >&6
8904 fi
8905
8906
8907 enablestring=
8908 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8909echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8910 no_cache=0
8911 # Check whether --enable-statbox or --disable-statbox was given.
8912if test "${enable_statbox+set}" = set; then
8913 enableval="$enable_statbox"
8914
8915 if test "$enableval" = yes; then
8916 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8917 else
8918 ac_cv_use_statbox='wxUSE_STATBOX=no'
8919 fi
8920
8921else
8922
8923 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8924 if test "x$LINE" != x ; then
8925 eval "DEFAULT_$LINE"
8926 else
8927 no_cache=1
8928 fi
8929
8930 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8931
8932fi;
8933
8934 eval "$ac_cv_use_statbox"
8935 if test "$no_cache" != 1; then
8936 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8937 fi
8938
8939 if test "$wxUSE_STATBOX" = yes; then
8940 echo "$as_me:$LINENO: result: yes" >&5
8941echo "${ECHO_T}yes" >&6
8942 else
8943 echo "$as_me:$LINENO: result: no" >&5
8944echo "${ECHO_T}no" >&6
8945 fi
8946
8947
8948 enablestring=
8949 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8950echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8951 no_cache=0
8952 # Check whether --enable-statline or --disable-statline was given.
8953if test "${enable_statline+set}" = set; then
8954 enableval="$enable_statline"
8955
8956 if test "$enableval" = yes; then
8957 ac_cv_use_statline='wxUSE_STATLINE=yes'
8958 else
8959 ac_cv_use_statline='wxUSE_STATLINE=no'
8960 fi
8961
8962else
8963
8964 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8965 if test "x$LINE" != x ; then
8966 eval "DEFAULT_$LINE"
8967 else
8968 no_cache=1
8969 fi
8970
8971 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8972
8973fi;
8974
8975 eval "$ac_cv_use_statline"
8976 if test "$no_cache" != 1; then
8977 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8978 fi
8979
8980 if test "$wxUSE_STATLINE" = yes; then
8981 echo "$as_me:$LINENO: result: yes" >&5
8982echo "${ECHO_T}yes" >&6
8983 else
8984 echo "$as_me:$LINENO: result: no" >&5
8985echo "${ECHO_T}no" >&6
8986 fi
8987
8988
8989 enablestring=
8990 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8991echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8992 no_cache=0
8993 # Check whether --enable-stattext or --disable-stattext was given.
8994if test "${enable_stattext+set}" = set; then
8995 enableval="$enable_stattext"
8996
8997 if test "$enableval" = yes; then
8998 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8999 else
9000 ac_cv_use_stattext='wxUSE_STATTEXT=no'
9001 fi
9002
9003else
9004
9005 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
9006 if test "x$LINE" != x ; then
9007 eval "DEFAULT_$LINE"
9008 else
9009 no_cache=1
9010 fi
9011
9012 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
9013
9014fi;
9015
9016 eval "$ac_cv_use_stattext"
9017 if test "$no_cache" != 1; then
9018 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
9019 fi
9020
9021 if test "$wxUSE_STATTEXT" = yes; then
9022 echo "$as_me:$LINENO: result: yes" >&5
9023echo "${ECHO_T}yes" >&6
9024 else
9025 echo "$as_me:$LINENO: result: no" >&5
9026echo "${ECHO_T}no" >&6
9027 fi
9028
9029
9030 enablestring=
9031 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
9032echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
9033 no_cache=0
9034 # Check whether --enable-statusbar or --disable-statusbar was given.
9035if test "${enable_statusbar+set}" = set; then
9036 enableval="$enable_statusbar"
9037
9038 if test "$enableval" = yes; then
9039 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
9040 else
9041 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
9042 fi
9043
9044else
9045
9046 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
9047 if test "x$LINE" != x ; then
9048 eval "DEFAULT_$LINE"
9049 else
9050 no_cache=1
9051 fi
9052
9053 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
9054
9055fi;
9056
9057 eval "$ac_cv_use_statusbar"
9058 if test "$no_cache" != 1; then
9059 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
9060 fi
9061
9062 if test "$wxUSE_STATUSBAR" = yes; then
9063 echo "$as_me:$LINENO: result: yes" >&5
9064echo "${ECHO_T}yes" >&6
9065 else
9066 echo "$as_me:$LINENO: result: no" >&5
9067echo "${ECHO_T}no" >&6
9068 fi
9069
9070
9071 enablestring=
9072 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
9073echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
9074 no_cache=0
9075 # Check whether --enable-tabdialog or --disable-tabdialog was given.
9076if test "${enable_tabdialog+set}" = set; then
9077 enableval="$enable_tabdialog"
9078
9079 if test "$enableval" = yes; then
f10e38c4 9080 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=yes'
a848cd7e 9081 else
f10e38c4 9082 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=no'
a848cd7e
SC
9083 fi
9084
9085else
9086
f10e38c4 9087 LINE=`grep "wxUSE_TAB_DIALOG" ${wx_arg_cache_file}`
a848cd7e
SC
9088 if test "x$LINE" != x ; then
9089 eval "DEFAULT_$LINE"
9090 else
9091 no_cache=1
9092 fi
9093
f10e38c4 9094 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG='$DEFAULT_wxUSE_TAB_DIALOG
a848cd7e
SC
9095
9096fi;
9097
9098 eval "$ac_cv_use_tabdialog"
9099 if test "$no_cache" != 1; then
9100 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
9101 fi
9102
f10e38c4 9103 if test "$wxUSE_TAB_DIALOG" = yes; then
a848cd7e
SC
9104 echo "$as_me:$LINENO: result: yes" >&5
9105echo "${ECHO_T}yes" >&6
9106 else
9107 echo "$as_me:$LINENO: result: no" >&5
9108echo "${ECHO_T}no" >&6
9109 fi
9110
9111
9112 enablestring=
9113 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
9114echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
9115 no_cache=0
9116 # Check whether --enable-textctrl or --disable-textctrl was given.
9117if test "${enable_textctrl+set}" = set; then
9118 enableval="$enable_textctrl"
9119
9120 if test "$enableval" = yes; then
9121 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
9122 else
9123 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
9124 fi
9125
9126else
9127
9128 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
9129 if test "x$LINE" != x ; then
9130 eval "DEFAULT_$LINE"
9131 else
9132 no_cache=1
9133 fi
9134
9135 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
9136
9137fi;
9138
9139 eval "$ac_cv_use_textctrl"
9140 if test "$no_cache" != 1; then
9141 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
9142 fi
9143
9144 if test "$wxUSE_TEXTCTRL" = yes; then
9145 echo "$as_me:$LINENO: result: yes" >&5
9146echo "${ECHO_T}yes" >&6
9147 else
9148 echo "$as_me:$LINENO: result: no" >&5
9149echo "${ECHO_T}no" >&6
9150 fi
9151
9152
9153 enablestring=
9154 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
9155echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
9156 no_cache=0
9157 # Check whether --enable-togglebtn or --disable-togglebtn was given.
9158if test "${enable_togglebtn+set}" = set; then
9159 enableval="$enable_togglebtn"
9160
9161 if test "$enableval" = yes; then
9162 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
9163 else
9164 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
9165 fi
9166
9167else
9168
9169 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
9170 if test "x$LINE" != x ; then
9171 eval "DEFAULT_$LINE"
9172 else
9173 no_cache=1
9174 fi
9175
9176 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
9177
9178fi;
9179
9180 eval "$ac_cv_use_togglebtn"
9181 if test "$no_cache" != 1; then
9182 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
9183 fi
9184
9185 if test "$wxUSE_TOGGLEBTN" = yes; then
9186 echo "$as_me:$LINENO: result: yes" >&5
9187echo "${ECHO_T}yes" >&6
9188 else
9189 echo "$as_me:$LINENO: result: no" >&5
9190echo "${ECHO_T}no" >&6
9191 fi
9192
9193
9194 enablestring=
9195 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
9196echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
9197 no_cache=0
9198 # Check whether --enable-toolbar or --disable-toolbar was given.
9199if test "${enable_toolbar+set}" = set; then
9200 enableval="$enable_toolbar"
9201
9202 if test "$enableval" = yes; then
9203 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
9204 else
9205 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
9206 fi
9207
9208else
9209
9210 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
9211 if test "x$LINE" != x ; then
9212 eval "DEFAULT_$LINE"
9213 else
9214 no_cache=1
9215 fi
9216
9217 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
9218
9219fi;
9220
9221 eval "$ac_cv_use_toolbar"
9222 if test "$no_cache" != 1; then
9223 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
9224 fi
9225
9226 if test "$wxUSE_TOOLBAR" = yes; then
9227 echo "$as_me:$LINENO: result: yes" >&5
9228echo "${ECHO_T}yes" >&6
9229 else
9230 echo "$as_me:$LINENO: result: no" >&5
9231echo "${ECHO_T}no" >&6
9232 fi
9233
9234
9235 enablestring=
9236 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
9237echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
9238 no_cache=0
9239 # Check whether --enable-tbarnative or --disable-tbarnative was given.
9240if test "${enable_tbarnative+set}" = set; then
9241 enableval="$enable_tbarnative"
9242
9243 if test "$enableval" = yes; then
9244 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
9245 else
9246 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
9247 fi
9248
9249else
9250
9251 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
9252 if test "x$LINE" != x ; then
9253 eval "DEFAULT_$LINE"
9254 else
9255 no_cache=1
9256 fi
9257
9258 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
9259
9260fi;
9261
9262 eval "$ac_cv_use_tbarnative"
9263 if test "$no_cache" != 1; then
9264 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
9265 fi
9266
9267 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
9268 echo "$as_me:$LINENO: result: yes" >&5
9269echo "${ECHO_T}yes" >&6
9270 else
9271 echo "$as_me:$LINENO: result: no" >&5
9272echo "${ECHO_T}no" >&6
9273 fi
9274
9275
9276 enablestring=
9277 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
9278echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
9279 no_cache=0
9280 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
9281if test "${enable_tbarsmpl+set}" = set; then
9282 enableval="$enable_tbarsmpl"
9283
9284 if test "$enableval" = yes; then
9285 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
9286 else
9287 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
9288 fi
9289
9290else
9291
9292 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
9293 if test "x$LINE" != x ; then
9294 eval "DEFAULT_$LINE"
9295 else
9296 no_cache=1
9297 fi
9298
9299 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
9300
9301fi;
9302
9303 eval "$ac_cv_use_tbarsmpl"
9304 if test "$no_cache" != 1; then
9305 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
9306 fi
9307
9308 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
9309 echo "$as_me:$LINENO: result: yes" >&5
9310echo "${ECHO_T}yes" >&6
9311 else
9312 echo "$as_me:$LINENO: result: no" >&5
9313echo "${ECHO_T}no" >&6
9314 fi
9315
9316
0093c2fc
VZ
9317 enablestring=
9318 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
9319echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6
9320 no_cache=0
9321 # Check whether --enable-treebook or --disable-treebook was given.
9322if test "${enable_treebook+set}" = set; then
9323 enableval="$enable_treebook"
9324
9325 if test "$enableval" = yes; then
9326 ac_cv_use_treebook='wxUSE_TREEBOOK=yes'
9327 else
9328 ac_cv_use_treebook='wxUSE_TREEBOOK=no'
9329 fi
9330
9331else
9332
9333 LINE=`grep "wxUSE_TREEBOOK" ${wx_arg_cache_file}`
9334 if test "x$LINE" != x ; then
9335 eval "DEFAULT_$LINE"
9336 else
9337 no_cache=1
9338 fi
9339
9340 ac_cv_use_treebook='wxUSE_TREEBOOK='$DEFAULT_wxUSE_TREEBOOK
9341
9342fi;
9343
9344 eval "$ac_cv_use_treebook"
9345 if test "$no_cache" != 1; then
9346 echo $ac_cv_use_treebook >> ${wx_arg_cache_file}.tmp
9347 fi
9348
9349 if test "$wxUSE_TREEBOOK" = yes; then
9350 echo "$as_me:$LINENO: result: yes" >&5
9351echo "${ECHO_T}yes" >&6
9352 else
9353 echo "$as_me:$LINENO: result: no" >&5
9354echo "${ECHO_T}no" >&6
9355 fi
9356
9357
5ec3bc43
JS
9358 enablestring=
9359 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
9360echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6
9361 no_cache=0
9362 # Check whether --enable-toolbook or --disable-toolbook was given.
9363if test "${enable_toolbook+set}" = set; then
9364 enableval="$enable_toolbook"
9365
9366 if test "$enableval" = yes; then
9367 ac_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
9368 else
9369 ac_cv_use_toolbook='wxUSE_TOOLBOOK=no'
9370 fi
9371
9372else
9373
9374 LINE=`grep "wxUSE_TOOLBOOK" ${wx_arg_cache_file}`
9375 if test "x$LINE" != x ; then
9376 eval "DEFAULT_$LINE"
9377 else
9378 no_cache=1
9379 fi
9380
9381 ac_cv_use_toolbook='wxUSE_TOOLBOOK='$DEFAULT_wxUSE_TOOLBOOK
9382
9383fi;
9384
9385 eval "$ac_cv_use_toolbook"
9386 if test "$no_cache" != 1; then
9387 echo $ac_cv_use_toolbook >> ${wx_arg_cache_file}.tmp
9388 fi
9389
9390 if test "$wxUSE_TOOLBOOK" = yes; then
9391 echo "$as_me:$LINENO: result: yes" >&5
9392echo "${ECHO_T}yes" >&6
9393 else
9394 echo "$as_me:$LINENO: result: no" >&5
9395echo "${ECHO_T}no" >&6
9396 fi
9397
9398
a848cd7e
SC
9399 enablestring=
9400 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
9401echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
9402 no_cache=0
9403 # Check whether --enable-treectrl or --disable-treectrl was given.
9404if test "${enable_treectrl+set}" = set; then
9405 enableval="$enable_treectrl"
9406
9407 if test "$enableval" = yes; then
9408 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
9409 else
9410 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
9411 fi
9412
9413else
9414
9415 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
9416 if test "x$LINE" != x ; then
9417 eval "DEFAULT_$LINE"
9418 else
9419 no_cache=1
9420 fi
9421
9422 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
9423
9424fi;
9425
9426 eval "$ac_cv_use_treectrl"
9427 if test "$no_cache" != 1; then
9428 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
9429 fi
9430
9431 if test "$wxUSE_TREECTRL" = yes; then
9432 echo "$as_me:$LINENO: result: yes" >&5
9433echo "${ECHO_T}yes" >&6
9434 else
9435 echo "$as_me:$LINENO: result: no" >&5
9436echo "${ECHO_T}no" >&6
9437 fi
9438
9439
9440 enablestring=
9441 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
9442echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
9443 no_cache=0
9444 # Check whether --enable-tipwindow or --disable-tipwindow was given.
9445if test "${enable_tipwindow+set}" = set; then
9446 enableval="$enable_tipwindow"
9447
9448 if test "$enableval" = yes; then
9449 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
9450 else
9451 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
9452 fi
9453
9454else
9455
9456 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
9457 if test "x$LINE" != x ; then
9458 eval "DEFAULT_$LINE"
9459 else
9460 no_cache=1
9461 fi
9462
9463 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
9464
9465fi;
9466
9467 eval "$ac_cv_use_tipwindow"
9468 if test "$no_cache" != 1; then
9469 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
9470 fi
9471
9472 if test "$wxUSE_TIPWINDOW" = yes; then
9473 echo "$as_me:$LINENO: result: yes" >&5
9474echo "${ECHO_T}yes" >&6
9475 else
9476 echo "$as_me:$LINENO: result: no" >&5
9477echo "${ECHO_T}no" >&6
9478 fi
9479
9480
9481 enablestring=
9482 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
9483echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
9484 no_cache=0
9485 # Check whether --enable-popupwin or --disable-popupwin was given.
9486if test "${enable_popupwin+set}" = set; then
9487 enableval="$enable_popupwin"
9488
9489 if test "$enableval" = yes; then
9490 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
9491 else
9492 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
9493 fi
9494
9495else
9496
9497 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
9498 if test "x$LINE" != x ; then
9499 eval "DEFAULT_$LINE"
9500 else
9501 no_cache=1
9502 fi
9503
9504 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9505
9506fi;
9507
9508 eval "$ac_cv_use_popupwin"
9509 if test "$no_cache" != 1; then
9510 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
9511 fi
9512
9513 if test "$wxUSE_POPUPWIN" = yes; then
9514 echo "$as_me:$LINENO: result: yes" >&5
9515echo "${ECHO_T}yes" >&6
9516 else
9517 echo "$as_me:$LINENO: result: no" >&5
9518echo "${ECHO_T}no" >&6
9519 fi
9520
9521
9522
9523
9524 enablestring=
9525 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
9526echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
9527 no_cache=0
9528 # Check whether --enable-commondlg or --disable-commondlg was given.
9529if test "${enable_commondlg+set}" = set; then
9530 enableval="$enable_commondlg"
9531
9532 if test "$enableval" = yes; then
9533 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
9534 else
9535 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
9536 fi
9537
9538else
9539
9540 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
9541 if test "x$LINE" != x ; then
9542 eval "DEFAULT_$LINE"
9543 else
9544 no_cache=1
9545 fi
9546
9547 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
9548
9549fi;
9550
9551 eval "$ac_cv_use_commondlg"
9552 if test "$no_cache" != 1; then
9553 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
9554 fi
9555
9556 if test "$wxUSE_COMMONDLGS" = yes; then
9557 echo "$as_me:$LINENO: result: yes" >&5
9558echo "${ECHO_T}yes" >&6
9559 else
9560 echo "$as_me:$LINENO: result: no" >&5
9561echo "${ECHO_T}no" >&6
9562 fi
9563
9564
9565 enablestring=
9566 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
9567echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
9568 no_cache=0
9569 # Check whether --enable-choicedlg or --disable-choicedlg was given.
9570if test "${enable_choicedlg+set}" = set; then
9571 enableval="$enable_choicedlg"
9572
9573 if test "$enableval" = yes; then
9574 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
9575 else
9576 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
9577 fi
9578
9579else
9580
9581 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
9582 if test "x$LINE" != x ; then
9583 eval "DEFAULT_$LINE"
9584 else
9585 no_cache=1
9586 fi
9587
9588 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
9589
9590fi;
9591
9592 eval "$ac_cv_use_choicedlg"
9593 if test "$no_cache" != 1; then
9594 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
9595 fi
9596
9597 if test "$wxUSE_CHOICEDLG" = yes; then
9598 echo "$as_me:$LINENO: result: yes" >&5
9599echo "${ECHO_T}yes" >&6
9600 else
9601 echo "$as_me:$LINENO: result: no" >&5
9602echo "${ECHO_T}no" >&6
9603 fi
9604
9605
9606 enablestring=
9607 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
9608echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
9609 no_cache=0
9610 # Check whether --enable-coldlg or --disable-coldlg was given.
9611if test "${enable_coldlg+set}" = set; then
9612 enableval="$enable_coldlg"
9613
9614 if test "$enableval" = yes; then
9615 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
9616 else
9617 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
9618 fi
9619
9620else
9621
9622 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
9623 if test "x$LINE" != x ; then
9624 eval "DEFAULT_$LINE"
9625 else
9626 no_cache=1
9627 fi
9628
9629 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
9630
9631fi;
9632
9633 eval "$ac_cv_use_coldlg"
9634 if test "$no_cache" != 1; then
9635 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
9636 fi
9637
9638 if test "$wxUSE_COLOURDLG" = yes; then
9639 echo "$as_me:$LINENO: result: yes" >&5
9640echo "${ECHO_T}yes" >&6
9641 else
9642 echo "$as_me:$LINENO: result: no" >&5
9643echo "${ECHO_T}no" >&6
9644 fi
9645
9646
9647 enablestring=
9648 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
9649echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
9650 no_cache=0
9651 # Check whether --enable-filedlg or --disable-filedlg was given.
9652if test "${enable_filedlg+set}" = set; then
9653 enableval="$enable_filedlg"
9654
9655 if test "$enableval" = yes; then
9656 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
9657 else
9658 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
9659 fi
9660
9661else
9662
9663 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
9664 if test "x$LINE" != x ; then
9665 eval "DEFAULT_$LINE"
9666 else
9667 no_cache=1
9668 fi
9669
9670 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
9671
9672fi;
9673
9674 eval "$ac_cv_use_filedlg"
9675 if test "$no_cache" != 1; then
9676 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
9677 fi
9678
9679 if test "$wxUSE_FILEDLG" = yes; then
9680 echo "$as_me:$LINENO: result: yes" >&5
9681echo "${ECHO_T}yes" >&6
9682 else
9683 echo "$as_me:$LINENO: result: no" >&5
9684echo "${ECHO_T}no" >&6
9685 fi
9686
9687
9688 enablestring=
9689 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
9690echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
9691 no_cache=0
9692 # Check whether --enable-finddlg or --disable-finddlg was given.
9693if test "${enable_finddlg+set}" = set; then
9694 enableval="$enable_finddlg"
9695
9696 if test "$enableval" = yes; then
9697 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
9698 else
9699 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
9700 fi
9701
9702else
9703
9704 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
9705 if test "x$LINE" != x ; then
9706 eval "DEFAULT_$LINE"
9707 else
9708 no_cache=1
9709 fi
9710
9711 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
9712
9713fi;
9714
9715 eval "$ac_cv_use_finddlg"
9716 if test "$no_cache" != 1; then
9717 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
9718 fi
9719
9720 if test "$wxUSE_FINDREPLDLG" = yes; then
9721 echo "$as_me:$LINENO: result: yes" >&5
9722echo "${ECHO_T}yes" >&6
9723 else
9724 echo "$as_me:$LINENO: result: no" >&5
9725echo "${ECHO_T}no" >&6
9726 fi
9727
9728
9729 enablestring=
9730 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
9731echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
9732 no_cache=0
9733 # Check whether --enable-fontdlg or --disable-fontdlg was given.
9734if test "${enable_fontdlg+set}" = set; then
9735 enableval="$enable_fontdlg"
9736
9737 if test "$enableval" = yes; then
9738 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
9739 else
9740 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
9741 fi
9742
9743else
9744
9745 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
9746 if test "x$LINE" != x ; then
9747 eval "DEFAULT_$LINE"
9748 else
9749 no_cache=1
9750 fi
9751
9752 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
9753
9754fi;
9755
9756 eval "$ac_cv_use_fontdlg"
9757 if test "$no_cache" != 1; then
9758 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
9759 fi
9760
9761 if test "$wxUSE_FONTDLG" = yes; then
9762 echo "$as_me:$LINENO: result: yes" >&5
9763echo "${ECHO_T}yes" >&6
9764 else
9765 echo "$as_me:$LINENO: result: no" >&5
9766echo "${ECHO_T}no" >&6
9767 fi
9768
9769
9770 enablestring=
9771 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
9772echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
9773 no_cache=0
9774 # Check whether --enable-dirdlg or --disable-dirdlg was given.
9775if test "${enable_dirdlg+set}" = set; then
9776 enableval="$enable_dirdlg"
9777
9778 if test "$enableval" = yes; then
9779 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
9780 else
9781 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
9782 fi
9783
9784else
9785
9786 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
9787 if test "x$LINE" != x ; then
9788 eval "DEFAULT_$LINE"
9789 else
9790 no_cache=1
9791 fi
9792
9793 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
9794
9795fi;
9796
9797 eval "$ac_cv_use_dirdlg"
9798 if test "$no_cache" != 1; then
9799 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
9800 fi
9801
9802 if test "$wxUSE_DIRDLG" = yes; then
9803 echo "$as_me:$LINENO: result: yes" >&5
9804echo "${ECHO_T}yes" >&6
9805 else
9806 echo "$as_me:$LINENO: result: no" >&5
9807echo "${ECHO_T}no" >&6
9808 fi
9809
9810
9811 enablestring=
9812 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
9813echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
9814 no_cache=0
9815 # Check whether --enable-msgdlg or --disable-msgdlg was given.
9816if test "${enable_msgdlg+set}" = set; then
9817 enableval="$enable_msgdlg"
9818
9819 if test "$enableval" = yes; then
9820 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
9821 else
9822 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
9823 fi
9824
9825else
9826
9827 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
9828 if test "x$LINE" != x ; then
9829 eval "DEFAULT_$LINE"
9830 else
9831 no_cache=1
9832 fi
9833
9834 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
9835
9836fi;
9837
9838 eval "$ac_cv_use_msgdlg"
9839 if test "$no_cache" != 1; then
9840 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
9841 fi
9842
9843 if test "$wxUSE_MSGDLG" = yes; then
9844 echo "$as_me:$LINENO: result: yes" >&5
9845echo "${ECHO_T}yes" >&6
9846 else
9847 echo "$as_me:$LINENO: result: no" >&5
9848echo "${ECHO_T}no" >&6
9849 fi
9850
9851
9852 enablestring=
9853 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
9854echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
9855 no_cache=0
9856 # Check whether --enable-numberdlg or --disable-numberdlg was given.
9857if test "${enable_numberdlg+set}" = set; then
9858 enableval="$enable_numberdlg"
9859
9860 if test "$enableval" = yes; then
9861 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
9862 else
9863 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
9864 fi
9865
9866else
9867
9868 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
9869 if test "x$LINE" != x ; then
9870 eval "DEFAULT_$LINE"
9871 else
9872 no_cache=1
9873 fi
9874
9875 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
9876
9877fi;
9878
9879 eval "$ac_cv_use_numberdlg"
9880 if test "$no_cache" != 1; then
9881 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
9882 fi
9883
9884 if test "$wxUSE_NUMBERDLG" = yes; then
9885 echo "$as_me:$LINENO: result: yes" >&5
9886echo "${ECHO_T}yes" >&6
9887 else
9888 echo "$as_me:$LINENO: result: no" >&5
9889echo "${ECHO_T}no" >&6
9890 fi
9891
9892
9893 enablestring=
9894 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
9895echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
9896 no_cache=0
9897 # Check whether --enable-splash or --disable-splash was given.
9898if test "${enable_splash+set}" = set; then
9899 enableval="$enable_splash"
9900
9901 if test "$enableval" = yes; then
9902 ac_cv_use_splash='wxUSE_SPLASH=yes'
9903 else
9904 ac_cv_use_splash='wxUSE_SPLASH=no'
9905 fi
9906
9907else
9908
9909 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
9910 if test "x$LINE" != x ; then
9911 eval "DEFAULT_$LINE"
9912 else
9913 no_cache=1
9914 fi
9915
9916 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
9917
9918fi;
9919
9920 eval "$ac_cv_use_splash"
9921 if test "$no_cache" != 1; then
9922 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
9923 fi
9924
9925 if test "$wxUSE_SPLASH" = yes; then
9926 echo "$as_me:$LINENO: result: yes" >&5
9927echo "${ECHO_T}yes" >&6
9928 else
9929 echo "$as_me:$LINENO: result: no" >&5
9930echo "${ECHO_T}no" >&6
9931 fi
9932
9933
9934 enablestring=
9935 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
9936echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
9937 no_cache=0
9938 # Check whether --enable-textdlg or --disable-textdlg was given.
9939if test "${enable_textdlg+set}" = set; then
9940 enableval="$enable_textdlg"
9941
9942 if test "$enableval" = yes; then
9943 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
9944 else
9945 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
9946 fi
9947
9948else
9949
9950 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
9951 if test "x$LINE" != x ; then
9952 eval "DEFAULT_$LINE"
9953 else
9954 no_cache=1
9955 fi
9956
9957 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9958
9959fi;
9960
9961 eval "$ac_cv_use_textdlg"
9962 if test "$no_cache" != 1; then
9963 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9964 fi
9965
9966 if test "$wxUSE_TEXTDLG" = yes; then
9967 echo "$as_me:$LINENO: result: yes" >&5
9968echo "${ECHO_T}yes" >&6
9969 else
9970 echo "$as_me:$LINENO: result: no" >&5
9971echo "${ECHO_T}no" >&6
9972 fi
9973
9974
9975 enablestring=
9976 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9977echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9978 no_cache=0
9979 # Check whether --enable-tipdlg or --disable-tipdlg was given.
9980if test "${enable_tipdlg+set}" = set; then
9981 enableval="$enable_tipdlg"
9982
9983 if test "$enableval" = yes; then
9984 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9985 else
9986 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9987 fi
9988
9989else
9990
9991 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9992 if test "x$LINE" != x ; then
9993 eval "DEFAULT_$LINE"
9994 else
9995 no_cache=1
9996 fi
9997
9998 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9999
10000fi;
10001
10002 eval "$ac_cv_use_tipdlg"
10003 if test "$no_cache" != 1; then
10004 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
10005 fi
10006
10007 if test "$wxUSE_STARTUP_TIPS" = yes; then
10008 echo "$as_me:$LINENO: result: yes" >&5
10009echo "${ECHO_T}yes" >&6
10010 else
10011 echo "$as_me:$LINENO: result: no" >&5
10012echo "${ECHO_T}no" >&6
10013 fi
10014
10015
10016 enablestring=
10017 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
10018echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
10019 no_cache=0
10020 # Check whether --enable-progressdlg or --disable-progressdlg was given.
10021if test "${enable_progressdlg+set}" = set; then
10022 enableval="$enable_progressdlg"
10023
10024 if test "$enableval" = yes; then
10025 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
10026 else
10027 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
10028 fi
10029
10030else
10031
10032 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
10033 if test "x$LINE" != x ; then
10034 eval "DEFAULT_$LINE"
10035 else
10036 no_cache=1
10037 fi
10038
10039 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
10040
10041fi;
10042
10043 eval "$ac_cv_use_progressdlg"
10044 if test "$no_cache" != 1; then
10045 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
10046 fi
10047
10048 if test "$wxUSE_PROGRESSDLG" = yes; then
10049 echo "$as_me:$LINENO: result: yes" >&5
10050echo "${ECHO_T}yes" >&6
10051 else
10052 echo "$as_me:$LINENO: result: no" >&5
10053echo "${ECHO_T}no" >&6
10054 fi
10055
10056
10057 enablestring=
10058 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
10059echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
10060 no_cache=0
10061 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
10062if test "${enable_wizarddlg+set}" = set; then
10063 enableval="$enable_wizarddlg"
10064
10065 if test "$enableval" = yes; then
10066 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
10067 else
10068 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
10069 fi
10070
10071else
10072
10073 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
10074 if test "x$LINE" != x ; then
10075 eval "DEFAULT_$LINE"
10076 else
10077 no_cache=1
10078 fi
10079
10080 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
10081
10082fi;
10083
10084 eval "$ac_cv_use_wizarddlg"
10085 if test "$no_cache" != 1; then
10086 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
10087 fi
10088
10089 if test "$wxUSE_WIZARDDLG" = yes; then
10090 echo "$as_me:$LINENO: result: yes" >&5
10091echo "${ECHO_T}yes" >&6
10092 else
10093 echo "$as_me:$LINENO: result: no" >&5
10094echo "${ECHO_T}no" >&6
10095 fi
10096
10097
10098
10099
10100 enablestring=
10101 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
10102echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
10103 no_cache=0
10104 # Check whether --enable-menus or --disable-menus was given.
10105if test "${enable_menus+set}" = set; then
10106 enableval="$enable_menus"
10107
10108 if test "$enableval" = yes; then
10109 ac_cv_use_menus='wxUSE_MENUS=yes'
10110 else
10111 ac_cv_use_menus='wxUSE_MENUS=no'
10112 fi
10113
10114else
10115
10116 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
10117 if test "x$LINE" != x ; then
10118 eval "DEFAULT_$LINE"
10119 else
10120 no_cache=1
10121 fi
10122
10123 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
10124
10125fi;
10126
10127 eval "$ac_cv_use_menus"
10128 if test "$no_cache" != 1; then
10129 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
10130 fi
10131
10132 if test "$wxUSE_MENUS" = yes; then
10133 echo "$as_me:$LINENO: result: yes" >&5
10134echo "${ECHO_T}yes" >&6
10135 else
10136 echo "$as_me:$LINENO: result: no" >&5
10137echo "${ECHO_T}no" >&6
10138 fi
10139
10140
10141 enablestring=
10142 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
10143echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
10144 no_cache=0
10145 # Check whether --enable-miniframe or --disable-miniframe was given.
10146if test "${enable_miniframe+set}" = set; then
10147 enableval="$enable_miniframe"
10148
10149 if test "$enableval" = yes; then
10150 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
10151 else
10152 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
10153 fi
10154
10155else
10156
10157 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
10158 if test "x$LINE" != x ; then
10159 eval "DEFAULT_$LINE"
10160 else
10161 no_cache=1
10162 fi
10163
10164 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
10165
10166fi;
10167
10168 eval "$ac_cv_use_miniframe"
10169 if test "$no_cache" != 1; then
10170 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
10171 fi
10172
10173 if test "$wxUSE_MINIFRAME" = yes; then
10174 echo "$as_me:$LINENO: result: yes" >&5
10175echo "${ECHO_T}yes" >&6
10176 else
10177 echo "$as_me:$LINENO: result: no" >&5
10178echo "${ECHO_T}no" >&6
10179 fi
10180
10181
10182 enablestring=
10183 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
10184echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
10185 no_cache=0
10186 # Check whether --enable-tooltips or --disable-tooltips was given.
10187if test "${enable_tooltips+set}" = set; then
10188 enableval="$enable_tooltips"
10189
10190 if test "$enableval" = yes; then
10191 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
10192 else
10193 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
10194 fi
10195
10196else
10197
10198 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
10199 if test "x$LINE" != x ; then
10200 eval "DEFAULT_$LINE"
10201 else
10202 no_cache=1
10203 fi
10204
10205 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
10206
10207fi;
10208
10209 eval "$ac_cv_use_tooltips"
10210 if test "$no_cache" != 1; then
10211 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
10212 fi
10213
10214 if test "$wxUSE_TOOLTIPS" = yes; then
10215 echo "$as_me:$LINENO: result: yes" >&5
10216echo "${ECHO_T}yes" >&6
10217 else
10218 echo "$as_me:$LINENO: result: no" >&5
10219echo "${ECHO_T}no" >&6
10220 fi
10221
10222
10223 enablestring=
10224 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
10225echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
10226 no_cache=0
10227 # Check whether --enable-splines or --disable-splines was given.
10228if test "${enable_splines+set}" = set; then
10229 enableval="$enable_splines"
10230
10231 if test "$enableval" = yes; then
10232 ac_cv_use_splines='wxUSE_SPLINES=yes'
10233 else
10234 ac_cv_use_splines='wxUSE_SPLINES=no'
10235 fi
10236
10237else
10238
10239 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
10240 if test "x$LINE" != x ; then
10241 eval "DEFAULT_$LINE"
10242 else
10243 no_cache=1
10244 fi
10245
10246 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
10247
10248fi;
10249
10250 eval "$ac_cv_use_splines"
10251 if test "$no_cache" != 1; then
10252 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
10253 fi
10254
10255 if test "$wxUSE_SPLINES" = yes; then
10256 echo "$as_me:$LINENO: result: yes" >&5
10257echo "${ECHO_T}yes" >&6
10258 else
10259 echo "$as_me:$LINENO: result: no" >&5
10260echo "${ECHO_T}no" >&6
10261 fi
10262
10263
fbe2ca43
SN
10264 enablestring=
10265 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
10266echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6
10267 no_cache=0
10268 # Check whether --enable-mousewheel or --disable-mousewheel was given.
10269if test "${enable_mousewheel+set}" = set; then
10270 enableval="$enable_mousewheel"
10271
10272 if test "$enableval" = yes; then
10273 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
10274 else
10275 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
10276 fi
10277
10278else
10279
10280 LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}`
10281 if test "x$LINE" != x ; then
10282 eval "DEFAULT_$LINE"
10283 else
10284 no_cache=1
10285 fi
10286
10287 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL
10288
10289fi;
10290
10291 eval "$ac_cv_use_mousewheel"
10292 if test "$no_cache" != 1; then
10293 echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
10294 fi
10295
10296 if test "$wxUSE_MOUSEWHEEL" = yes; then
10297 echo "$as_me:$LINENO: result: yes" >&5
10298echo "${ECHO_T}yes" >&6
10299 else
10300 echo "$as_me:$LINENO: result: no" >&5
10301echo "${ECHO_T}no" >&6
10302 fi
10303
10304
a848cd7e
SC
10305 enablestring=
10306 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
10307echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
10308 no_cache=0
10309 # Check whether --enable-validators or --disable-validators was given.
10310if test "${enable_validators+set}" = set; then
10311 enableval="$enable_validators"
10312
10313 if test "$enableval" = yes; then
10314 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
10315 else
10316 ac_cv_use_validators='wxUSE_VALIDATORS=no'
10317 fi
10318
10319else
10320
10321 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
10322 if test "x$LINE" != x ; then
10323 eval "DEFAULT_$LINE"
10324 else
10325 no_cache=1
10326 fi
10327
10328 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
10329
10330fi;
10331
10332 eval "$ac_cv_use_validators"
10333 if test "$no_cache" != 1; then
10334 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
10335 fi
10336
10337 if test "$wxUSE_VALIDATORS" = yes; then
10338 echo "$as_me:$LINENO: result: yes" >&5
10339echo "${ECHO_T}yes" >&6
10340 else
10341 echo "$as_me:$LINENO: result: no" >&5
10342echo "${ECHO_T}no" >&6
10343 fi
10344
10345
10346 enablestring=
10347 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
10348echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
10349 no_cache=0
10350 # Check whether --enable-busyinfo or --disable-busyinfo was given.
10351if test "${enable_busyinfo+set}" = set; then
10352 enableval="$enable_busyinfo"
10353
10354 if test "$enableval" = yes; then
10355 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
10356 else
10357 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
10358 fi
10359
10360else
10361
10362 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
10363 if test "x$LINE" != x ; then
10364 eval "DEFAULT_$LINE"
10365 else
10366 no_cache=1
10367 fi
10368
10369 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
10370
10371fi;
10372
10373 eval "$ac_cv_use_busyinfo"
10374 if test "$no_cache" != 1; then
10375 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
10376 fi
10377
10378 if test "$wxUSE_BUSYINFO" = yes; then
10379 echo "$as_me:$LINENO: result: yes" >&5
10380echo "${ECHO_T}yes" >&6
10381 else
10382 echo "$as_me:$LINENO: result: no" >&5
10383echo "${ECHO_T}no" >&6
10384 fi
10385
10386
10387 enablestring=
10388 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
10389echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
10390 no_cache=0
10391 # Check whether --enable-joystick or --disable-joystick was given.
10392if test "${enable_joystick+set}" = set; then
10393 enableval="$enable_joystick"
10394
10395 if test "$enableval" = yes; then
10396 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
10397 else
10398 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
10399 fi
10400
10401else
10402
10403 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
10404 if test "x$LINE" != x ; then
10405 eval "DEFAULT_$LINE"
10406 else
10407 no_cache=1
10408 fi
10409
10410 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
10411
10412fi;
10413
10414 eval "$ac_cv_use_joystick"
10415 if test "$no_cache" != 1; then
10416 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
10417 fi
10418
10419 if test "$wxUSE_JOYSTICK" = yes; then
10420 echo "$as_me:$LINENO: result: yes" >&5
10421echo "${ECHO_T}yes" >&6
10422 else
10423 echo "$as_me:$LINENO: result: no" >&5
10424echo "${ECHO_T}no" >&6
10425 fi
10426
10427
10428 enablestring=
10429 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
10430echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
10431 no_cache=0
10432 # Check whether --enable-metafile or --disable-metafile was given.
10433if test "${enable_metafile+set}" = set; then
10434 enableval="$enable_metafile"
10435
10436 if test "$enableval" = yes; then
10437 ac_cv_use_metafile='wxUSE_METAFILE=yes'
10438 else
10439 ac_cv_use_metafile='wxUSE_METAFILE=no'
10440 fi
10441
10442else
10443
10444 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
10445 if test "x$LINE" != x ; then
10446 eval "DEFAULT_$LINE"
10447 else
10448 no_cache=1
10449 fi
10450
10451 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
10452
10453fi;
10454
10455 eval "$ac_cv_use_metafile"
10456 if test "$no_cache" != 1; then
10457 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
10458 fi
10459
10460 if test "$wxUSE_METAFILE" = yes; then
10461 echo "$as_me:$LINENO: result: yes" >&5
10462echo "${ECHO_T}yes" >&6
10463 else
10464 echo "$as_me:$LINENO: result: no" >&5
10465echo "${ECHO_T}no" >&6
10466 fi
10467
10468
10469 enablestring=
10470 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
10471echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
10472 no_cache=0
10473 # Check whether --enable-dragimage or --disable-dragimage was given.
10474if test "${enable_dragimage+set}" = set; then
10475 enableval="$enable_dragimage"
10476
10477 if test "$enableval" = yes; then
10478 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
10479 else
10480 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
10481 fi
10482
10483else
10484
10485 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
10486 if test "x$LINE" != x ; then
10487 eval "DEFAULT_$LINE"
10488 else
10489 no_cache=1
10490 fi
10491
10492 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
10493
10494fi;
10495
10496 eval "$ac_cv_use_dragimage"
10497 if test "$no_cache" != 1; then
10498 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
10499 fi
10500
10501 if test "$wxUSE_DRAGIMAGE" = yes; then
10502 echo "$as_me:$LINENO: result: yes" >&5
10503echo "${ECHO_T}yes" >&6
10504 else
10505 echo "$as_me:$LINENO: result: no" >&5
10506echo "${ECHO_T}no" >&6
10507 fi
10508
10509
10510 enablestring=
10511 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
10512echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
10513 no_cache=0
10514 # Check whether --enable-accessibility or --disable-accessibility was given.
10515if test "${enable_accessibility+set}" = set; then
10516 enableval="$enable_accessibility"
10517
10518 if test "$enableval" = yes; then
10519 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
10520 else
10521 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
10522 fi
10523
10524else
10525
10526 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
10527 if test "x$LINE" != x ; then
10528 eval "DEFAULT_$LINE"
10529 else
10530 no_cache=1
10531 fi
10532
10533 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
10534
10535fi;
10536
10537 eval "$ac_cv_use_accessibility"
10538 if test "$no_cache" != 1; then
10539 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
10540 fi
10541
10542 if test "$wxUSE_ACCESSIBILITY" = yes; then
10543 echo "$as_me:$LINENO: result: yes" >&5
10544echo "${ECHO_T}yes" >&6
10545 else
10546 echo "$as_me:$LINENO: result: no" >&5
10547echo "${ECHO_T}no" >&6
10548 fi
10549
10550
38b4a946
VZ
10551if test "$wxUSE_MSW" = "1"; then
10552
10553 enablestring=
10554 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
10555echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6
10556 no_cache=0
10557 # Check whether --enable-dccache or --disable-dccache was given.
10558if test "${enable_dccache+set}" = set; then
10559 enableval="$enable_dccache"
10560
10561 if test "$enableval" = yes; then
10562 ac_cv_use_dccache='wxUSE_DC_CACHEING=yes'
10563 else
10564 ac_cv_use_dccache='wxUSE_DC_CACHEING=no'
10565 fi
10566
10567else
10568
10569 LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}`
10570 if test "x$LINE" != x ; then
10571 eval "DEFAULT_$LINE"
10572 else
10573 no_cache=1
10574 fi
10575
10576 ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING
10577
10578fi;
10579
10580 eval "$ac_cv_use_dccache"
10581 if test "$no_cache" != 1; then
10582 echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp
10583 fi
10584
10585 if test "$wxUSE_DC_CACHEING" = yes; then
10586 echo "$as_me:$LINENO: result: yes" >&5
10587echo "${ECHO_T}yes" >&6
10588 else
10589 echo "$as_me:$LINENO: result: no" >&5
10590echo "${ECHO_T}no" >&6
10591 fi
10592
10593fi
10594
a848cd7e
SC
10595
10596
10597 enablestring=
10598 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
10599echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
10600 no_cache=0
10601 # Check whether --enable-palette or --disable-palette was given.
10602if test "${enable_palette+set}" = set; then
10603 enableval="$enable_palette"
10604
10605 if test "$enableval" = yes; then
10606 ac_cv_use_palette='wxUSE_PALETTE=yes'
10607 else
10608 ac_cv_use_palette='wxUSE_PALETTE=no'
10609 fi
10610
10611else
10612
10613 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
10614 if test "x$LINE" != x ; then
10615 eval "DEFAULT_$LINE"
10616 else
10617 no_cache=1
10618 fi
10619
10620 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
10621
10622fi;
10623
10624 eval "$ac_cv_use_palette"
10625 if test "$no_cache" != 1; then
10626 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
10627 fi
10628
10629 if test "$wxUSE_PALETTE" = yes; then
10630 echo "$as_me:$LINENO: result: yes" >&5
10631echo "${ECHO_T}yes" >&6
10632 else
10633 echo "$as_me:$LINENO: result: no" >&5
10634echo "${ECHO_T}no" >&6
10635 fi
10636
10637
10638 enablestring=
10639 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
10640echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
10641 no_cache=0
10642 # Check whether --enable-image or --disable-image was given.
10643if test "${enable_image+set}" = set; then
10644 enableval="$enable_image"
10645
10646 if test "$enableval" = yes; then
10647 ac_cv_use_image='wxUSE_IMAGE=yes'
10648 else
10649 ac_cv_use_image='wxUSE_IMAGE=no'
10650 fi
10651
10652else
10653
10654 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
10655 if test "x$LINE" != x ; then
10656 eval "DEFAULT_$LINE"
10657 else
10658 no_cache=1
10659 fi
10660
10661 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
10662
10663fi;
10664
10665 eval "$ac_cv_use_image"
10666 if test "$no_cache" != 1; then
10667 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
10668 fi
10669
10670 if test "$wxUSE_IMAGE" = yes; then
10671 echo "$as_me:$LINENO: result: yes" >&5
10672echo "${ECHO_T}yes" >&6
10673 else
10674 echo "$as_me:$LINENO: result: no" >&5
10675echo "${ECHO_T}no" >&6
10676 fi
10677
10678
10679 enablestring=
10680 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
10681echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10682 no_cache=0
10683 # Check whether --enable-gif or --disable-gif was given.
10684if test "${enable_gif+set}" = set; then
10685 enableval="$enable_gif"
10686
10687 if test "$enableval" = yes; then
10688 ac_cv_use_gif='wxUSE_GIF=yes'
10689 else
10690 ac_cv_use_gif='wxUSE_GIF=no'
10691 fi
10692
10693else
10694
10695 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
10696 if test "x$LINE" != x ; then
10697 eval "DEFAULT_$LINE"
10698 else
10699 no_cache=1
10700 fi
10701
10702 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10703
10704fi;
10705
10706 eval "$ac_cv_use_gif"
10707 if test "$no_cache" != 1; then
10708 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
10709 fi
10710
10711 if test "$wxUSE_GIF" = yes; then
10712 echo "$as_me:$LINENO: result: yes" >&5
10713echo "${ECHO_T}yes" >&6
10714 else
10715 echo "$as_me:$LINENO: result: no" >&5
10716echo "${ECHO_T}no" >&6
10717 fi
10718
10719
10720 enablestring=
10721 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
10722echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10723 no_cache=0
10724 # Check whether --enable-pcx or --disable-pcx was given.
10725if test "${enable_pcx+set}" = set; then
10726 enableval="$enable_pcx"
10727
10728 if test "$enableval" = yes; then
10729 ac_cv_use_pcx='wxUSE_PCX=yes'
10730 else
10731 ac_cv_use_pcx='wxUSE_PCX=no'
10732 fi
10733
10734else
10735
10736 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
10737 if test "x$LINE" != x ; then
10738 eval "DEFAULT_$LINE"
10739 else
10740 no_cache=1
10741 fi
10742
10743 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10744
10745fi;
10746
10747 eval "$ac_cv_use_pcx"
10748 if test "$no_cache" != 1; then
10749 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
10750 fi
10751
10752 if test "$wxUSE_PCX" = yes; then
10753 echo "$as_me:$LINENO: result: yes" >&5
10754echo "${ECHO_T}yes" >&6
10755 else
10756 echo "$as_me:$LINENO: result: no" >&5
10757echo "${ECHO_T}no" >&6
10758 fi
10759
10760
10761 enablestring=
10762 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
10763echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
10764 no_cache=0
10765 # Check whether --enable-iff or --disable-iff was given.
10766if test "${enable_iff+set}" = set; then
10767 enableval="$enable_iff"
10768
10769 if test "$enableval" = yes; then
10770 ac_cv_use_iff='wxUSE_IFF=yes'
10771 else
10772 ac_cv_use_iff='wxUSE_IFF=no'
10773 fi
10774
10775else
10776
10777 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
10778 if test "x$LINE" != x ; then
10779 eval "DEFAULT_$LINE"
10780 else
10781 no_cache=1
10782 fi
10783
10784 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
10785
10786fi;
10787
10788 eval "$ac_cv_use_iff"
10789 if test "$no_cache" != 1; then
10790 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
10791 fi
10792
10793 if test "$wxUSE_IFF" = yes; then
10794 echo "$as_me:$LINENO: result: yes" >&5
10795echo "${ECHO_T}yes" >&6
10796 else
10797 echo "$as_me:$LINENO: result: no" >&5
10798echo "${ECHO_T}no" >&6
10799 fi
10800
10801
10802 enablestring=
10803 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
10804echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10805 no_cache=0
10806 # Check whether --enable-pnm or --disable-pnm was given.
10807if test "${enable_pnm+set}" = set; then
10808 enableval="$enable_pnm"
10809
10810 if test "$enableval" = yes; then
10811 ac_cv_use_pnm='wxUSE_PNM=yes'
10812 else
10813 ac_cv_use_pnm='wxUSE_PNM=no'
10814 fi
10815
10816else
10817
10818 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
10819 if test "x$LINE" != x ; then
10820 eval "DEFAULT_$LINE"
10821 else
10822 no_cache=1
10823 fi
10824
10825 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10826
10827fi;
10828
10829 eval "$ac_cv_use_pnm"
10830 if test "$no_cache" != 1; then
10831 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
10832 fi
10833
10834 if test "$wxUSE_PNM" = yes; then
10835 echo "$as_me:$LINENO: result: yes" >&5
10836echo "${ECHO_T}yes" >&6
10837 else
10838 echo "$as_me:$LINENO: result: no" >&5
10839echo "${ECHO_T}no" >&6
10840 fi
10841
10842
10843 enablestring=
10844 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
10845echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
10846 no_cache=0
10847 # Check whether --enable-xpm or --disable-xpm was given.
10848if test "${enable_xpm+set}" = set; then
10849 enableval="$enable_xpm"
10850
10851 if test "$enableval" = yes; then
10852 ac_cv_use_xpm='wxUSE_XPM=yes'
10853 else
10854 ac_cv_use_xpm='wxUSE_XPM=no'
10855 fi
10856
10857else
10858
10859 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
10860 if test "x$LINE" != x ; then
10861 eval "DEFAULT_$LINE"
10862 else
10863 no_cache=1
10864 fi
10865
10866 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
10867
10868fi;
10869
10870 eval "$ac_cv_use_xpm"
10871 if test "$no_cache" != 1; then
10872 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
10873 fi
10874
10875 if test "$wxUSE_XPM" = yes; then
10876 echo "$as_me:$LINENO: result: yes" >&5
10877echo "${ECHO_T}yes" >&6
10878 else
10879 echo "$as_me:$LINENO: result: no" >&5
10880echo "${ECHO_T}no" >&6
10881 fi
10882
10883
10884 enablestring=
10885 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
10886echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
10887 no_cache=0
10888 # Check whether --enable-ico_cur or --disable-ico_cur was given.
10889if test "${enable_ico_cur+set}" = set; then
10890 enableval="$enable_ico_cur"
10891
10892 if test "$enableval" = yes; then
10893 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
10894 else
10895 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
10896 fi
10897
10898else
10899
10900 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
10901 if test "x$LINE" != x ; then
10902 eval "DEFAULT_$LINE"
10903 else
10904 no_cache=1
10905 fi
10906
10907 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
10908
10909fi;
10910
10911 eval "$ac_cv_use_ico_cur"
10912 if test "$no_cache" != 1; then
10913 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
10914 fi
10915
10916 if test "$wxUSE_ICO_CUR" = yes; then
10917 echo "$as_me:$LINENO: result: yes" >&5
10918echo "${ECHO_T}yes" >&6
10919 else
10920 echo "$as_me:$LINENO: result: no" >&5
10921echo "${ECHO_T}no" >&6
10922 fi
10923
10924
10925fi
10926
10927
10928
ceec2216
RL
10929# Check whether --with-flavour or --without-flavour was given.
10930if test "${with_flavour+set}" = set; then
10931 withval="$with_flavour"
10932 WX_FLAVOUR="$withval"
10933fi;
10934
10935
10936
a848cd7e
SC
10937 enablestring=
10938 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
10939echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
10940 no_cache=0
10941 # Check whether --enable-official_build or --disable-official_build was given.
10942if test "${enable_official_build+set}" = set; then
10943 enableval="$enable_official_build"
10944
10945 if test "$enableval" = yes; then
10946 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
10947 else
10948 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
10949 fi
10950
10951else
10952
10953 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
10954 if test "x$LINE" != x ; then
10955 eval "DEFAULT_$LINE"
10956 else
10957 no_cache=1
10958 fi
10959
10960 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
10961
10962fi;
10963
10964 eval "$ac_cv_use_official_build"
10965 if test "$no_cache" != 1; then
10966 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
10967 fi
10968
10969 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
10970 echo "$as_me:$LINENO: result: yes" >&5
10971echo "${ECHO_T}yes" >&6
10972 else
10973 echo "$as_me:$LINENO: result: no" >&5
10974echo "${ECHO_T}no" >&6
10975 fi
10976
10977# Check whether --enable-vendor or --disable-vendor was given.
10978if test "${enable_vendor+set}" = set; then
10979 enableval="$enable_vendor"
10980 VENDOR="$enableval"
10981fi;
10982if test "x$VENDOR" = "x"; then
10983 VENDOR="custom"
10984fi
10985
a848cd7e
SC
10986
10987
10988
10989 echo "saving argument cache $wx_arg_cache_file"
10990 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
10991
10992
10993
10994echo "$as_me:$LINENO: checking for toolkit" >&5
10995echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
10996
10997# In Wine, we need to default to MSW, not GTK or MOTIF
10998if test "$wxUSE_WINE" = "yes"; then
10999 DEFAULT_DEFAULT_wxUSE_GTK=0
11000 DEFAULT_DEFAULT_wxUSE_MOTIF=0
11001 DEFAULT_DEFAULT_wxUSE_MSW=1
11002 wxUSE_SHARED=no
11003fi
11004
f597b41c 11005
a848cd7e
SC
11006if test "$wxUSE_GUI" = "yes"; then
11007
11008 if test "$USE_BEOS" = 1; then
11009 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
11010echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
11011 { (exit 1); exit 1; }; }
11012 fi
11013
11014 if test "$TOOLKIT_GIVEN" = 1; then
11015 for toolkit in `echo $ALL_TOOLKITS`; do
11016 var=wxUSE_$toolkit
11017 eval "value=\$${var}"
f34ca037
MW
11018 if test "x$value" = "xno"; then
11019 eval "$var=0"
11020 elif test "x$value" != "x"; then
11021 eval "$var=1"
11022 fi
11023
11024 if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
11025 eval "wx${toolkit}_VERSION=$value"
11026 fi
a848cd7e
SC
11027 done
11028 else
11029 for toolkit in `echo $ALL_TOOLKITS`; do
11030 if test "$has_toolkit_in_cache" != 1; then
11031 var=DEFAULT_DEFAULT_wxUSE_$toolkit
11032 else
11033 var=DEFAULT_wxUSE_$toolkit
f34ca037
MW
11034
11035 eval "version=\$DEFAULT_wx${toolkit}_VERSION"
11036 if test "x$version" != "x"; then
11037 eval "wx${toolkit}_VERSION=$version"
11038 fi
a848cd7e
SC
11039 fi
11040 eval "wxUSE_$toolkit=\$${var}"
11041 done
11042 fi
11043
11044 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
11045 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
11046 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
11047
11048 case "${host}" in
11049 *-pc-os2_emx | *-pc-os2-emx )
11050 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
11051 esac
11052
11053 case "$NUM_TOOLKITS" in
11054 1)
11055 ;;
11056 0)
11057 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
11058echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
11059 { (exit 1); exit 1; }; }
11060 ;;
11061 *)
11062 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
11063echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
11064 { (exit 1); exit 1; }; }
11065 esac
11066
f34ca037
MW
11067 # to be removed when --disable-gtk2 isn't needed
11068 if test "x$wxUSE_GTK2" = "xyes"; then
11069 wxGTK_VERSION=2
11070 elif test "x$wxUSE_GTK2" = "xno"; then
11071 wxGTK_VERSION=1
11072 fi
11073
a848cd7e
SC
11074 for toolkit in `echo $ALL_TOOLKITS`; do
11075 var=wxUSE_$toolkit
11076 eval "value=\$${var}"
11077 if test "x$value" != x; then
11078 cache_var=CACHE_$toolkit
11079 eval "cache=\$${cache_var}"
11080 if test "$cache" = 1; then
11081 echo "$var=$value" >> ${wx_arg_cache_file}
f34ca037
MW
11082 eval "version=\$wx${toolkit}_VERSION"
11083 if test "x$version" != "x"; then
11084 echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
11085 fi
a848cd7e
SC
11086 fi
11087 if test "$value" = 1; then
11088 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
11089 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
11090echo "${ECHO_T}$toolkit_echo" >&6
11091 fi
11092 fi
11093 done
11094else
11095 if test "x$host_alias" != "x"; then
11096 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
11097echo "${ECHO_T}base ($host_alias hosted) only" >&6
11098 else
11099 echo "$as_me:$LINENO: result: base only" >&5
11100echo "${ECHO_T}base only" >&6
11101 fi
11102fi
11103
11104wants_win32=0
11105doesnt_want_win32=0
11106case "${host}" in
11107 *-*-cygwin*)
11108 if test "$wxUSE_MSW" = 1 ; then
11109 wants_win32=1
7275146d 11110 BAKEFILE_FORCE_PLATFORM=win32
a848cd7e
SC
11111 else
11112 doesnt_want_win32=1
11113 fi
11114 ;;
11115 *-*-mingw*)
11116 wants_win32=1
11117 ;;
11118esac
11119
11120if test "$wxUSE_WINE" = "yes"; then
11121 wants_win32=1
11122 CC=winegcc
11123 CXX=wineg++
a848cd7e
SC
11124 LDFLAGS_GUI="-mwindows"
11125fi
11126
11127if test "$wants_win32" = 1 ; then
11128 USE_UNIX=0
11129 USE_WIN32=1
11130 cat >>confdefs.h <<\_ACEOF
11131#define __WIN32__ 1
11132_ACEOF
11133
11134 cat >>confdefs.h <<\_ACEOF
11135#define __WIN95__ 1
11136_ACEOF
11137
11138 cat >>confdefs.h <<\_ACEOF
11139#define __WINDOWS__ 1
11140_ACEOF
11141
11142 cat >>confdefs.h <<\_ACEOF
11143#define __GNUWIN32__ 1
11144_ACEOF
11145
11146 cat >>confdefs.h <<\_ACEOF
11147#define STRICT 1
11148_ACEOF
11149
11150 cat >>confdefs.h <<\_ACEOF
11151#define WINVER 0x0400
11152_ACEOF
11153
11154fi
11155if test "$doesnt_want_win32" = 1 ; then
11156 USE_UNIX=1
11157 USE_WIN32=0
11158fi
11159
11160if test "$USE_UNIX" = 1 ; then
11161 wxUSE_UNIX=yes
11162 cat >>confdefs.h <<\_ACEOF
11163#define __UNIX__ 1
11164_ACEOF
11165
11166fi
11167
11168
11169cat >confcache <<\_ACEOF
11170# This file is a shell script that caches the results of configure
11171# tests run on this system so they can be shared between configure
11172# scripts and configure runs, see configure's option --config-cache.
11173# It is not useful on other systems. If it contains results you don't
11174# want to keep, you may remove or edit it.
11175#
11176# config.status only pays attention to the cache file if you give it
11177# the --recheck option to rerun configure.
11178#
11179# `ac_cv_env_foo' variables (set or unset) will be overridden when
11180# loading this file, other *unset* `ac_cv_foo' will be assigned the
11181# following values.
11182
11183_ACEOF
11184
11185# The following way of writing the cache mishandles newlines in values,
11186# but we know of no workaround that is simple, portable, and efficient.
11187# So, don't put newlines in cache variables' values.
11188# Ultrix sh set writes to stderr and can't be redirected directly,
11189# and sets the high bit in the cache file unless we assign to the vars.
11190{
11191 (set) 2>&1 |
11192 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11193 *ac_space=\ *)
11194 # `set' does not quote correctly, so add quotes (double-quote
11195 # substitution turns \\\\ into \\, and sed turns \\ into \).
11196 sed -n \
ac1cb8d3
VS
11197 "s/'/'\\\\''/g;
11198 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
11199 ;;
11200 *)
11201 # `set' quotes correctly as required by POSIX, so do not add quotes.
11202 sed -n \
ac1cb8d3 11203 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
11204 ;;
11205 esac;
11206} |
11207 sed '
11208 t clear
11209 : clear
11210 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11211 t end
11212 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11213 : end' >>confcache
11214if diff $cache_file confcache >/dev/null 2>&1; then :; else
11215 if test -w $cache_file; then
11216 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11217 cat confcache >$cache_file
11218 else
11219 echo "not updating unwritable cache $cache_file"
11220 fi
11221fi
11222rm -f confcache
11223
a848cd7e 11224CFLAGS=${CFLAGS:=}
6dcfc289
DE
11225
11226
3006edc0 11227
6dcfc289 11228 ac_ext=c
a848cd7e
SC
11229ac_cpp='$CPP $CPPFLAGS'
11230ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11231ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11232ac_compiler_gnu=$ac_cv_c_compiler_gnu
11233if test -n "$ac_tool_prefix"; then
11234 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11235set dummy ${ac_tool_prefix}gcc; ac_word=$2
11236echo "$as_me:$LINENO: checking for $ac_word" >&5
11237echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11238if test "${ac_cv_prog_CC+set}" = set; then
11239 echo $ECHO_N "(cached) $ECHO_C" >&6
11240else
11241 if test -n "$CC"; then
11242 ac_cv_prog_CC="$CC" # Let the user override the test.
11243else
11244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11245for as_dir in $PATH
11246do
11247 IFS=$as_save_IFS
11248 test -z "$as_dir" && as_dir=.
11249 for ac_exec_ext in '' $ac_executable_extensions; do
11250 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11251 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11253 break 2
11254 fi
11255done
11256done
11257
11258fi
11259fi
11260CC=$ac_cv_prog_CC
11261if test -n "$CC"; then
11262 echo "$as_me:$LINENO: result: $CC" >&5
11263echo "${ECHO_T}$CC" >&6
11264else
11265 echo "$as_me:$LINENO: result: no" >&5
11266echo "${ECHO_T}no" >&6
11267fi
11268
11269fi
11270if test -z "$ac_cv_prog_CC"; then
11271 ac_ct_CC=$CC
11272 # Extract the first word of "gcc", so it can be a program name with args.
11273set dummy gcc; ac_word=$2
11274echo "$as_me:$LINENO: checking for $ac_word" >&5
11275echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11276if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11277 echo $ECHO_N "(cached) $ECHO_C" >&6
11278else
11279 if test -n "$ac_ct_CC"; then
11280 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11281else
11282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11283for as_dir in $PATH
11284do
11285 IFS=$as_save_IFS
11286 test -z "$as_dir" && as_dir=.
11287 for ac_exec_ext in '' $ac_executable_extensions; do
11288 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11289 ac_cv_prog_ac_ct_CC="gcc"
11290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11291 break 2
11292 fi
11293done
11294done
11295
11296fi
11297fi
11298ac_ct_CC=$ac_cv_prog_ac_ct_CC
11299if test -n "$ac_ct_CC"; then
11300 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11301echo "${ECHO_T}$ac_ct_CC" >&6
11302else
11303 echo "$as_me:$LINENO: result: no" >&5
11304echo "${ECHO_T}no" >&6
11305fi
11306
11307 CC=$ac_ct_CC
11308else
11309 CC="$ac_cv_prog_CC"
11310fi
11311
11312if test -z "$CC"; then
11313 if test -n "$ac_tool_prefix"; then
11314 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11315set dummy ${ac_tool_prefix}cc; ac_word=$2
11316echo "$as_me:$LINENO: checking for $ac_word" >&5
11317echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11318if test "${ac_cv_prog_CC+set}" = set; then
11319 echo $ECHO_N "(cached) $ECHO_C" >&6
11320else
11321 if test -n "$CC"; then
11322 ac_cv_prog_CC="$CC" # Let the user override the test.
11323else
11324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11325for as_dir in $PATH
11326do
11327 IFS=$as_save_IFS
11328 test -z "$as_dir" && as_dir=.
11329 for ac_exec_ext in '' $ac_executable_extensions; do
11330 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11331 ac_cv_prog_CC="${ac_tool_prefix}cc"
11332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11333 break 2
11334 fi
11335done
11336done
11337
11338fi
11339fi
11340CC=$ac_cv_prog_CC
11341if test -n "$CC"; then
11342 echo "$as_me:$LINENO: result: $CC" >&5
11343echo "${ECHO_T}$CC" >&6
11344else
11345 echo "$as_me:$LINENO: result: no" >&5
11346echo "${ECHO_T}no" >&6
11347fi
11348
11349fi
11350if test -z "$ac_cv_prog_CC"; then
11351 ac_ct_CC=$CC
11352 # Extract the first word of "cc", so it can be a program name with args.
11353set dummy cc; ac_word=$2
11354echo "$as_me:$LINENO: checking for $ac_word" >&5
11355echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11356if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11357 echo $ECHO_N "(cached) $ECHO_C" >&6
11358else
11359 if test -n "$ac_ct_CC"; then
11360 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11361else
11362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11363for as_dir in $PATH
11364do
11365 IFS=$as_save_IFS
11366 test -z "$as_dir" && as_dir=.
11367 for ac_exec_ext in '' $ac_executable_extensions; do
11368 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11369 ac_cv_prog_ac_ct_CC="cc"
11370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11371 break 2
11372 fi
11373done
11374done
11375
11376fi
11377fi
11378ac_ct_CC=$ac_cv_prog_ac_ct_CC
11379if test -n "$ac_ct_CC"; then
11380 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11381echo "${ECHO_T}$ac_ct_CC" >&6
11382else
11383 echo "$as_me:$LINENO: result: no" >&5
11384echo "${ECHO_T}no" >&6
11385fi
11386
11387 CC=$ac_ct_CC
11388else
11389 CC="$ac_cv_prog_CC"
11390fi
11391
11392fi
11393if test -z "$CC"; then
11394 # Extract the first word of "cc", so it can be a program name with args.
11395set dummy cc; ac_word=$2
11396echo "$as_me:$LINENO: checking for $ac_word" >&5
11397echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11398if test "${ac_cv_prog_CC+set}" = set; then
11399 echo $ECHO_N "(cached) $ECHO_C" >&6
11400else
11401 if test -n "$CC"; then
11402 ac_cv_prog_CC="$CC" # Let the user override the test.
11403else
11404 ac_prog_rejected=no
11405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11406for as_dir in $PATH
11407do
11408 IFS=$as_save_IFS
11409 test -z "$as_dir" && as_dir=.
11410 for ac_exec_ext in '' $ac_executable_extensions; do
11411 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11412 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11413 ac_prog_rejected=yes
11414 continue
11415 fi
11416 ac_cv_prog_CC="cc"
11417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11418 break 2
11419 fi
11420done
11421done
11422
11423if test $ac_prog_rejected = yes; then
11424 # We found a bogon in the path, so make sure we never use it.
11425 set dummy $ac_cv_prog_CC
11426 shift
11427 if test $# != 0; then
11428 # We chose a different compiler from the bogus one.
11429 # However, it has the same basename, so the bogon will be chosen
11430 # first if we set CC to just the basename; use the full file name.
11431 shift
11432 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11433 fi
11434fi
11435fi
11436fi
11437CC=$ac_cv_prog_CC
11438if test -n "$CC"; then
11439 echo "$as_me:$LINENO: result: $CC" >&5
11440echo "${ECHO_T}$CC" >&6
11441else
11442 echo "$as_me:$LINENO: result: no" >&5
11443echo "${ECHO_T}no" >&6
11444fi
11445
11446fi
11447if test -z "$CC"; then
11448 if test -n "$ac_tool_prefix"; then
11449 for ac_prog in cl
11450 do
11451 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11452set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11453echo "$as_me:$LINENO: checking for $ac_word" >&5
11454echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11455if test "${ac_cv_prog_CC+set}" = set; then
11456 echo $ECHO_N "(cached) $ECHO_C" >&6
11457else
11458 if test -n "$CC"; then
11459 ac_cv_prog_CC="$CC" # Let the user override the test.
11460else
11461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11462for as_dir in $PATH
11463do
11464 IFS=$as_save_IFS
11465 test -z "$as_dir" && as_dir=.
11466 for ac_exec_ext in '' $ac_executable_extensions; do
11467 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11468 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11470 break 2
11471 fi
11472done
11473done
11474
11475fi
11476fi
11477CC=$ac_cv_prog_CC
11478if test -n "$CC"; then
11479 echo "$as_me:$LINENO: result: $CC" >&5
11480echo "${ECHO_T}$CC" >&6
11481else
11482 echo "$as_me:$LINENO: result: no" >&5
11483echo "${ECHO_T}no" >&6
11484fi
11485
11486 test -n "$CC" && break
11487 done
11488fi
11489if test -z "$CC"; then
11490 ac_ct_CC=$CC
11491 for ac_prog in cl
11492do
11493 # Extract the first word of "$ac_prog", so it can be a program name with args.
11494set dummy $ac_prog; ac_word=$2
11495echo "$as_me:$LINENO: checking for $ac_word" >&5
11496echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11497if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11498 echo $ECHO_N "(cached) $ECHO_C" >&6
11499else
11500 if test -n "$ac_ct_CC"; then
11501 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11502else
11503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11504for as_dir in $PATH
11505do
11506 IFS=$as_save_IFS
11507 test -z "$as_dir" && as_dir=.
11508 for ac_exec_ext in '' $ac_executable_extensions; do
11509 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11510 ac_cv_prog_ac_ct_CC="$ac_prog"
11511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11512 break 2
11513 fi
11514done
11515done
11516
11517fi
11518fi
11519ac_ct_CC=$ac_cv_prog_ac_ct_CC
11520if test -n "$ac_ct_CC"; then
11521 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11522echo "${ECHO_T}$ac_ct_CC" >&6
11523else
11524 echo "$as_me:$LINENO: result: no" >&5
11525echo "${ECHO_T}no" >&6
11526fi
11527
11528 test -n "$ac_ct_CC" && break
11529done
11530
11531 CC=$ac_ct_CC
11532fi
11533
11534fi
11535
11536
11537test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11538See \`config.log' for more details." >&5
11539echo "$as_me: error: no acceptable C compiler found in \$PATH
11540See \`config.log' for more details." >&2;}
11541 { (exit 1); exit 1; }; }
11542
11543# Provide some information about the compiler.
11544echo "$as_me:$LINENO:" \
11545 "checking for C compiler version" >&5
11546ac_compiler=`set X $ac_compile; echo $2`
11547{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11548 (eval $ac_compiler --version </dev/null >&5) 2>&5
11549 ac_status=$?
11550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551 (exit $ac_status); }
11552{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11553 (eval $ac_compiler -v </dev/null >&5) 2>&5
11554 ac_status=$?
11555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556 (exit $ac_status); }
11557{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11558 (eval $ac_compiler -V </dev/null >&5) 2>&5
11559 ac_status=$?
11560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561 (exit $ac_status); }
11562
11563cat >conftest.$ac_ext <<_ACEOF
11564/* confdefs.h. */
11565_ACEOF
11566cat confdefs.h >>conftest.$ac_ext
11567cat >>conftest.$ac_ext <<_ACEOF
11568/* end confdefs.h. */
11569
11570int
11571main ()
11572{
11573
11574 ;
11575 return 0;
11576}
11577_ACEOF
11578ac_clean_files_save=$ac_clean_files
11579ac_clean_files="$ac_clean_files a.out a.exe b.out"
11580# Try to create an executable without -o first, disregard a.out.
11581# It will help us diagnose broken compilers, and finding out an intuition
11582# of exeext.
ac1cb8d3
VS
11583echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
11584echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
11585ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
11586if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
11587 (eval $ac_link_default) 2>&5
11588 ac_status=$?
11589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11590 (exit $ac_status); }; then
11591 # Find the output, starting from the most likely. This scheme is
11592# not robust to junk in `.', hence go to wildcards (a.*) only as a last
11593# resort.
11594
11595# Be careful to initialize this variable, since it used to be cached.
11596# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
11597ac_cv_exeext=
11598# b.out is created by i960 compilers.
11599for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
11600do
11601 test -f "$ac_file" || continue
11602 case $ac_file in
11603 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 11604 ;;
a848cd7e 11605 conftest.$ac_ext )
ac1cb8d3
VS
11606 # This is the source file.
11607 ;;
a848cd7e 11608 [ab].out )
ac1cb8d3
VS
11609 # We found the default executable, but exeext='' is most
11610 # certainly right.
11611 break;;
a848cd7e 11612 *.* )
ac1cb8d3
VS
11613 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
11614 # FIXME: I believe we export ac_cv_exeext for Libtool,
11615 # but it would be cool to find out if it's true. Does anybody
11616 # maintain Libtool? --akim.
11617 export ac_cv_exeext
11618 break;;
a848cd7e 11619 * )
ac1cb8d3 11620 break;;
a848cd7e
SC
11621 esac
11622done
11623else
11624 echo "$as_me: failed program was:" >&5
11625sed 's/^/| /' conftest.$ac_ext >&5
11626
11627{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
11628See \`config.log' for more details." >&5
11629echo "$as_me: error: C compiler cannot create executables
11630See \`config.log' for more details." >&2;}
11631 { (exit 77); exit 77; }; }
11632fi
11633
11634ac_exeext=$ac_cv_exeext
11635echo "$as_me:$LINENO: result: $ac_file" >&5
11636echo "${ECHO_T}$ac_file" >&6
11637
11638# Check the compiler produces executables we can run. If not, either
11639# the compiler is broken, or we cross compile.
11640echo "$as_me:$LINENO: checking whether the C compiler works" >&5
11641echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
11642# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
11643# If not cross compiling, check that we can run a simple program.
11644if test "$cross_compiling" != yes; then
11645 if { ac_try='./$ac_file'
11646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11647 (eval $ac_try) 2>&5
11648 ac_status=$?
11649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11650 (exit $ac_status); }; }; then
11651 cross_compiling=no
11652 else
11653 if test "$cross_compiling" = maybe; then
11654 cross_compiling=yes
11655 else
11656 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
11657If you meant to cross compile, use \`--host'.
11658See \`config.log' for more details." >&5
11659echo "$as_me: error: cannot run C compiled programs.
11660If you meant to cross compile, use \`--host'.
11661See \`config.log' for more details." >&2;}
11662 { (exit 1); exit 1; }; }
11663 fi
11664 fi
11665fi
11666echo "$as_me:$LINENO: result: yes" >&5
11667echo "${ECHO_T}yes" >&6
11668
11669rm -f a.out a.exe conftest$ac_cv_exeext b.out
11670ac_clean_files=$ac_clean_files_save
11671# Check the compiler produces executables we can run. If not, either
11672# the compiler is broken, or we cross compile.
11673echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
11674echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
11675echo "$as_me:$LINENO: result: $cross_compiling" >&5
11676echo "${ECHO_T}$cross_compiling" >&6
11677
11678echo "$as_me:$LINENO: checking for suffix of executables" >&5
11679echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
11680if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11681 (eval $ac_link) 2>&5
11682 ac_status=$?
11683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11684 (exit $ac_status); }; then
11685 # If both `conftest.exe' and `conftest' are `present' (well, observable)
11686# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
11687# work properly (i.e., refer to `conftest.exe'), while it won't with
11688# `rm'.
11689for ac_file in conftest.exe conftest conftest.*; do
11690 test -f "$ac_file" || continue
11691 case $ac_file in
11692 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
11693 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
11694 export ac_cv_exeext
11695 break;;
a848cd7e
SC
11696 * ) break;;
11697 esac
11698done
11699else
11700 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
11701See \`config.log' for more details." >&5
11702echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
11703See \`config.log' for more details." >&2;}
11704 { (exit 1); exit 1; }; }
11705fi
11706
11707rm -f conftest$ac_cv_exeext
11708echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
11709echo "${ECHO_T}$ac_cv_exeext" >&6
11710
11711rm -f conftest.$ac_ext
11712EXEEXT=$ac_cv_exeext
11713ac_exeext=$EXEEXT
11714echo "$as_me:$LINENO: checking for suffix of object files" >&5
11715echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
11716if test "${ac_cv_objext+set}" = set; then
11717 echo $ECHO_N "(cached) $ECHO_C" >&6
11718else
11719 cat >conftest.$ac_ext <<_ACEOF
11720/* confdefs.h. */
11721_ACEOF
11722cat confdefs.h >>conftest.$ac_ext
11723cat >>conftest.$ac_ext <<_ACEOF
11724/* end confdefs.h. */
11725
11726int
11727main ()
11728{
11729
11730 ;
11731 return 0;
11732}
11733_ACEOF
11734rm -f conftest.o conftest.obj
11735if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11736 (eval $ac_compile) 2>&5
11737 ac_status=$?
11738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739 (exit $ac_status); }; then
11740 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
11741 case $ac_file in
11742 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
11743 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
11744 break;;
11745 esac
11746done
11747else
11748 echo "$as_me: failed program was:" >&5
11749sed 's/^/| /' conftest.$ac_ext >&5
11750
11751{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
11752See \`config.log' for more details." >&5
11753echo "$as_me: error: cannot compute suffix of object files: cannot compile
11754See \`config.log' for more details." >&2;}
11755 { (exit 1); exit 1; }; }
11756fi
11757
11758rm -f conftest.$ac_cv_objext conftest.$ac_ext
11759fi
11760echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
11761echo "${ECHO_T}$ac_cv_objext" >&6
11762OBJEXT=$ac_cv_objext
11763ac_objext=$OBJEXT
11764echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11765echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
11766if test "${ac_cv_c_compiler_gnu+set}" = set; then
11767 echo $ECHO_N "(cached) $ECHO_C" >&6
11768else
11769 cat >conftest.$ac_ext <<_ACEOF
11770/* confdefs.h. */
11771_ACEOF
11772cat confdefs.h >>conftest.$ac_ext
11773cat >>conftest.$ac_ext <<_ACEOF
11774/* end confdefs.h. */
11775
11776int
11777main ()
11778{
11779#ifndef __GNUC__
11780 choke me
11781#endif
11782
11783 ;
11784 return 0;
11785}
11786_ACEOF
11787rm -f conftest.$ac_objext
11788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11789 (eval $ac_compile) 2>conftest.er1
a848cd7e 11790 ac_status=$?
ac1cb8d3
VS
11791 grep -v '^ *+' conftest.er1 >conftest.err
11792 rm -f conftest.er1
11793 cat conftest.err >&5
a848cd7e
SC
11794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); } &&
5d7b7554 11796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11798 (eval $ac_try) 2>&5
11799 ac_status=$?
11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801 (exit $ac_status); }; } &&
11802 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11804 (eval $ac_try) 2>&5
11805 ac_status=$?
11806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807 (exit $ac_status); }; }; then
11808 ac_compiler_gnu=yes
11809else
11810 echo "$as_me: failed program was:" >&5
11811sed 's/^/| /' conftest.$ac_ext >&5
11812
11813ac_compiler_gnu=no
11814fi
ac1cb8d3 11815rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11816ac_cv_c_compiler_gnu=$ac_compiler_gnu
11817
11818fi
11819echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11820echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
11821GCC=`test $ac_compiler_gnu = yes && echo yes`
11822ac_test_CFLAGS=${CFLAGS+set}
11823ac_save_CFLAGS=$CFLAGS
8aeeb05c 11824CFLAGS="-g"
a848cd7e
SC
11825echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11826echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11827if test "${ac_cv_prog_cc_g+set}" = set; then
11828 echo $ECHO_N "(cached) $ECHO_C" >&6
11829else
11830 cat >conftest.$ac_ext <<_ACEOF
11831/* confdefs.h. */
11832_ACEOF
11833cat confdefs.h >>conftest.$ac_ext
11834cat >>conftest.$ac_ext <<_ACEOF
11835/* end confdefs.h. */
11836
11837int
11838main ()
11839{
11840
11841 ;
11842 return 0;
11843}
11844_ACEOF
11845rm -f conftest.$ac_objext
11846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11847 (eval $ac_compile) 2>conftest.er1
a848cd7e 11848 ac_status=$?
ac1cb8d3
VS
11849 grep -v '^ *+' conftest.er1 >conftest.err
11850 rm -f conftest.er1
11851 cat conftest.err >&5
a848cd7e
SC
11852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853 (exit $ac_status); } &&
5d7b7554 11854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11856 (eval $ac_try) 2>&5
11857 ac_status=$?
11858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859 (exit $ac_status); }; } &&
11860 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11862 (eval $ac_try) 2>&5
11863 ac_status=$?
11864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11865 (exit $ac_status); }; }; then
11866 ac_cv_prog_cc_g=yes
11867else
11868 echo "$as_me: failed program was:" >&5
11869sed 's/^/| /' conftest.$ac_ext >&5
11870
11871ac_cv_prog_cc_g=no
11872fi
ac1cb8d3 11873rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11874fi
11875echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11876echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11877if test "$ac_test_CFLAGS" = set; then
11878 CFLAGS=$ac_save_CFLAGS
11879elif test $ac_cv_prog_cc_g = yes; then
11880 if test "$GCC" = yes; then
11881 CFLAGS="-g -O2"
11882 else
11883 CFLAGS="-g"
11884 fi
11885else
11886 if test "$GCC" = yes; then
11887 CFLAGS="-O2"
11888 else
11889 CFLAGS=
11890 fi
11891fi
11892echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11893echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11894if test "${ac_cv_prog_cc_stdc+set}" = set; then
11895 echo $ECHO_N "(cached) $ECHO_C" >&6
11896else
11897 ac_cv_prog_cc_stdc=no
11898ac_save_CC=$CC
11899cat >conftest.$ac_ext <<_ACEOF
11900/* confdefs.h. */
11901_ACEOF
11902cat confdefs.h >>conftest.$ac_ext
11903cat >>conftest.$ac_ext <<_ACEOF
11904/* end confdefs.h. */
11905#include <stdarg.h>
11906#include <stdio.h>
11907#include <sys/types.h>
11908#include <sys/stat.h>
11909/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11910struct buf { int x; };
11911FILE * (*rcsopen) (struct buf *, struct stat *, int);
11912static char *e (p, i)
11913 char **p;
11914 int i;
11915{
11916 return p[i];
11917}
11918static char *f (char * (*g) (char **, int), char **p, ...)
11919{
11920 char *s;
11921 va_list v;
11922 va_start (v,p);
11923 s = g (p, va_arg (v,int));
11924 va_end (v);
11925 return s;
11926}
ac1cb8d3
VS
11927
11928/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11929 function prototypes and stuff, but not '\xHH' hex character constants.
11930 These don't provoke an error unfortunately, instead are silently treated
11931 as 'x'. The following induces an error, until -std1 is added to get
11932 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11933 array size at least. It's necessary to write '\x00'==0 to get something
11934 that's true only with -std1. */
11935int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11936
a848cd7e
SC
11937int test (int i, double x);
11938struct s1 {int (*f) (int a);};
11939struct s2 {int (*f) (double a);};
11940int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11941int argc;
11942char **argv;
11943int
11944main ()
11945{
11946return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11947 ;
11948 return 0;
11949}
11950_ACEOF
11951# Don't try gcc -ansi; that turns off useful extensions and
11952# breaks some systems' header files.
11953# AIX -qlanglvl=ansi
11954# Ultrix and OSF/1 -std1
11955# HP-UX 10.20 and later -Ae
11956# HP-UX older versions -Aa -D_HPUX_SOURCE
11957# SVR4 -Xc -D__EXTENSIONS__
11958for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11959do
11960 CC="$ac_save_CC $ac_arg"
11961 rm -f conftest.$ac_objext
11962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11963 (eval $ac_compile) 2>conftest.er1
a848cd7e 11964 ac_status=$?
ac1cb8d3
VS
11965 grep -v '^ *+' conftest.er1 >conftest.err
11966 rm -f conftest.er1
11967 cat conftest.err >&5
a848cd7e
SC
11968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11969 (exit $ac_status); } &&
5d7b7554 11970 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11972 (eval $ac_try) 2>&5
11973 ac_status=$?
11974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975 (exit $ac_status); }; } &&
11976 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11978 (eval $ac_try) 2>&5
11979 ac_status=$?
11980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11981 (exit $ac_status); }; }; then
11982 ac_cv_prog_cc_stdc=$ac_arg
11983break
11984else
11985 echo "$as_me: failed program was:" >&5
11986sed 's/^/| /' conftest.$ac_ext >&5
11987
11988fi
ac1cb8d3 11989rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
11990done
11991rm -f conftest.$ac_ext conftest.$ac_objext
11992CC=$ac_save_CC
11993
11994fi
11995
11996case "x$ac_cv_prog_cc_stdc" in
11997 x|xno)
11998 echo "$as_me:$LINENO: result: none needed" >&5
11999echo "${ECHO_T}none needed" >&6 ;;
12000 *)
12001 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12002echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12003 CC="$CC $ac_cv_prog_cc_stdc" ;;
12004esac
12005
12006# Some people use a C++ compiler to compile C. Since we use `exit',
12007# in C++ we need to declare it. In case someone uses the same compiler
12008# for both compiling C and C++ we need to have the C++ compiler decide
12009# the declaration of exit, since it's the most demanding environment.
12010cat >conftest.$ac_ext <<_ACEOF
12011#ifndef __cplusplus
12012 choke me
12013#endif
12014_ACEOF
12015rm -f conftest.$ac_objext
12016if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12017 (eval $ac_compile) 2>conftest.er1
a848cd7e 12018 ac_status=$?
ac1cb8d3
VS
12019 grep -v '^ *+' conftest.er1 >conftest.err
12020 rm -f conftest.er1
12021 cat conftest.err >&5
a848cd7e
SC
12022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12023 (exit $ac_status); } &&
5d7b7554 12024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12026 (eval $ac_try) 2>&5
12027 ac_status=$?
12028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029 (exit $ac_status); }; } &&
12030 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12032 (eval $ac_try) 2>&5
12033 ac_status=$?
12034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035 (exit $ac_status); }; }; then
12036 for ac_declaration in \
ac1cb8d3 12037 '' \
a848cd7e
SC
12038 'extern "C" void std::exit (int) throw (); using std::exit;' \
12039 'extern "C" void std::exit (int); using std::exit;' \
12040 'extern "C" void exit (int) throw ();' \
12041 'extern "C" void exit (int);' \
12042 'void exit (int);'
12043do
12044 cat >conftest.$ac_ext <<_ACEOF
12045/* confdefs.h. */
12046_ACEOF
12047cat confdefs.h >>conftest.$ac_ext
12048cat >>conftest.$ac_ext <<_ACEOF
12049/* end confdefs.h. */
de59c161 12050$ac_declaration
ac1cb8d3 12051#include <stdlib.h>
a848cd7e
SC
12052int
12053main ()
12054{
12055exit (42);
12056 ;
12057 return 0;
12058}
12059_ACEOF
12060rm -f conftest.$ac_objext
12061if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12062 (eval $ac_compile) 2>conftest.er1
a848cd7e 12063 ac_status=$?
ac1cb8d3
VS
12064 grep -v '^ *+' conftest.er1 >conftest.err
12065 rm -f conftest.er1
12066 cat conftest.err >&5
a848cd7e
SC
12067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12068 (exit $ac_status); } &&
5d7b7554 12069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12071 (eval $ac_try) 2>&5
12072 ac_status=$?
12073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12074 (exit $ac_status); }; } &&
12075 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12077 (eval $ac_try) 2>&5
12078 ac_status=$?
12079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12080 (exit $ac_status); }; }; then
12081 :
12082else
12083 echo "$as_me: failed program was:" >&5
12084sed 's/^/| /' conftest.$ac_ext >&5
12085
12086continue
12087fi
ac1cb8d3 12088rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12089 cat >conftest.$ac_ext <<_ACEOF
12090/* confdefs.h. */
12091_ACEOF
12092cat confdefs.h >>conftest.$ac_ext
12093cat >>conftest.$ac_ext <<_ACEOF
12094/* end confdefs.h. */
12095$ac_declaration
12096int
12097main ()
12098{
12099exit (42);
12100 ;
12101 return 0;
12102}
12103_ACEOF
12104rm -f conftest.$ac_objext
12105if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12106 (eval $ac_compile) 2>conftest.er1
a848cd7e 12107 ac_status=$?
ac1cb8d3
VS
12108 grep -v '^ *+' conftest.er1 >conftest.err
12109 rm -f conftest.er1
12110 cat conftest.err >&5
a848cd7e
SC
12111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12112 (exit $ac_status); } &&
5d7b7554 12113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12115 (eval $ac_try) 2>&5
12116 ac_status=$?
12117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118 (exit $ac_status); }; } &&
12119 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12121 (eval $ac_try) 2>&5
12122 ac_status=$?
12123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124 (exit $ac_status); }; }; then
12125 break
12126else
12127 echo "$as_me: failed program was:" >&5
12128sed 's/^/| /' conftest.$ac_ext >&5
12129
12130fi
ac1cb8d3 12131rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12132done
12133rm -f conftest*
12134if test -n "$ac_declaration"; then
12135 echo '#ifdef __cplusplus' >>confdefs.h
12136 echo $ac_declaration >>confdefs.h
12137 echo '#endif' >>confdefs.h
12138fi
12139
12140else
12141 echo "$as_me: failed program was:" >&5
12142sed 's/^/| /' conftest.$ac_ext >&5
12143
12144fi
ac1cb8d3 12145rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12146ac_ext=c
12147ac_cpp='$CPP $CPPFLAGS'
12148ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12149ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12150ac_compiler_gnu=$ac_cv_c_compiler_gnu
12151
ab0ad5f1
VZ
12152
12153
12154 ac_ext=c
12155ac_cpp='$CPP $CPPFLAGS'
12156ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12157ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12158ac_compiler_gnu=$ac_cv_c_compiler_gnu
12159
12160 echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
12161echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6
12162if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
12163 echo $ECHO_N "(cached) $ECHO_C" >&6
12164else
12165 cat >conftest.$ac_ext <<_ACEOF
12166/* confdefs.h. */
12167_ACEOF
12168cat confdefs.h >>conftest.$ac_ext
12169cat >>conftest.$ac_ext <<_ACEOF
12170/* end confdefs.h. */
12171
12172int
12173main ()
12174{
12175
12176 #ifndef __INTEL_COMPILER
12177 choke me
12178 #endif
12179
12180 ;
12181 return 0;
12182}
12183_ACEOF
12184rm -f conftest.$ac_objext
12185if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12186 (eval $ac_compile) 2>conftest.er1
12187 ac_status=$?
12188 grep -v '^ *+' conftest.er1 >conftest.err
12189 rm -f conftest.er1
12190 cat conftest.err >&5
12191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12192 (exit $ac_status); } &&
5d7b7554 12193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab0ad5f1
VZ
12194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12195 (eval $ac_try) 2>&5
12196 ac_status=$?
12197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198 (exit $ac_status); }; } &&
12199 { ac_try='test -s conftest.$ac_objext'
12200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12201 (eval $ac_try) 2>&5
12202 ac_status=$?
12203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204 (exit $ac_status); }; }; then
12205 bakefile_cv_c_compiler___INTEL_COMPILER=yes
12206else
12207 echo "$as_me: failed program was:" >&5
12208sed 's/^/| /' conftest.$ac_ext >&5
12209
12210bakefile_cv_c_compiler___INTEL_COMPILER=no
12211
12212fi
12213rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12214
12215
12216fi
12217echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
12218echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6
12219 ac_ext=c
12220ac_cpp='$CPP $CPPFLAGS'
12221ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12222ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12223ac_compiler_gnu=$ac_cv_c_compiler_gnu
12224
12225 if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
12226 :; INTELCC=yes
12227 else
12228 :;
12229 fi
12230
12231
12232 if test "x$GCC" != "xyes"; then
3006edc0
VZ
12233 if test "xCC" = "xC"; then
12234 echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
480ccd21 12235echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
0093c2fc 12236if test "${bakefile_cv_c_exto+set}" = set; then
480ccd21
DE
12237 echo $ECHO_N "(cached) $ECHO_C" >&6
12238else
12239 cat >conftest.$ac_ext <<_ACEOF
12240/* confdefs.h. */
12241_ACEOF
12242cat confdefs.h >>conftest.$ac_ext
12243cat >>conftest.$ac_ext <<_ACEOF
12244/* end confdefs.h. */
12245
12246int
12247main ()
12248{
12249
12250 ;
12251 return 0;
12252}
12253_ACEOF
12254rm -f conftest.$ac_objext conftest.$ac_ext.o
12255if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12256 (eval $ac_compile) 2>&5
12257 ac_status=$?
12258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259 (exit $ac_status); }; then
12260 for ac_file in `(ls conftest.* 2>/dev/null)`; do
12261 case $ac_file in
12262 conftest.$ac_ext.o)
0093c2fc 12263 bakefile_cv_c_exto="-ext o"
480ccd21
DE
12264 ;;
12265 *)
12266 ;;
12267 esac
12268done
12269else
12270 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
12271See \`config.log' for more details." >&5
12272echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
12273See \`config.log' for more details." >&2;}
12274 { (exit 1); exit 1; }; }
12275
12276fi
12277
12278rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
12279
12280fi
0093c2fc
VZ
12281echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
12282echo "${ECHO_T}$bakefile_cv_c_exto" >&6
12283if test "x$bakefile_cv_c_exto" '!=' "x"; then
480ccd21 12284 if test "c" = "c"; then
0093c2fc 12285 CFLAGS="$bakefile_cv_c_exto $CFLAGS"
480ccd21
DE
12286 fi
12287 if test "c" = "cxx"; then
0093c2fc 12288 CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
480ccd21
DE
12289 fi
12290fi
12291
0093c2fc 12292 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
12293 unset ac_cv_prog_cc_g
12294 ac_test_CFLAGS=${CFLAGS+set}
480ccd21 12295ac_save_CFLAGS=$CFLAGS
8aeeb05c 12296CFLAGS="-g"
480ccd21
DE
12297echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12298echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12299if test "${ac_cv_prog_cc_g+set}" = set; then
12300 echo $ECHO_N "(cached) $ECHO_C" >&6
12301else
12302 cat >conftest.$ac_ext <<_ACEOF
12303/* confdefs.h. */
12304_ACEOF
12305cat confdefs.h >>conftest.$ac_ext
12306cat >>conftest.$ac_ext <<_ACEOF
12307/* end confdefs.h. */
12308
12309int
12310main ()
12311{
12312
12313 ;
12314 return 0;
12315}
12316_ACEOF
12317rm -f conftest.$ac_objext
12318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12319 (eval $ac_compile) 2>conftest.er1
12320 ac_status=$?
12321 grep -v '^ *+' conftest.er1 >conftest.err
12322 rm -f conftest.er1
12323 cat conftest.err >&5
12324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325 (exit $ac_status); } &&
5d7b7554 12326 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
480ccd21
DE
12327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12328 (eval $ac_try) 2>&5
12329 ac_status=$?
12330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331 (exit $ac_status); }; } &&
12332 { ac_try='test -s conftest.$ac_objext'
12333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12334 (eval $ac_try) 2>&5
12335 ac_status=$?
12336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337 (exit $ac_status); }; }; then
12338 ac_cv_prog_cc_g=yes
12339else
12340 echo "$as_me: failed program was:" >&5
12341sed 's/^/| /' conftest.$ac_ext >&5
12342
12343ac_cv_prog_cc_g=no
12344fi
12345rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12346fi
12347echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12348echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12349if test "$ac_test_CFLAGS" = set; then
12350 CFLAGS=$ac_save_CFLAGS
12351elif test $ac_cv_prog_cc_g = yes; then
12352 if test "$GCC" = yes; then
12353 CFLAGS="-g -O2"
12354 else
12355 CFLAGS="-g"
12356 fi
12357else
12358 if test "$GCC" = yes; then
12359 CFLAGS="-O2"
12360 else
12361 CFLAGS=
12362 fi
12363fi
3006edc0 12364 fi
ab0ad5f1 12365 fi
3006edc0
VZ
12366
12367 case `uname -s` in
12368 AIX*)
12369 ac_ext=c
12370ac_cpp='$CPP $CPPFLAGS'
12371ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12372ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12373ac_compiler_gnu=$ac_cv_c_compiler_gnu
12374
12375echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
12376echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
0093c2fc 12377if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
3006edc0
VZ
12378 echo $ECHO_N "(cached) $ECHO_C" >&6
12379else
12380 cat >conftest.$ac_ext <<_ACEOF
12381/* confdefs.h. */
12382_ACEOF
12383cat confdefs.h >>conftest.$ac_ext
12384cat >>conftest.$ac_ext <<_ACEOF
12385/* end confdefs.h. */
12386
12387int
12388main ()
12389{
12390#ifndef __xlC__
12391 choke me
12392#endif
12393
12394 ;
12395 return 0;
12396}
12397_ACEOF
12398rm -f conftest.$ac_objext
12399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12400 (eval $ac_compile) 2>conftest.er1
12401 ac_status=$?
12402 grep -v '^ *+' conftest.er1 >conftest.err
12403 rm -f conftest.er1
12404 cat conftest.err >&5
12405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406 (exit $ac_status); } &&
5d7b7554 12407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
12408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12409 (eval $ac_try) 2>&5
12410 ac_status=$?
12411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12412 (exit $ac_status); }; } &&
12413 { ac_try='test -s conftest.$ac_objext'
12414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12415 (eval $ac_try) 2>&5
12416 ac_status=$?
12417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418 (exit $ac_status); }; }; then
0093c2fc 12419 bakefile_compiler_xlc=yes
3006edc0
VZ
12420else
12421 echo "$as_me: failed program was:" >&5
12422sed 's/^/| /' conftest.$ac_ext >&5
12423
0093c2fc 12424bakefile_compiler_xlc=no
3006edc0
VZ
12425fi
12426rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 12427 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
12428
12429fi
0093c2fc
VZ
12430echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
12431echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
3006edc0 12432
0093c2fc 12433XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
3006edc0
VZ
12434ac_ext=c
12435ac_cpp='$CPP $CPPFLAGS'
12436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12438ac_compiler_gnu=$ac_cv_c_compiler_gnu
12439
12440
12441 ;;
12442
12443 Darwin)
12444 ac_ext=c
95986553
DE
12445ac_cpp='$CPP $CPPFLAGS'
12446ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12447ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12448ac_compiler_gnu=$ac_cv_c_compiler_gnu
12449
12450echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
12451echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
12452if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
12453 echo $ECHO_N "(cached) $ECHO_C" >&6
12454else
12455 cat >conftest.$ac_ext <<_ACEOF
12456/* confdefs.h. */
12457_ACEOF
12458cat confdefs.h >>conftest.$ac_ext
12459cat >>conftest.$ac_ext <<_ACEOF
12460/* end confdefs.h. */
12461
12462int
12463main ()
12464{
12465#ifndef __MWERKS__
12466 choke me
12467#endif
12468
12469 ;
12470 return 0;
12471}
12472_ACEOF
12473rm -f conftest.$ac_objext
12474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12475 (eval $ac_compile) 2>conftest.er1
12476 ac_status=$?
12477 grep -v '^ *+' conftest.er1 >conftest.err
12478 rm -f conftest.er1
12479 cat conftest.err >&5
12480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481 (exit $ac_status); } &&
5d7b7554 12482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
95986553
DE
12483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12484 (eval $ac_try) 2>&5
12485 ac_status=$?
12486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487 (exit $ac_status); }; } &&
12488 { ac_try='test -s conftest.$ac_objext'
12489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12490 (eval $ac_try) 2>&5
12491 ac_status=$?
12492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12493 (exit $ac_status); }; }; then
12494 bakefile_compiler_mwerks=yes
12495else
12496 echo "$as_me: failed program was:" >&5
12497sed 's/^/| /' conftest.$ac_ext >&5
12498
12499bakefile_compiler_mwerks=no
12500fi
12501rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12502 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
12503
12504fi
12505echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
12506echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
12507
0e6fa1d9 12508MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
95986553
DE
12509ac_ext=c
12510ac_cpp='$CPP $CPPFLAGS'
12511ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12512ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12513ac_compiler_gnu=$ac_cv_c_compiler_gnu
12514
12515
3006edc0 12516 ac_ext=c
9273ffba
DE
12517ac_cpp='$CPP $CPPFLAGS'
12518ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12519ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12520ac_compiler_gnu=$ac_cv_c_compiler_gnu
12521
12522echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
12523echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
0093c2fc 12524if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
9273ffba
DE
12525 echo $ECHO_N "(cached) $ECHO_C" >&6
12526else
12527 cat >conftest.$ac_ext <<_ACEOF
12528/* confdefs.h. */
12529_ACEOF
12530cat confdefs.h >>conftest.$ac_ext
12531cat >>conftest.$ac_ext <<_ACEOF
12532/* end confdefs.h. */
12533
12534int
12535main ()
12536{
12537#ifndef __xlC__
12538 choke me
12539#endif
12540
12541 ;
12542 return 0;
12543}
12544_ACEOF
12545rm -f conftest.$ac_objext
12546if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12547 (eval $ac_compile) 2>conftest.er1
12548 ac_status=$?
12549 grep -v '^ *+' conftest.er1 >conftest.err
12550 rm -f conftest.er1
12551 cat conftest.err >&5
12552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12553 (exit $ac_status); } &&
5d7b7554 12554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9273ffba
DE
12555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12556 (eval $ac_try) 2>&5
12557 ac_status=$?
12558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12559 (exit $ac_status); }; } &&
12560 { ac_try='test -s conftest.$ac_objext'
12561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12562 (eval $ac_try) 2>&5
12563 ac_status=$?
12564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565 (exit $ac_status); }; }; then
0093c2fc 12566 bakefile_compiler_xlc=yes
9273ffba
DE
12567else
12568 echo "$as_me: failed program was:" >&5
12569sed 's/^/| /' conftest.$ac_ext >&5
12570
0093c2fc 12571bakefile_compiler_xlc=no
9273ffba
DE
12572fi
12573rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 12574 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
12575
12576fi
0093c2fc
VZ
12577echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
12578echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
9273ffba 12579
0093c2fc 12580XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
9273ffba
DE
12581ac_ext=c
12582ac_cpp='$CPP $CPPFLAGS'
12583ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12584ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12585ac_compiler_gnu=$ac_cv_c_compiler_gnu
12586
12587
3006edc0
VZ
12588 ;;
12589
12590 IRIX*)
a848cd7e 12591
6dcfc289 12592
0ad5d837
VZ
12593 ac_ext=c
12594ac_cpp='$CPP $CPPFLAGS'
12595ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12596ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12597ac_compiler_gnu=$ac_cv_c_compiler_gnu
12598
12599 echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
12600echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6
12601if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
12602 echo $ECHO_N "(cached) $ECHO_C" >&6
12603else
12604 cat >conftest.$ac_ext <<_ACEOF
12605/* confdefs.h. */
12606_ACEOF
12607cat confdefs.h >>conftest.$ac_ext
12608cat >>conftest.$ac_ext <<_ACEOF
12609/* end confdefs.h. */
12610
12611int
12612main ()
12613{
12614
12615 #ifndef _SGI_COMPILER_VERSION
12616 choke me
12617 #endif
12618
12619 ;
12620 return 0;
12621}
12622_ACEOF
12623rm -f conftest.$ac_objext
12624if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12625 (eval $ac_compile) 2>conftest.er1
12626 ac_status=$?
12627 grep -v '^ *+' conftest.er1 >conftest.err
12628 rm -f conftest.er1
12629 cat conftest.err >&5
12630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631 (exit $ac_status); } &&
5d7b7554 12632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
12633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12634 (eval $ac_try) 2>&5
12635 ac_status=$?
12636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637 (exit $ac_status); }; } &&
12638 { ac_try='test -s conftest.$ac_objext'
12639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12640 (eval $ac_try) 2>&5
12641 ac_status=$?
12642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643 (exit $ac_status); }; }; then
12644 bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
12645else
12646 echo "$as_me: failed program was:" >&5
12647sed 's/^/| /' conftest.$ac_ext >&5
12648
12649bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
12650
12651fi
12652rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12653
12654
12655fi
12656echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
12657echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6
12658 ac_ext=c
12659ac_cpp='$CPP $CPPFLAGS'
12660ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12661ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12662ac_compiler_gnu=$ac_cv_c_compiler_gnu
12663
12664 if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
12665 :; SGICC=yes
12666 else
12667 :;
12668 fi
12669
12670
3006edc0
VZ
12671 ;;
12672
0093c2fc 12673 HP-UX*)
3006edc0
VZ
12674
12675
12676 ac_ext=c
12677ac_cpp='$CPP $CPPFLAGS'
12678ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12679ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12680ac_compiler_gnu=$ac_cv_c_compiler_gnu
12681
0093c2fc
VZ
12682 echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
12683echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6
12684if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
3006edc0
VZ
12685 echo $ECHO_N "(cached) $ECHO_C" >&6
12686else
12687 cat >conftest.$ac_ext <<_ACEOF
12688/* confdefs.h. */
12689_ACEOF
12690cat confdefs.h >>conftest.$ac_ext
12691cat >>conftest.$ac_ext <<_ACEOF
12692/* end confdefs.h. */
12693
12694int
12695main ()
12696{
12697
0093c2fc 12698 #ifndef __HP_cc
3006edc0
VZ
12699 choke me
12700 #endif
12701
12702 ;
12703 return 0;
12704}
12705_ACEOF
12706rm -f conftest.$ac_objext
12707if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12708 (eval $ac_compile) 2>conftest.er1
12709 ac_status=$?
12710 grep -v '^ *+' conftest.er1 >conftest.err
12711 rm -f conftest.er1
12712 cat conftest.err >&5
12713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12714 (exit $ac_status); } &&
5d7b7554 12715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
12716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12717 (eval $ac_try) 2>&5
12718 ac_status=$?
12719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720 (exit $ac_status); }; } &&
12721 { ac_try='test -s conftest.$ac_objext'
12722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12723 (eval $ac_try) 2>&5
12724 ac_status=$?
12725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12726 (exit $ac_status); }; }; then
0093c2fc 12727 bakefile_cv_c_compiler___HP_cc=yes
3006edc0
VZ
12728else
12729 echo "$as_me: failed program was:" >&5
12730sed 's/^/| /' conftest.$ac_ext >&5
12731
0093c2fc 12732bakefile_cv_c_compiler___HP_cc=no
3006edc0
VZ
12733
12734fi
12735rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12736
12737
12738fi
0093c2fc
VZ
12739echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
12740echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6
3006edc0
VZ
12741 ac_ext=c
12742ac_cpp='$CPP $CPPFLAGS'
12743ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12744ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12745ac_compiler_gnu=$ac_cv_c_compiler_gnu
12746
0093c2fc
VZ
12747 if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
12748 :; HPCC=yes
a1aa0349
VZ
12749 else
12750 :;
12751 fi
12752
12753
12754 ;;
12755
0093c2fc 12756 OSF1)
a1aa0349
VZ
12757
12758
12759 ac_ext=c
12760ac_cpp='$CPP $CPPFLAGS'
12761ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12762ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12763ac_compiler_gnu=$ac_cv_c_compiler_gnu
12764
0093c2fc
VZ
12765 echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
12766echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6
12767if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
a1aa0349
VZ
12768 echo $ECHO_N "(cached) $ECHO_C" >&6
12769else
12770 cat >conftest.$ac_ext <<_ACEOF
12771/* confdefs.h. */
12772_ACEOF
12773cat confdefs.h >>conftest.$ac_ext
12774cat >>conftest.$ac_ext <<_ACEOF
12775/* end confdefs.h. */
12776
12777int
12778main ()
12779{
12780
0093c2fc 12781 #ifndef __DECC
a1aa0349
VZ
12782 choke me
12783 #endif
12784
12785 ;
12786 return 0;
12787}
12788_ACEOF
12789rm -f conftest.$ac_objext
12790if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12791 (eval $ac_compile) 2>conftest.er1
12792 ac_status=$?
12793 grep -v '^ *+' conftest.er1 >conftest.err
12794 rm -f conftest.er1
12795 cat conftest.err >&5
12796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797 (exit $ac_status); } &&
5d7b7554 12798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a1aa0349
VZ
12799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12800 (eval $ac_try) 2>&5
12801 ac_status=$?
12802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12803 (exit $ac_status); }; } &&
12804 { ac_try='test -s conftest.$ac_objext'
12805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12806 (eval $ac_try) 2>&5
12807 ac_status=$?
12808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12809 (exit $ac_status); }; }; then
0093c2fc 12810 bakefile_cv_c_compiler___DECC=yes
a1aa0349
VZ
12811else
12812 echo "$as_me: failed program was:" >&5
12813sed 's/^/| /' conftest.$ac_ext >&5
12814
0093c2fc 12815bakefile_cv_c_compiler___DECC=no
a1aa0349
VZ
12816
12817fi
12818rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12819
12820
12821fi
0093c2fc
VZ
12822echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
12823echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6
a1aa0349
VZ
12824 ac_ext=c
12825ac_cpp='$CPP $CPPFLAGS'
12826ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12827ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12828ac_compiler_gnu=$ac_cv_c_compiler_gnu
12829
0093c2fc
VZ
12830 if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
12831 :; COMPAQCC=yes
12832 else
12833 :;
12834 fi
12835
12836
12837 ;;
12838
12839 SunOS)
12840
12841
12842 ac_ext=c
12843ac_cpp='$CPP $CPPFLAGS'
12844ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12845ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12846ac_compiler_gnu=$ac_cv_c_compiler_gnu
12847
12848 echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
12849echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6
12850if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
12851 echo $ECHO_N "(cached) $ECHO_C" >&6
12852else
12853 cat >conftest.$ac_ext <<_ACEOF
12854/* confdefs.h. */
12855_ACEOF
12856cat confdefs.h >>conftest.$ac_ext
12857cat >>conftest.$ac_ext <<_ACEOF
12858/* end confdefs.h. */
12859
12860int
12861main ()
12862{
12863
12864 #ifndef __SUNPRO_C
12865 choke me
12866 #endif
12867
12868 ;
12869 return 0;
12870}
12871_ACEOF
12872rm -f conftest.$ac_objext
12873if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12874 (eval $ac_compile) 2>conftest.er1
12875 ac_status=$?
12876 grep -v '^ *+' conftest.er1 >conftest.err
12877 rm -f conftest.er1
12878 cat conftest.err >&5
12879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880 (exit $ac_status); } &&
5d7b7554 12881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
0093c2fc
VZ
12882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12883 (eval $ac_try) 2>&5
12884 ac_status=$?
12885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12886 (exit $ac_status); }; } &&
12887 { ac_try='test -s conftest.$ac_objext'
12888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12889 (eval $ac_try) 2>&5
12890 ac_status=$?
12891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12892 (exit $ac_status); }; }; then
12893 bakefile_cv_c_compiler___SUNPRO_C=yes
12894else
12895 echo "$as_me: failed program was:" >&5
12896sed 's/^/| /' conftest.$ac_ext >&5
12897
12898bakefile_cv_c_compiler___SUNPRO_C=no
12899
12900fi
12901rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12902
12903
12904fi
12905echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
12906echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6
12907 ac_ext=c
12908ac_cpp='$CPP $CPPFLAGS'
12909ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12910ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12911ac_compiler_gnu=$ac_cv_c_compiler_gnu
12912
12913 if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
12914 :; SUNCC=yes
3006edc0
VZ
12915 else
12916 :;
12917 fi
12918
12919
12920 ;;
12921 esac
ab0ad5f1 12922 fi
a9e5b1f0
MW
12923
12924
3006edc0 12925
a848cd7e
SC
12926ac_ext=c
12927ac_cpp='$CPP $CPPFLAGS'
12928ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12929ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12930ac_compiler_gnu=$ac_cv_c_compiler_gnu
12931echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
12932echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
12933# On Suns, sometimes $CPP names a directory.
12934if test -n "$CPP" && test -d "$CPP"; then
12935 CPP=
12936fi
12937if test -z "$CPP"; then
12938 if test "${ac_cv_prog_CPP+set}" = set; then
12939 echo $ECHO_N "(cached) $ECHO_C" >&6
12940else
12941 # Double quotes because CPP needs to be expanded
12942 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12943 do
12944 ac_preproc_ok=false
12945for ac_c_preproc_warn_flag in '' yes
12946do
12947 # Use a header file that comes with gcc, so configuring glibc
12948 # with a fresh cross-compiler works.
12949 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12950 # <limits.h> exists even on freestanding compilers.
12951 # On the NeXT, cc -E runs the code through the compiler's parser,
12952 # not just through cpp. "Syntax error" is here to catch this case.
12953 cat >conftest.$ac_ext <<_ACEOF
12954/* confdefs.h. */
12955_ACEOF
12956cat confdefs.h >>conftest.$ac_ext
12957cat >>conftest.$ac_ext <<_ACEOF
12958/* end confdefs.h. */
12959#ifdef __STDC__
12960# include <limits.h>
12961#else
12962# include <assert.h>
12963#endif
ac1cb8d3 12964 Syntax error
a848cd7e
SC
12965_ACEOF
12966if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12967 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12968 ac_status=$?
12969 grep -v '^ *+' conftest.er1 >conftest.err
12970 rm -f conftest.er1
12971 cat conftest.err >&5
12972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12973 (exit $ac_status); } >/dev/null; then
12974 if test -s conftest.err; then
12975 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12976 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12977 else
12978 ac_cpp_err=
12979 fi
12980else
12981 ac_cpp_err=yes
12982fi
12983if test -z "$ac_cpp_err"; then
12984 :
12985else
12986 echo "$as_me: failed program was:" >&5
12987sed 's/^/| /' conftest.$ac_ext >&5
12988
12989 # Broken: fails on valid input.
12990continue
12991fi
12992rm -f conftest.err conftest.$ac_ext
12993
12994 # OK, works on sane cases. Now check whether non-existent headers
12995 # can be detected and how.
12996 cat >conftest.$ac_ext <<_ACEOF
12997/* confdefs.h. */
12998_ACEOF
12999cat confdefs.h >>conftest.$ac_ext
13000cat >>conftest.$ac_ext <<_ACEOF
13001/* end confdefs.h. */
13002#include <ac_nonexistent.h>
13003_ACEOF
13004if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13005 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13006 ac_status=$?
13007 grep -v '^ *+' conftest.er1 >conftest.err
13008 rm -f conftest.er1
13009 cat conftest.err >&5
13010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13011 (exit $ac_status); } >/dev/null; then
13012 if test -s conftest.err; then
13013 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13014 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13015 else
13016 ac_cpp_err=
13017 fi
13018else
13019 ac_cpp_err=yes
13020fi
13021if test -z "$ac_cpp_err"; then
13022 # Broken: success on invalid input.
13023continue
13024else
13025 echo "$as_me: failed program was:" >&5
13026sed 's/^/| /' conftest.$ac_ext >&5
13027
13028 # Passes both tests.
13029ac_preproc_ok=:
13030break
13031fi
13032rm -f conftest.err conftest.$ac_ext
13033
13034done
13035# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13036rm -f conftest.err conftest.$ac_ext
13037if $ac_preproc_ok; then
13038 break
13039fi
13040
13041 done
13042 ac_cv_prog_CPP=$CPP
13043
13044fi
13045 CPP=$ac_cv_prog_CPP
13046else
13047 ac_cv_prog_CPP=$CPP
13048fi
13049echo "$as_me:$LINENO: result: $CPP" >&5
13050echo "${ECHO_T}$CPP" >&6
13051ac_preproc_ok=false
13052for ac_c_preproc_warn_flag in '' yes
13053do
13054 # Use a header file that comes with gcc, so configuring glibc
13055 # with a fresh cross-compiler works.
13056 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13057 # <limits.h> exists even on freestanding compilers.
13058 # On the NeXT, cc -E runs the code through the compiler's parser,
13059 # not just through cpp. "Syntax error" is here to catch this case.
13060 cat >conftest.$ac_ext <<_ACEOF
13061/* confdefs.h. */
13062_ACEOF
13063cat confdefs.h >>conftest.$ac_ext
13064cat >>conftest.$ac_ext <<_ACEOF
13065/* end confdefs.h. */
13066#ifdef __STDC__
13067# include <limits.h>
13068#else
13069# include <assert.h>
13070#endif
ac1cb8d3 13071 Syntax error
a848cd7e
SC
13072_ACEOF
13073if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13074 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13075 ac_status=$?
13076 grep -v '^ *+' conftest.er1 >conftest.err
13077 rm -f conftest.er1
13078 cat conftest.err >&5
13079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13080 (exit $ac_status); } >/dev/null; then
13081 if test -s conftest.err; then
13082 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13083 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13084 else
13085 ac_cpp_err=
13086 fi
13087else
13088 ac_cpp_err=yes
13089fi
13090if test -z "$ac_cpp_err"; then
13091 :
13092else
13093 echo "$as_me: failed program was:" >&5
13094sed 's/^/| /' conftest.$ac_ext >&5
13095
13096 # Broken: fails on valid input.
13097continue
13098fi
13099rm -f conftest.err conftest.$ac_ext
13100
13101 # OK, works on sane cases. Now check whether non-existent headers
13102 # can be detected and how.
13103 cat >conftest.$ac_ext <<_ACEOF
13104/* confdefs.h. */
13105_ACEOF
13106cat confdefs.h >>conftest.$ac_ext
13107cat >>conftest.$ac_ext <<_ACEOF
13108/* end confdefs.h. */
13109#include <ac_nonexistent.h>
13110_ACEOF
13111if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13112 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13113 ac_status=$?
13114 grep -v '^ *+' conftest.er1 >conftest.err
13115 rm -f conftest.er1
13116 cat conftest.err >&5
13117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118 (exit $ac_status); } >/dev/null; then
13119 if test -s conftest.err; then
13120 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13121 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13122 else
13123 ac_cpp_err=
13124 fi
13125else
13126 ac_cpp_err=yes
13127fi
13128if test -z "$ac_cpp_err"; then
13129 # Broken: success on invalid input.
13130continue
13131else
13132 echo "$as_me: failed program was:" >&5
13133sed 's/^/| /' conftest.$ac_ext >&5
13134
13135 # Passes both tests.
13136ac_preproc_ok=:
13137break
13138fi
13139rm -f conftest.err conftest.$ac_ext
13140
13141done
13142# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13143rm -f conftest.err conftest.$ac_ext
13144if $ac_preproc_ok; then
13145 :
13146else
13147 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
13148See \`config.log' for more details." >&5
13149echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
13150See \`config.log' for more details." >&2;}
13151 { (exit 1); exit 1; }; }
13152fi
13153
13154ac_ext=c
13155ac_cpp='$CPP $CPPFLAGS'
13156ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13157ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13158ac_compiler_gnu=$ac_cv_c_compiler_gnu
13159
13160
13161echo "$as_me:$LINENO: checking for egrep" >&5
13162echo $ECHO_N "checking for egrep... $ECHO_C" >&6
13163if test "${ac_cv_prog_egrep+set}" = set; then
13164 echo $ECHO_N "(cached) $ECHO_C" >&6
13165else
13166 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
13167 then ac_cv_prog_egrep='grep -E'
13168 else ac_cv_prog_egrep='egrep'
13169 fi
13170fi
13171echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
13172echo "${ECHO_T}$ac_cv_prog_egrep" >&6
13173 EGREP=$ac_cv_prog_egrep
13174
13175
13176if test $ac_cv_c_compiler_gnu = yes; then
13177 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
13178echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
13179if test "${ac_cv_prog_gcc_traditional+set}" = set; then
13180 echo $ECHO_N "(cached) $ECHO_C" >&6
13181else
13182 ac_pattern="Autoconf.*'x'"
13183 cat >conftest.$ac_ext <<_ACEOF
13184/* confdefs.h. */
13185_ACEOF
13186cat confdefs.h >>conftest.$ac_ext
13187cat >>conftest.$ac_ext <<_ACEOF
13188/* end confdefs.h. */
13189#include <sgtty.h>
13190Autoconf TIOCGETP
13191_ACEOF
13192if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13193 $EGREP "$ac_pattern" >/dev/null 2>&1; then
13194 ac_cv_prog_gcc_traditional=yes
13195else
13196 ac_cv_prog_gcc_traditional=no
13197fi
13198rm -f conftest*
13199
13200
13201 if test $ac_cv_prog_gcc_traditional = no; then
13202 cat >conftest.$ac_ext <<_ACEOF
13203/* confdefs.h. */
13204_ACEOF
13205cat confdefs.h >>conftest.$ac_ext
13206cat >>conftest.$ac_ext <<_ACEOF
13207/* end confdefs.h. */
13208#include <termio.h>
13209Autoconf TCGETA
13210_ACEOF
13211if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13212 $EGREP "$ac_pattern" >/dev/null 2>&1; then
13213 ac_cv_prog_gcc_traditional=yes
13214fi
13215rm -f conftest*
13216
13217 fi
13218fi
13219echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
13220echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
13221 if test $ac_cv_prog_gcc_traditional = yes; then
13222 CC="$CC -traditional"
13223 fi
13224fi
13225
13226
a848cd7e
SC
13227ac_ext=cc
13228ac_cpp='$CXXCPP $CPPFLAGS'
13229ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13230ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13231ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13232
13233
13234CXXFLAGS=${CXXFLAGS:=}
6dcfc289
DE
13235
13236
3006edc0 13237
6dcfc289 13238 ac_ext=cc
a848cd7e
SC
13239ac_cpp='$CXXCPP $CPPFLAGS'
13240ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13241ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13242ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13243if test -n "$ac_tool_prefix"; then
13244 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13245 do
13246 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13247set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13248echo "$as_me:$LINENO: checking for $ac_word" >&5
13249echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13250if test "${ac_cv_prog_CXX+set}" = set; then
13251 echo $ECHO_N "(cached) $ECHO_C" >&6
13252else
13253 if test -n "$CXX"; then
13254 ac_cv_prog_CXX="$CXX" # Let the user override the test.
13255else
13256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13257for as_dir in $PATH
13258do
13259 IFS=$as_save_IFS
13260 test -z "$as_dir" && as_dir=.
13261 for ac_exec_ext in '' $ac_executable_extensions; do
13262 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13263 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13265 break 2
13266 fi
13267done
13268done
13269
13270fi
13271fi
13272CXX=$ac_cv_prog_CXX
13273if test -n "$CXX"; then
13274 echo "$as_me:$LINENO: result: $CXX" >&5
13275echo "${ECHO_T}$CXX" >&6
13276else
13277 echo "$as_me:$LINENO: result: no" >&5
13278echo "${ECHO_T}no" >&6
13279fi
13280
13281 test -n "$CXX" && break
13282 done
13283fi
13284if test -z "$CXX"; then
13285 ac_ct_CXX=$CXX
13286 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13287do
13288 # Extract the first word of "$ac_prog", so it can be a program name with args.
13289set dummy $ac_prog; ac_word=$2
13290echo "$as_me:$LINENO: checking for $ac_word" >&5
13291echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13292if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
13293 echo $ECHO_N "(cached) $ECHO_C" >&6
13294else
13295 if test -n "$ac_ct_CXX"; then
13296 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13297else
13298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13299for as_dir in $PATH
13300do
13301 IFS=$as_save_IFS
13302 test -z "$as_dir" && as_dir=.
13303 for ac_exec_ext in '' $ac_executable_extensions; do
13304 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13305 ac_cv_prog_ac_ct_CXX="$ac_prog"
13306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13307 break 2
13308 fi
13309done
13310done
13311
13312fi
13313fi
13314ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13315if test -n "$ac_ct_CXX"; then
13316 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
13317echo "${ECHO_T}$ac_ct_CXX" >&6
13318else
13319 echo "$as_me:$LINENO: result: no" >&5
13320echo "${ECHO_T}no" >&6
13321fi
13322
13323 test -n "$ac_ct_CXX" && break
13324done
13325test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
13326
13327 CXX=$ac_ct_CXX
13328fi
13329
13330
13331# Provide some information about the compiler.
13332echo "$as_me:$LINENO:" \
13333 "checking for C++ compiler version" >&5
13334ac_compiler=`set X $ac_compile; echo $2`
13335{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
13336 (eval $ac_compiler --version </dev/null >&5) 2>&5
13337 ac_status=$?
13338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13339 (exit $ac_status); }
13340{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
13341 (eval $ac_compiler -v </dev/null >&5) 2>&5
13342 ac_status=$?
13343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13344 (exit $ac_status); }
13345{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
13346 (eval $ac_compiler -V </dev/null >&5) 2>&5
13347 ac_status=$?
13348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13349 (exit $ac_status); }
13350
13351echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
13352echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
13353if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
13354 echo $ECHO_N "(cached) $ECHO_C" >&6
13355else
13356 cat >conftest.$ac_ext <<_ACEOF
13357/* confdefs.h. */
13358_ACEOF
13359cat confdefs.h >>conftest.$ac_ext
13360cat >>conftest.$ac_ext <<_ACEOF
13361/* end confdefs.h. */
13362
13363int
13364main ()
13365{
13366#ifndef __GNUC__
13367 choke me
13368#endif
13369
13370 ;
13371 return 0;
13372}
13373_ACEOF
13374rm -f conftest.$ac_objext
13375if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13376 (eval $ac_compile) 2>conftest.er1
a848cd7e 13377 ac_status=$?
ac1cb8d3
VS
13378 grep -v '^ *+' conftest.er1 >conftest.err
13379 rm -f conftest.er1
13380 cat conftest.err >&5
a848cd7e
SC
13381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382 (exit $ac_status); } &&
5d7b7554 13383 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13385 (eval $ac_try) 2>&5
13386 ac_status=$?
13387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13388 (exit $ac_status); }; } &&
13389 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13391 (eval $ac_try) 2>&5
13392 ac_status=$?
13393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13394 (exit $ac_status); }; }; then
13395 ac_compiler_gnu=yes
13396else
13397 echo "$as_me: failed program was:" >&5
13398sed 's/^/| /' conftest.$ac_ext >&5
13399
13400ac_compiler_gnu=no
13401fi
ac1cb8d3 13402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13403ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13404
13405fi
13406echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
13407echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
13408GXX=`test $ac_compiler_gnu = yes && echo yes`
13409ac_test_CXXFLAGS=${CXXFLAGS+set}
13410ac_save_CXXFLAGS=$CXXFLAGS
13411CXXFLAGS="-g"
13412echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
13413echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
13414if test "${ac_cv_prog_cxx_g+set}" = set; then
13415 echo $ECHO_N "(cached) $ECHO_C" >&6
13416else
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
13424int
13425main ()
13426{
13427
13428 ;
13429 return 0;
13430}
13431_ACEOF
13432rm -f conftest.$ac_objext
13433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13434 (eval $ac_compile) 2>conftest.er1
a848cd7e 13435 ac_status=$?
ac1cb8d3
VS
13436 grep -v '^ *+' conftest.er1 >conftest.err
13437 rm -f conftest.er1
13438 cat conftest.err >&5
a848cd7e
SC
13439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13440 (exit $ac_status); } &&
5d7b7554 13441 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13443 (eval $ac_try) 2>&5
13444 ac_status=$?
13445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446 (exit $ac_status); }; } &&
13447 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13449 (eval $ac_try) 2>&5
13450 ac_status=$?
13451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13452 (exit $ac_status); }; }; then
13453 ac_cv_prog_cxx_g=yes
13454else
13455 echo "$as_me: failed program was:" >&5
13456sed 's/^/| /' conftest.$ac_ext >&5
13457
13458ac_cv_prog_cxx_g=no
13459fi
ac1cb8d3 13460rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13461fi
13462echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
13463echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
13464if test "$ac_test_CXXFLAGS" = set; then
13465 CXXFLAGS=$ac_save_CXXFLAGS
13466elif test $ac_cv_prog_cxx_g = yes; then
13467 if test "$GXX" = yes; then
8aeeb05c 13468 CXXFLAGS="-g -O2"
a848cd7e 13469 else
8aeeb05c 13470 CXXFLAGS="-g"
a848cd7e
SC
13471 fi
13472else
13473 if test "$GXX" = yes; then
13474 CXXFLAGS="-O2"
13475 else
13476 CXXFLAGS=
13477 fi
13478fi
13479for ac_declaration in \
ac1cb8d3 13480 '' \
a848cd7e
SC
13481 'extern "C" void std::exit (int) throw (); using std::exit;' \
13482 'extern "C" void std::exit (int); using std::exit;' \
13483 'extern "C" void exit (int) throw ();' \
13484 'extern "C" void exit (int);' \
13485 'void exit (int);'
13486do
13487 cat >conftest.$ac_ext <<_ACEOF
13488/* confdefs.h. */
13489_ACEOF
13490cat confdefs.h >>conftest.$ac_ext
13491cat >>conftest.$ac_ext <<_ACEOF
13492/* end confdefs.h. */
de59c161 13493$ac_declaration
ac1cb8d3 13494#include <stdlib.h>
a848cd7e
SC
13495int
13496main ()
13497{
13498exit (42);
13499 ;
13500 return 0;
13501}
13502_ACEOF
13503rm -f conftest.$ac_objext
13504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13505 (eval $ac_compile) 2>conftest.er1
a848cd7e 13506 ac_status=$?
ac1cb8d3
VS
13507 grep -v '^ *+' conftest.er1 >conftest.err
13508 rm -f conftest.er1
13509 cat conftest.err >&5
a848cd7e
SC
13510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13511 (exit $ac_status); } &&
5d7b7554 13512 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13514 (eval $ac_try) 2>&5
13515 ac_status=$?
13516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517 (exit $ac_status); }; } &&
13518 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13520 (eval $ac_try) 2>&5
13521 ac_status=$?
13522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13523 (exit $ac_status); }; }; then
13524 :
13525else
13526 echo "$as_me: failed program was:" >&5
13527sed 's/^/| /' conftest.$ac_ext >&5
13528
13529continue
13530fi
ac1cb8d3 13531rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13532 cat >conftest.$ac_ext <<_ACEOF
13533/* confdefs.h. */
13534_ACEOF
13535cat confdefs.h >>conftest.$ac_ext
13536cat >>conftest.$ac_ext <<_ACEOF
13537/* end confdefs.h. */
13538$ac_declaration
13539int
13540main ()
13541{
13542exit (42);
13543 ;
13544 return 0;
13545}
13546_ACEOF
13547rm -f conftest.$ac_objext
13548if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13549 (eval $ac_compile) 2>conftest.er1
a848cd7e 13550 ac_status=$?
ac1cb8d3
VS
13551 grep -v '^ *+' conftest.er1 >conftest.err
13552 rm -f conftest.er1
13553 cat conftest.err >&5
a848cd7e
SC
13554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13555 (exit $ac_status); } &&
5d7b7554 13556 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13558 (eval $ac_try) 2>&5
13559 ac_status=$?
13560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13561 (exit $ac_status); }; } &&
13562 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13564 (eval $ac_try) 2>&5
13565 ac_status=$?
13566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13567 (exit $ac_status); }; }; then
13568 break
13569else
13570 echo "$as_me: failed program was:" >&5
13571sed 's/^/| /' conftest.$ac_ext >&5
13572
13573fi
ac1cb8d3 13574rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13575done
13576rm -f conftest*
13577if test -n "$ac_declaration"; then
13578 echo '#ifdef __cplusplus' >>confdefs.h
13579 echo $ac_declaration >>confdefs.h
13580 echo '#endif' >>confdefs.h
13581fi
13582
13583ac_ext=cc
13584ac_cpp='$CXXCPP $CPPFLAGS'
13585ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13586ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13587ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13588
ab0ad5f1
VZ
13589
13590
13591 ac_ext=cc
13592ac_cpp='$CXXCPP $CPPFLAGS'
13593ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13594ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13595ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13596
13597 echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
13598echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6
13599if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
13600 echo $ECHO_N "(cached) $ECHO_C" >&6
13601else
13602 cat >conftest.$ac_ext <<_ACEOF
13603/* confdefs.h. */
13604_ACEOF
13605cat confdefs.h >>conftest.$ac_ext
13606cat >>conftest.$ac_ext <<_ACEOF
13607/* end confdefs.h. */
13608
13609int
13610main ()
13611{
13612
13613 #ifndef __INTEL_COMPILER
13614 choke me
13615 #endif
13616
13617 ;
13618 return 0;
13619}
13620_ACEOF
13621rm -f conftest.$ac_objext
13622if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13623 (eval $ac_compile) 2>conftest.er1
13624 ac_status=$?
13625 grep -v '^ *+' conftest.er1 >conftest.err
13626 rm -f conftest.er1
13627 cat conftest.err >&5
13628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629 (exit $ac_status); } &&
5d7b7554 13630 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ab0ad5f1
VZ
13631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13632 (eval $ac_try) 2>&5
13633 ac_status=$?
13634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13635 (exit $ac_status); }; } &&
13636 { ac_try='test -s conftest.$ac_objext'
13637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13638 (eval $ac_try) 2>&5
13639 ac_status=$?
13640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13641 (exit $ac_status); }; }; then
13642 bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
13643else
13644 echo "$as_me: failed program was:" >&5
13645sed 's/^/| /' conftest.$ac_ext >&5
13646
13647bakefile_cv_cxx_compiler___INTEL_COMPILER=no
13648
13649fi
13650rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13651
13652
13653fi
13654echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
13655echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6
13656 ac_ext=cc
13657ac_cpp='$CXXCPP $CPPFLAGS'
13658ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13659ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13660ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13661
13662 if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
13663 :; INTELCXX=yes
13664 else
13665 :;
13666 fi
13667
13668
3006edc0
VZ
13669 if test "x$GCXX" != "xyes"; then
13670 if test "xCXX" = "xC"; then
13671 echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
480ccd21 13672echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
0093c2fc 13673if test "${bakefile_cv_cxx_exto+set}" = set; then
480ccd21
DE
13674 echo $ECHO_N "(cached) $ECHO_C" >&6
13675else
13676 cat >conftest.$ac_ext <<_ACEOF
13677/* confdefs.h. */
13678_ACEOF
13679cat confdefs.h >>conftest.$ac_ext
13680cat >>conftest.$ac_ext <<_ACEOF
13681/* end confdefs.h. */
13682
13683int
13684main ()
13685{
13686
13687 ;
13688 return 0;
13689}
13690_ACEOF
13691rm -f conftest.$ac_objext conftest.$ac_ext.o
13692if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13693 (eval $ac_compile) 2>&5
13694 ac_status=$?
13695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13696 (exit $ac_status); }; then
13697 for ac_file in `(ls conftest.* 2>/dev/null)`; do
13698 case $ac_file in
13699 conftest.$ac_ext.o)
0093c2fc 13700 bakefile_cv_cxx_exto="-ext o"
480ccd21
DE
13701 ;;
13702 *)
13703 ;;
13704 esac
13705done
13706else
13707 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
13708See \`config.log' for more details." >&5
13709echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
13710See \`config.log' for more details." >&2;}
13711 { (exit 1); exit 1; }; }
13712
13713fi
13714
13715rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
13716
13717fi
0093c2fc
VZ
13718echo "$as_me:$LINENO: result: $bakefile_cv_cxx_exto" >&5
13719echo "${ECHO_T}$bakefile_cv_cxx_exto" >&6
13720if test "x$bakefile_cv_cxx_exto" '!=' "x"; then
480ccd21 13721 if test "cxx" = "c"; then
0093c2fc 13722 CFLAGS="$bakefile_cv_cxx_exto $CFLAGS"
480ccd21
DE
13723 fi
13724 if test "cxx" = "cxx"; then
0093c2fc 13725 CXXFLAGS="$bakefile_cv_cxx_exto $CXXFLAGS"
480ccd21
DE
13726 fi
13727fi
13728
0093c2fc 13729 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
13730 unset ac_cv_prog_cc_g
13731 ac_test_CFLAGS=${CFLAGS+set}
13732ac_save_CFLAGS=$CFLAGS
8aeeb05c 13733CFLAGS="-g"
3006edc0
VZ
13734echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
13735echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
13736if test "${ac_cv_prog_cc_g+set}" = set; then
480ccd21
DE
13737 echo $ECHO_N "(cached) $ECHO_C" >&6
13738else
13739 cat >conftest.$ac_ext <<_ACEOF
13740/* confdefs.h. */
13741_ACEOF
13742cat confdefs.h >>conftest.$ac_ext
13743cat >>conftest.$ac_ext <<_ACEOF
13744/* end confdefs.h. */
13745
13746int
13747main ()
13748{
13749
13750 ;
13751 return 0;
13752}
13753_ACEOF
13754rm -f conftest.$ac_objext
13755if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13756 (eval $ac_compile) 2>conftest.er1
13757 ac_status=$?
13758 grep -v '^ *+' conftest.er1 >conftest.err
13759 rm -f conftest.er1
13760 cat conftest.err >&5
13761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13762 (exit $ac_status); } &&
5d7b7554 13763 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
480ccd21
DE
13764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13765 (eval $ac_try) 2>&5
13766 ac_status=$?
13767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768 (exit $ac_status); }; } &&
13769 { ac_try='test -s conftest.$ac_objext'
13770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13771 (eval $ac_try) 2>&5
13772 ac_status=$?
13773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13774 (exit $ac_status); }; }; then
3006edc0 13775 ac_cv_prog_cc_g=yes
480ccd21
DE
13776else
13777 echo "$as_me: failed program was:" >&5
13778sed 's/^/| /' conftest.$ac_ext >&5
13779
3006edc0 13780ac_cv_prog_cc_g=no
480ccd21
DE
13781fi
13782rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13783fi
3006edc0
VZ
13784echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
13785echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
13786if test "$ac_test_CFLAGS" = set; then
13787 CFLAGS=$ac_save_CFLAGS
13788elif test $ac_cv_prog_cc_g = yes; then
13789 if test "$GCC" = yes; then
13790 CFLAGS="-g -O2"
480ccd21 13791 else
3006edc0 13792 CFLAGS="-g"
480ccd21
DE
13793 fi
13794else
3006edc0
VZ
13795 if test "$GCC" = yes; then
13796 CFLAGS="-O2"
480ccd21 13797 else
3006edc0 13798 CFLAGS=
480ccd21
DE
13799 fi
13800fi
3006edc0 13801 fi
ab0ad5f1 13802 fi
3006edc0
VZ
13803
13804 case `uname -s` in
13805 AIX*)
13806 ac_ext=cc
13807ac_cpp='$CXXCPP $CPPFLAGS'
13808ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13809ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13810ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13811
13812echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
13813echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 13814if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
3006edc0
VZ
13815 echo $ECHO_N "(cached) $ECHO_C" >&6
13816else
13817 cat >conftest.$ac_ext <<_ACEOF
13818/* confdefs.h. */
13819_ACEOF
13820cat confdefs.h >>conftest.$ac_ext
13821cat >>conftest.$ac_ext <<_ACEOF
13822/* end confdefs.h. */
13823
13824int
13825main ()
13826{
13827#ifndef __xlC__
13828 choke me
13829#endif
13830
13831 ;
13832 return 0;
13833}
13834_ACEOF
13835rm -f conftest.$ac_objext
13836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13837 (eval $ac_compile) 2>conftest.er1
13838 ac_status=$?
13839 grep -v '^ *+' conftest.er1 >conftest.err
13840 rm -f conftest.er1
13841 cat conftest.err >&5
13842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13843 (exit $ac_status); } &&
5d7b7554 13844 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
13845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13846 (eval $ac_try) 2>&5
13847 ac_status=$?
13848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13849 (exit $ac_status); }; } &&
13850 { ac_try='test -s conftest.$ac_objext'
13851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13852 (eval $ac_try) 2>&5
13853 ac_status=$?
13854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13855 (exit $ac_status); }; }; then
0093c2fc 13856 bakefile_compiler_xlc=yes
3006edc0
VZ
13857else
13858 echo "$as_me: failed program was:" >&5
13859sed 's/^/| /' conftest.$ac_ext >&5
13860
0093c2fc 13861bakefile_compiler_xlc=no
3006edc0
VZ
13862fi
13863rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 13864 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
13865
13866fi
0093c2fc
VZ
13867echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
13868echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
3006edc0 13869
0093c2fc 13870XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
3006edc0
VZ
13871ac_ext=cc
13872ac_cpp='$CXXCPP $CPPFLAGS'
13873ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13874ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13875ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13876
13877
13878 ;;
13879
13880 Darwin)
13881 ac_ext=cc
95986553
DE
13882ac_cpp='$CXXCPP $CPPFLAGS'
13883ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13884ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13885ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13886
13887echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
13888echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
13889if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
13890 echo $ECHO_N "(cached) $ECHO_C" >&6
13891else
13892 cat >conftest.$ac_ext <<_ACEOF
13893/* confdefs.h. */
13894_ACEOF
13895cat confdefs.h >>conftest.$ac_ext
13896cat >>conftest.$ac_ext <<_ACEOF
13897/* end confdefs.h. */
13898
13899int
13900main ()
13901{
13902#ifndef __MWERKS__
13903 choke me
13904#endif
13905
13906 ;
13907 return 0;
13908}
13909_ACEOF
13910rm -f conftest.$ac_objext
13911if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13912 (eval $ac_compile) 2>conftest.er1
13913 ac_status=$?
13914 grep -v '^ *+' conftest.er1 >conftest.err
13915 rm -f conftest.er1
13916 cat conftest.err >&5
13917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13918 (exit $ac_status); } &&
5d7b7554 13919 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
95986553
DE
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); }; } &&
13925 { ac_try='test -s conftest.$ac_objext'
13926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13927 (eval $ac_try) 2>&5
13928 ac_status=$?
13929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13930 (exit $ac_status); }; }; then
13931 bakefile_compiler_mwerks=yes
13932else
13933 echo "$as_me: failed program was:" >&5
13934sed 's/^/| /' conftest.$ac_ext >&5
13935
13936bakefile_compiler_mwerks=no
13937fi
13938rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13939 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
13940
13941fi
13942echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
13943echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
13944
0e6fa1d9 13945MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
95986553
DE
13946ac_ext=cc
13947ac_cpp='$CXXCPP $CPPFLAGS'
13948ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13949ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13950ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13951
13952
3006edc0 13953 ac_ext=cc
9273ffba
DE
13954ac_cpp='$CXXCPP $CPPFLAGS'
13955ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13956ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13957ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13958
13959echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
13960echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 13961if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
9273ffba
DE
13962 echo $ECHO_N "(cached) $ECHO_C" >&6
13963else
13964 cat >conftest.$ac_ext <<_ACEOF
13965/* confdefs.h. */
13966_ACEOF
13967cat confdefs.h >>conftest.$ac_ext
13968cat >>conftest.$ac_ext <<_ACEOF
13969/* end confdefs.h. */
13970
13971int
13972main ()
13973{
13974#ifndef __xlC__
13975 choke me
13976#endif
13977
13978 ;
13979 return 0;
13980}
13981_ACEOF
13982rm -f conftest.$ac_objext
13983if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13984 (eval $ac_compile) 2>conftest.er1
13985 ac_status=$?
13986 grep -v '^ *+' conftest.er1 >conftest.err
13987 rm -f conftest.er1
13988 cat conftest.err >&5
13989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13990 (exit $ac_status); } &&
5d7b7554 13991 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9273ffba
DE
13992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13993 (eval $ac_try) 2>&5
13994 ac_status=$?
13995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13996 (exit $ac_status); }; } &&
13997 { ac_try='test -s conftest.$ac_objext'
13998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13999 (eval $ac_try) 2>&5
14000 ac_status=$?
14001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002 (exit $ac_status); }; }; then
0093c2fc 14003 bakefile_compiler_xlc=yes
9273ffba
DE
14004else
14005 echo "$as_me: failed program was:" >&5
14006sed 's/^/| /' conftest.$ac_ext >&5
14007
0093c2fc 14008bakefile_compiler_xlc=no
9273ffba
DE
14009fi
14010rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 14011 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
14012
14013fi
0093c2fc
VZ
14014echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
14015echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
9273ffba 14016
0093c2fc 14017XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
9273ffba
DE
14018ac_ext=cc
14019ac_cpp='$CXXCPP $CPPFLAGS'
14020ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14021ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14022ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14023
14024
3006edc0
VZ
14025 ;;
14026
14027 IRIX*)
95986553 14028
6dcfc289 14029
0ad5d837
VZ
14030 ac_ext=cc
14031ac_cpp='$CXXCPP $CPPFLAGS'
14032ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14033ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14034ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14035
14036 echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
14037echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6
14038if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
14039 echo $ECHO_N "(cached) $ECHO_C" >&6
14040else
14041 cat >conftest.$ac_ext <<_ACEOF
14042/* confdefs.h. */
14043_ACEOF
14044cat confdefs.h >>conftest.$ac_ext
14045cat >>conftest.$ac_ext <<_ACEOF
14046/* end confdefs.h. */
14047
14048int
14049main ()
14050{
14051
14052 #ifndef _SGI_COMPILER_VERSION
14053 choke me
14054 #endif
14055
14056 ;
14057 return 0;
14058}
14059_ACEOF
14060rm -f conftest.$ac_objext
14061if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14062 (eval $ac_compile) 2>conftest.er1
14063 ac_status=$?
14064 grep -v '^ *+' conftest.er1 >conftest.err
14065 rm -f conftest.er1
14066 cat conftest.err >&5
14067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068 (exit $ac_status); } &&
5d7b7554 14069 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
14070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14071 (eval $ac_try) 2>&5
14072 ac_status=$?
14073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074 (exit $ac_status); }; } &&
14075 { ac_try='test -s conftest.$ac_objext'
14076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14077 (eval $ac_try) 2>&5
14078 ac_status=$?
14079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14080 (exit $ac_status); }; }; then
14081 bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
14082else
14083 echo "$as_me: failed program was:" >&5
14084sed 's/^/| /' conftest.$ac_ext >&5
14085
14086bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
14087
14088fi
14089rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14090
14091
14092fi
14093echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
14094echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6
14095 ac_ext=cc
14096ac_cpp='$CXXCPP $CPPFLAGS'
14097ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14098ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14099ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14100
14101 if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
14102 :; SGICXX=yes
14103 else
14104 :;
14105 fi
14106
14107
3006edc0
VZ
14108 ;;
14109
0093c2fc 14110 HP-UX*)
3006edc0
VZ
14111
14112
14113 ac_ext=cc
14114ac_cpp='$CXXCPP $CPPFLAGS'
14115ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14116ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14117ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14118
0093c2fc
VZ
14119 echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
14120echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6
14121if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
3006edc0
VZ
14122 echo $ECHO_N "(cached) $ECHO_C" >&6
14123else
14124 cat >conftest.$ac_ext <<_ACEOF
14125/* confdefs.h. */
14126_ACEOF
14127cat confdefs.h >>conftest.$ac_ext
14128cat >>conftest.$ac_ext <<_ACEOF
14129/* end confdefs.h. */
14130
14131int
14132main ()
14133{
14134
0093c2fc 14135 #ifndef __HP_aCC
3006edc0
VZ
14136 choke me
14137 #endif
14138
14139 ;
14140 return 0;
14141}
14142_ACEOF
14143rm -f conftest.$ac_objext
14144if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14145 (eval $ac_compile) 2>conftest.er1
14146 ac_status=$?
14147 grep -v '^ *+' conftest.er1 >conftest.err
14148 rm -f conftest.er1
14149 cat conftest.err >&5
14150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14151 (exit $ac_status); } &&
5d7b7554 14152 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
14153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14154 (eval $ac_try) 2>&5
14155 ac_status=$?
14156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14157 (exit $ac_status); }; } &&
14158 { ac_try='test -s conftest.$ac_objext'
14159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14160 (eval $ac_try) 2>&5
14161 ac_status=$?
14162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14163 (exit $ac_status); }; }; then
0093c2fc 14164 bakefile_cv_cxx_compiler___HP_aCC=yes
3006edc0
VZ
14165else
14166 echo "$as_me: failed program was:" >&5
14167sed 's/^/| /' conftest.$ac_ext >&5
14168
0093c2fc 14169bakefile_cv_cxx_compiler___HP_aCC=no
3006edc0
VZ
14170
14171fi
14172rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14173
14174
14175fi
0093c2fc
VZ
14176echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
14177echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6
3006edc0
VZ
14178 ac_ext=cc
14179ac_cpp='$CXXCPP $CPPFLAGS'
14180ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14181ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14182ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14183
0093c2fc
VZ
14184 if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
14185 :; HPCXX=yes
a1aa0349
VZ
14186 else
14187 :;
14188 fi
14189
14190
14191 ;;
14192
0093c2fc 14193 OSF1)
a1aa0349
VZ
14194
14195
14196 ac_ext=cc
14197ac_cpp='$CXXCPP $CPPFLAGS'
14198ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14199ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14200ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14201
0093c2fc
VZ
14202 echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
14203echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6
14204if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
a1aa0349
VZ
14205 echo $ECHO_N "(cached) $ECHO_C" >&6
14206else
14207 cat >conftest.$ac_ext <<_ACEOF
14208/* confdefs.h. */
14209_ACEOF
14210cat confdefs.h >>conftest.$ac_ext
14211cat >>conftest.$ac_ext <<_ACEOF
14212/* end confdefs.h. */
14213
14214int
14215main ()
14216{
14217
0093c2fc 14218 #ifndef __DECCXX
a1aa0349
VZ
14219 choke me
14220 #endif
14221
14222 ;
14223 return 0;
14224}
14225_ACEOF
14226rm -f conftest.$ac_objext
14227if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14228 (eval $ac_compile) 2>conftest.er1
14229 ac_status=$?
14230 grep -v '^ *+' conftest.er1 >conftest.err
14231 rm -f conftest.er1
14232 cat conftest.err >&5
14233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234 (exit $ac_status); } &&
5d7b7554 14235 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a1aa0349
VZ
14236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14237 (eval $ac_try) 2>&5
14238 ac_status=$?
14239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240 (exit $ac_status); }; } &&
14241 { ac_try='test -s conftest.$ac_objext'
14242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14243 (eval $ac_try) 2>&5
14244 ac_status=$?
14245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246 (exit $ac_status); }; }; then
0093c2fc 14247 bakefile_cv_cxx_compiler___DECCXX=yes
a1aa0349
VZ
14248else
14249 echo "$as_me: failed program was:" >&5
14250sed 's/^/| /' conftest.$ac_ext >&5
14251
0093c2fc 14252bakefile_cv_cxx_compiler___DECCXX=no
a1aa0349
VZ
14253
14254fi
14255rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14256
14257
14258fi
0093c2fc
VZ
14259echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
14260echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6
a1aa0349
VZ
14261 ac_ext=cc
14262ac_cpp='$CXXCPP $CPPFLAGS'
14263ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14264ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14265ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14266
0093c2fc
VZ
14267 if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
14268 :; COMPAQCXX=yes
14269 else
14270 :;
14271 fi
14272
14273
14274 ;;
14275
14276 SunOS)
14277
14278
14279 ac_ext=cc
14280ac_cpp='$CXXCPP $CPPFLAGS'
14281ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14282ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14283ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14284
14285 echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
14286echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6
14287if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
14288 echo $ECHO_N "(cached) $ECHO_C" >&6
14289else
14290 cat >conftest.$ac_ext <<_ACEOF
14291/* confdefs.h. */
14292_ACEOF
14293cat confdefs.h >>conftest.$ac_ext
14294cat >>conftest.$ac_ext <<_ACEOF
14295/* end confdefs.h. */
14296
14297int
14298main ()
14299{
14300
14301 #ifndef __SUNPRO_CC
14302 choke me
14303 #endif
14304
14305 ;
14306 return 0;
14307}
14308_ACEOF
14309rm -f conftest.$ac_objext
14310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14311 (eval $ac_compile) 2>conftest.er1
14312 ac_status=$?
14313 grep -v '^ *+' conftest.er1 >conftest.err
14314 rm -f conftest.er1
14315 cat conftest.err >&5
14316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14317 (exit $ac_status); } &&
5d7b7554 14318 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0093c2fc
VZ
14319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14320 (eval $ac_try) 2>&5
14321 ac_status=$?
14322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14323 (exit $ac_status); }; } &&
14324 { ac_try='test -s conftest.$ac_objext'
14325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14326 (eval $ac_try) 2>&5
14327 ac_status=$?
14328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329 (exit $ac_status); }; }; then
14330 bakefile_cv_cxx_compiler___SUNPRO_CC=yes
14331else
14332 echo "$as_me: failed program was:" >&5
14333sed 's/^/| /' conftest.$ac_ext >&5
14334
14335bakefile_cv_cxx_compiler___SUNPRO_CC=no
14336
14337fi
14338rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14339
14340
14341fi
14342echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
14343echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6
14344 ac_ext=cc
14345ac_cpp='$CXXCPP $CPPFLAGS'
14346ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14347ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14348ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14349
14350 if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
14351 :; SUNCXX=yes
3006edc0
VZ
14352 else
14353 :;
ab0ad5f1 14354 fi
a9e5b1f0
MW
14355
14356
3006edc0
VZ
14357 ;;
14358 esac
14359 fi
14360
14361
14362
a848cd7e
SC
14363if test -n "$ac_tool_prefix"; then
14364 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14365set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14366echo "$as_me:$LINENO: checking for $ac_word" >&5
14367echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14368if test "${ac_cv_prog_RANLIB+set}" = set; then
14369 echo $ECHO_N "(cached) $ECHO_C" >&6
14370else
14371 if test -n "$RANLIB"; then
14372 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14373else
14374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14375for as_dir in $PATH
14376do
14377 IFS=$as_save_IFS
14378 test -z "$as_dir" && as_dir=.
14379 for ac_exec_ext in '' $ac_executable_extensions; do
14380 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14381 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14383 break 2
14384 fi
14385done
14386done
14387
14388fi
14389fi
14390RANLIB=$ac_cv_prog_RANLIB
14391if test -n "$RANLIB"; then
14392 echo "$as_me:$LINENO: result: $RANLIB" >&5
14393echo "${ECHO_T}$RANLIB" >&6
14394else
14395 echo "$as_me:$LINENO: result: no" >&5
14396echo "${ECHO_T}no" >&6
14397fi
14398
14399fi
14400if test -z "$ac_cv_prog_RANLIB"; then
14401 ac_ct_RANLIB=$RANLIB
14402 # Extract the first word of "ranlib", so it can be a program name with args.
14403set dummy ranlib; ac_word=$2
14404echo "$as_me:$LINENO: checking for $ac_word" >&5
14405echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14406if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14407 echo $ECHO_N "(cached) $ECHO_C" >&6
14408else
14409 if test -n "$ac_ct_RANLIB"; then
14410 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14411else
14412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14413for as_dir in $PATH
14414do
14415 IFS=$as_save_IFS
14416 test -z "$as_dir" && as_dir=.
14417 for ac_exec_ext in '' $ac_executable_extensions; do
14418 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14419 ac_cv_prog_ac_ct_RANLIB="ranlib"
14420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14421 break 2
14422 fi
14423done
14424done
14425
14426 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
14427fi
14428fi
14429ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14430if test -n "$ac_ct_RANLIB"; then
14431 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14432echo "${ECHO_T}$ac_ct_RANLIB" >&6
14433else
14434 echo "$as_me:$LINENO: result: no" >&5
14435echo "${ECHO_T}no" >&6
14436fi
14437
14438 RANLIB=$ac_ct_RANLIB
14439else
14440 RANLIB="$ac_cv_prog_RANLIB"
14441fi
14442
14443
8c80d384
DE
14444if test -n "$ac_tool_prefix"; then
14445 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14446set dummy ${ac_tool_prefix}ar; ac_word=$2
a848cd7e
SC
14447echo "$as_me:$LINENO: checking for $ac_word" >&5
14448echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14449if test "${ac_cv_prog_AR+set}" = set; then
14450 echo $ECHO_N "(cached) $ECHO_C" >&6
14451else
14452 if test -n "$AR"; then
14453 ac_cv_prog_AR="$AR" # Let the user override the test.
14454else
14455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14456for as_dir in $PATH
14457do
14458 IFS=$as_save_IFS
14459 test -z "$as_dir" && as_dir=.
14460 for ac_exec_ext in '' $ac_executable_extensions; do
14461 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 14462 ac_cv_prog_AR="${ac_tool_prefix}ar"
a848cd7e
SC
14463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14464 break 2
14465 fi
14466done
14467done
14468
14469fi
14470fi
14471AR=$ac_cv_prog_AR
14472if test -n "$AR"; then
14473 echo "$as_me:$LINENO: result: $AR" >&5
14474echo "${ECHO_T}$AR" >&6
14475else
14476 echo "$as_me:$LINENO: result: no" >&5
14477echo "${ECHO_T}no" >&6
14478fi
14479
8c80d384
DE
14480fi
14481if test -z "$ac_cv_prog_AR"; then
14482 ac_ct_AR=$AR
14483 # Extract the first word of "ar", so it can be a program name with args.
14484set dummy ar; ac_word=$2
14485echo "$as_me:$LINENO: checking for $ac_word" >&5
14486echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14487if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14488 echo $ECHO_N "(cached) $ECHO_C" >&6
14489else
14490 if test -n "$ac_ct_AR"; then
14491 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14492else
14493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14494for as_dir in $PATH
14495do
14496 IFS=$as_save_IFS
14497 test -z "$as_dir" && as_dir=.
14498 for ac_exec_ext in '' $ac_executable_extensions; do
14499 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14500 ac_cv_prog_ac_ct_AR="ar"
14501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14502 break 2
14503 fi
14504done
14505done
14506
14507fi
14508fi
14509ac_ct_AR=$ac_cv_prog_ac_ct_AR
14510if test -n "$ac_ct_AR"; then
14511 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14512echo "${ECHO_T}$ac_ct_AR" >&6
14513else
14514 echo "$as_me:$LINENO: result: no" >&5
14515echo "${ECHO_T}no" >&6
14516fi
14517
14518 AR=$ac_ct_AR
14519else
14520 AR="$ac_cv_prog_AR"
14521fi
14522
a848cd7e 14523if test "x$AR" = "x" ; then
77ffb593
JS
14524 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
14525echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
14526 { (exit 1); exit 1; }; }
14527fi
14528
14529# Find a good install program. We prefer a C program (faster),
14530# so one script is as good as another. But avoid the broken or
14531# incompatible versions:
14532# SysV /etc/install, /usr/sbin/install
14533# SunOS /usr/etc/install
14534# IRIX /sbin/install
14535# AIX /bin/install
14536# AmigaOS /C/install, which installs bootblocks on floppy discs
14537# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
14538# AFS /usr/afsws/bin/install, which mishandles nonexistent args
14539# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 14540# OS/2's system install, which has a completely different semantic
a848cd7e
SC
14541# ./install, which can be erroneously created by make from ./install.sh.
14542echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
14543echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
14544if test -z "$INSTALL"; then
14545if test "${ac_cv_path_install+set}" = set; then
14546 echo $ECHO_N "(cached) $ECHO_C" >&6
14547else
14548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14549for as_dir in $PATH
14550do
14551 IFS=$as_save_IFS
14552 test -z "$as_dir" && as_dir=.
14553 # Account for people who put trailing slashes in PATH elements.
14554case $as_dir/ in
14555 ./ | .// | /cC/* | \
14556 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 14557 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
14558 /usr/ucb/* ) ;;
14559 *)
14560 # OSF1 and SCO ODT 3.0 have their own names for install.
14561 # Don't use installbsd from OSF since it installs stuff as root
14562 # by default.
14563 for ac_prog in ginstall scoinst install; do
14564 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
14565 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
14566 if test $ac_prog = install &&
14567 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14568 # AIX install. It has an incompatible calling convention.
14569 :
14570 elif test $ac_prog = install &&
14571 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14572 # program-specific install script used by HP pwplus--don't use.
14573 :
14574 else
14575 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
14576 break 3
14577 fi
14578 fi
a848cd7e
SC
14579 done
14580 done
14581 ;;
14582esac
14583done
14584
14585
14586fi
14587 if test "${ac_cv_path_install+set}" = set; then
14588 INSTALL=$ac_cv_path_install
14589 else
14590 # As a last resort, use the slow shell script. We don't cache a
14591 # path for INSTALL within a source directory, because that will
14592 # break other packages using the cache if that directory is
14593 # removed, or if the path is relative.
14594 INSTALL=$ac_install_sh
14595 fi
14596fi
14597echo "$as_me:$LINENO: result: $INSTALL" >&5
14598echo "${ECHO_T}$INSTALL" >&6
14599
14600# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
14601# It thinks the first close brace ends the variable substitution.
14602test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
14603
14604test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
14605
14606test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
14607
14608
14609case ${INSTALL} in
14610 /* ) # Absolute
14611 ;;
14612 ?:* ) # Drive letter, considered as absolute.
14613 ;;
14614 *)
14615 INSTALL=`pwd`/${INSTALL} ;;
14616esac
14617
a848cd7e
SC
14618
14619case "${host}" in
14620
cfda0ea8 14621 *-*-darwin* )
a848cd7e
SC
14622 INSTALL_PROGRAM="cp -fp"
14623 INSTALL_DATA="cp -fp"
14624 ;;
14625 *)
14626 ;;
14627esac
14628
8c80d384
DE
14629if test -n "$ac_tool_prefix"; then
14630 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14631set dummy ${ac_tool_prefix}strip; ac_word=$2
a848cd7e
SC
14632echo "$as_me:$LINENO: checking for $ac_word" >&5
14633echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14634if test "${ac_cv_prog_STRIP+set}" = set; then
14635 echo $ECHO_N "(cached) $ECHO_C" >&6
14636else
14637 if test -n "$STRIP"; then
14638 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14639else
14640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14641for as_dir in $PATH
14642do
14643 IFS=$as_save_IFS
14644 test -z "$as_dir" && as_dir=.
14645 for ac_exec_ext in '' $ac_executable_extensions; do
14646 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 14647 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
a848cd7e
SC
14648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14649 break 2
14650 fi
14651done
14652done
14653
a848cd7e
SC
14654fi
14655fi
14656STRIP=$ac_cv_prog_STRIP
14657if test -n "$STRIP"; then
14658 echo "$as_me:$LINENO: result: $STRIP" >&5
14659echo "${ECHO_T}$STRIP" >&6
14660else
14661 echo "$as_me:$LINENO: result: no" >&5
14662echo "${ECHO_T}no" >&6
14663fi
14664
8c80d384
DE
14665fi
14666if test -z "$ac_cv_prog_STRIP"; then
14667 ac_ct_STRIP=$STRIP
14668 # Extract the first word of "strip", so it can be a program name with args.
14669set dummy strip; ac_word=$2
14670echo "$as_me:$LINENO: checking for $ac_word" >&5
14671echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14672if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14673 echo $ECHO_N "(cached) $ECHO_C" >&6
14674else
14675 if test -n "$ac_ct_STRIP"; then
14676 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14677else
14678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14679for as_dir in $PATH
14680do
14681 IFS=$as_save_IFS
14682 test -z "$as_dir" && as_dir=.
14683 for ac_exec_ext in '' $ac_executable_extensions; do
14684 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14685 ac_cv_prog_ac_ct_STRIP="strip"
14686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14687 break 2
14688 fi
14689done
14690done
14691
14692 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="true"
14693fi
14694fi
14695ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14696if test -n "$ac_ct_STRIP"; then
14697 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14698echo "${ECHO_T}$ac_ct_STRIP" >&6
14699else
14700 echo "$as_me:$LINENO: result: no" >&5
14701echo "${ECHO_T}no" >&6
14702fi
14703
14704 STRIP=$ac_ct_STRIP
14705else
14706 STRIP="$ac_cv_prog_STRIP"
14707fi
14708
14709
14710if test "$wxUSE_WINE" = "yes"; then
14711 if test -n "$ac_tool_prefix"; then
14712 # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args.
14713set dummy ${ac_tool_prefix}wrc; ac_word=$2
14714echo "$as_me:$LINENO: checking for $ac_word" >&5
14715echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 14716if test "${ac_cv_prog_WINDRES+set}" = set; then
8c80d384
DE
14717 echo $ECHO_N "(cached) $ECHO_C" >&6
14718else
8ced02f6
DE
14719 if test -n "$WINDRES"; then
14720 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8c80d384
DE
14721else
14722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14723for as_dir in $PATH
14724do
14725 IFS=$as_save_IFS
14726 test -z "$as_dir" && as_dir=.
14727 for ac_exec_ext in '' $ac_executable_extensions; do
14728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 14729 ac_cv_prog_WINDRES="${ac_tool_prefix}wrc"
8c80d384
DE
14730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14731 break 2
14732 fi
14733done
14734done
14735
14736fi
14737fi
8ced02f6
DE
14738WINDRES=$ac_cv_prog_WINDRES
14739if test -n "$WINDRES"; then
14740 echo "$as_me:$LINENO: result: $WINDRES" >&5
14741echo "${ECHO_T}$WINDRES" >&6
8c80d384
DE
14742else
14743 echo "$as_me:$LINENO: result: no" >&5
14744echo "${ECHO_T}no" >&6
14745fi
14746
14747fi
8ced02f6
DE
14748if test -z "$ac_cv_prog_WINDRES"; then
14749 ac_ct_WINDRES=$WINDRES
8c80d384
DE
14750 # Extract the first word of "wrc", so it can be a program name with args.
14751set dummy wrc; ac_word=$2
14752echo "$as_me:$LINENO: checking for $ac_word" >&5
14753echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 14754if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
8c80d384
DE
14755 echo $ECHO_N "(cached) $ECHO_C" >&6
14756else
8ced02f6
DE
14757 if test -n "$ac_ct_WINDRES"; then
14758 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
8c80d384
DE
14759else
14760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14761for as_dir in $PATH
14762do
14763 IFS=$as_save_IFS
14764 test -z "$as_dir" && as_dir=.
14765 for ac_exec_ext in '' $ac_executable_extensions; do
14766 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 14767 ac_cv_prog_ac_ct_WINDRES="wrc"
8c80d384
DE
14768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14769 break 2
14770 fi
14771done
14772done
14773
14774fi
14775fi
8ced02f6
DE
14776ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
14777if test -n "$ac_ct_WINDRES"; then
14778 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
14779echo "${ECHO_T}$ac_ct_WINDRES" >&6
8c80d384
DE
14780else
14781 echo "$as_me:$LINENO: result: no" >&5
14782echo "${ECHO_T}no" >&6
14783fi
14784
8ced02f6 14785 WINDRES=$ac_ct_WINDRES
8c80d384 14786else
8ced02f6 14787 WINDRES="$ac_cv_prog_WINDRES"
8c80d384
DE
14788fi
14789
004ee6da 14790 RESCOMP="$WINDRES"
8c80d384
DE
14791else
14792 case "${host}" in
14793 *-*-cygwin* | *-*-mingw32* )
004ee6da
RL
14794 if test -n "$ac_tool_prefix"; then
14795 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
14796set dummy ${ac_tool_prefix}windres; ac_word=$2
14797echo "$as_me:$LINENO: checking for $ac_word" >&5
14798echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14799if test "${ac_cv_prog_WINDRES+set}" = set; then
14800 echo $ECHO_N "(cached) $ECHO_C" >&6
14801else
14802 if test -n "$WINDRES"; then
14803 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
14804else
14805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14806for as_dir in $PATH
14807do
14808 IFS=$as_save_IFS
14809 test -z "$as_dir" && as_dir=.
14810 for ac_exec_ext in '' $ac_executable_extensions; do
14811 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14812 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
14813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14814 break 2
14815 fi
14816done
14817done
14818
14819fi
14820fi
14821WINDRES=$ac_cv_prog_WINDRES
14822if test -n "$WINDRES"; then
14823 echo "$as_me:$LINENO: result: $WINDRES" >&5
14824echo "${ECHO_T}$WINDRES" >&6
14825else
14826 echo "$as_me:$LINENO: result: no" >&5
14827echo "${ECHO_T}no" >&6
14828fi
14829
14830fi
14831if test -z "$ac_cv_prog_WINDRES"; then
14832 ac_ct_WINDRES=$WINDRES
14833 # Extract the first word of "windres", so it can be a program name with args.
14834set dummy windres; ac_word=$2
14835echo "$as_me:$LINENO: checking for $ac_word" >&5
14836echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14837if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
14838 echo $ECHO_N "(cached) $ECHO_C" >&6
14839else
14840 if test -n "$ac_ct_WINDRES"; then
14841 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
14842else
14843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14844for as_dir in $PATH
14845do
14846 IFS=$as_save_IFS
14847 test -z "$as_dir" && as_dir=.
14848 for ac_exec_ext in '' $ac_executable_extensions; do
14849 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14850 ac_cv_prog_ac_ct_WINDRES="windres"
14851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14852 break 2
14853 fi
14854done
14855done
14856
14857fi
14858fi
14859ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
14860if test -n "$ac_ct_WINDRES"; then
14861 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
14862echo "${ECHO_T}$ac_ct_WINDRES" >&6
14863else
14864 echo "$as_me:$LINENO: result: no" >&5
14865echo "${ECHO_T}no" >&6
14866fi
14867
14868 WINDRES=$ac_ct_WINDRES
14869else
14870 WINDRES="$ac_cv_prog_WINDRES"
14871fi
14872
14873 RESCOMP="$WINDRES"
14874 if test -n "$ac_tool_prefix"; then
8c80d384
DE
14875 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
14876set dummy ${ac_tool_prefix}dlltool; ac_word=$2
14877echo "$as_me:$LINENO: checking for $ac_word" >&5
14878echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14879if test "${ac_cv_prog_DLLTOOL+set}" = set; then
14880 echo $ECHO_N "(cached) $ECHO_C" >&6
14881else
14882 if test -n "$DLLTOOL"; then
14883 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14884else
14885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14886for as_dir in $PATH
14887do
14888 IFS=$as_save_IFS
14889 test -z "$as_dir" && as_dir=.
14890 for ac_exec_ext in '' $ac_executable_extensions; do
14891 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14892 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
14893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14894 break 2
14895 fi
14896done
14897done
14898
14899fi
14900fi
14901DLLTOOL=$ac_cv_prog_DLLTOOL
14902if test -n "$DLLTOOL"; then
14903 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
14904echo "${ECHO_T}$DLLTOOL" >&6
14905else
14906 echo "$as_me:$LINENO: result: no" >&5
14907echo "${ECHO_T}no" >&6
14908fi
14909
14910fi
14911if test -z "$ac_cv_prog_DLLTOOL"; then
14912 ac_ct_DLLTOOL=$DLLTOOL
14913 # Extract the first word of "dlltool", so it can be a program name with args.
14914set dummy dlltool; ac_word=$2
14915echo "$as_me:$LINENO: checking for $ac_word" >&5
14916echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14917if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
14918 echo $ECHO_N "(cached) $ECHO_C" >&6
14919else
14920 if test -n "$ac_ct_DLLTOOL"; then
14921 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
14922else
14923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14924for as_dir in $PATH
14925do
14926 IFS=$as_save_IFS
14927 test -z "$as_dir" && as_dir=.
14928 for ac_exec_ext in '' $ac_executable_extensions; do
14929 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14930 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
14931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14932 break 2
14933 fi
14934done
14935done
14936
14937fi
14938fi
14939ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
14940if test -n "$ac_ct_DLLTOOL"; then
14941 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
14942echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
14943else
14944 echo "$as_me:$LINENO: result: no" >&5
14945echo "${ECHO_T}no" >&6
14946fi
14947
14948 DLLTOOL=$ac_ct_DLLTOOL
14949else
14950 DLLTOOL="$ac_cv_prog_DLLTOOL"
14951fi
14952
14953 ;;
14954 esac
14955fi
a848cd7e
SC
14956
14957echo "$as_me:$LINENO: checking if make is GNU make" >&5
14958echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
14959if test "${wx_cv_prog_makeisgnu+set}" = set; then
14960 echo $ECHO_N "(cached) $ECHO_C" >&6
14961else
14962
14963 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
14964 egrep -s GNU > /dev/null); then
14965 wx_cv_prog_makeisgnu="yes"
14966 else
14967 wx_cv_prog_makeisgnu="no"
14968 fi
14969
14970fi
14971echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
14972echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
14973
14974if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
14975 IF_GNU_MAKE=""
14976else
14977 IF_GNU_MAKE="#"
14978fi
14979
14980
14981
14982if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
14983echo "$as_me:$LINENO: checking if make supports VPATH" >&5
14984echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
14985if test "${wx_cv_prog_makevpath+set}" = set; then
14986 echo $ECHO_N "(cached) $ECHO_C" >&6
14987else
14988
14989cat - << EOF > confMake
14990check : file
14991 cp \$? \$@
14992 cp \$? final_file
14993EOF
14994
14995if test ! -d sub ; then
14996 mkdir sub
14997fi
14998echo dummy > sub/file
14999${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
15000RESULT=$?
15001rm -f sub/file check final_file confMake
15002rmdir sub
15003if test "$RESULT" = 0; then
15004 wx_cv_prog_makevpath="yes"
15005else
15006 wx_cv_prog_makevpath="no"
15007fi
15008
15009fi
15010echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
15011echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
15012
15013if test "x$wx_cv_prog_makevpath" != "xyes"; then
15014{ { echo "$as_me:$LINENO: error:
15015You need a make-utility that is able to use the variable
15016VPATH correctly.
15017If your version of make does not support VPATH correctly,
15018please install GNU-make (possibly as gmake), and start
15019configure with the following command:
15020export MAKE=gmake; ./configure for sh-type shells
15021setenv MAKE gmake; ./configure for csh-type shells
15022Also please do remember to use gmake in this case every time
15023you are trying to compile.
15024" >&5
15025echo "$as_me: error:
15026You need a make-utility that is able to use the variable
15027VPATH correctly.
15028If your version of make does not support VPATH correctly,
15029please install GNU-make (possibly as gmake), and start
15030configure with the following command:
15031export MAKE=gmake; ./configure for sh-type shells
15032setenv MAKE gmake; ./configure for csh-type shells
15033Also please do remember to use gmake in this case every time
15034you are trying to compile.
15035" >&2;}
15036 { (exit 1); exit 1; }; }
15037fi fi
15038echo "$as_me:$LINENO: checking whether ln -s works" >&5
15039echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
15040LN_S=$as_ln_s
15041if test "$LN_S" = "ln -s"; then
15042 echo "$as_me:$LINENO: result: yes" >&5
15043echo "${ECHO_T}yes" >&6
15044else
15045 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
15046echo "${ECHO_T}no, using $LN_S" >&6
15047fi
15048
15049
bcaab0f9 15050
a848cd7e 15051
2113bc77 15052if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
c92ad099 15053 CXXFLAGS="-qunique $CXXFLAGS"
9273ffba
DE
15054fi
15055
4d7ec9f1
DE
15056case "${host}" in
15057 powerpc-*-darwin* )
15058 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
15059echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
15060 cat >conftest.$ac_ext <<_ACEOF
15061/* confdefs.h. */
15062_ACEOF
15063cat confdefs.h >>conftest.$ac_ext
15064cat >>conftest.$ac_ext <<_ACEOF
15065/* end confdefs.h. */
15066
15067int
15068main ()
15069{
15070#ifndef __POWERPC__
15071 choke me for lack of PowerPC
15072#endif
15073
15074 ;
15075 return 0;
15076}
15077_ACEOF
15078rm -f conftest.$ac_objext
15079if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15080 (eval $ac_compile) 2>conftest.er1
15081 ac_status=$?
15082 grep -v '^ *+' conftest.er1 >conftest.err
15083 rm -f conftest.er1
15084 cat conftest.err >&5
15085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15086 (exit $ac_status); } &&
5d7b7554 15087 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
15088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15089 (eval $ac_try) 2>&5
15090 ac_status=$?
15091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15092 (exit $ac_status); }; } &&
15093 { ac_try='test -s conftest.$ac_objext'
15094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15095 (eval $ac_try) 2>&5
15096 ac_status=$?
15097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15098 (exit $ac_status); }; }; then
15099 echo "$as_me:$LINENO: result: yes" >&5
15100echo "${ECHO_T}yes" >&6
15101else
15102 echo "$as_me: failed program was:" >&5
15103sed 's/^/| /' conftest.$ac_ext >&5
15104
15105echo "$as_me:$LINENO: result: no" >&5
15106echo "${ECHO_T}no" >&6
15107 cat >>confdefs.h <<\_ACEOF
15108#define __POWERPC__ 1
15109_ACEOF
15110
15111
15112fi
15113rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cfda0ea8
DE
15114 ;;
15115esac
15116
15117case "${host}" in
15118 *-*-darwin* )
4d7ec9f1
DE
15119 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
15120echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
15121 cat >conftest.$ac_ext <<_ACEOF
15122/* confdefs.h. */
15123_ACEOF
15124cat confdefs.h >>conftest.$ac_ext
15125cat >>conftest.$ac_ext <<_ACEOF
15126/* end confdefs.h. */
15127#include <CoreFoundation/CFBase.h>
15128
15129int
15130main ()
15131{
15132
15133 ;
15134 return 0;
15135}
15136_ACEOF
15137rm -f conftest.$ac_objext
15138if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15139 (eval $ac_compile) 2>conftest.er1
15140 ac_status=$?
15141 grep -v '^ *+' conftest.er1 >conftest.err
15142 rm -f conftest.er1
15143 cat conftest.err >&5
15144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145 (exit $ac_status); } &&
5d7b7554 15146 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
15147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15148 (eval $ac_try) 2>&5
15149 ac_status=$?
15150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15151 (exit $ac_status); }; } &&
15152 { ac_try='test -s conftest.$ac_objext'
15153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15154 (eval $ac_try) 2>&5
15155 ac_status=$?
15156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157 (exit $ac_status); }; }; then
15158 echo "$as_me:$LINENO: result: yes" >&5
15159echo "${ECHO_T}yes" >&6
15160else
15161 echo "$as_me: failed program was:" >&5
15162sed 's/^/| /' conftest.$ac_ext >&5
15163
15164echo "$as_me:$LINENO: result: no" >&5
15165echo "${ECHO_T}no" >&6
15166 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
15167echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
15168 cat >conftest.$ac_ext <<_ACEOF
15169/* confdefs.h. */
15170_ACEOF
15171cat confdefs.h >>conftest.$ac_ext
15172cat >>conftest.$ac_ext <<_ACEOF
15173/* end confdefs.h. */
15174#define __CF_USE_FRAMEWORK_INCLUDES__
15175#include <CoreFoundation/CFBase.h>
15176
15177int
15178main ()
15179{
15180
15181 ;
15182 return 0;
15183}
15184_ACEOF
15185rm -f conftest.$ac_objext
15186if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15187 (eval $ac_compile) 2>conftest.er1
15188 ac_status=$?
15189 grep -v '^ *+' conftest.er1 >conftest.err
15190 rm -f conftest.er1
15191 cat conftest.err >&5
15192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15193 (exit $ac_status); } &&
5d7b7554 15194 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
15195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15196 (eval $ac_try) 2>&5
15197 ac_status=$?
15198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199 (exit $ac_status); }; } &&
15200 { ac_try='test -s conftest.$ac_objext'
15201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15202 (eval $ac_try) 2>&5
15203 ac_status=$?
15204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15205 (exit $ac_status); }; }; then
15206 echo "$as_me:$LINENO: result: yes" >&5
15207echo "${ECHO_T}yes" >&6
c92ad099 15208 CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
4d7ec9f1
DE
15209else
15210 echo "$as_me: failed program was:" >&5
15211sed 's/^/| /' conftest.$ac_ext >&5
15212
15213{ { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
15214See \`config.log' for more details." >&5
15215echo "$as_me: error: no. CoreFoundation not available.
15216See \`config.log' for more details." >&2;}
15217 { (exit 1); exit 1; }; }
15218
15219fi
15220rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15221
15222
15223fi
15224rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15225 ;;
15226esac
15227
a848cd7e
SC
15228case "${host}" in
15229 *-pc-os2_emx | *-pc-os2-emx )
6ba87b06
SN
15230 ac_ext=c
15231ac_cpp='$CPP $CPPFLAGS'
15232ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15233ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15234ac_compiler_gnu=$ac_cv_c_compiler_gnu
15235
15236 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
a848cd7e
SC
15237 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
15238echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
15239if test "${ac_cv_lib_cExt_drand48+set}" = set; then
15240 echo $ECHO_N "(cached) $ECHO_C" >&6
15241else
15242 ac_check_lib_save_LIBS=$LIBS
15243LIBS="-lcExt $LIBS"
15244cat >conftest.$ac_ext <<_ACEOF
15245/* confdefs.h. */
15246_ACEOF
15247cat confdefs.h >>conftest.$ac_ext
15248cat >>conftest.$ac_ext <<_ACEOF
15249/* end confdefs.h. */
15250
15251/* Override any gcc2 internal prototype to avoid an error. */
15252#ifdef __cplusplus
15253extern "C"
15254#endif
15255/* We use char because int might match the return type of a gcc2
15256 builtin and then its argument prototype would still apply. */
15257char drand48 ();
15258int
15259main ()
15260{
15261drand48 ();
15262 ;
15263 return 0;
15264}
15265_ACEOF
15266rm -f conftest.$ac_objext conftest$ac_exeext
15267if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15268 (eval $ac_link) 2>conftest.er1
a848cd7e 15269 ac_status=$?
ac1cb8d3
VS
15270 grep -v '^ *+' conftest.er1 >conftest.err
15271 rm -f conftest.er1
15272 cat conftest.err >&5
a848cd7e
SC
15273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274 (exit $ac_status); } &&
1b52ba67 15275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15277 (eval $ac_try) 2>&5
15278 ac_status=$?
15279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280 (exit $ac_status); }; } &&
15281 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15283 (eval $ac_try) 2>&5
15284 ac_status=$?
15285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286 (exit $ac_status); }; }; then
15287 ac_cv_lib_cExt_drand48=yes
15288else
15289 echo "$as_me: failed program was:" >&5
15290sed 's/^/| /' conftest.$ac_ext >&5
15291
15292ac_cv_lib_cExt_drand48=no
15293fi
ac1cb8d3
VS
15294rm -f conftest.err conftest.$ac_objext \
15295 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15296LIBS=$ac_check_lib_save_LIBS
15297fi
15298echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
15299echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
15300if test $ac_cv_lib_cExt_drand48 = yes; then
15301 LIBS="$LIBS -lcExt"
15302fi
15303
15304 else
15305 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
15306 fi
69120ee4
VZ
15307 echo "$as_me:$LINENO: checking for gcc/libc version" >&5
15308echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
a848cd7e
SC
15309if test "${wx_cv_gccversion+set}" = set; then
15310 echo $ECHO_N "(cached) $ECHO_C" >&6
15311else
15312
391a765e
VS
15313 if test "$cross_compiling" = yes; then
15314 wx_cv_gccversion="EMX2"
15315
15316else
15317 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
15318/* confdefs.h. */
15319_ACEOF
15320cat confdefs.h >>conftest.$ac_ext
15321cat >>conftest.$ac_ext <<_ACEOF
15322/* end confdefs.h. */
15323
391a765e 15324 #include <stdio.h>
a848cd7e 15325
391a765e
VS
15326 int main()
15327 {
15328 FILE *f=fopen("conftestval", "w");
15329 if (!f) exit(1);
15330 fprintf(f,
a848cd7e 15331 #if (__GNUC__ < 3)
391a765e
VS
15332 "EMX2"
15333 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
15334 "EMX3"
15335 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
15336 "Innotek5"
15337 #else
15338 "Innotek6"
a848cd7e 15339 #endif
391a765e
VS
15340 );
15341 exit(0);
15342 }
a848cd7e 15343
a848cd7e 15344_ACEOF
391a765e
VS
15345rm -f conftest$ac_exeext
15346if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15347 (eval $ac_link) 2>&5
ac1cb8d3
VS
15348 ac_status=$?
15349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 15350 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a848cd7e
SC
15351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15352 (eval $ac_try) 2>&5
15353 ac_status=$?
15354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15355 (exit $ac_status); }; }; then
391a765e 15356 wx_cv_gccversion=`cat conftestval`
a848cd7e 15357else
391a765e
VS
15358 echo "$as_me: program exited with status $ac_status" >&5
15359echo "$as_me: failed program was:" >&5
a848cd7e
SC
15360sed 's/^/| /' conftest.$ac_ext >&5
15361
391a765e
VS
15362( exit $ac_status )
15363wx_cv_gccversion="EMX2"
a848cd7e 15364fi
391a765e 15365rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 15366fi
a848cd7e
SC
15367
15368fi
15369echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
15370echo "${ECHO_T}$wx_cv_gccversion" >&6
6ba87b06
SN
15371 ac_ext=cc
15372ac_cpp='$CXXCPP $CPPFLAGS'
15373ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15374ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15375ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15376
391a765e 15377 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
15378 LIBS="$LIBS -lstdcpp"
15379 LDFLAGS="$LDFLAGS -Zsysv-signals"
15380 else
391a765e 15381 if test "$wx_cv_gccversion" = "EMX3"; then
ddd14b14 15382 LIBS="$LIBS -lstdcxx -lgcc"
a848cd7e
SC
15383 LDFLAGS="$LDFLAGS -Zsysv-signals"
15384 else
15385 LIBS="$LIBS -lstdc++"
15386 fi
15387 fi
94acd38e
DE
15388 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
15389 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
15390echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
15391 wxUSE_OMF=yes
2da0c077 15392 enable_omf=yes
a848cd7e
SC
15393 fi
15394 ;;
15395 *)
15396
95986553 15397 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
15398echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
15399if test "${ac_cv_string_strcasecmp+set}" = set; then
15400 echo $ECHO_N "(cached) $ECHO_C" >&6
15401else
15402
15403 cat >conftest.$ac_ext <<_ACEOF
15404/* confdefs.h. */
15405_ACEOF
15406cat confdefs.h >>conftest.$ac_ext
15407cat >>conftest.$ac_ext <<_ACEOF
15408/* end confdefs.h. */
15409
15410 #include <string.h>
15411
15412int
15413main ()
15414{
15415
15416 strcasecmp("foo", "bar");
15417
15418 ;
15419 return 0;
15420}
15421_ACEOF
15422rm -f conftest.$ac_objext conftest$ac_exeext
15423if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15424 (eval $ac_link) 2>conftest.er1
a848cd7e 15425 ac_status=$?
ac1cb8d3
VS
15426 grep -v '^ *+' conftest.er1 >conftest.err
15427 rm -f conftest.er1
15428 cat conftest.err >&5
a848cd7e
SC
15429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15430 (exit $ac_status); } &&
5d7b7554 15431 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15433 (eval $ac_try) 2>&5
15434 ac_status=$?
15435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15436 (exit $ac_status); }; } &&
15437 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15439 (eval $ac_try) 2>&5
15440 ac_status=$?
15441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15442 (exit $ac_status); }; }; then
15443 ac_cv_string_strcasecmp=yes
15444else
15445 echo "$as_me: failed program was:" >&5
15446sed 's/^/| /' conftest.$ac_ext >&5
15447
15448ac_cv_string_strcasecmp=no
15449
15450fi
ac1cb8d3
VS
15451rm -f conftest.err conftest.$ac_objext \
15452 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15453
15454fi
15455echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
15456echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
15457
15458 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
15459 cat >>confdefs.h <<\_ACEOF
15460#define HAVE_STRCASECMP_IN_STRING_H 1
15461_ACEOF
15462
15463 else
15464 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
15465echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
15466if test "${ac_cv_strings_strcasecmp+set}" = set; then
15467 echo $ECHO_N "(cached) $ECHO_C" >&6
15468else
15469
15470 cat >conftest.$ac_ext <<_ACEOF
15471/* confdefs.h. */
15472_ACEOF
15473cat confdefs.h >>conftest.$ac_ext
15474cat >>conftest.$ac_ext <<_ACEOF
15475/* end confdefs.h. */
15476
15477 #include <strings.h>
15478
15479int
15480main ()
15481{
15482
15483 strcasecmp("foo", "bar");
15484
15485 ;
15486 return 0;
15487}
15488_ACEOF
15489rm -f conftest.$ac_objext conftest$ac_exeext
15490if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15491 (eval $ac_link) 2>conftest.er1
a848cd7e 15492 ac_status=$?
ac1cb8d3
VS
15493 grep -v '^ *+' conftest.er1 >conftest.err
15494 rm -f conftest.er1
15495 cat conftest.err >&5
a848cd7e
SC
15496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15497 (exit $ac_status); } &&
5d7b7554 15498 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15500 (eval $ac_try) 2>&5
15501 ac_status=$?
15502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503 (exit $ac_status); }; } &&
15504 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15506 (eval $ac_try) 2>&5
15507 ac_status=$?
15508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15509 (exit $ac_status); }; }; then
15510 ac_cv_strings_strcasecmp=yes
15511else
15512 echo "$as_me: failed program was:" >&5
15513sed 's/^/| /' conftest.$ac_ext >&5
15514
15515ac_cv_strings_strcasecmp=no
15516
15517fi
ac1cb8d3
VS
15518rm -f conftest.err conftest.$ac_objext \
15519 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15520
15521fi
15522echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
15523echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
15524
0c3c69fc 15525 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
15526 cat >>confdefs.h <<\_ACEOF
15527#define HAVE_STRCASECMP_IN_STRINGS_H 1
15528_ACEOF
15529
15530 else
15531 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
15532echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
15533 { (exit 1); exit 1; }; }
15534 fi
15535 fi
15536
a848cd7e
SC
15537 ;;
15538esac
15539
15540
5d7b7554
VZ
15541ac_ext=cc
15542ac_cpp='$CXXCPP $CPPFLAGS'
15543ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15544ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15545ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15546echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
15547echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
15548if test -z "$CXXCPP"; then
15549 if test "${ac_cv_prog_CXXCPP+set}" = set; then
15550 echo $ECHO_N "(cached) $ECHO_C" >&6
15551else
15552 # Double quotes because CXXCPP needs to be expanded
15553 for CXXCPP in "$CXX -E" "/lib/cpp"
15554 do
15555 ac_preproc_ok=false
15556for ac_cxx_preproc_warn_flag in '' yes
15557do
15558 # Use a header file that comes with gcc, so configuring glibc
15559 # with a fresh cross-compiler works.
15560 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15561 # <limits.h> exists even on freestanding compilers.
15562 # On the NeXT, cc -E runs the code through the compiler's parser,
15563 # not just through cpp. "Syntax error" is here to catch this case.
15564 cat >conftest.$ac_ext <<_ACEOF
15565/* confdefs.h. */
15566_ACEOF
15567cat confdefs.h >>conftest.$ac_ext
15568cat >>conftest.$ac_ext <<_ACEOF
15569/* end confdefs.h. */
15570#ifdef __STDC__
15571# include <limits.h>
15572#else
15573# include <assert.h>
15574#endif
15575 Syntax error
15576_ACEOF
15577if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15578 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15579 ac_status=$?
15580 grep -v '^ *+' conftest.er1 >conftest.err
15581 rm -f conftest.er1
15582 cat conftest.err >&5
15583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584 (exit $ac_status); } >/dev/null; then
15585 if test -s conftest.err; then
15586 ac_cpp_err=$ac_cxx_preproc_warn_flag
15587 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15588 else
15589 ac_cpp_err=
15590 fi
15591else
15592 ac_cpp_err=yes
15593fi
15594if test -z "$ac_cpp_err"; then
15595 :
15596else
15597 echo "$as_me: failed program was:" >&5
15598sed 's/^/| /' conftest.$ac_ext >&5
15599
15600 # Broken: fails on valid input.
15601continue
15602fi
15603rm -f conftest.err conftest.$ac_ext
15604
15605 # OK, works on sane cases. Now check whether non-existent headers
15606 # can be detected and how.
15607 cat >conftest.$ac_ext <<_ACEOF
15608/* confdefs.h. */
15609_ACEOF
15610cat confdefs.h >>conftest.$ac_ext
15611cat >>conftest.$ac_ext <<_ACEOF
15612/* end confdefs.h. */
15613#include <ac_nonexistent.h>
15614_ACEOF
15615if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15616 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15617 ac_status=$?
15618 grep -v '^ *+' conftest.er1 >conftest.err
15619 rm -f conftest.er1
15620 cat conftest.err >&5
15621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15622 (exit $ac_status); } >/dev/null; then
15623 if test -s conftest.err; then
15624 ac_cpp_err=$ac_cxx_preproc_warn_flag
15625 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15626 else
15627 ac_cpp_err=
15628 fi
15629else
15630 ac_cpp_err=yes
15631fi
15632if test -z "$ac_cpp_err"; then
15633 # Broken: success on invalid input.
15634continue
15635else
15636 echo "$as_me: failed program was:" >&5
15637sed 's/^/| /' conftest.$ac_ext >&5
15638
15639 # Passes both tests.
15640ac_preproc_ok=:
15641break
15642fi
15643rm -f conftest.err conftest.$ac_ext
15644
15645done
15646# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15647rm -f conftest.err conftest.$ac_ext
15648if $ac_preproc_ok; then
15649 break
15650fi
15651
15652 done
15653 ac_cv_prog_CXXCPP=$CXXCPP
15654
15655fi
15656 CXXCPP=$ac_cv_prog_CXXCPP
15657else
15658 ac_cv_prog_CXXCPP=$CXXCPP
15659fi
15660echo "$as_me:$LINENO: result: $CXXCPP" >&5
15661echo "${ECHO_T}$CXXCPP" >&6
15662ac_preproc_ok=false
15663for ac_cxx_preproc_warn_flag in '' yes
15664do
15665 # Use a header file that comes with gcc, so configuring glibc
15666 # with a fresh cross-compiler works.
15667 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15668 # <limits.h> exists even on freestanding compilers.
15669 # On the NeXT, cc -E runs the code through the compiler's parser,
15670 # not just through cpp. "Syntax error" is here to catch this case.
15671 cat >conftest.$ac_ext <<_ACEOF
15672/* confdefs.h. */
15673_ACEOF
15674cat confdefs.h >>conftest.$ac_ext
15675cat >>conftest.$ac_ext <<_ACEOF
15676/* end confdefs.h. */
15677#ifdef __STDC__
15678# include <limits.h>
15679#else
15680# include <assert.h>
15681#endif
15682 Syntax error
15683_ACEOF
15684if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15685 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15686 ac_status=$?
15687 grep -v '^ *+' conftest.er1 >conftest.err
15688 rm -f conftest.er1
15689 cat conftest.err >&5
15690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15691 (exit $ac_status); } >/dev/null; then
15692 if test -s conftest.err; then
15693 ac_cpp_err=$ac_cxx_preproc_warn_flag
15694 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15695 else
15696 ac_cpp_err=
15697 fi
15698else
15699 ac_cpp_err=yes
15700fi
15701if test -z "$ac_cpp_err"; then
15702 :
15703else
15704 echo "$as_me: failed program was:" >&5
15705sed 's/^/| /' conftest.$ac_ext >&5
15706
15707 # Broken: fails on valid input.
15708continue
15709fi
15710rm -f conftest.err conftest.$ac_ext
15711
15712 # OK, works on sane cases. Now check whether non-existent headers
15713 # can be detected and how.
15714 cat >conftest.$ac_ext <<_ACEOF
15715/* confdefs.h. */
15716_ACEOF
15717cat confdefs.h >>conftest.$ac_ext
15718cat >>conftest.$ac_ext <<_ACEOF
15719/* end confdefs.h. */
15720#include <ac_nonexistent.h>
15721_ACEOF
15722if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15723 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15724 ac_status=$?
15725 grep -v '^ *+' conftest.er1 >conftest.err
15726 rm -f conftest.er1
15727 cat conftest.err >&5
15728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15729 (exit $ac_status); } >/dev/null; then
15730 if test -s conftest.err; then
15731 ac_cpp_err=$ac_cxx_preproc_warn_flag
15732 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15733 else
15734 ac_cpp_err=
15735 fi
15736else
15737 ac_cpp_err=yes
15738fi
15739if test -z "$ac_cpp_err"; then
15740 # Broken: success on invalid input.
15741continue
15742else
15743 echo "$as_me: failed program was:" >&5
15744sed 's/^/| /' conftest.$ac_ext >&5
15745
15746 # Passes both tests.
15747ac_preproc_ok=:
15748break
15749fi
15750rm -f conftest.err conftest.$ac_ext
15751
15752done
15753# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15754rm -f conftest.err conftest.$ac_ext
15755if $ac_preproc_ok; then
15756 :
15757else
15758 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
15759See \`config.log' for more details." >&5
15760echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
15761See \`config.log' for more details." >&2;}
15762 { (exit 1); exit 1; }; }
15763fi
15764
15765ac_ext=cc
15766ac_cpp='$CXXCPP $CPPFLAGS'
15767ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15768ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15769ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15770
15771
a848cd7e
SC
15772echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15773echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
15774if test "${ac_cv_header_stdc+set}" = set; then
15775 echo $ECHO_N "(cached) $ECHO_C" >&6
15776else
15777 cat >conftest.$ac_ext <<_ACEOF
15778/* confdefs.h. */
15779_ACEOF
15780cat confdefs.h >>conftest.$ac_ext
15781cat >>conftest.$ac_ext <<_ACEOF
15782/* end confdefs.h. */
15783#include <stdlib.h>
15784#include <stdarg.h>
15785#include <string.h>
15786#include <float.h>
15787
15788int
15789main ()
15790{
15791
15792 ;
15793 return 0;
15794}
15795_ACEOF
15796rm -f conftest.$ac_objext
15797if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15798 (eval $ac_compile) 2>conftest.er1
a848cd7e 15799 ac_status=$?
ac1cb8d3
VS
15800 grep -v '^ *+' conftest.er1 >conftest.err
15801 rm -f conftest.er1
15802 cat conftest.err >&5
a848cd7e
SC
15803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804 (exit $ac_status); } &&
5d7b7554 15805 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15807 (eval $ac_try) 2>&5
15808 ac_status=$?
15809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15810 (exit $ac_status); }; } &&
15811 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15813 (eval $ac_try) 2>&5
15814 ac_status=$?
15815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15816 (exit $ac_status); }; }; then
15817 ac_cv_header_stdc=yes
15818else
15819 echo "$as_me: failed program was:" >&5
15820sed 's/^/| /' conftest.$ac_ext >&5
15821
15822ac_cv_header_stdc=no
15823fi
ac1cb8d3 15824rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15825
15826if test $ac_cv_header_stdc = yes; then
15827 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15828 cat >conftest.$ac_ext <<_ACEOF
15829/* confdefs.h. */
15830_ACEOF
15831cat confdefs.h >>conftest.$ac_ext
15832cat >>conftest.$ac_ext <<_ACEOF
15833/* end confdefs.h. */
15834#include <string.h>
15835
15836_ACEOF
15837if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15838 $EGREP "memchr" >/dev/null 2>&1; then
15839 :
15840else
15841 ac_cv_header_stdc=no
15842fi
15843rm -f conftest*
15844
15845fi
15846
15847if test $ac_cv_header_stdc = yes; then
15848 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15849 cat >conftest.$ac_ext <<_ACEOF
15850/* confdefs.h. */
15851_ACEOF
15852cat confdefs.h >>conftest.$ac_ext
15853cat >>conftest.$ac_ext <<_ACEOF
15854/* end confdefs.h. */
15855#include <stdlib.h>
15856
15857_ACEOF
15858if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15859 $EGREP "free" >/dev/null 2>&1; then
15860 :
15861else
15862 ac_cv_header_stdc=no
15863fi
15864rm -f conftest*
15865
15866fi
15867
15868if test $ac_cv_header_stdc = yes; then
15869 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15870 if test "$cross_compiling" = yes; then
15871 :
15872else
15873 cat >conftest.$ac_ext <<_ACEOF
15874/* confdefs.h. */
15875_ACEOF
15876cat confdefs.h >>conftest.$ac_ext
15877cat >>conftest.$ac_ext <<_ACEOF
15878/* end confdefs.h. */
15879#include <ctype.h>
15880#if ((' ' & 0x0FF) == 0x020)
15881# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15882# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15883#else
15884# define ISLOWER(c) \
ac1cb8d3
VS
15885 (('a' <= (c) && (c) <= 'i') \
15886 || ('j' <= (c) && (c) <= 'r') \
15887 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
15888# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15889#endif
15890
15891#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15892int
15893main ()
15894{
15895 int i;
15896 for (i = 0; i < 256; i++)
15897 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 15898 || toupper (i) != TOUPPER (i))
a848cd7e
SC
15899 exit(2);
15900 exit (0);
15901}
15902_ACEOF
15903rm -f conftest$ac_exeext
15904if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15905 (eval $ac_link) 2>&5
15906 ac_status=$?
15907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15908 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15910 (eval $ac_try) 2>&5
15911 ac_status=$?
15912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913 (exit $ac_status); }; }; then
15914 :
15915else
15916 echo "$as_me: program exited with status $ac_status" >&5
15917echo "$as_me: failed program was:" >&5
15918sed 's/^/| /' conftest.$ac_ext >&5
15919
15920( exit $ac_status )
15921ac_cv_header_stdc=no
15922fi
ac1cb8d3 15923rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15924fi
15925fi
15926fi
15927echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15928echo "${ECHO_T}$ac_cv_header_stdc" >&6
15929if test $ac_cv_header_stdc = yes; then
15930
15931cat >>confdefs.h <<\_ACEOF
15932#define STDC_HEADERS 1
15933_ACEOF
15934
15935fi
15936
15937# On IRIX 5.3, sys/types and inttypes.h are conflicting.
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 15948 inttypes.h stdint.h unistd.h
a848cd7e
SC
15949do
15950as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15951echo "$as_me:$LINENO: checking for $ac_header" >&5
15952echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15953if eval "test \"\${$as_ac_Header+set}\" = set"; then
15954 echo $ECHO_N "(cached) $ECHO_C" >&6
15955else
15956 cat >conftest.$ac_ext <<_ACEOF
15957/* confdefs.h. */
15958_ACEOF
15959cat confdefs.h >>conftest.$ac_ext
15960cat >>conftest.$ac_ext <<_ACEOF
15961/* end confdefs.h. */
15962$ac_includes_default
15963
15964#include <$ac_header>
15965_ACEOF
15966rm -f conftest.$ac_objext
15967if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15968 (eval $ac_compile) 2>conftest.er1
a848cd7e 15969 ac_status=$?
ac1cb8d3
VS
15970 grep -v '^ *+' conftest.er1 >conftest.err
15971 rm -f conftest.er1
15972 cat conftest.err >&5
a848cd7e
SC
15973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15974 (exit $ac_status); } &&
5d7b7554 15975 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15977 (eval $ac_try) 2>&5
15978 ac_status=$?
15979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15980 (exit $ac_status); }; } &&
15981 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15983 (eval $ac_try) 2>&5
15984 ac_status=$?
15985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15986 (exit $ac_status); }; }; then
15987 eval "$as_ac_Header=yes"
15988else
15989 echo "$as_me: failed program was:" >&5
15990sed 's/^/| /' conftest.$ac_ext >&5
15991
15992eval "$as_ac_Header=no"
15993fi
ac1cb8d3 15994rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15995fi
15996echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15997echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15998if test `eval echo '${'$as_ac_Header'}'` = yes; then
15999 cat >>confdefs.h <<_ACEOF
16000#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16001_ACEOF
16002
16003fi
16004
16005done
16006
16007
16008
16009for ac_header in stdlib.h
16010do
16011as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16012if eval "test \"\${$as_ac_Header+set}\" = set"; then
16013 echo "$as_me:$LINENO: checking for $ac_header" >&5
16014echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16015if eval "test \"\${$as_ac_Header+set}\" = set"; then
16016 echo $ECHO_N "(cached) $ECHO_C" >&6
16017fi
16018echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16019echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16020else
16021 # Is the header compilable?
16022echo "$as_me:$LINENO: checking $ac_header usability" >&5
16023echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16024cat >conftest.$ac_ext <<_ACEOF
16025/* confdefs.h. */
16026_ACEOF
16027cat confdefs.h >>conftest.$ac_ext
16028cat >>conftest.$ac_ext <<_ACEOF
16029/* end confdefs.h. */
16030$ac_includes_default
16031#include <$ac_header>
16032_ACEOF
16033rm -f conftest.$ac_objext
16034if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16035 (eval $ac_compile) 2>conftest.er1
a848cd7e 16036 ac_status=$?
ac1cb8d3
VS
16037 grep -v '^ *+' conftest.er1 >conftest.err
16038 rm -f conftest.er1
16039 cat conftest.err >&5
a848cd7e
SC
16040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16041 (exit $ac_status); } &&
5d7b7554 16042 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16044 (eval $ac_try) 2>&5
16045 ac_status=$?
16046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16047 (exit $ac_status); }; } &&
16048 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16050 (eval $ac_try) 2>&5
16051 ac_status=$?
16052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16053 (exit $ac_status); }; }; then
16054 ac_header_compiler=yes
16055else
16056 echo "$as_me: failed program was:" >&5
16057sed 's/^/| /' conftest.$ac_ext >&5
16058
16059ac_header_compiler=no
16060fi
ac1cb8d3 16061rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16062echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16063echo "${ECHO_T}$ac_header_compiler" >&6
16064
16065# Is the header present?
16066echo "$as_me:$LINENO: checking $ac_header presence" >&5
16067echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16068cat >conftest.$ac_ext <<_ACEOF
16069/* confdefs.h. */
16070_ACEOF
16071cat confdefs.h >>conftest.$ac_ext
16072cat >>conftest.$ac_ext <<_ACEOF
16073/* end confdefs.h. */
16074#include <$ac_header>
16075_ACEOF
16076if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16077 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16078 ac_status=$?
16079 grep -v '^ *+' conftest.er1 >conftest.err
16080 rm -f conftest.er1
16081 cat conftest.err >&5
16082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16083 (exit $ac_status); } >/dev/null; then
16084 if test -s conftest.err; then
5d7b7554
VZ
16085 ac_cpp_err=$ac_cxx_preproc_warn_flag
16086 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16087 else
16088 ac_cpp_err=
16089 fi
16090else
16091 ac_cpp_err=yes
16092fi
16093if test -z "$ac_cpp_err"; then
16094 ac_header_preproc=yes
16095else
16096 echo "$as_me: failed program was:" >&5
16097sed 's/^/| /' conftest.$ac_ext >&5
16098
16099 ac_header_preproc=no
16100fi
16101rm -f conftest.err conftest.$ac_ext
16102echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16103echo "${ECHO_T}$ac_header_preproc" >&6
16104
16105# So? What about this header?
5d7b7554 16106case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16107 yes:no: )
a848cd7e
SC
16108 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16109echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16111echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16112 ac_header_preproc=yes
a848cd7e 16113 ;;
ac1cb8d3 16114 no:yes:* )
a848cd7e
SC
16115 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16116echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16117 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16118echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16119 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16120echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16121 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16122echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16124echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16125 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16126echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16127 (
16128 cat <<\_ASBOX
ac1cb8d3
VS
16129## ----------------------------------------- ##
16130## Report this to wx-dev@lists.wxwidgets.org ##
16131## ----------------------------------------- ##
a848cd7e
SC
16132_ASBOX
16133 ) |
16134 sed "s/^/$as_me: WARNING: /" >&2
16135 ;;
16136esac
16137echo "$as_me:$LINENO: checking for $ac_header" >&5
16138echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16139if eval "test \"\${$as_ac_Header+set}\" = set"; then
16140 echo $ECHO_N "(cached) $ECHO_C" >&6
16141else
ac1cb8d3 16142 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16143fi
16144echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16145echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16146
16147fi
16148if test `eval echo '${'$as_ac_Header'}'` = yes; then
16149 cat >>confdefs.h <<_ACEOF
16150#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16151_ACEOF
16152
16153fi
16154
16155done
16156
16157
16158for ac_header in malloc.h
16159do
16160as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16161if eval "test \"\${$as_ac_Header+set}\" = set"; then
16162 echo "$as_me:$LINENO: checking for $ac_header" >&5
16163echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16164if eval "test \"\${$as_ac_Header+set}\" = set"; then
16165 echo $ECHO_N "(cached) $ECHO_C" >&6
16166fi
16167echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16168echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16169else
16170 # Is the header compilable?
16171echo "$as_me:$LINENO: checking $ac_header usability" >&5
16172echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16173cat >conftest.$ac_ext <<_ACEOF
16174/* confdefs.h. */
16175_ACEOF
16176cat confdefs.h >>conftest.$ac_ext
16177cat >>conftest.$ac_ext <<_ACEOF
16178/* end confdefs.h. */
16179$ac_includes_default
16180#include <$ac_header>
16181_ACEOF
16182rm -f conftest.$ac_objext
16183if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16184 (eval $ac_compile) 2>conftest.er1
a848cd7e 16185 ac_status=$?
ac1cb8d3
VS
16186 grep -v '^ *+' conftest.er1 >conftest.err
16187 rm -f conftest.er1
16188 cat conftest.err >&5
a848cd7e
SC
16189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16190 (exit $ac_status); } &&
5d7b7554 16191 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16193 (eval $ac_try) 2>&5
16194 ac_status=$?
16195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16196 (exit $ac_status); }; } &&
16197 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16199 (eval $ac_try) 2>&5
16200 ac_status=$?
16201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16202 (exit $ac_status); }; }; then
16203 ac_header_compiler=yes
16204else
16205 echo "$as_me: failed program was:" >&5
16206sed 's/^/| /' conftest.$ac_ext >&5
16207
16208ac_header_compiler=no
16209fi
ac1cb8d3 16210rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16211echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16212echo "${ECHO_T}$ac_header_compiler" >&6
16213
16214# Is the header present?
16215echo "$as_me:$LINENO: checking $ac_header presence" >&5
16216echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16217cat >conftest.$ac_ext <<_ACEOF
16218/* confdefs.h. */
16219_ACEOF
16220cat confdefs.h >>conftest.$ac_ext
16221cat >>conftest.$ac_ext <<_ACEOF
16222/* end confdefs.h. */
16223#include <$ac_header>
16224_ACEOF
16225if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16226 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16227 ac_status=$?
16228 grep -v '^ *+' conftest.er1 >conftest.err
16229 rm -f conftest.er1
16230 cat conftest.err >&5
16231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16232 (exit $ac_status); } >/dev/null; then
16233 if test -s conftest.err; then
5d7b7554
VZ
16234 ac_cpp_err=$ac_cxx_preproc_warn_flag
16235 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16236 else
16237 ac_cpp_err=
16238 fi
16239else
16240 ac_cpp_err=yes
16241fi
16242if test -z "$ac_cpp_err"; then
16243 ac_header_preproc=yes
16244else
16245 echo "$as_me: failed program was:" >&5
16246sed 's/^/| /' conftest.$ac_ext >&5
16247
16248 ac_header_preproc=no
16249fi
16250rm -f conftest.err conftest.$ac_ext
16251echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16252echo "${ECHO_T}$ac_header_preproc" >&6
16253
16254# So? What about this header?
5d7b7554 16255case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16256 yes:no: )
a848cd7e
SC
16257 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16258echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16259 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16260echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16261 ac_header_preproc=yes
a848cd7e 16262 ;;
ac1cb8d3 16263 no:yes:* )
a848cd7e
SC
16264 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16265echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16266 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16267echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16268 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16269echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16270 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16271echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16272 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16273echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16274 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16275echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16276 (
16277 cat <<\_ASBOX
ac1cb8d3
VS
16278## ----------------------------------------- ##
16279## Report this to wx-dev@lists.wxwidgets.org ##
16280## ----------------------------------------- ##
a848cd7e
SC
16281_ASBOX
16282 ) |
16283 sed "s/^/$as_me: WARNING: /" >&2
16284 ;;
16285esac
16286echo "$as_me:$LINENO: checking for $ac_header" >&5
16287echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16288if eval "test \"\${$as_ac_Header+set}\" = set"; then
16289 echo $ECHO_N "(cached) $ECHO_C" >&6
16290else
ac1cb8d3 16291 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16292fi
16293echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16294echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16295
16296fi
16297if test `eval echo '${'$as_ac_Header'}'` = yes; then
16298 cat >>confdefs.h <<_ACEOF
16299#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16300_ACEOF
16301
16302fi
16303
16304done
16305
16306
16307for ac_header in unistd.h
16308do
16309as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16310if eval "test \"\${$as_ac_Header+set}\" = set"; then
16311 echo "$as_me:$LINENO: checking for $ac_header" >&5
16312echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16313if eval "test \"\${$as_ac_Header+set}\" = set"; then
16314 echo $ECHO_N "(cached) $ECHO_C" >&6
16315fi
16316echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16317echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16318else
16319 # Is the header compilable?
16320echo "$as_me:$LINENO: checking $ac_header usability" >&5
16321echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16322cat >conftest.$ac_ext <<_ACEOF
16323/* confdefs.h. */
16324_ACEOF
16325cat confdefs.h >>conftest.$ac_ext
16326cat >>conftest.$ac_ext <<_ACEOF
16327/* end confdefs.h. */
16328$ac_includes_default
16329#include <$ac_header>
16330_ACEOF
16331rm -f conftest.$ac_objext
16332if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16333 (eval $ac_compile) 2>conftest.er1
a848cd7e 16334 ac_status=$?
ac1cb8d3
VS
16335 grep -v '^ *+' conftest.er1 >conftest.err
16336 rm -f conftest.er1
16337 cat conftest.err >&5
a848cd7e
SC
16338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16339 (exit $ac_status); } &&
5d7b7554 16340 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16342 (eval $ac_try) 2>&5
16343 ac_status=$?
16344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16345 (exit $ac_status); }; } &&
16346 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16348 (eval $ac_try) 2>&5
16349 ac_status=$?
16350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16351 (exit $ac_status); }; }; then
16352 ac_header_compiler=yes
16353else
16354 echo "$as_me: failed program was:" >&5
16355sed 's/^/| /' conftest.$ac_ext >&5
16356
16357ac_header_compiler=no
16358fi
ac1cb8d3 16359rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16360echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16361echo "${ECHO_T}$ac_header_compiler" >&6
16362
16363# Is the header present?
16364echo "$as_me:$LINENO: checking $ac_header presence" >&5
16365echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16366cat >conftest.$ac_ext <<_ACEOF
16367/* confdefs.h. */
16368_ACEOF
16369cat confdefs.h >>conftest.$ac_ext
16370cat >>conftest.$ac_ext <<_ACEOF
16371/* end confdefs.h. */
16372#include <$ac_header>
16373_ACEOF
16374if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16375 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16376 ac_status=$?
16377 grep -v '^ *+' conftest.er1 >conftest.err
16378 rm -f conftest.er1
16379 cat conftest.err >&5
16380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16381 (exit $ac_status); } >/dev/null; then
16382 if test -s conftest.err; then
5d7b7554
VZ
16383 ac_cpp_err=$ac_cxx_preproc_warn_flag
16384 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16385 else
16386 ac_cpp_err=
16387 fi
16388else
16389 ac_cpp_err=yes
16390fi
16391if test -z "$ac_cpp_err"; then
16392 ac_header_preproc=yes
16393else
16394 echo "$as_me: failed program was:" >&5
16395sed 's/^/| /' conftest.$ac_ext >&5
16396
16397 ac_header_preproc=no
16398fi
16399rm -f conftest.err conftest.$ac_ext
16400echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16401echo "${ECHO_T}$ac_header_preproc" >&6
16402
16403# So? What about this header?
5d7b7554 16404case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16405 yes:no: )
a848cd7e
SC
16406 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16407echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16409echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16410 ac_header_preproc=yes
a848cd7e 16411 ;;
ac1cb8d3 16412 no:yes:* )
a848cd7e
SC
16413 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16414echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16415 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16416echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16417 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16418echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16419 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16420echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16421 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16422echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16423 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16424echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16425 (
16426 cat <<\_ASBOX
ac1cb8d3
VS
16427## ----------------------------------------- ##
16428## Report this to wx-dev@lists.wxwidgets.org ##
16429## ----------------------------------------- ##
a848cd7e
SC
16430_ASBOX
16431 ) |
16432 sed "s/^/$as_me: WARNING: /" >&2
16433 ;;
16434esac
16435echo "$as_me:$LINENO: checking for $ac_header" >&5
16436echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16437if eval "test \"\${$as_ac_Header+set}\" = set"; then
16438 echo $ECHO_N "(cached) $ECHO_C" >&6
16439else
ac1cb8d3 16440 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16441fi
16442echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16443echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16444
16445fi
16446if test `eval echo '${'$as_ac_Header'}'` = yes; then
16447 cat >>confdefs.h <<_ACEOF
16448#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16449_ACEOF
16450
16451fi
16452
16453done
16454
16455
16456for ac_header in wchar.h
16457do
16458as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16459if eval "test \"\${$as_ac_Header+set}\" = set"; then
16460 echo "$as_me:$LINENO: checking for $ac_header" >&5
16461echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16462if eval "test \"\${$as_ac_Header+set}\" = set"; then
16463 echo $ECHO_N "(cached) $ECHO_C" >&6
16464fi
16465echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16466echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16467else
16468 # Is the header compilable?
16469echo "$as_me:$LINENO: checking $ac_header usability" >&5
16470echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16471cat >conftest.$ac_ext <<_ACEOF
16472/* confdefs.h. */
16473_ACEOF
16474cat confdefs.h >>conftest.$ac_ext
16475cat >>conftest.$ac_ext <<_ACEOF
16476/* end confdefs.h. */
16477$ac_includes_default
16478#include <$ac_header>
16479_ACEOF
16480rm -f conftest.$ac_objext
16481if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16482 (eval $ac_compile) 2>conftest.er1
a848cd7e 16483 ac_status=$?
ac1cb8d3
VS
16484 grep -v '^ *+' conftest.er1 >conftest.err
16485 rm -f conftest.er1
16486 cat conftest.err >&5
a848cd7e
SC
16487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16488 (exit $ac_status); } &&
5d7b7554 16489 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16491 (eval $ac_try) 2>&5
16492 ac_status=$?
16493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16494 (exit $ac_status); }; } &&
16495 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16497 (eval $ac_try) 2>&5
16498 ac_status=$?
16499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16500 (exit $ac_status); }; }; then
16501 ac_header_compiler=yes
16502else
16503 echo "$as_me: failed program was:" >&5
16504sed 's/^/| /' conftest.$ac_ext >&5
16505
16506ac_header_compiler=no
16507fi
ac1cb8d3 16508rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16509echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16510echo "${ECHO_T}$ac_header_compiler" >&6
16511
16512# Is the header present?
16513echo "$as_me:$LINENO: checking $ac_header presence" >&5
16514echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16515cat >conftest.$ac_ext <<_ACEOF
16516/* confdefs.h. */
16517_ACEOF
16518cat confdefs.h >>conftest.$ac_ext
16519cat >>conftest.$ac_ext <<_ACEOF
16520/* end confdefs.h. */
16521#include <$ac_header>
16522_ACEOF
16523if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16524 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16525 ac_status=$?
16526 grep -v '^ *+' conftest.er1 >conftest.err
16527 rm -f conftest.er1
16528 cat conftest.err >&5
16529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16530 (exit $ac_status); } >/dev/null; then
16531 if test -s conftest.err; then
5d7b7554
VZ
16532 ac_cpp_err=$ac_cxx_preproc_warn_flag
16533 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16534 else
16535 ac_cpp_err=
16536 fi
16537else
16538 ac_cpp_err=yes
16539fi
16540if test -z "$ac_cpp_err"; then
16541 ac_header_preproc=yes
16542else
16543 echo "$as_me: failed program was:" >&5
16544sed 's/^/| /' conftest.$ac_ext >&5
16545
16546 ac_header_preproc=no
16547fi
16548rm -f conftest.err conftest.$ac_ext
16549echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16550echo "${ECHO_T}$ac_header_preproc" >&6
16551
16552# So? What about this header?
5d7b7554 16553case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16554 yes:no: )
a848cd7e
SC
16555 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16556echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16557 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16558echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16559 ac_header_preproc=yes
a848cd7e 16560 ;;
ac1cb8d3 16561 no:yes:* )
a848cd7e
SC
16562 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16563echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16564 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16565echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16566 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16567echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16568 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16569echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16570 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16571echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16572 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16573echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16574 (
16575 cat <<\_ASBOX
ac1cb8d3
VS
16576## ----------------------------------------- ##
16577## Report this to wx-dev@lists.wxwidgets.org ##
16578## ----------------------------------------- ##
a848cd7e
SC
16579_ASBOX
16580 ) |
16581 sed "s/^/$as_me: WARNING: /" >&2
16582 ;;
16583esac
16584echo "$as_me:$LINENO: checking for $ac_header" >&5
16585echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16586if eval "test \"\${$as_ac_Header+set}\" = set"; then
16587 echo $ECHO_N "(cached) $ECHO_C" >&6
16588else
ac1cb8d3 16589 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16590fi
16591echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16592echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16593
16594fi
16595if test `eval echo '${'$as_ac_Header'}'` = yes; then
16596 cat >>confdefs.h <<_ACEOF
16597#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16598_ACEOF
16599
16600fi
16601
16602done
16603
16604
16605if test "$ac_cv_header_wchar_h" != "yes"; then
16606
16607for ac_header in wcstr.h
16608do
16609as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16610if eval "test \"\${$as_ac_Header+set}\" = set"; then
16611 echo "$as_me:$LINENO: checking for $ac_header" >&5
16612echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16613if eval "test \"\${$as_ac_Header+set}\" = set"; then
16614 echo $ECHO_N "(cached) $ECHO_C" >&6
16615fi
16616echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16617echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16618else
16619 # Is the header compilable?
16620echo "$as_me:$LINENO: checking $ac_header usability" >&5
16621echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16622cat >conftest.$ac_ext <<_ACEOF
16623/* confdefs.h. */
16624_ACEOF
16625cat confdefs.h >>conftest.$ac_ext
16626cat >>conftest.$ac_ext <<_ACEOF
16627/* end confdefs.h. */
16628$ac_includes_default
16629#include <$ac_header>
16630_ACEOF
16631rm -f conftest.$ac_objext
16632if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16633 (eval $ac_compile) 2>conftest.er1
a848cd7e 16634 ac_status=$?
ac1cb8d3
VS
16635 grep -v '^ *+' conftest.er1 >conftest.err
16636 rm -f conftest.er1
16637 cat conftest.err >&5
a848cd7e
SC
16638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16639 (exit $ac_status); } &&
5d7b7554 16640 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16642 (eval $ac_try) 2>&5
16643 ac_status=$?
16644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16645 (exit $ac_status); }; } &&
16646 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16648 (eval $ac_try) 2>&5
16649 ac_status=$?
16650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16651 (exit $ac_status); }; }; then
16652 ac_header_compiler=yes
16653else
16654 echo "$as_me: failed program was:" >&5
16655sed 's/^/| /' conftest.$ac_ext >&5
16656
16657ac_header_compiler=no
16658fi
ac1cb8d3 16659rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16660echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16661echo "${ECHO_T}$ac_header_compiler" >&6
16662
16663# Is the header present?
16664echo "$as_me:$LINENO: checking $ac_header presence" >&5
16665echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16666cat >conftest.$ac_ext <<_ACEOF
16667/* confdefs.h. */
16668_ACEOF
16669cat confdefs.h >>conftest.$ac_ext
16670cat >>conftest.$ac_ext <<_ACEOF
16671/* end confdefs.h. */
16672#include <$ac_header>
16673_ACEOF
16674if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16675 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16676 ac_status=$?
16677 grep -v '^ *+' conftest.er1 >conftest.err
16678 rm -f conftest.er1
16679 cat conftest.err >&5
16680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16681 (exit $ac_status); } >/dev/null; then
16682 if test -s conftest.err; then
5d7b7554
VZ
16683 ac_cpp_err=$ac_cxx_preproc_warn_flag
16684 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16685 else
16686 ac_cpp_err=
16687 fi
16688else
16689 ac_cpp_err=yes
16690fi
16691if test -z "$ac_cpp_err"; then
16692 ac_header_preproc=yes
16693else
16694 echo "$as_me: failed program was:" >&5
16695sed 's/^/| /' conftest.$ac_ext >&5
16696
16697 ac_header_preproc=no
16698fi
16699rm -f conftest.err conftest.$ac_ext
16700echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16701echo "${ECHO_T}$ac_header_preproc" >&6
16702
16703# So? What about this header?
5d7b7554 16704case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16705 yes:no: )
a848cd7e
SC
16706 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16707echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16708 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16709echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16710 ac_header_preproc=yes
a848cd7e 16711 ;;
ac1cb8d3 16712 no:yes:* )
a848cd7e
SC
16713 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16714echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16715 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16716echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16717 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16718echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16719 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16720echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16721 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16722echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16723 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16724echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16725 (
16726 cat <<\_ASBOX
ac1cb8d3
VS
16727## ----------------------------------------- ##
16728## Report this to wx-dev@lists.wxwidgets.org ##
16729## ----------------------------------------- ##
a848cd7e
SC
16730_ASBOX
16731 ) |
16732 sed "s/^/$as_me: WARNING: /" >&2
16733 ;;
16734esac
16735echo "$as_me:$LINENO: checking for $ac_header" >&5
16736echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16737if eval "test \"\${$as_ac_Header+set}\" = set"; then
16738 echo $ECHO_N "(cached) $ECHO_C" >&6
16739else
ac1cb8d3 16740 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16741fi
16742echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16743echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16744
16745fi
16746if test `eval echo '${'$as_ac_Header'}'` = yes; then
16747 cat >>confdefs.h <<_ACEOF
16748#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16749_ACEOF
16750
16751fi
16752
16753done
16754
16755fi
16756
16757
16758for ac_header in fnmatch.h
16759do
16760as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16761if eval "test \"\${$as_ac_Header+set}\" = set"; then
16762 echo "$as_me:$LINENO: checking for $ac_header" >&5
16763echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16764if eval "test \"\${$as_ac_Header+set}\" = set"; then
16765 echo $ECHO_N "(cached) $ECHO_C" >&6
16766fi
16767echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16768echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16769else
16770 # Is the header compilable?
16771echo "$as_me:$LINENO: checking $ac_header usability" >&5
16772echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16773cat >conftest.$ac_ext <<_ACEOF
16774/* confdefs.h. */
16775_ACEOF
16776cat confdefs.h >>conftest.$ac_ext
16777cat >>conftest.$ac_ext <<_ACEOF
16778/* end confdefs.h. */
16779$ac_includes_default
16780#include <$ac_header>
16781_ACEOF
16782rm -f conftest.$ac_objext
16783if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16784 (eval $ac_compile) 2>conftest.er1
a848cd7e 16785 ac_status=$?
ac1cb8d3
VS
16786 grep -v '^ *+' conftest.er1 >conftest.err
16787 rm -f conftest.er1
16788 cat conftest.err >&5
a848cd7e
SC
16789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16790 (exit $ac_status); } &&
5d7b7554 16791 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16793 (eval $ac_try) 2>&5
16794 ac_status=$?
16795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16796 (exit $ac_status); }; } &&
16797 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16799 (eval $ac_try) 2>&5
16800 ac_status=$?
16801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16802 (exit $ac_status); }; }; then
16803 ac_header_compiler=yes
16804else
16805 echo "$as_me: failed program was:" >&5
16806sed 's/^/| /' conftest.$ac_ext >&5
16807
16808ac_header_compiler=no
16809fi
ac1cb8d3 16810rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16811echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16812echo "${ECHO_T}$ac_header_compiler" >&6
16813
16814# Is the header present?
16815echo "$as_me:$LINENO: checking $ac_header presence" >&5
16816echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16817cat >conftest.$ac_ext <<_ACEOF
16818/* confdefs.h. */
16819_ACEOF
16820cat confdefs.h >>conftest.$ac_ext
16821cat >>conftest.$ac_ext <<_ACEOF
16822/* end confdefs.h. */
16823#include <$ac_header>
16824_ACEOF
16825if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16826 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16827 ac_status=$?
16828 grep -v '^ *+' conftest.er1 >conftest.err
16829 rm -f conftest.er1
16830 cat conftest.err >&5
16831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16832 (exit $ac_status); } >/dev/null; then
16833 if test -s conftest.err; then
5d7b7554
VZ
16834 ac_cpp_err=$ac_cxx_preproc_warn_flag
16835 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16836 else
16837 ac_cpp_err=
16838 fi
16839else
16840 ac_cpp_err=yes
16841fi
16842if test -z "$ac_cpp_err"; then
16843 ac_header_preproc=yes
16844else
16845 echo "$as_me: failed program was:" >&5
16846sed 's/^/| /' conftest.$ac_ext >&5
16847
16848 ac_header_preproc=no
16849fi
16850rm -f conftest.err conftest.$ac_ext
16851echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16852echo "${ECHO_T}$ac_header_preproc" >&6
16853
16854# So? What about this header?
5d7b7554 16855case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16856 yes:no: )
a848cd7e
SC
16857 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16858echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16860echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16861 ac_header_preproc=yes
a848cd7e 16862 ;;
ac1cb8d3 16863 no:yes:* )
a848cd7e
SC
16864 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16865echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16866 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16867echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16868 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16869echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16870 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16871echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16872 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16873echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16874 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16875echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16876 (
16877 cat <<\_ASBOX
ac1cb8d3
VS
16878## ----------------------------------------- ##
16879## Report this to wx-dev@lists.wxwidgets.org ##
16880## ----------------------------------------- ##
a848cd7e
SC
16881_ASBOX
16882 ) |
16883 sed "s/^/$as_me: WARNING: /" >&2
16884 ;;
16885esac
16886echo "$as_me:$LINENO: checking for $ac_header" >&5
16887echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16888if eval "test \"\${$as_ac_Header+set}\" = set"; then
16889 echo $ECHO_N "(cached) $ECHO_C" >&6
16890else
ac1cb8d3 16891 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16892fi
16893echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16894echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16895
16896fi
16897if test `eval echo '${'$as_ac_Header'}'` = yes; then
16898 cat >>confdefs.h <<_ACEOF
16899#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16900_ACEOF
16901
16902fi
16903
16904done
16905
16906
a848cd7e
SC
16907
16908for ac_header in langinfo.h
16909do
16910as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16911if eval "test \"\${$as_ac_Header+set}\" = set"; then
16912 echo "$as_me:$LINENO: checking for $ac_header" >&5
16913echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16914if eval "test \"\${$as_ac_Header+set}\" = set"; then
16915 echo $ECHO_N "(cached) $ECHO_C" >&6
16916fi
16917echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16918echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16919else
16920 # Is the header compilable?
16921echo "$as_me:$LINENO: checking $ac_header usability" >&5
16922echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16923cat >conftest.$ac_ext <<_ACEOF
16924/* confdefs.h. */
16925_ACEOF
16926cat confdefs.h >>conftest.$ac_ext
16927cat >>conftest.$ac_ext <<_ACEOF
16928/* end confdefs.h. */
16929$ac_includes_default
16930#include <$ac_header>
16931_ACEOF
16932rm -f conftest.$ac_objext
16933if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16934 (eval $ac_compile) 2>conftest.er1
a848cd7e 16935 ac_status=$?
ac1cb8d3
VS
16936 grep -v '^ *+' conftest.er1 >conftest.err
16937 rm -f conftest.er1
16938 cat conftest.err >&5
a848cd7e
SC
16939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16940 (exit $ac_status); } &&
5d7b7554 16941 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16943 (eval $ac_try) 2>&5
16944 ac_status=$?
16945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16946 (exit $ac_status); }; } &&
16947 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16949 (eval $ac_try) 2>&5
16950 ac_status=$?
16951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952 (exit $ac_status); }; }; then
16953 ac_header_compiler=yes
16954else
16955 echo "$as_me: failed program was:" >&5
16956sed 's/^/| /' conftest.$ac_ext >&5
16957
16958ac_header_compiler=no
16959fi
ac1cb8d3 16960rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16961echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16962echo "${ECHO_T}$ac_header_compiler" >&6
16963
16964# Is the header present?
16965echo "$as_me:$LINENO: checking $ac_header presence" >&5
16966echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16967cat >conftest.$ac_ext <<_ACEOF
16968/* confdefs.h. */
16969_ACEOF
16970cat confdefs.h >>conftest.$ac_ext
16971cat >>conftest.$ac_ext <<_ACEOF
16972/* end confdefs.h. */
16973#include <$ac_header>
16974_ACEOF
16975if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16976 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16977 ac_status=$?
16978 grep -v '^ *+' conftest.er1 >conftest.err
16979 rm -f conftest.er1
16980 cat conftest.err >&5
16981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16982 (exit $ac_status); } >/dev/null; then
16983 if test -s conftest.err; then
5d7b7554
VZ
16984 ac_cpp_err=$ac_cxx_preproc_warn_flag
16985 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16986 else
16987 ac_cpp_err=
16988 fi
16989else
16990 ac_cpp_err=yes
16991fi
16992if test -z "$ac_cpp_err"; then
16993 ac_header_preproc=yes
16994else
16995 echo "$as_me: failed program was:" >&5
16996sed 's/^/| /' conftest.$ac_ext >&5
16997
16998 ac_header_preproc=no
16999fi
17000rm -f conftest.err conftest.$ac_ext
17001echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17002echo "${ECHO_T}$ac_header_preproc" >&6
17003
17004# So? What about this header?
5d7b7554 17005case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17006 yes:no: )
a848cd7e
SC
17007 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17008echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17009 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17010echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17011 ac_header_preproc=yes
a848cd7e 17012 ;;
ac1cb8d3 17013 no:yes:* )
a848cd7e
SC
17014 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17015echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17016 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17017echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17018 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17019echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17020 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17021echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17022 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17023echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17024 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17025echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17026 (
17027 cat <<\_ASBOX
ac1cb8d3
VS
17028## ----------------------------------------- ##
17029## Report this to wx-dev@lists.wxwidgets.org ##
17030## ----------------------------------------- ##
a848cd7e
SC
17031_ASBOX
17032 ) |
17033 sed "s/^/$as_me: WARNING: /" >&2
17034 ;;
17035esac
17036echo "$as_me:$LINENO: checking for $ac_header" >&5
17037echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17038if eval "test \"\${$as_ac_Header+set}\" = set"; then
17039 echo $ECHO_N "(cached) $ECHO_C" >&6
17040else
ac1cb8d3 17041 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17042fi
17043echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17044echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17045
17046fi
17047if test `eval echo '${'$as_ac_Header'}'` = yes; then
17048 cat >>confdefs.h <<_ACEOF
17049#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17050_ACEOF
17051
17052fi
17053
17054done
17055
17056
17057case "${host}" in
17058 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
17059 if test $ac_cv_header_langinfo_h = "yes" \
17060 -a \( "$wx_cv_gccversion" = "EMX2" \
17061 -o "$wx_cv_gccversion" = "EMX3" \
17062 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
17063 LIBS="$LIBS -lintl"
17064 fi
17065 ;;
17066esac
17067
a848cd7e
SC
17068
17069echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17070echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
17071if test "${ac_cv_c_const+set}" = set; then
17072 echo $ECHO_N "(cached) $ECHO_C" >&6
17073else
17074 cat >conftest.$ac_ext <<_ACEOF
17075/* confdefs.h. */
17076_ACEOF
17077cat confdefs.h >>conftest.$ac_ext
17078cat >>conftest.$ac_ext <<_ACEOF
17079/* end confdefs.h. */
17080
17081int
17082main ()
17083{
17084/* FIXME: Include the comments suggested by Paul. */
17085#ifndef __cplusplus
17086 /* Ultrix mips cc rejects this. */
17087 typedef int charset[2];
17088 const charset x;
17089 /* SunOS 4.1.1 cc rejects this. */
17090 char const *const *ccp;
17091 char **p;
17092 /* NEC SVR4.0.2 mips cc rejects this. */
17093 struct point {int x, y;};
17094 static struct point const zero = {0,0};
17095 /* AIX XL C 1.02.0.0 rejects this.
17096 It does not let you subtract one const X* pointer from another in
17097 an arm of an if-expression whose if-part is not a constant
17098 expression */
17099 const char *g = "string";
17100 ccp = &g + (g ? g-g : 0);
17101 /* HPUX 7.0 cc rejects these. */
17102 ++ccp;
17103 p = (char**) ccp;
17104 ccp = (char const *const *) p;
17105 { /* SCO 3.2v4 cc rejects this. */
17106 char *t;
17107 char const *s = 0 ? (char *) 0 : (char const *) 0;
17108
17109 *t++ = 0;
17110 }
17111 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17112 int x[] = {25, 17};
17113 const int *foo = &x[0];
17114 ++foo;
17115 }
17116 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17117 typedef const int *iptr;
17118 iptr p = 0;
17119 ++p;
17120 }
17121 { /* AIX XL C 1.02.0.0 rejects this saying
17122 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17123 struct s { int j; const int *ap[3]; };
17124 struct s *b; b->j = 5;
17125 }
17126 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17127 const int foo = 10;
17128 }
17129#endif
17130
17131 ;
17132 return 0;
17133}
17134_ACEOF
17135rm -f conftest.$ac_objext
17136if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17137 (eval $ac_compile) 2>conftest.er1
a848cd7e 17138 ac_status=$?
ac1cb8d3
VS
17139 grep -v '^ *+' conftest.er1 >conftest.err
17140 rm -f conftest.er1
17141 cat conftest.err >&5
a848cd7e
SC
17142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17143 (exit $ac_status); } &&
5d7b7554 17144 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17146 (eval $ac_try) 2>&5
17147 ac_status=$?
17148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17149 (exit $ac_status); }; } &&
17150 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17152 (eval $ac_try) 2>&5
17153 ac_status=$?
17154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155 (exit $ac_status); }; }; then
17156 ac_cv_c_const=yes
17157else
17158 echo "$as_me: failed program was:" >&5
17159sed 's/^/| /' conftest.$ac_ext >&5
17160
17161ac_cv_c_const=no
17162fi
ac1cb8d3 17163rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17164fi
17165echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17166echo "${ECHO_T}$ac_cv_c_const" >&6
17167if test $ac_cv_c_const = no; then
17168
17169cat >>confdefs.h <<\_ACEOF
17170#define const
17171_ACEOF
17172
17173fi
17174
17175echo "$as_me:$LINENO: checking for inline" >&5
17176echo $ECHO_N "checking for inline... $ECHO_C" >&6
17177if test "${ac_cv_c_inline+set}" = set; then
17178 echo $ECHO_N "(cached) $ECHO_C" >&6
17179else
17180 ac_cv_c_inline=no
17181for ac_kw in inline __inline__ __inline; do
17182 cat >conftest.$ac_ext <<_ACEOF
17183/* confdefs.h. */
17184_ACEOF
17185cat confdefs.h >>conftest.$ac_ext
17186cat >>conftest.$ac_ext <<_ACEOF
17187/* end confdefs.h. */
17188#ifndef __cplusplus
17189typedef int foo_t;
17190static $ac_kw foo_t static_foo () {return 0; }
17191$ac_kw foo_t foo () {return 0; }
17192#endif
17193
17194_ACEOF
17195rm -f conftest.$ac_objext
17196if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17197 (eval $ac_compile) 2>conftest.er1
a848cd7e 17198 ac_status=$?
ac1cb8d3
VS
17199 grep -v '^ *+' conftest.er1 >conftest.err
17200 rm -f conftest.er1
17201 cat conftest.err >&5
a848cd7e
SC
17202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17203 (exit $ac_status); } &&
5d7b7554 17204 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17206 (eval $ac_try) 2>&5
17207 ac_status=$?
17208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17209 (exit $ac_status); }; } &&
17210 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17212 (eval $ac_try) 2>&5
17213 ac_status=$?
17214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17215 (exit $ac_status); }; }; then
17216 ac_cv_c_inline=$ac_kw; break
17217else
17218 echo "$as_me: failed program was:" >&5
17219sed 's/^/| /' conftest.$ac_ext >&5
17220
17221fi
ac1cb8d3 17222rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17223done
17224
17225fi
17226echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
17227echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
17228
17229
a848cd7e
SC
17230case $ac_cv_c_inline in
17231 inline | yes) ;;
ac1cb8d3
VS
17232 *)
17233 case $ac_cv_c_inline in
17234 no) ac_val=;;
17235 *) ac_val=$ac_cv_c_inline;;
17236 esac
17237 cat >>confdefs.h <<_ACEOF
17238#ifndef __cplusplus
17239#define inline $ac_val
17240#endif
de59c161 17241_ACEOF
ac1cb8d3 17242 ;;
a848cd7e
SC
17243esac
17244
17245
17246echo "$as_me:$LINENO: checking for char" >&5
17247echo $ECHO_N "checking for char... $ECHO_C" >&6
17248if test "${ac_cv_type_char+set}" = set; then
17249 echo $ECHO_N "(cached) $ECHO_C" >&6
17250else
17251 cat >conftest.$ac_ext <<_ACEOF
17252/* confdefs.h. */
17253_ACEOF
17254cat confdefs.h >>conftest.$ac_ext
17255cat >>conftest.$ac_ext <<_ACEOF
17256/* end confdefs.h. */
17257$ac_includes_default
17258int
17259main ()
17260{
17261if ((char *) 0)
17262 return 0;
17263if (sizeof (char))
17264 return 0;
17265 ;
17266 return 0;
17267}
17268_ACEOF
17269rm -f conftest.$ac_objext
17270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17271 (eval $ac_compile) 2>conftest.er1
a848cd7e 17272 ac_status=$?
ac1cb8d3
VS
17273 grep -v '^ *+' conftest.er1 >conftest.err
17274 rm -f conftest.er1
17275 cat conftest.err >&5
a848cd7e
SC
17276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17277 (exit $ac_status); } &&
5d7b7554 17278 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17280 (eval $ac_try) 2>&5
17281 ac_status=$?
17282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17283 (exit $ac_status); }; } &&
17284 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17286 (eval $ac_try) 2>&5
17287 ac_status=$?
17288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17289 (exit $ac_status); }; }; then
17290 ac_cv_type_char=yes
17291else
17292 echo "$as_me: failed program was:" >&5
17293sed 's/^/| /' conftest.$ac_ext >&5
17294
17295ac_cv_type_char=no
17296fi
ac1cb8d3 17297rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17298fi
17299echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
17300echo "${ECHO_T}$ac_cv_type_char" >&6
17301
17302echo "$as_me:$LINENO: checking size of char" >&5
17303echo $ECHO_N "checking size of char... $ECHO_C" >&6
17304if test "${ac_cv_sizeof_char+set}" = set; then
17305 echo $ECHO_N "(cached) $ECHO_C" >&6
17306else
17307 if test "$ac_cv_type_char" = yes; then
17308 # The cast to unsigned long works around a bug in the HP C Compiler
17309 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17310 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17311 # This bug is HP SR number 8606223364.
17312 if test "$cross_compiling" = yes; then
17313 # Depending upon the size, compute the lo and hi bounds.
17314cat >conftest.$ac_ext <<_ACEOF
17315/* confdefs.h. */
17316_ACEOF
17317cat confdefs.h >>conftest.$ac_ext
17318cat >>conftest.$ac_ext <<_ACEOF
17319/* end confdefs.h. */
17320$ac_includes_default
17321int
17322main ()
17323{
17324static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
17325test_array [0] = 0
17326
17327 ;
17328 return 0;
17329}
17330_ACEOF
17331rm -f conftest.$ac_objext
17332if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17333 (eval $ac_compile) 2>conftest.er1
a848cd7e 17334 ac_status=$?
ac1cb8d3
VS
17335 grep -v '^ *+' conftest.er1 >conftest.err
17336 rm -f conftest.er1
17337 cat conftest.err >&5
a848cd7e
SC
17338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17339 (exit $ac_status); } &&
5d7b7554 17340 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17342 (eval $ac_try) 2>&5
17343 ac_status=$?
17344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17345 (exit $ac_status); }; } &&
17346 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17348 (eval $ac_try) 2>&5
17349 ac_status=$?
17350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17351 (exit $ac_status); }; }; then
17352 ac_lo=0 ac_mid=0
17353 while :; do
17354 cat >conftest.$ac_ext <<_ACEOF
17355/* confdefs.h. */
17356_ACEOF
17357cat confdefs.h >>conftest.$ac_ext
17358cat >>conftest.$ac_ext <<_ACEOF
17359/* end confdefs.h. */
17360$ac_includes_default
17361int
17362main ()
17363{
17364static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
17365test_array [0] = 0
17366
17367 ;
17368 return 0;
17369}
17370_ACEOF
17371rm -f conftest.$ac_objext
17372if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17373 (eval $ac_compile) 2>conftest.er1
a848cd7e 17374 ac_status=$?
ac1cb8d3
VS
17375 grep -v '^ *+' conftest.er1 >conftest.err
17376 rm -f conftest.er1
17377 cat conftest.err >&5
a848cd7e
SC
17378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17379 (exit $ac_status); } &&
5d7b7554 17380 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17382 (eval $ac_try) 2>&5
17383 ac_status=$?
17384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17385 (exit $ac_status); }; } &&
17386 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17388 (eval $ac_try) 2>&5
17389 ac_status=$?
17390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17391 (exit $ac_status); }; }; then
17392 ac_hi=$ac_mid; break
17393else
17394 echo "$as_me: failed program was:" >&5
17395sed 's/^/| /' conftest.$ac_ext >&5
17396
17397ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17398 if test $ac_lo -le $ac_mid; then
17399 ac_lo= ac_hi=
17400 break
17401 fi
17402 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17403fi
ac1cb8d3 17404rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17405 done
17406else
17407 echo "$as_me: failed program was:" >&5
17408sed 's/^/| /' conftest.$ac_ext >&5
17409
17410cat >conftest.$ac_ext <<_ACEOF
17411/* confdefs.h. */
17412_ACEOF
17413cat confdefs.h >>conftest.$ac_ext
17414cat >>conftest.$ac_ext <<_ACEOF
17415/* end confdefs.h. */
17416$ac_includes_default
17417int
17418main ()
17419{
17420static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
17421test_array [0] = 0
17422
17423 ;
17424 return 0;
17425}
17426_ACEOF
17427rm -f conftest.$ac_objext
17428if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17429 (eval $ac_compile) 2>conftest.er1
a848cd7e 17430 ac_status=$?
ac1cb8d3
VS
17431 grep -v '^ *+' conftest.er1 >conftest.err
17432 rm -f conftest.er1
17433 cat conftest.err >&5
a848cd7e
SC
17434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17435 (exit $ac_status); } &&
5d7b7554 17436 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17438 (eval $ac_try) 2>&5
17439 ac_status=$?
17440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17441 (exit $ac_status); }; } &&
17442 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17444 (eval $ac_try) 2>&5
17445 ac_status=$?
17446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17447 (exit $ac_status); }; }; then
17448 ac_hi=-1 ac_mid=-1
17449 while :; do
17450 cat >conftest.$ac_ext <<_ACEOF
17451/* confdefs.h. */
17452_ACEOF
17453cat confdefs.h >>conftest.$ac_ext
17454cat >>conftest.$ac_ext <<_ACEOF
17455/* end confdefs.h. */
17456$ac_includes_default
17457int
17458main ()
17459{
17460static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
17461test_array [0] = 0
17462
17463 ;
17464 return 0;
17465}
17466_ACEOF
17467rm -f conftest.$ac_objext
17468if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17469 (eval $ac_compile) 2>conftest.er1
a848cd7e 17470 ac_status=$?
ac1cb8d3
VS
17471 grep -v '^ *+' conftest.er1 >conftest.err
17472 rm -f conftest.er1
17473 cat conftest.err >&5
a848cd7e
SC
17474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17475 (exit $ac_status); } &&
5d7b7554 17476 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17478 (eval $ac_try) 2>&5
17479 ac_status=$?
17480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17481 (exit $ac_status); }; } &&
17482 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17484 (eval $ac_try) 2>&5
17485 ac_status=$?
17486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17487 (exit $ac_status); }; }; then
17488 ac_lo=$ac_mid; break
17489else
17490 echo "$as_me: failed program was:" >&5
17491sed 's/^/| /' conftest.$ac_ext >&5
17492
17493ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17494 if test $ac_mid -le $ac_hi; then
17495 ac_lo= ac_hi=
17496 break
17497 fi
17498 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17499fi
ac1cb8d3 17500rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17501 done
17502else
17503 echo "$as_me: failed program was:" >&5
17504sed 's/^/| /' conftest.$ac_ext >&5
17505
17506ac_lo= ac_hi=
17507fi
ac1cb8d3 17508rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17509fi
ac1cb8d3 17510rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17511# Binary search between lo and hi bounds.
17512while test "x$ac_lo" != "x$ac_hi"; do
17513 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17514 cat >conftest.$ac_ext <<_ACEOF
17515/* confdefs.h. */
17516_ACEOF
17517cat confdefs.h >>conftest.$ac_ext
17518cat >>conftest.$ac_ext <<_ACEOF
17519/* end confdefs.h. */
17520$ac_includes_default
17521int
17522main ()
17523{
17524static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
17525test_array [0] = 0
17526
17527 ;
17528 return 0;
17529}
17530_ACEOF
17531rm -f conftest.$ac_objext
17532if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17533 (eval $ac_compile) 2>conftest.er1
a848cd7e 17534 ac_status=$?
ac1cb8d3
VS
17535 grep -v '^ *+' conftest.er1 >conftest.err
17536 rm -f conftest.er1
17537 cat conftest.err >&5
a848cd7e
SC
17538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17539 (exit $ac_status); } &&
5d7b7554 17540 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17542 (eval $ac_try) 2>&5
17543 ac_status=$?
17544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545 (exit $ac_status); }; } &&
17546 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17548 (eval $ac_try) 2>&5
17549 ac_status=$?
17550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17551 (exit $ac_status); }; }; then
17552 ac_hi=$ac_mid
17553else
17554 echo "$as_me: failed program was:" >&5
17555sed 's/^/| /' conftest.$ac_ext >&5
17556
17557ac_lo=`expr '(' $ac_mid ')' + 1`
17558fi
ac1cb8d3 17559rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17560done
17561case $ac_lo in
17562?*) ac_cv_sizeof_char=$ac_lo;;
17563'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
17564See \`config.log' for more details." >&5
17565echo "$as_me: error: cannot compute sizeof (char), 77
17566See \`config.log' for more details." >&2;}
17567 { (exit 1); exit 1; }; } ;;
17568esac
17569else
17570 if test "$cross_compiling" = yes; then
5d7b7554
VZ
17571 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17572echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17573 { (exit 1); exit 1; }; }
17574else
17575 cat >conftest.$ac_ext <<_ACEOF
17576/* confdefs.h. */
17577_ACEOF
17578cat confdefs.h >>conftest.$ac_ext
17579cat >>conftest.$ac_ext <<_ACEOF
17580/* end confdefs.h. */
17581$ac_includes_default
17582long longval () { return (long) (sizeof (char)); }
17583unsigned long ulongval () { return (long) (sizeof (char)); }
17584#include <stdio.h>
17585#include <stdlib.h>
17586int
17587main ()
17588{
17589
17590 FILE *f = fopen ("conftest.val", "w");
17591 if (! f)
17592 exit (1);
17593 if (((long) (sizeof (char))) < 0)
17594 {
17595 long i = longval ();
17596 if (i != ((long) (sizeof (char))))
17597 exit (1);
17598 fprintf (f, "%ld\n", i);
17599 }
17600 else
17601 {
17602 unsigned long i = ulongval ();
17603 if (i != ((long) (sizeof (char))))
17604 exit (1);
17605 fprintf (f, "%lu\n", i);
17606 }
17607 exit (ferror (f) || fclose (f) != 0);
17608
17609 ;
17610 return 0;
17611}
17612_ACEOF
17613rm -f conftest$ac_exeext
17614if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17615 (eval $ac_link) 2>&5
17616 ac_status=$?
17617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17618 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17620 (eval $ac_try) 2>&5
17621 ac_status=$?
17622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17623 (exit $ac_status); }; }; then
17624 ac_cv_sizeof_char=`cat conftest.val`
17625else
17626 echo "$as_me: program exited with status $ac_status" >&5
17627echo "$as_me: failed program was:" >&5
17628sed 's/^/| /' conftest.$ac_ext >&5
17629
17630( exit $ac_status )
17631{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
17632See \`config.log' for more details." >&5
17633echo "$as_me: error: cannot compute sizeof (char), 77
17634See \`config.log' for more details." >&2;}
17635 { (exit 1); exit 1; }; }
17636fi
ac1cb8d3 17637rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17638fi
17639fi
17640rm -f conftest.val
17641else
17642 ac_cv_sizeof_char=0
17643fi
17644fi
17645echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
17646echo "${ECHO_T}$ac_cv_sizeof_char" >&6
17647cat >>confdefs.h <<_ACEOF
17648#define SIZEOF_CHAR $ac_cv_sizeof_char
17649_ACEOF
17650
17651
17652echo "$as_me:$LINENO: checking for short" >&5
17653echo $ECHO_N "checking for short... $ECHO_C" >&6
17654if test "${ac_cv_type_short+set}" = set; then
17655 echo $ECHO_N "(cached) $ECHO_C" >&6
17656else
17657 cat >conftest.$ac_ext <<_ACEOF
17658/* confdefs.h. */
17659_ACEOF
17660cat confdefs.h >>conftest.$ac_ext
17661cat >>conftest.$ac_ext <<_ACEOF
17662/* end confdefs.h. */
17663$ac_includes_default
17664int
17665main ()
17666{
17667if ((short *) 0)
17668 return 0;
17669if (sizeof (short))
17670 return 0;
17671 ;
17672 return 0;
17673}
17674_ACEOF
17675rm -f conftest.$ac_objext
17676if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17677 (eval $ac_compile) 2>conftest.er1
a848cd7e 17678 ac_status=$?
ac1cb8d3
VS
17679 grep -v '^ *+' conftest.er1 >conftest.err
17680 rm -f conftest.er1
17681 cat conftest.err >&5
a848cd7e
SC
17682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683 (exit $ac_status); } &&
5d7b7554 17684 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17686 (eval $ac_try) 2>&5
17687 ac_status=$?
17688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17689 (exit $ac_status); }; } &&
17690 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17692 (eval $ac_try) 2>&5
17693 ac_status=$?
17694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17695 (exit $ac_status); }; }; then
17696 ac_cv_type_short=yes
17697else
17698 echo "$as_me: failed program was:" >&5
17699sed 's/^/| /' conftest.$ac_ext >&5
17700
17701ac_cv_type_short=no
17702fi
ac1cb8d3 17703rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17704fi
17705echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
17706echo "${ECHO_T}$ac_cv_type_short" >&6
17707
17708echo "$as_me:$LINENO: checking size of short" >&5
17709echo $ECHO_N "checking size of short... $ECHO_C" >&6
17710if test "${ac_cv_sizeof_short+set}" = set; then
17711 echo $ECHO_N "(cached) $ECHO_C" >&6
17712else
17713 if test "$ac_cv_type_short" = yes; then
17714 # The cast to unsigned long works around a bug in the HP C Compiler
17715 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17716 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17717 # This bug is HP SR number 8606223364.
17718 if test "$cross_compiling" = yes; then
17719 # Depending upon the size, compute the lo and hi bounds.
17720cat >conftest.$ac_ext <<_ACEOF
17721/* confdefs.h. */
17722_ACEOF
17723cat confdefs.h >>conftest.$ac_ext
17724cat >>conftest.$ac_ext <<_ACEOF
17725/* end confdefs.h. */
17726$ac_includes_default
17727int
17728main ()
17729{
17730static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
17731test_array [0] = 0
17732
17733 ;
17734 return 0;
17735}
17736_ACEOF
17737rm -f conftest.$ac_objext
17738if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17739 (eval $ac_compile) 2>conftest.er1
a848cd7e 17740 ac_status=$?
ac1cb8d3
VS
17741 grep -v '^ *+' conftest.er1 >conftest.err
17742 rm -f conftest.er1
17743 cat conftest.err >&5
a848cd7e
SC
17744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17745 (exit $ac_status); } &&
5d7b7554 17746 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17748 (eval $ac_try) 2>&5
17749 ac_status=$?
17750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751 (exit $ac_status); }; } &&
17752 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17754 (eval $ac_try) 2>&5
17755 ac_status=$?
17756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757 (exit $ac_status); }; }; then
17758 ac_lo=0 ac_mid=0
17759 while :; do
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{
17770static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
17771test_array [0] = 0
17772
17773 ;
17774 return 0;
17775}
17776_ACEOF
17777rm -f conftest.$ac_objext
17778if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17779 (eval $ac_compile) 2>conftest.er1
a848cd7e 17780 ac_status=$?
ac1cb8d3
VS
17781 grep -v '^ *+' conftest.er1 >conftest.err
17782 rm -f conftest.er1
17783 cat conftest.err >&5
a848cd7e
SC
17784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17785 (exit $ac_status); } &&
5d7b7554 17786 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17788 (eval $ac_try) 2>&5
17789 ac_status=$?
17790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17791 (exit $ac_status); }; } &&
17792 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17794 (eval $ac_try) 2>&5
17795 ac_status=$?
17796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17797 (exit $ac_status); }; }; then
17798 ac_hi=$ac_mid; break
17799else
17800 echo "$as_me: failed program was:" >&5
17801sed 's/^/| /' conftest.$ac_ext >&5
17802
17803ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17804 if test $ac_lo -le $ac_mid; then
17805 ac_lo= ac_hi=
17806 break
17807 fi
17808 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17809fi
ac1cb8d3 17810rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17811 done
17812else
17813 echo "$as_me: failed program was:" >&5
17814sed 's/^/| /' conftest.$ac_ext >&5
17815
17816cat >conftest.$ac_ext <<_ACEOF
17817/* confdefs.h. */
17818_ACEOF
17819cat confdefs.h >>conftest.$ac_ext
17820cat >>conftest.$ac_ext <<_ACEOF
17821/* end confdefs.h. */
17822$ac_includes_default
17823int
17824main ()
17825{
17826static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
17827test_array [0] = 0
17828
17829 ;
17830 return 0;
17831}
17832_ACEOF
17833rm -f conftest.$ac_objext
17834if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17835 (eval $ac_compile) 2>conftest.er1
a848cd7e 17836 ac_status=$?
ac1cb8d3
VS
17837 grep -v '^ *+' conftest.er1 >conftest.err
17838 rm -f conftest.er1
17839 cat conftest.err >&5
a848cd7e
SC
17840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17841 (exit $ac_status); } &&
5d7b7554 17842 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17844 (eval $ac_try) 2>&5
17845 ac_status=$?
17846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17847 (exit $ac_status); }; } &&
17848 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17850 (eval $ac_try) 2>&5
17851 ac_status=$?
17852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853 (exit $ac_status); }; }; then
17854 ac_hi=-1 ac_mid=-1
17855 while :; do
17856 cat >conftest.$ac_ext <<_ACEOF
17857/* confdefs.h. */
17858_ACEOF
17859cat confdefs.h >>conftest.$ac_ext
17860cat >>conftest.$ac_ext <<_ACEOF
17861/* end confdefs.h. */
17862$ac_includes_default
17863int
17864main ()
17865{
17866static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
17867test_array [0] = 0
17868
17869 ;
17870 return 0;
17871}
17872_ACEOF
17873rm -f conftest.$ac_objext
17874if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17875 (eval $ac_compile) 2>conftest.er1
a848cd7e 17876 ac_status=$?
ac1cb8d3
VS
17877 grep -v '^ *+' conftest.er1 >conftest.err
17878 rm -f conftest.er1
17879 cat conftest.err >&5
a848cd7e
SC
17880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17881 (exit $ac_status); } &&
5d7b7554 17882 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17884 (eval $ac_try) 2>&5
17885 ac_status=$?
17886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17887 (exit $ac_status); }; } &&
17888 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17890 (eval $ac_try) 2>&5
17891 ac_status=$?
17892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17893 (exit $ac_status); }; }; then
17894 ac_lo=$ac_mid; break
17895else
17896 echo "$as_me: failed program was:" >&5
17897sed 's/^/| /' conftest.$ac_ext >&5
17898
17899ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17900 if test $ac_mid -le $ac_hi; then
17901 ac_lo= ac_hi=
17902 break
17903 fi
17904 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17905fi
ac1cb8d3 17906rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17907 done
17908else
17909 echo "$as_me: failed program was:" >&5
17910sed 's/^/| /' conftest.$ac_ext >&5
17911
17912ac_lo= ac_hi=
17913fi
ac1cb8d3 17914rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17915fi
ac1cb8d3 17916rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17917# Binary search between lo and hi bounds.
17918while test "x$ac_lo" != "x$ac_hi"; do
17919 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17920 cat >conftest.$ac_ext <<_ACEOF
17921/* confdefs.h. */
17922_ACEOF
17923cat confdefs.h >>conftest.$ac_ext
17924cat >>conftest.$ac_ext <<_ACEOF
17925/* end confdefs.h. */
17926$ac_includes_default
17927int
17928main ()
17929{
17930static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
17931test_array [0] = 0
17932
17933 ;
17934 return 0;
17935}
17936_ACEOF
17937rm -f conftest.$ac_objext
17938if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17939 (eval $ac_compile) 2>conftest.er1
a848cd7e 17940 ac_status=$?
ac1cb8d3
VS
17941 grep -v '^ *+' conftest.er1 >conftest.err
17942 rm -f conftest.er1
17943 cat conftest.err >&5
a848cd7e
SC
17944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17945 (exit $ac_status); } &&
5d7b7554 17946 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17948 (eval $ac_try) 2>&5
17949 ac_status=$?
17950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17951 (exit $ac_status); }; } &&
17952 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17954 (eval $ac_try) 2>&5
17955 ac_status=$?
17956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17957 (exit $ac_status); }; }; then
17958 ac_hi=$ac_mid
17959else
17960 echo "$as_me: failed program was:" >&5
17961sed 's/^/| /' conftest.$ac_ext >&5
17962
17963ac_lo=`expr '(' $ac_mid ')' + 1`
17964fi
ac1cb8d3 17965rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17966done
17967case $ac_lo in
17968?*) ac_cv_sizeof_short=$ac_lo;;
17969'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
17970See \`config.log' for more details." >&5
17971echo "$as_me: error: cannot compute sizeof (short), 77
17972See \`config.log' for more details." >&2;}
17973 { (exit 1); exit 1; }; } ;;
17974esac
17975else
17976 if test "$cross_compiling" = yes; then
5d7b7554
VZ
17977 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17978echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17979 { (exit 1); exit 1; }; }
17980else
17981 cat >conftest.$ac_ext <<_ACEOF
17982/* confdefs.h. */
17983_ACEOF
17984cat confdefs.h >>conftest.$ac_ext
17985cat >>conftest.$ac_ext <<_ACEOF
17986/* end confdefs.h. */
17987$ac_includes_default
17988long longval () { return (long) (sizeof (short)); }
17989unsigned long ulongval () { return (long) (sizeof (short)); }
17990#include <stdio.h>
17991#include <stdlib.h>
17992int
17993main ()
17994{
17995
17996 FILE *f = fopen ("conftest.val", "w");
17997 if (! f)
17998 exit (1);
17999 if (((long) (sizeof (short))) < 0)
18000 {
18001 long i = longval ();
18002 if (i != ((long) (sizeof (short))))
18003 exit (1);
18004 fprintf (f, "%ld\n", i);
18005 }
18006 else
18007 {
18008 unsigned long i = ulongval ();
18009 if (i != ((long) (sizeof (short))))
18010 exit (1);
18011 fprintf (f, "%lu\n", i);
18012 }
18013 exit (ferror (f) || fclose (f) != 0);
18014
18015 ;
18016 return 0;
18017}
18018_ACEOF
18019rm -f conftest$ac_exeext
18020if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18021 (eval $ac_link) 2>&5
18022 ac_status=$?
18023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18024 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18026 (eval $ac_try) 2>&5
18027 ac_status=$?
18028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029 (exit $ac_status); }; }; then
18030 ac_cv_sizeof_short=`cat conftest.val`
18031else
18032 echo "$as_me: program exited with status $ac_status" >&5
18033echo "$as_me: failed program was:" >&5
18034sed 's/^/| /' conftest.$ac_ext >&5
18035
18036( exit $ac_status )
18037{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18038See \`config.log' for more details." >&5
18039echo "$as_me: error: cannot compute sizeof (short), 77
18040See \`config.log' for more details." >&2;}
18041 { (exit 1); exit 1; }; }
18042fi
ac1cb8d3 18043rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18044fi
18045fi
18046rm -f conftest.val
18047else
18048 ac_cv_sizeof_short=0
18049fi
18050fi
18051echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
18052echo "${ECHO_T}$ac_cv_sizeof_short" >&6
18053cat >>confdefs.h <<_ACEOF
18054#define SIZEOF_SHORT $ac_cv_sizeof_short
18055_ACEOF
18056
18057
18058echo "$as_me:$LINENO: checking for void *" >&5
18059echo $ECHO_N "checking for void *... $ECHO_C" >&6
18060if test "${ac_cv_type_void_p+set}" = set; then
18061 echo $ECHO_N "(cached) $ECHO_C" >&6
18062else
18063 cat >conftest.$ac_ext <<_ACEOF
18064/* confdefs.h. */
18065_ACEOF
18066cat confdefs.h >>conftest.$ac_ext
18067cat >>conftest.$ac_ext <<_ACEOF
18068/* end confdefs.h. */
18069$ac_includes_default
18070int
18071main ()
18072{
18073if ((void * *) 0)
18074 return 0;
18075if (sizeof (void *))
18076 return 0;
18077 ;
18078 return 0;
18079}
18080_ACEOF
18081rm -f conftest.$ac_objext
18082if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18083 (eval $ac_compile) 2>conftest.er1
a848cd7e 18084 ac_status=$?
ac1cb8d3
VS
18085 grep -v '^ *+' conftest.er1 >conftest.err
18086 rm -f conftest.er1
18087 cat conftest.err >&5
a848cd7e
SC
18088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18089 (exit $ac_status); } &&
5d7b7554 18090 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18092 (eval $ac_try) 2>&5
18093 ac_status=$?
18094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18095 (exit $ac_status); }; } &&
18096 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18098 (eval $ac_try) 2>&5
18099 ac_status=$?
18100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18101 (exit $ac_status); }; }; then
18102 ac_cv_type_void_p=yes
18103else
18104 echo "$as_me: failed program was:" >&5
18105sed 's/^/| /' conftest.$ac_ext >&5
18106
18107ac_cv_type_void_p=no
18108fi
ac1cb8d3 18109rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18110fi
18111echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
18112echo "${ECHO_T}$ac_cv_type_void_p" >&6
18113
18114echo "$as_me:$LINENO: checking size of void *" >&5
18115echo $ECHO_N "checking size of void *... $ECHO_C" >&6
18116if test "${ac_cv_sizeof_void_p+set}" = set; then
18117 echo $ECHO_N "(cached) $ECHO_C" >&6
18118else
18119 if test "$ac_cv_type_void_p" = yes; then
18120 # The cast to unsigned long works around a bug in the HP C Compiler
18121 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18122 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18123 # This bug is HP SR number 8606223364.
18124 if test "$cross_compiling" = yes; then
18125 # Depending upon the size, compute the lo and hi bounds.
18126cat >conftest.$ac_ext <<_ACEOF
18127/* confdefs.h. */
18128_ACEOF
18129cat confdefs.h >>conftest.$ac_ext
18130cat >>conftest.$ac_ext <<_ACEOF
18131/* end confdefs.h. */
18132$ac_includes_default
18133int
18134main ()
18135{
18136static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
18137test_array [0] = 0
18138
18139 ;
18140 return 0;
18141}
18142_ACEOF
18143rm -f conftest.$ac_objext
18144if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18145 (eval $ac_compile) 2>conftest.er1
a848cd7e 18146 ac_status=$?
ac1cb8d3
VS
18147 grep -v '^ *+' conftest.er1 >conftest.err
18148 rm -f conftest.er1
18149 cat conftest.err >&5
a848cd7e
SC
18150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18151 (exit $ac_status); } &&
5d7b7554 18152 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18154 (eval $ac_try) 2>&5
18155 ac_status=$?
18156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18157 (exit $ac_status); }; } &&
18158 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18160 (eval $ac_try) 2>&5
18161 ac_status=$?
18162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18163 (exit $ac_status); }; }; then
18164 ac_lo=0 ac_mid=0
18165 while :; do
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{
18176static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
18177test_array [0] = 0
18178
18179 ;
18180 return 0;
18181}
18182_ACEOF
18183rm -f conftest.$ac_objext
18184if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18185 (eval $ac_compile) 2>conftest.er1
a848cd7e 18186 ac_status=$?
ac1cb8d3
VS
18187 grep -v '^ *+' conftest.er1 >conftest.err
18188 rm -f conftest.er1
18189 cat conftest.err >&5
a848cd7e
SC
18190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18191 (exit $ac_status); } &&
5d7b7554 18192 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18194 (eval $ac_try) 2>&5
18195 ac_status=$?
18196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18197 (exit $ac_status); }; } &&
18198 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18200 (eval $ac_try) 2>&5
18201 ac_status=$?
18202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203 (exit $ac_status); }; }; then
18204 ac_hi=$ac_mid; break
18205else
18206 echo "$as_me: failed program was:" >&5
18207sed 's/^/| /' conftest.$ac_ext >&5
18208
18209ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18210 if test $ac_lo -le $ac_mid; then
18211 ac_lo= ac_hi=
18212 break
18213 fi
18214 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18215fi
ac1cb8d3 18216rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18217 done
18218else
18219 echo "$as_me: failed program was:" >&5
18220sed 's/^/| /' conftest.$ac_ext >&5
18221
18222cat >conftest.$ac_ext <<_ACEOF
18223/* confdefs.h. */
18224_ACEOF
18225cat confdefs.h >>conftest.$ac_ext
18226cat >>conftest.$ac_ext <<_ACEOF
18227/* end confdefs.h. */
18228$ac_includes_default
18229int
18230main ()
18231{
18232static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
18233test_array [0] = 0
18234
18235 ;
18236 return 0;
18237}
18238_ACEOF
18239rm -f conftest.$ac_objext
18240if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18241 (eval $ac_compile) 2>conftest.er1
a848cd7e 18242 ac_status=$?
ac1cb8d3
VS
18243 grep -v '^ *+' conftest.er1 >conftest.err
18244 rm -f conftest.er1
18245 cat conftest.err >&5
a848cd7e
SC
18246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18247 (exit $ac_status); } &&
5d7b7554 18248 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18250 (eval $ac_try) 2>&5
18251 ac_status=$?
18252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18253 (exit $ac_status); }; } &&
18254 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18256 (eval $ac_try) 2>&5
18257 ac_status=$?
18258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18259 (exit $ac_status); }; }; then
18260 ac_hi=-1 ac_mid=-1
18261 while :; do
18262 cat >conftest.$ac_ext <<_ACEOF
18263/* confdefs.h. */
18264_ACEOF
18265cat confdefs.h >>conftest.$ac_ext
18266cat >>conftest.$ac_ext <<_ACEOF
18267/* end confdefs.h. */
18268$ac_includes_default
18269int
18270main ()
18271{
18272static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
18273test_array [0] = 0
18274
18275 ;
18276 return 0;
18277}
18278_ACEOF
18279rm -f conftest.$ac_objext
18280if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18281 (eval $ac_compile) 2>conftest.er1
a848cd7e 18282 ac_status=$?
ac1cb8d3
VS
18283 grep -v '^ *+' conftest.er1 >conftest.err
18284 rm -f conftest.er1
18285 cat conftest.err >&5
a848cd7e
SC
18286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18287 (exit $ac_status); } &&
5d7b7554 18288 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18290 (eval $ac_try) 2>&5
18291 ac_status=$?
18292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18293 (exit $ac_status); }; } &&
18294 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18296 (eval $ac_try) 2>&5
18297 ac_status=$?
18298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18299 (exit $ac_status); }; }; then
18300 ac_lo=$ac_mid; break
18301else
18302 echo "$as_me: failed program was:" >&5
18303sed 's/^/| /' conftest.$ac_ext >&5
18304
18305ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18306 if test $ac_mid -le $ac_hi; then
18307 ac_lo= ac_hi=
18308 break
18309 fi
18310 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18311fi
ac1cb8d3 18312rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18313 done
18314else
18315 echo "$as_me: failed program was:" >&5
18316sed 's/^/| /' conftest.$ac_ext >&5
18317
18318ac_lo= ac_hi=
18319fi
ac1cb8d3 18320rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18321fi
ac1cb8d3 18322rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18323# Binary search between lo and hi bounds.
18324while test "x$ac_lo" != "x$ac_hi"; do
18325 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18326 cat >conftest.$ac_ext <<_ACEOF
18327/* confdefs.h. */
18328_ACEOF
18329cat confdefs.h >>conftest.$ac_ext
18330cat >>conftest.$ac_ext <<_ACEOF
18331/* end confdefs.h. */
18332$ac_includes_default
18333int
18334main ()
18335{
18336static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
18337test_array [0] = 0
18338
18339 ;
18340 return 0;
18341}
18342_ACEOF
18343rm -f conftest.$ac_objext
18344if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18345 (eval $ac_compile) 2>conftest.er1
a848cd7e 18346 ac_status=$?
ac1cb8d3
VS
18347 grep -v '^ *+' conftest.er1 >conftest.err
18348 rm -f conftest.er1
18349 cat conftest.err >&5
a848cd7e
SC
18350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18351 (exit $ac_status); } &&
5d7b7554 18352 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18354 (eval $ac_try) 2>&5
18355 ac_status=$?
18356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18357 (exit $ac_status); }; } &&
18358 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18360 (eval $ac_try) 2>&5
18361 ac_status=$?
18362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18363 (exit $ac_status); }; }; then
18364 ac_hi=$ac_mid
18365else
18366 echo "$as_me: failed program was:" >&5
18367sed 's/^/| /' conftest.$ac_ext >&5
18368
18369ac_lo=`expr '(' $ac_mid ')' + 1`
18370fi
ac1cb8d3 18371rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18372done
18373case $ac_lo in
18374?*) ac_cv_sizeof_void_p=$ac_lo;;
18375'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
18376See \`config.log' for more details." >&5
18377echo "$as_me: error: cannot compute sizeof (void *), 77
18378See \`config.log' for more details." >&2;}
18379 { (exit 1); exit 1; }; } ;;
18380esac
18381else
18382 if test "$cross_compiling" = yes; then
5d7b7554
VZ
18383 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18384echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18385 { (exit 1); exit 1; }; }
18386else
18387 cat >conftest.$ac_ext <<_ACEOF
18388/* confdefs.h. */
18389_ACEOF
18390cat confdefs.h >>conftest.$ac_ext
18391cat >>conftest.$ac_ext <<_ACEOF
18392/* end confdefs.h. */
18393$ac_includes_default
18394long longval () { return (long) (sizeof (void *)); }
18395unsigned long ulongval () { return (long) (sizeof (void *)); }
18396#include <stdio.h>
18397#include <stdlib.h>
18398int
18399main ()
18400{
18401
18402 FILE *f = fopen ("conftest.val", "w");
18403 if (! f)
18404 exit (1);
18405 if (((long) (sizeof (void *))) < 0)
18406 {
18407 long i = longval ();
18408 if (i != ((long) (sizeof (void *))))
18409 exit (1);
18410 fprintf (f, "%ld\n", i);
18411 }
18412 else
18413 {
18414 unsigned long i = ulongval ();
18415 if (i != ((long) (sizeof (void *))))
18416 exit (1);
18417 fprintf (f, "%lu\n", i);
18418 }
18419 exit (ferror (f) || fclose (f) != 0);
18420
18421 ;
18422 return 0;
18423}
18424_ACEOF
18425rm -f conftest$ac_exeext
18426if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18427 (eval $ac_link) 2>&5
18428 ac_status=$?
18429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18430 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18432 (eval $ac_try) 2>&5
18433 ac_status=$?
18434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18435 (exit $ac_status); }; }; then
18436 ac_cv_sizeof_void_p=`cat conftest.val`
18437else
18438 echo "$as_me: program exited with status $ac_status" >&5
18439echo "$as_me: failed program was:" >&5
18440sed 's/^/| /' conftest.$ac_ext >&5
18441
18442( exit $ac_status )
18443{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
18444See \`config.log' for more details." >&5
18445echo "$as_me: error: cannot compute sizeof (void *), 77
18446See \`config.log' for more details." >&2;}
18447 { (exit 1); exit 1; }; }
18448fi
ac1cb8d3 18449rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18450fi
18451fi
18452rm -f conftest.val
18453else
18454 ac_cv_sizeof_void_p=0
18455fi
18456fi
18457echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
18458echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
18459cat >>confdefs.h <<_ACEOF
18460#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
18461_ACEOF
18462
18463
18464echo "$as_me:$LINENO: checking for int" >&5
18465echo $ECHO_N "checking for int... $ECHO_C" >&6
18466if test "${ac_cv_type_int+set}" = set; then
18467 echo $ECHO_N "(cached) $ECHO_C" >&6
18468else
18469 cat >conftest.$ac_ext <<_ACEOF
18470/* confdefs.h. */
18471_ACEOF
18472cat confdefs.h >>conftest.$ac_ext
18473cat >>conftest.$ac_ext <<_ACEOF
18474/* end confdefs.h. */
18475$ac_includes_default
18476int
18477main ()
18478{
18479if ((int *) 0)
18480 return 0;
18481if (sizeof (int))
18482 return 0;
18483 ;
18484 return 0;
18485}
18486_ACEOF
18487rm -f conftest.$ac_objext
18488if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18489 (eval $ac_compile) 2>conftest.er1
a848cd7e 18490 ac_status=$?
ac1cb8d3
VS
18491 grep -v '^ *+' conftest.er1 >conftest.err
18492 rm -f conftest.er1
18493 cat conftest.err >&5
a848cd7e
SC
18494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18495 (exit $ac_status); } &&
5d7b7554 18496 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18498 (eval $ac_try) 2>&5
18499 ac_status=$?
18500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18501 (exit $ac_status); }; } &&
18502 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18504 (eval $ac_try) 2>&5
18505 ac_status=$?
18506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18507 (exit $ac_status); }; }; then
18508 ac_cv_type_int=yes
18509else
18510 echo "$as_me: failed program was:" >&5
18511sed 's/^/| /' conftest.$ac_ext >&5
18512
18513ac_cv_type_int=no
18514fi
ac1cb8d3 18515rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18516fi
18517echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
18518echo "${ECHO_T}$ac_cv_type_int" >&6
18519
18520echo "$as_me:$LINENO: checking size of int" >&5
18521echo $ECHO_N "checking size of int... $ECHO_C" >&6
18522if test "${ac_cv_sizeof_int+set}" = set; then
18523 echo $ECHO_N "(cached) $ECHO_C" >&6
18524else
18525 if test "$ac_cv_type_int" = yes; then
18526 # The cast to unsigned long works around a bug in the HP C Compiler
18527 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18528 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18529 # This bug is HP SR number 8606223364.
18530 if test "$cross_compiling" = yes; then
18531 # Depending upon the size, compute the lo and hi bounds.
18532cat >conftest.$ac_ext <<_ACEOF
18533/* confdefs.h. */
18534_ACEOF
18535cat confdefs.h >>conftest.$ac_ext
18536cat >>conftest.$ac_ext <<_ACEOF
18537/* end confdefs.h. */
18538$ac_includes_default
18539int
18540main ()
18541{
18542static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
18543test_array [0] = 0
18544
18545 ;
18546 return 0;
18547}
18548_ACEOF
18549rm -f conftest.$ac_objext
18550if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18551 (eval $ac_compile) 2>conftest.er1
a848cd7e 18552 ac_status=$?
ac1cb8d3
VS
18553 grep -v '^ *+' conftest.er1 >conftest.err
18554 rm -f conftest.er1
18555 cat conftest.err >&5
a848cd7e
SC
18556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18557 (exit $ac_status); } &&
5d7b7554 18558 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18560 (eval $ac_try) 2>&5
18561 ac_status=$?
18562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18563 (exit $ac_status); }; } &&
18564 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18566 (eval $ac_try) 2>&5
18567 ac_status=$?
18568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18569 (exit $ac_status); }; }; then
18570 ac_lo=0 ac_mid=0
18571 while :; do
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{
18582static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
18583test_array [0] = 0
18584
18585 ;
18586 return 0;
18587}
18588_ACEOF
18589rm -f conftest.$ac_objext
18590if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18591 (eval $ac_compile) 2>conftest.er1
a848cd7e 18592 ac_status=$?
ac1cb8d3
VS
18593 grep -v '^ *+' conftest.er1 >conftest.err
18594 rm -f conftest.er1
18595 cat conftest.err >&5
a848cd7e
SC
18596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18597 (exit $ac_status); } &&
5d7b7554 18598 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18600 (eval $ac_try) 2>&5
18601 ac_status=$?
18602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18603 (exit $ac_status); }; } &&
18604 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18606 (eval $ac_try) 2>&5
18607 ac_status=$?
18608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18609 (exit $ac_status); }; }; then
18610 ac_hi=$ac_mid; break
18611else
18612 echo "$as_me: failed program was:" >&5
18613sed 's/^/| /' conftest.$ac_ext >&5
18614
18615ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18616 if test $ac_lo -le $ac_mid; then
18617 ac_lo= ac_hi=
18618 break
18619 fi
18620 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18621fi
ac1cb8d3 18622rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18623 done
18624else
18625 echo "$as_me: failed program was:" >&5
18626sed 's/^/| /' conftest.$ac_ext >&5
18627
18628cat >conftest.$ac_ext <<_ACEOF
18629/* confdefs.h. */
18630_ACEOF
18631cat confdefs.h >>conftest.$ac_ext
18632cat >>conftest.$ac_ext <<_ACEOF
18633/* end confdefs.h. */
18634$ac_includes_default
18635int
18636main ()
18637{
18638static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
18639test_array [0] = 0
18640
18641 ;
18642 return 0;
18643}
18644_ACEOF
18645rm -f conftest.$ac_objext
18646if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18647 (eval $ac_compile) 2>conftest.er1
a848cd7e 18648 ac_status=$?
ac1cb8d3
VS
18649 grep -v '^ *+' conftest.er1 >conftest.err
18650 rm -f conftest.er1
18651 cat conftest.err >&5
a848cd7e
SC
18652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18653 (exit $ac_status); } &&
5d7b7554 18654 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18656 (eval $ac_try) 2>&5
18657 ac_status=$?
18658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18659 (exit $ac_status); }; } &&
18660 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18662 (eval $ac_try) 2>&5
18663 ac_status=$?
18664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18665 (exit $ac_status); }; }; then
18666 ac_hi=-1 ac_mid=-1
18667 while :; do
18668 cat >conftest.$ac_ext <<_ACEOF
18669/* confdefs.h. */
18670_ACEOF
18671cat confdefs.h >>conftest.$ac_ext
18672cat >>conftest.$ac_ext <<_ACEOF
18673/* end confdefs.h. */
18674$ac_includes_default
18675int
18676main ()
18677{
18678static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
18679test_array [0] = 0
18680
18681 ;
18682 return 0;
18683}
18684_ACEOF
18685rm -f conftest.$ac_objext
18686if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18687 (eval $ac_compile) 2>conftest.er1
a848cd7e 18688 ac_status=$?
ac1cb8d3
VS
18689 grep -v '^ *+' conftest.er1 >conftest.err
18690 rm -f conftest.er1
18691 cat conftest.err >&5
a848cd7e
SC
18692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18693 (exit $ac_status); } &&
5d7b7554 18694 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18696 (eval $ac_try) 2>&5
18697 ac_status=$?
18698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18699 (exit $ac_status); }; } &&
18700 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18702 (eval $ac_try) 2>&5
18703 ac_status=$?
18704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18705 (exit $ac_status); }; }; then
18706 ac_lo=$ac_mid; break
18707else
18708 echo "$as_me: failed program was:" >&5
18709sed 's/^/| /' conftest.$ac_ext >&5
18710
18711ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18712 if test $ac_mid -le $ac_hi; then
18713 ac_lo= ac_hi=
18714 break
18715 fi
18716 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18717fi
ac1cb8d3 18718rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18719 done
18720else
18721 echo "$as_me: failed program was:" >&5
18722sed 's/^/| /' conftest.$ac_ext >&5
18723
18724ac_lo= ac_hi=
18725fi
ac1cb8d3 18726rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18727fi
ac1cb8d3 18728rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18729# Binary search between lo and hi bounds.
18730while test "x$ac_lo" != "x$ac_hi"; do
18731 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18732 cat >conftest.$ac_ext <<_ACEOF
18733/* confdefs.h. */
18734_ACEOF
18735cat confdefs.h >>conftest.$ac_ext
18736cat >>conftest.$ac_ext <<_ACEOF
18737/* end confdefs.h. */
18738$ac_includes_default
18739int
18740main ()
18741{
18742static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
18743test_array [0] = 0
18744
18745 ;
18746 return 0;
18747}
18748_ACEOF
18749rm -f conftest.$ac_objext
18750if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18751 (eval $ac_compile) 2>conftest.er1
a848cd7e 18752 ac_status=$?
ac1cb8d3
VS
18753 grep -v '^ *+' conftest.er1 >conftest.err
18754 rm -f conftest.er1
18755 cat conftest.err >&5
a848cd7e
SC
18756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18757 (exit $ac_status); } &&
5d7b7554 18758 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18760 (eval $ac_try) 2>&5
18761 ac_status=$?
18762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18763 (exit $ac_status); }; } &&
18764 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18766 (eval $ac_try) 2>&5
18767 ac_status=$?
18768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18769 (exit $ac_status); }; }; then
18770 ac_hi=$ac_mid
18771else
18772 echo "$as_me: failed program was:" >&5
18773sed 's/^/| /' conftest.$ac_ext >&5
18774
18775ac_lo=`expr '(' $ac_mid ')' + 1`
18776fi
ac1cb8d3 18777rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18778done
18779case $ac_lo in
18780?*) ac_cv_sizeof_int=$ac_lo;;
18781'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
18782See \`config.log' for more details." >&5
18783echo "$as_me: error: cannot compute sizeof (int), 77
18784See \`config.log' for more details." >&2;}
18785 { (exit 1); exit 1; }; } ;;
18786esac
18787else
18788 if test "$cross_compiling" = yes; then
5d7b7554
VZ
18789 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18790echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18791 { (exit 1); exit 1; }; }
18792else
18793 cat >conftest.$ac_ext <<_ACEOF
18794/* confdefs.h. */
18795_ACEOF
18796cat confdefs.h >>conftest.$ac_ext
18797cat >>conftest.$ac_ext <<_ACEOF
18798/* end confdefs.h. */
18799$ac_includes_default
18800long longval () { return (long) (sizeof (int)); }
18801unsigned long ulongval () { return (long) (sizeof (int)); }
18802#include <stdio.h>
18803#include <stdlib.h>
18804int
18805main ()
18806{
18807
18808 FILE *f = fopen ("conftest.val", "w");
18809 if (! f)
18810 exit (1);
18811 if (((long) (sizeof (int))) < 0)
18812 {
18813 long i = longval ();
18814 if (i != ((long) (sizeof (int))))
18815 exit (1);
18816 fprintf (f, "%ld\n", i);
18817 }
18818 else
18819 {
18820 unsigned long i = ulongval ();
18821 if (i != ((long) (sizeof (int))))
18822 exit (1);
18823 fprintf (f, "%lu\n", i);
18824 }
18825 exit (ferror (f) || fclose (f) != 0);
18826
18827 ;
18828 return 0;
18829}
18830_ACEOF
18831rm -f conftest$ac_exeext
18832if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18833 (eval $ac_link) 2>&5
18834 ac_status=$?
18835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18836 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18838 (eval $ac_try) 2>&5
18839 ac_status=$?
18840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18841 (exit $ac_status); }; }; then
18842 ac_cv_sizeof_int=`cat conftest.val`
18843else
18844 echo "$as_me: program exited with status $ac_status" >&5
18845echo "$as_me: failed program was:" >&5
18846sed 's/^/| /' conftest.$ac_ext >&5
18847
18848( exit $ac_status )
18849{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
18850See \`config.log' for more details." >&5
18851echo "$as_me: error: cannot compute sizeof (int), 77
18852See \`config.log' for more details." >&2;}
18853 { (exit 1); exit 1; }; }
18854fi
ac1cb8d3 18855rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18856fi
18857fi
18858rm -f conftest.val
18859else
18860 ac_cv_sizeof_int=0
18861fi
18862fi
18863echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
18864echo "${ECHO_T}$ac_cv_sizeof_int" >&6
18865cat >>confdefs.h <<_ACEOF
18866#define SIZEOF_INT $ac_cv_sizeof_int
18867_ACEOF
18868
18869
18870echo "$as_me:$LINENO: checking for long" >&5
18871echo $ECHO_N "checking for long... $ECHO_C" >&6
18872if test "${ac_cv_type_long+set}" = set; then
18873 echo $ECHO_N "(cached) $ECHO_C" >&6
18874else
18875 cat >conftest.$ac_ext <<_ACEOF
18876/* confdefs.h. */
18877_ACEOF
18878cat confdefs.h >>conftest.$ac_ext
18879cat >>conftest.$ac_ext <<_ACEOF
18880/* end confdefs.h. */
18881$ac_includes_default
18882int
18883main ()
18884{
18885if ((long *) 0)
18886 return 0;
18887if (sizeof (long))
18888 return 0;
18889 ;
18890 return 0;
18891}
18892_ACEOF
18893rm -f conftest.$ac_objext
18894if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18895 (eval $ac_compile) 2>conftest.er1
a848cd7e 18896 ac_status=$?
ac1cb8d3
VS
18897 grep -v '^ *+' conftest.er1 >conftest.err
18898 rm -f conftest.er1
18899 cat conftest.err >&5
a848cd7e
SC
18900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18901 (exit $ac_status); } &&
5d7b7554 18902 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18904 (eval $ac_try) 2>&5
18905 ac_status=$?
18906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18907 (exit $ac_status); }; } &&
18908 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18910 (eval $ac_try) 2>&5
18911 ac_status=$?
18912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18913 (exit $ac_status); }; }; then
18914 ac_cv_type_long=yes
18915else
18916 echo "$as_me: failed program was:" >&5
18917sed 's/^/| /' conftest.$ac_ext >&5
18918
18919ac_cv_type_long=no
18920fi
ac1cb8d3 18921rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18922fi
18923echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
18924echo "${ECHO_T}$ac_cv_type_long" >&6
18925
18926echo "$as_me:$LINENO: checking size of long" >&5
18927echo $ECHO_N "checking size of long... $ECHO_C" >&6
18928if test "${ac_cv_sizeof_long+set}" = set; then
18929 echo $ECHO_N "(cached) $ECHO_C" >&6
18930else
18931 if test "$ac_cv_type_long" = yes; then
18932 # The cast to unsigned long works around a bug in the HP C Compiler
18933 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18934 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18935 # This bug is HP SR number 8606223364.
18936 if test "$cross_compiling" = yes; then
18937 # Depending upon the size, compute the lo and hi bounds.
18938cat >conftest.$ac_ext <<_ACEOF
18939/* confdefs.h. */
18940_ACEOF
18941cat confdefs.h >>conftest.$ac_ext
18942cat >>conftest.$ac_ext <<_ACEOF
18943/* end confdefs.h. */
18944$ac_includes_default
18945int
18946main ()
18947{
18948static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
18949test_array [0] = 0
18950
18951 ;
18952 return 0;
18953}
18954_ACEOF
18955rm -f conftest.$ac_objext
18956if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18957 (eval $ac_compile) 2>conftest.er1
a848cd7e 18958 ac_status=$?
ac1cb8d3
VS
18959 grep -v '^ *+' conftest.er1 >conftest.err
18960 rm -f conftest.er1
18961 cat conftest.err >&5
a848cd7e
SC
18962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18963 (exit $ac_status); } &&
5d7b7554 18964 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18966 (eval $ac_try) 2>&5
18967 ac_status=$?
18968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18969 (exit $ac_status); }; } &&
18970 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18972 (eval $ac_try) 2>&5
18973 ac_status=$?
18974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18975 (exit $ac_status); }; }; then
18976 ac_lo=0 ac_mid=0
18977 while :; do
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{
18988static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
18989test_array [0] = 0
18990
18991 ;
18992 return 0;
18993}
18994_ACEOF
18995rm -f conftest.$ac_objext
18996if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18997 (eval $ac_compile) 2>conftest.er1
a848cd7e 18998 ac_status=$?
ac1cb8d3
VS
18999 grep -v '^ *+' conftest.er1 >conftest.err
19000 rm -f conftest.er1
19001 cat conftest.err >&5
a848cd7e
SC
19002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19003 (exit $ac_status); } &&
5d7b7554 19004 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19006 (eval $ac_try) 2>&5
19007 ac_status=$?
19008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19009 (exit $ac_status); }; } &&
19010 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19012 (eval $ac_try) 2>&5
19013 ac_status=$?
19014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19015 (exit $ac_status); }; }; then
19016 ac_hi=$ac_mid; break
19017else
19018 echo "$as_me: failed program was:" >&5
19019sed 's/^/| /' conftest.$ac_ext >&5
19020
19021ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19022 if test $ac_lo -le $ac_mid; then
19023 ac_lo= ac_hi=
19024 break
19025 fi
19026 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19027fi
ac1cb8d3 19028rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19029 done
19030else
19031 echo "$as_me: failed program was:" >&5
19032sed 's/^/| /' conftest.$ac_ext >&5
19033
19034cat >conftest.$ac_ext <<_ACEOF
19035/* confdefs.h. */
19036_ACEOF
19037cat confdefs.h >>conftest.$ac_ext
19038cat >>conftest.$ac_ext <<_ACEOF
19039/* end confdefs.h. */
19040$ac_includes_default
19041int
19042main ()
19043{
19044static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
19045test_array [0] = 0
19046
19047 ;
19048 return 0;
19049}
19050_ACEOF
19051rm -f conftest.$ac_objext
19052if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19053 (eval $ac_compile) 2>conftest.er1
a848cd7e 19054 ac_status=$?
ac1cb8d3
VS
19055 grep -v '^ *+' conftest.er1 >conftest.err
19056 rm -f conftest.er1
19057 cat conftest.err >&5
a848cd7e
SC
19058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19059 (exit $ac_status); } &&
5d7b7554 19060 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19062 (eval $ac_try) 2>&5
19063 ac_status=$?
19064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19065 (exit $ac_status); }; } &&
19066 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19068 (eval $ac_try) 2>&5
19069 ac_status=$?
19070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19071 (exit $ac_status); }; }; then
19072 ac_hi=-1 ac_mid=-1
19073 while :; do
19074 cat >conftest.$ac_ext <<_ACEOF
19075/* confdefs.h. */
19076_ACEOF
19077cat confdefs.h >>conftest.$ac_ext
19078cat >>conftest.$ac_ext <<_ACEOF
19079/* end confdefs.h. */
19080$ac_includes_default
19081int
19082main ()
19083{
19084static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
19085test_array [0] = 0
19086
19087 ;
19088 return 0;
19089}
19090_ACEOF
19091rm -f conftest.$ac_objext
19092if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19093 (eval $ac_compile) 2>conftest.er1
a848cd7e 19094 ac_status=$?
ac1cb8d3
VS
19095 grep -v '^ *+' conftest.er1 >conftest.err
19096 rm -f conftest.er1
19097 cat conftest.err >&5
a848cd7e
SC
19098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19099 (exit $ac_status); } &&
5d7b7554 19100 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19102 (eval $ac_try) 2>&5
19103 ac_status=$?
19104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105 (exit $ac_status); }; } &&
19106 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19108 (eval $ac_try) 2>&5
19109 ac_status=$?
19110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19111 (exit $ac_status); }; }; then
19112 ac_lo=$ac_mid; break
19113else
19114 echo "$as_me: failed program was:" >&5
19115sed 's/^/| /' conftest.$ac_ext >&5
19116
19117ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19118 if test $ac_mid -le $ac_hi; then
19119 ac_lo= ac_hi=
19120 break
19121 fi
19122 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19123fi
ac1cb8d3 19124rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19125 done
19126else
19127 echo "$as_me: failed program was:" >&5
19128sed 's/^/| /' conftest.$ac_ext >&5
19129
19130ac_lo= ac_hi=
19131fi
ac1cb8d3 19132rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19133fi
ac1cb8d3 19134rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19135# Binary search between lo and hi bounds.
19136while test "x$ac_lo" != "x$ac_hi"; do
19137 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19138 cat >conftest.$ac_ext <<_ACEOF
19139/* confdefs.h. */
19140_ACEOF
19141cat confdefs.h >>conftest.$ac_ext
19142cat >>conftest.$ac_ext <<_ACEOF
19143/* end confdefs.h. */
19144$ac_includes_default
19145int
19146main ()
19147{
19148static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19149test_array [0] = 0
19150
19151 ;
19152 return 0;
19153}
19154_ACEOF
19155rm -f conftest.$ac_objext
19156if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19157 (eval $ac_compile) 2>conftest.er1
a848cd7e 19158 ac_status=$?
ac1cb8d3
VS
19159 grep -v '^ *+' conftest.er1 >conftest.err
19160 rm -f conftest.er1
19161 cat conftest.err >&5
a848cd7e
SC
19162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19163 (exit $ac_status); } &&
5d7b7554 19164 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19166 (eval $ac_try) 2>&5
19167 ac_status=$?
19168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19169 (exit $ac_status); }; } &&
19170 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19172 (eval $ac_try) 2>&5
19173 ac_status=$?
19174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19175 (exit $ac_status); }; }; then
19176 ac_hi=$ac_mid
19177else
19178 echo "$as_me: failed program was:" >&5
19179sed 's/^/| /' conftest.$ac_ext >&5
19180
19181ac_lo=`expr '(' $ac_mid ')' + 1`
19182fi
ac1cb8d3 19183rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19184done
19185case $ac_lo in
19186?*) ac_cv_sizeof_long=$ac_lo;;
19187'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19188See \`config.log' for more details." >&5
19189echo "$as_me: error: cannot compute sizeof (long), 77
19190See \`config.log' for more details." >&2;}
19191 { (exit 1); exit 1; }; } ;;
19192esac
19193else
19194 if test "$cross_compiling" = yes; then
5d7b7554
VZ
19195 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19196echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19197 { (exit 1); exit 1; }; }
19198else
19199 cat >conftest.$ac_ext <<_ACEOF
19200/* confdefs.h. */
19201_ACEOF
19202cat confdefs.h >>conftest.$ac_ext
19203cat >>conftest.$ac_ext <<_ACEOF
19204/* end confdefs.h. */
19205$ac_includes_default
19206long longval () { return (long) (sizeof (long)); }
19207unsigned long ulongval () { return (long) (sizeof (long)); }
19208#include <stdio.h>
19209#include <stdlib.h>
19210int
19211main ()
19212{
19213
19214 FILE *f = fopen ("conftest.val", "w");
19215 if (! f)
19216 exit (1);
19217 if (((long) (sizeof (long))) < 0)
19218 {
19219 long i = longval ();
19220 if (i != ((long) (sizeof (long))))
19221 exit (1);
19222 fprintf (f, "%ld\n", i);
19223 }
19224 else
19225 {
19226 unsigned long i = ulongval ();
19227 if (i != ((long) (sizeof (long))))
19228 exit (1);
19229 fprintf (f, "%lu\n", i);
19230 }
19231 exit (ferror (f) || fclose (f) != 0);
19232
19233 ;
19234 return 0;
19235}
19236_ACEOF
19237rm -f conftest$ac_exeext
19238if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19239 (eval $ac_link) 2>&5
19240 ac_status=$?
19241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19242 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19244 (eval $ac_try) 2>&5
19245 ac_status=$?
19246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19247 (exit $ac_status); }; }; then
19248 ac_cv_sizeof_long=`cat conftest.val`
19249else
19250 echo "$as_me: program exited with status $ac_status" >&5
19251echo "$as_me: failed program was:" >&5
19252sed 's/^/| /' conftest.$ac_ext >&5
19253
19254( exit $ac_status )
19255{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19256See \`config.log' for more details." >&5
19257echo "$as_me: error: cannot compute sizeof (long), 77
19258See \`config.log' for more details." >&2;}
19259 { (exit 1); exit 1; }; }
19260fi
ac1cb8d3 19261rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19262fi
19263fi
19264rm -f conftest.val
19265else
19266 ac_cv_sizeof_long=0
19267fi
19268fi
19269echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
19270echo "${ECHO_T}$ac_cv_sizeof_long" >&6
19271cat >>confdefs.h <<_ACEOF
19272#define SIZEOF_LONG $ac_cv_sizeof_long
19273_ACEOF
19274
19275
19276echo "$as_me:$LINENO: checking for size_t" >&5
19277echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19278if test "${ac_cv_type_size_t+set}" = set; then
19279 echo $ECHO_N "(cached) $ECHO_C" >&6
19280else
19281 cat >conftest.$ac_ext <<_ACEOF
19282/* confdefs.h. */
19283_ACEOF
19284cat confdefs.h >>conftest.$ac_ext
19285cat >>conftest.$ac_ext <<_ACEOF
19286/* end confdefs.h. */
19287$ac_includes_default
19288int
19289main ()
19290{
19291if ((size_t *) 0)
19292 return 0;
19293if (sizeof (size_t))
19294 return 0;
19295 ;
19296 return 0;
19297}
19298_ACEOF
19299rm -f conftest.$ac_objext
19300if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19301 (eval $ac_compile) 2>conftest.er1
a848cd7e 19302 ac_status=$?
ac1cb8d3
VS
19303 grep -v '^ *+' conftest.er1 >conftest.err
19304 rm -f conftest.er1
19305 cat conftest.err >&5
a848cd7e
SC
19306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19307 (exit $ac_status); } &&
5d7b7554 19308 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19310 (eval $ac_try) 2>&5
19311 ac_status=$?
19312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19313 (exit $ac_status); }; } &&
19314 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19316 (eval $ac_try) 2>&5
19317 ac_status=$?
19318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19319 (exit $ac_status); }; }; then
19320 ac_cv_type_size_t=yes
19321else
19322 echo "$as_me: failed program was:" >&5
19323sed 's/^/| /' conftest.$ac_ext >&5
19324
19325ac_cv_type_size_t=no
19326fi
ac1cb8d3 19327rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19328fi
19329echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19330echo "${ECHO_T}$ac_cv_type_size_t" >&6
19331
19332echo "$as_me:$LINENO: checking size of size_t" >&5
19333echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
19334if test "${ac_cv_sizeof_size_t+set}" = set; then
19335 echo $ECHO_N "(cached) $ECHO_C" >&6
19336else
19337 if test "$ac_cv_type_size_t" = yes; then
19338 # The cast to unsigned long works around a bug in the HP C Compiler
19339 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19340 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19341 # This bug is HP SR number 8606223364.
19342 if test "$cross_compiling" = yes; then
19343 # Depending upon the size, compute the lo and hi bounds.
19344cat >conftest.$ac_ext <<_ACEOF
19345/* confdefs.h. */
19346_ACEOF
19347cat confdefs.h >>conftest.$ac_ext
19348cat >>conftest.$ac_ext <<_ACEOF
19349/* end confdefs.h. */
19350$ac_includes_default
19351int
19352main ()
19353{
19354static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
19355test_array [0] = 0
19356
19357 ;
19358 return 0;
19359}
19360_ACEOF
19361rm -f conftest.$ac_objext
19362if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19363 (eval $ac_compile) 2>conftest.er1
a848cd7e 19364 ac_status=$?
ac1cb8d3
VS
19365 grep -v '^ *+' conftest.er1 >conftest.err
19366 rm -f conftest.er1
19367 cat conftest.err >&5
a848cd7e
SC
19368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19369 (exit $ac_status); } &&
5d7b7554 19370 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19372 (eval $ac_try) 2>&5
19373 ac_status=$?
19374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19375 (exit $ac_status); }; } &&
19376 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19378 (eval $ac_try) 2>&5
19379 ac_status=$?
19380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19381 (exit $ac_status); }; }; then
19382 ac_lo=0 ac_mid=0
19383 while :; do
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{
19394static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
19395test_array [0] = 0
19396
19397 ;
19398 return 0;
19399}
19400_ACEOF
19401rm -f conftest.$ac_objext
19402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19403 (eval $ac_compile) 2>conftest.er1
a848cd7e 19404 ac_status=$?
ac1cb8d3
VS
19405 grep -v '^ *+' conftest.er1 >conftest.err
19406 rm -f conftest.er1
19407 cat conftest.err >&5
a848cd7e
SC
19408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19409 (exit $ac_status); } &&
5d7b7554 19410 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19412 (eval $ac_try) 2>&5
19413 ac_status=$?
19414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19415 (exit $ac_status); }; } &&
19416 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19418 (eval $ac_try) 2>&5
19419 ac_status=$?
19420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19421 (exit $ac_status); }; }; then
19422 ac_hi=$ac_mid; break
19423else
19424 echo "$as_me: failed program was:" >&5
19425sed 's/^/| /' conftest.$ac_ext >&5
19426
19427ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19428 if test $ac_lo -le $ac_mid; then
19429 ac_lo= ac_hi=
19430 break
19431 fi
19432 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19433fi
ac1cb8d3 19434rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19435 done
19436else
19437 echo "$as_me: failed program was:" >&5
19438sed 's/^/| /' conftest.$ac_ext >&5
19439
19440cat >conftest.$ac_ext <<_ACEOF
19441/* confdefs.h. */
19442_ACEOF
19443cat confdefs.h >>conftest.$ac_ext
19444cat >>conftest.$ac_ext <<_ACEOF
19445/* end confdefs.h. */
19446$ac_includes_default
19447int
19448main ()
19449{
19450static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
19451test_array [0] = 0
19452
19453 ;
19454 return 0;
19455}
19456_ACEOF
19457rm -f conftest.$ac_objext
19458if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19459 (eval $ac_compile) 2>conftest.er1
a848cd7e 19460 ac_status=$?
ac1cb8d3
VS
19461 grep -v '^ *+' conftest.er1 >conftest.err
19462 rm -f conftest.er1
19463 cat conftest.err >&5
a848cd7e
SC
19464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19465 (exit $ac_status); } &&
5d7b7554 19466 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19468 (eval $ac_try) 2>&5
19469 ac_status=$?
19470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19471 (exit $ac_status); }; } &&
19472 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19474 (eval $ac_try) 2>&5
19475 ac_status=$?
19476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19477 (exit $ac_status); }; }; then
19478 ac_hi=-1 ac_mid=-1
19479 while :; do
19480 cat >conftest.$ac_ext <<_ACEOF
19481/* confdefs.h. */
19482_ACEOF
19483cat confdefs.h >>conftest.$ac_ext
19484cat >>conftest.$ac_ext <<_ACEOF
19485/* end confdefs.h. */
19486$ac_includes_default
19487int
19488main ()
19489{
19490static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
19491test_array [0] = 0
19492
19493 ;
19494 return 0;
19495}
19496_ACEOF
19497rm -f conftest.$ac_objext
19498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19499 (eval $ac_compile) 2>conftest.er1
a848cd7e 19500 ac_status=$?
ac1cb8d3
VS
19501 grep -v '^ *+' conftest.er1 >conftest.err
19502 rm -f conftest.er1
19503 cat conftest.err >&5
a848cd7e
SC
19504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19505 (exit $ac_status); } &&
5d7b7554 19506 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19508 (eval $ac_try) 2>&5
19509 ac_status=$?
19510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511 (exit $ac_status); }; } &&
19512 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19514 (eval $ac_try) 2>&5
19515 ac_status=$?
19516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517 (exit $ac_status); }; }; then
19518 ac_lo=$ac_mid; break
19519else
19520 echo "$as_me: failed program was:" >&5
19521sed 's/^/| /' conftest.$ac_ext >&5
19522
19523ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19524 if test $ac_mid -le $ac_hi; then
19525 ac_lo= ac_hi=
19526 break
19527 fi
19528 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19529fi
ac1cb8d3 19530rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19531 done
19532else
19533 echo "$as_me: failed program was:" >&5
19534sed 's/^/| /' conftest.$ac_ext >&5
19535
19536ac_lo= ac_hi=
19537fi
ac1cb8d3 19538rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19539fi
ac1cb8d3 19540rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19541# Binary search between lo and hi bounds.
19542while test "x$ac_lo" != "x$ac_hi"; do
19543 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19544 cat >conftest.$ac_ext <<_ACEOF
19545/* confdefs.h. */
19546_ACEOF
19547cat confdefs.h >>conftest.$ac_ext
19548cat >>conftest.$ac_ext <<_ACEOF
19549/* end confdefs.h. */
19550$ac_includes_default
19551int
19552main ()
19553{
19554static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
19555test_array [0] = 0
19556
19557 ;
19558 return 0;
19559}
19560_ACEOF
19561rm -f conftest.$ac_objext
19562if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19563 (eval $ac_compile) 2>conftest.er1
a848cd7e 19564 ac_status=$?
ac1cb8d3
VS
19565 grep -v '^ *+' conftest.er1 >conftest.err
19566 rm -f conftest.er1
19567 cat conftest.err >&5
a848cd7e
SC
19568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19569 (exit $ac_status); } &&
5d7b7554 19570 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19572 (eval $ac_try) 2>&5
19573 ac_status=$?
19574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19575 (exit $ac_status); }; } &&
19576 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19578 (eval $ac_try) 2>&5
19579 ac_status=$?
19580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19581 (exit $ac_status); }; }; then
19582 ac_hi=$ac_mid
19583else
19584 echo "$as_me: failed program was:" >&5
19585sed 's/^/| /' conftest.$ac_ext >&5
19586
19587ac_lo=`expr '(' $ac_mid ')' + 1`
19588fi
ac1cb8d3 19589rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19590done
19591case $ac_lo in
19592?*) ac_cv_sizeof_size_t=$ac_lo;;
19593'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
19594See \`config.log' for more details." >&5
19595echo "$as_me: error: cannot compute sizeof (size_t), 77
19596See \`config.log' for more details." >&2;}
19597 { (exit 1); exit 1; }; } ;;
19598esac
19599else
19600 if test "$cross_compiling" = yes; then
5d7b7554
VZ
19601 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19602echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19603 { (exit 1); exit 1; }; }
19604else
19605 cat >conftest.$ac_ext <<_ACEOF
19606/* confdefs.h. */
19607_ACEOF
19608cat confdefs.h >>conftest.$ac_ext
19609cat >>conftest.$ac_ext <<_ACEOF
19610/* end confdefs.h. */
19611$ac_includes_default
19612long longval () { return (long) (sizeof (size_t)); }
19613unsigned long ulongval () { return (long) (sizeof (size_t)); }
19614#include <stdio.h>
19615#include <stdlib.h>
19616int
19617main ()
19618{
19619
19620 FILE *f = fopen ("conftest.val", "w");
19621 if (! f)
19622 exit (1);
19623 if (((long) (sizeof (size_t))) < 0)
19624 {
19625 long i = longval ();
19626 if (i != ((long) (sizeof (size_t))))
19627 exit (1);
19628 fprintf (f, "%ld\n", i);
19629 }
19630 else
19631 {
19632 unsigned long i = ulongval ();
19633 if (i != ((long) (sizeof (size_t))))
19634 exit (1);
19635 fprintf (f, "%lu\n", i);
19636 }
19637 exit (ferror (f) || fclose (f) != 0);
19638
19639 ;
19640 return 0;
19641}
19642_ACEOF
19643rm -f conftest$ac_exeext
19644if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19645 (eval $ac_link) 2>&5
19646 ac_status=$?
19647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19648 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19650 (eval $ac_try) 2>&5
19651 ac_status=$?
19652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19653 (exit $ac_status); }; }; then
19654 ac_cv_sizeof_size_t=`cat conftest.val`
19655else
19656 echo "$as_me: program exited with status $ac_status" >&5
19657echo "$as_me: failed program was:" >&5
19658sed 's/^/| /' conftest.$ac_ext >&5
19659
19660( exit $ac_status )
19661{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
19662See \`config.log' for more details." >&5
19663echo "$as_me: error: cannot compute sizeof (size_t), 77
19664See \`config.log' for more details." >&2;}
19665 { (exit 1); exit 1; }; }
19666fi
ac1cb8d3 19667rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19668fi
19669fi
19670rm -f conftest.val
19671else
19672 ac_cv_sizeof_size_t=0
19673fi
19674fi
19675echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
19676echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
19677cat >>confdefs.h <<_ACEOF
19678#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
19679_ACEOF
19680
19681
19682
19683case "${host}" in
19684 arm-*-linux* )
19685 echo "$as_me:$LINENO: checking for long long" >&5
19686echo $ECHO_N "checking for long long... $ECHO_C" >&6
19687if test "${ac_cv_type_long_long+set}" = set; then
19688 echo $ECHO_N "(cached) $ECHO_C" >&6
19689else
19690 cat >conftest.$ac_ext <<_ACEOF
19691/* confdefs.h. */
19692_ACEOF
19693cat confdefs.h >>conftest.$ac_ext
19694cat >>conftest.$ac_ext <<_ACEOF
19695/* end confdefs.h. */
19696$ac_includes_default
19697int
19698main ()
19699{
19700if ((long long *) 0)
19701 return 0;
19702if (sizeof (long long))
19703 return 0;
19704 ;
19705 return 0;
19706}
19707_ACEOF
19708rm -f conftest.$ac_objext
19709if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19710 (eval $ac_compile) 2>conftest.er1
a848cd7e 19711 ac_status=$?
ac1cb8d3
VS
19712 grep -v '^ *+' conftest.er1 >conftest.err
19713 rm -f conftest.er1
19714 cat conftest.err >&5
a848cd7e
SC
19715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19716 (exit $ac_status); } &&
5d7b7554 19717 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19719 (eval $ac_try) 2>&5
19720 ac_status=$?
19721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19722 (exit $ac_status); }; } &&
19723 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19725 (eval $ac_try) 2>&5
19726 ac_status=$?
19727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19728 (exit $ac_status); }; }; then
19729 ac_cv_type_long_long=yes
19730else
19731 echo "$as_me: failed program was:" >&5
19732sed 's/^/| /' conftest.$ac_ext >&5
19733
19734ac_cv_type_long_long=no
19735fi
ac1cb8d3 19736rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19737fi
19738echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19739echo "${ECHO_T}$ac_cv_type_long_long" >&6
19740
19741echo "$as_me:$LINENO: checking size of long long" >&5
19742echo $ECHO_N "checking size of long long... $ECHO_C" >&6
19743if test "${ac_cv_sizeof_long_long+set}" = set; then
19744 echo $ECHO_N "(cached) $ECHO_C" >&6
19745else
19746 if test "$ac_cv_type_long_long" = yes; then
19747 # The cast to unsigned long works around a bug in the HP C Compiler
19748 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19749 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19750 # This bug is HP SR number 8606223364.
19751 if test "$cross_compiling" = yes; then
19752 # Depending upon the size, compute the lo and hi bounds.
19753cat >conftest.$ac_ext <<_ACEOF
19754/* confdefs.h. */
19755_ACEOF
19756cat confdefs.h >>conftest.$ac_ext
19757cat >>conftest.$ac_ext <<_ACEOF
19758/* end confdefs.h. */
19759$ac_includes_default
19760int
19761main ()
19762{
19763static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
19764test_array [0] = 0
19765
19766 ;
19767 return 0;
19768}
19769_ACEOF
19770rm -f conftest.$ac_objext
19771if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19772 (eval $ac_compile) 2>conftest.er1
a848cd7e 19773 ac_status=$?
ac1cb8d3
VS
19774 grep -v '^ *+' conftest.er1 >conftest.err
19775 rm -f conftest.er1
19776 cat conftest.err >&5
a848cd7e
SC
19777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19778 (exit $ac_status); } &&
5d7b7554 19779 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19781 (eval $ac_try) 2>&5
19782 ac_status=$?
19783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19784 (exit $ac_status); }; } &&
19785 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19787 (eval $ac_try) 2>&5
19788 ac_status=$?
19789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19790 (exit $ac_status); }; }; then
19791 ac_lo=0 ac_mid=0
19792 while :; do
19793 cat >conftest.$ac_ext <<_ACEOF
19794/* confdefs.h. */
19795_ACEOF
19796cat confdefs.h >>conftest.$ac_ext
19797cat >>conftest.$ac_ext <<_ACEOF
19798/* end confdefs.h. */
19799$ac_includes_default
19800int
19801main ()
19802{
19803static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19804test_array [0] = 0
19805
19806 ;
19807 return 0;
19808}
19809_ACEOF
19810rm -f conftest.$ac_objext
19811if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19812 (eval $ac_compile) 2>conftest.er1
a848cd7e 19813 ac_status=$?
ac1cb8d3
VS
19814 grep -v '^ *+' conftest.er1 >conftest.err
19815 rm -f conftest.er1
19816 cat conftest.err >&5
a848cd7e
SC
19817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818 (exit $ac_status); } &&
5d7b7554 19819 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19821 (eval $ac_try) 2>&5
19822 ac_status=$?
19823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19824 (exit $ac_status); }; } &&
19825 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19827 (eval $ac_try) 2>&5
19828 ac_status=$?
19829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19830 (exit $ac_status); }; }; then
19831 ac_hi=$ac_mid; break
19832else
19833 echo "$as_me: failed program was:" >&5
19834sed 's/^/| /' conftest.$ac_ext >&5
19835
19836ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19837 if test $ac_lo -le $ac_mid; then
19838 ac_lo= ac_hi=
19839 break
19840 fi
19841 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19842fi
ac1cb8d3 19843rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19844 done
19845else
19846 echo "$as_me: failed program was:" >&5
19847sed 's/^/| /' conftest.$ac_ext >&5
19848
19849cat >conftest.$ac_ext <<_ACEOF
19850/* confdefs.h. */
19851_ACEOF
19852cat confdefs.h >>conftest.$ac_ext
19853cat >>conftest.$ac_ext <<_ACEOF
19854/* end confdefs.h. */
19855$ac_includes_default
19856int
19857main ()
19858{
19859static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
19860test_array [0] = 0
19861
19862 ;
19863 return 0;
19864}
19865_ACEOF
19866rm -f conftest.$ac_objext
19867if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19868 (eval $ac_compile) 2>conftest.er1
a848cd7e 19869 ac_status=$?
ac1cb8d3
VS
19870 grep -v '^ *+' conftest.er1 >conftest.err
19871 rm -f conftest.er1
19872 cat conftest.err >&5
a848cd7e
SC
19873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19874 (exit $ac_status); } &&
5d7b7554 19875 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19877 (eval $ac_try) 2>&5
19878 ac_status=$?
19879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19880 (exit $ac_status); }; } &&
19881 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19883 (eval $ac_try) 2>&5
19884 ac_status=$?
19885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19886 (exit $ac_status); }; }; then
19887 ac_hi=-1 ac_mid=-1
19888 while :; do
19889 cat >conftest.$ac_ext <<_ACEOF
19890/* confdefs.h. */
19891_ACEOF
19892cat confdefs.h >>conftest.$ac_ext
19893cat >>conftest.$ac_ext <<_ACEOF
19894/* end confdefs.h. */
19895$ac_includes_default
19896int
19897main ()
19898{
19899static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
19900test_array [0] = 0
19901
19902 ;
19903 return 0;
19904}
19905_ACEOF
19906rm -f conftest.$ac_objext
19907if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19908 (eval $ac_compile) 2>conftest.er1
a848cd7e 19909 ac_status=$?
ac1cb8d3
VS
19910 grep -v '^ *+' conftest.er1 >conftest.err
19911 rm -f conftest.er1
19912 cat conftest.err >&5
a848cd7e
SC
19913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19914 (exit $ac_status); } &&
5d7b7554 19915 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19917 (eval $ac_try) 2>&5
19918 ac_status=$?
19919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19920 (exit $ac_status); }; } &&
19921 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19923 (eval $ac_try) 2>&5
19924 ac_status=$?
19925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19926 (exit $ac_status); }; }; then
19927 ac_lo=$ac_mid; break
19928else
19929 echo "$as_me: failed program was:" >&5
19930sed 's/^/| /' conftest.$ac_ext >&5
19931
19932ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19933 if test $ac_mid -le $ac_hi; then
19934 ac_lo= ac_hi=
19935 break
19936 fi
19937 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19938fi
ac1cb8d3 19939rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19940 done
19941else
19942 echo "$as_me: failed program was:" >&5
19943sed 's/^/| /' conftest.$ac_ext >&5
19944
19945ac_lo= ac_hi=
19946fi
ac1cb8d3 19947rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19948fi
ac1cb8d3 19949rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19950# Binary search between lo and hi bounds.
19951while test "x$ac_lo" != "x$ac_hi"; do
19952 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19953 cat >conftest.$ac_ext <<_ACEOF
19954/* confdefs.h. */
19955_ACEOF
19956cat confdefs.h >>conftest.$ac_ext
19957cat >>conftest.$ac_ext <<_ACEOF
19958/* end confdefs.h. */
19959$ac_includes_default
19960int
19961main ()
19962{
19963static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19964test_array [0] = 0
19965
19966 ;
19967 return 0;
19968}
19969_ACEOF
19970rm -f conftest.$ac_objext
19971if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19972 (eval $ac_compile) 2>conftest.er1
a848cd7e 19973 ac_status=$?
ac1cb8d3
VS
19974 grep -v '^ *+' conftest.er1 >conftest.err
19975 rm -f conftest.er1
19976 cat conftest.err >&5
a848cd7e
SC
19977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19978 (exit $ac_status); } &&
5d7b7554 19979 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19981 (eval $ac_try) 2>&5
19982 ac_status=$?
19983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19984 (exit $ac_status); }; } &&
19985 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19987 (eval $ac_try) 2>&5
19988 ac_status=$?
19989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990 (exit $ac_status); }; }; then
19991 ac_hi=$ac_mid
19992else
19993 echo "$as_me: failed program was:" >&5
19994sed 's/^/| /' conftest.$ac_ext >&5
19995
19996ac_lo=`expr '(' $ac_mid ')' + 1`
19997fi
ac1cb8d3 19998rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19999done
20000case $ac_lo in
20001?*) ac_cv_sizeof_long_long=$ac_lo;;
20002'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20003See \`config.log' for more details." >&5
20004echo "$as_me: error: cannot compute sizeof (long long), 77
20005See \`config.log' for more details." >&2;}
20006 { (exit 1); exit 1; }; } ;;
20007esac
20008else
20009 if test "$cross_compiling" = yes; then
5d7b7554
VZ
20010 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20011echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
20012 { (exit 1); exit 1; }; }
20013else
20014 cat >conftest.$ac_ext <<_ACEOF
20015/* confdefs.h. */
20016_ACEOF
20017cat confdefs.h >>conftest.$ac_ext
20018cat >>conftest.$ac_ext <<_ACEOF
20019/* end confdefs.h. */
20020$ac_includes_default
20021long longval () { return (long) (sizeof (long long)); }
20022unsigned long ulongval () { return (long) (sizeof (long long)); }
20023#include <stdio.h>
20024#include <stdlib.h>
20025int
20026main ()
20027{
20028
20029 FILE *f = fopen ("conftest.val", "w");
20030 if (! f)
20031 exit (1);
20032 if (((long) (sizeof (long long))) < 0)
20033 {
20034 long i = longval ();
20035 if (i != ((long) (sizeof (long long))))
20036 exit (1);
20037 fprintf (f, "%ld\n", i);
20038 }
20039 else
20040 {
20041 unsigned long i = ulongval ();
20042 if (i != ((long) (sizeof (long long))))
20043 exit (1);
20044 fprintf (f, "%lu\n", i);
20045 }
20046 exit (ferror (f) || fclose (f) != 0);
20047
20048 ;
20049 return 0;
20050}
20051_ACEOF
20052rm -f conftest$ac_exeext
20053if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20054 (eval $ac_link) 2>&5
20055 ac_status=$?
20056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20057 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20059 (eval $ac_try) 2>&5
20060 ac_status=$?
20061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20062 (exit $ac_status); }; }; then
20063 ac_cv_sizeof_long_long=`cat conftest.val`
20064else
20065 echo "$as_me: program exited with status $ac_status" >&5
20066echo "$as_me: failed program was:" >&5
20067sed 's/^/| /' conftest.$ac_ext >&5
20068
20069( exit $ac_status )
20070{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20071See \`config.log' for more details." >&5
20072echo "$as_me: error: cannot compute sizeof (long long), 77
20073See \`config.log' for more details." >&2;}
20074 { (exit 1); exit 1; }; }
20075fi
ac1cb8d3 20076rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20077fi
20078fi
20079rm -f conftest.val
20080else
20081 ac_cv_sizeof_long_long=0
20082fi
20083fi
20084echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20085echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20086cat >>confdefs.h <<_ACEOF
20087#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20088_ACEOF
20089
20090
20091 ;;
20092 *-hp-hpux* )
20093 echo "$as_me:$LINENO: checking for long long" >&5
20094echo $ECHO_N "checking for long long... $ECHO_C" >&6
20095if test "${ac_cv_type_long_long+set}" = set; then
20096 echo $ECHO_N "(cached) $ECHO_C" >&6
20097else
20098 cat >conftest.$ac_ext <<_ACEOF
20099/* confdefs.h. */
20100_ACEOF
20101cat confdefs.h >>conftest.$ac_ext
20102cat >>conftest.$ac_ext <<_ACEOF
20103/* end confdefs.h. */
20104$ac_includes_default
20105int
20106main ()
20107{
20108if ((long long *) 0)
20109 return 0;
20110if (sizeof (long long))
20111 return 0;
20112 ;
20113 return 0;
20114}
20115_ACEOF
20116rm -f conftest.$ac_objext
20117if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20118 (eval $ac_compile) 2>conftest.er1
a848cd7e 20119 ac_status=$?
ac1cb8d3
VS
20120 grep -v '^ *+' conftest.er1 >conftest.err
20121 rm -f conftest.er1
20122 cat conftest.err >&5
a848cd7e
SC
20123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20124 (exit $ac_status); } &&
5d7b7554 20125 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20127 (eval $ac_try) 2>&5
20128 ac_status=$?
20129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20130 (exit $ac_status); }; } &&
20131 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20133 (eval $ac_try) 2>&5
20134 ac_status=$?
20135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20136 (exit $ac_status); }; }; then
20137 ac_cv_type_long_long=yes
20138else
20139 echo "$as_me: failed program was:" >&5
20140sed 's/^/| /' conftest.$ac_ext >&5
20141
20142ac_cv_type_long_long=no
20143fi
ac1cb8d3 20144rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20145fi
20146echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20147echo "${ECHO_T}$ac_cv_type_long_long" >&6
20148
20149echo "$as_me:$LINENO: checking size of long long" >&5
20150echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20151if test "${ac_cv_sizeof_long_long+set}" = set; then
20152 echo $ECHO_N "(cached) $ECHO_C" >&6
20153else
20154 if test "$ac_cv_type_long_long" = yes; then
20155 # The cast to unsigned long works around a bug in the HP C Compiler
20156 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20157 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20158 # This bug is HP SR number 8606223364.
20159 if test "$cross_compiling" = yes; then
20160 # Depending upon the size, compute the lo and hi bounds.
20161cat >conftest.$ac_ext <<_ACEOF
20162/* confdefs.h. */
20163_ACEOF
20164cat confdefs.h >>conftest.$ac_ext
20165cat >>conftest.$ac_ext <<_ACEOF
20166/* end confdefs.h. */
20167$ac_includes_default
20168int
20169main ()
20170{
20171static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20172test_array [0] = 0
20173
20174 ;
20175 return 0;
20176}
20177_ACEOF
20178rm -f conftest.$ac_objext
20179if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20180 (eval $ac_compile) 2>conftest.er1
a848cd7e 20181 ac_status=$?
ac1cb8d3
VS
20182 grep -v '^ *+' conftest.er1 >conftest.err
20183 rm -f conftest.er1
20184 cat conftest.err >&5
a848cd7e
SC
20185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20186 (exit $ac_status); } &&
5d7b7554 20187 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20189 (eval $ac_try) 2>&5
20190 ac_status=$?
20191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20192 (exit $ac_status); }; } &&
20193 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20195 (eval $ac_try) 2>&5
20196 ac_status=$?
20197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198 (exit $ac_status); }; }; then
20199 ac_lo=0 ac_mid=0
20200 while :; do
20201 cat >conftest.$ac_ext <<_ACEOF
20202/* confdefs.h. */
20203_ACEOF
20204cat confdefs.h >>conftest.$ac_ext
20205cat >>conftest.$ac_ext <<_ACEOF
20206/* end confdefs.h. */
20207$ac_includes_default
20208int
20209main ()
20210{
20211static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20212test_array [0] = 0
20213
20214 ;
20215 return 0;
20216}
20217_ACEOF
20218rm -f conftest.$ac_objext
20219if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20220 (eval $ac_compile) 2>conftest.er1
a848cd7e 20221 ac_status=$?
ac1cb8d3
VS
20222 grep -v '^ *+' conftest.er1 >conftest.err
20223 rm -f conftest.er1
20224 cat conftest.err >&5
a848cd7e
SC
20225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20226 (exit $ac_status); } &&
5d7b7554 20227 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20229 (eval $ac_try) 2>&5
20230 ac_status=$?
20231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20232 (exit $ac_status); }; } &&
20233 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20235 (eval $ac_try) 2>&5
20236 ac_status=$?
20237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20238 (exit $ac_status); }; }; then
20239 ac_hi=$ac_mid; break
20240else
20241 echo "$as_me: failed program was:" >&5
20242sed 's/^/| /' conftest.$ac_ext >&5
20243
20244ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
20245 if test $ac_lo -le $ac_mid; then
20246 ac_lo= ac_hi=
20247 break
20248 fi
20249 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20250fi
ac1cb8d3 20251rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20252 done
20253else
20254 echo "$as_me: failed program was:" >&5
20255sed 's/^/| /' conftest.$ac_ext >&5
20256
20257cat >conftest.$ac_ext <<_ACEOF
20258/* confdefs.h. */
20259_ACEOF
20260cat confdefs.h >>conftest.$ac_ext
20261cat >>conftest.$ac_ext <<_ACEOF
20262/* end confdefs.h. */
20263$ac_includes_default
20264int
20265main ()
20266{
20267static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20268test_array [0] = 0
20269
20270 ;
20271 return 0;
20272}
20273_ACEOF
20274rm -f conftest.$ac_objext
20275if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20276 (eval $ac_compile) 2>conftest.er1
a848cd7e 20277 ac_status=$?
ac1cb8d3
VS
20278 grep -v '^ *+' conftest.er1 >conftest.err
20279 rm -f conftest.er1
20280 cat conftest.err >&5
a848cd7e
SC
20281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20282 (exit $ac_status); } &&
5d7b7554 20283 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20285 (eval $ac_try) 2>&5
20286 ac_status=$?
20287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20288 (exit $ac_status); }; } &&
20289 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20291 (eval $ac_try) 2>&5
20292 ac_status=$?
20293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20294 (exit $ac_status); }; }; then
20295 ac_hi=-1 ac_mid=-1
20296 while :; do
20297 cat >conftest.$ac_ext <<_ACEOF
20298/* confdefs.h. */
20299_ACEOF
20300cat confdefs.h >>conftest.$ac_ext
20301cat >>conftest.$ac_ext <<_ACEOF
20302/* end confdefs.h. */
20303$ac_includes_default
20304int
20305main ()
20306{
20307static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20308test_array [0] = 0
20309
20310 ;
20311 return 0;
20312}
20313_ACEOF
20314rm -f conftest.$ac_objext
20315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20316 (eval $ac_compile) 2>conftest.er1
a848cd7e 20317 ac_status=$?
ac1cb8d3
VS
20318 grep -v '^ *+' conftest.er1 >conftest.err
20319 rm -f conftest.er1
20320 cat conftest.err >&5
a848cd7e
SC
20321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20322 (exit $ac_status); } &&
5d7b7554 20323 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20325 (eval $ac_try) 2>&5
20326 ac_status=$?
20327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20328 (exit $ac_status); }; } &&
20329 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20331 (eval $ac_try) 2>&5
20332 ac_status=$?
20333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20334 (exit $ac_status); }; }; then
20335 ac_lo=$ac_mid; break
20336else
20337 echo "$as_me: failed program was:" >&5
20338sed 's/^/| /' conftest.$ac_ext >&5
20339
20340ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20341 if test $ac_mid -le $ac_hi; then
20342 ac_lo= ac_hi=
20343 break
20344 fi
20345 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20346fi
ac1cb8d3 20347rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20348 done
20349else
20350 echo "$as_me: failed program was:" >&5
20351sed 's/^/| /' conftest.$ac_ext >&5
20352
20353ac_lo= ac_hi=
20354fi
ac1cb8d3 20355rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20356fi
ac1cb8d3 20357rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20358# Binary search between lo and hi bounds.
20359while test "x$ac_lo" != "x$ac_hi"; do
20360 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20361 cat >conftest.$ac_ext <<_ACEOF
20362/* confdefs.h. */
20363_ACEOF
20364cat confdefs.h >>conftest.$ac_ext
20365cat >>conftest.$ac_ext <<_ACEOF
20366/* end confdefs.h. */
20367$ac_includes_default
20368int
20369main ()
20370{
20371static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20372test_array [0] = 0
20373
20374 ;
20375 return 0;
20376}
20377_ACEOF
20378rm -f conftest.$ac_objext
20379if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20380 (eval $ac_compile) 2>conftest.er1
a848cd7e 20381 ac_status=$?
ac1cb8d3
VS
20382 grep -v '^ *+' conftest.er1 >conftest.err
20383 rm -f conftest.er1
20384 cat conftest.err >&5
a848cd7e
SC
20385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20386 (exit $ac_status); } &&
5d7b7554 20387 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20389 (eval $ac_try) 2>&5
20390 ac_status=$?
20391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20392 (exit $ac_status); }; } &&
20393 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20395 (eval $ac_try) 2>&5
20396 ac_status=$?
20397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20398 (exit $ac_status); }; }; then
20399 ac_hi=$ac_mid
20400else
20401 echo "$as_me: failed program was:" >&5
20402sed 's/^/| /' conftest.$ac_ext >&5
20403
20404ac_lo=`expr '(' $ac_mid ')' + 1`
20405fi
ac1cb8d3 20406rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20407done
20408case $ac_lo in
20409?*) ac_cv_sizeof_long_long=$ac_lo;;
20410'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20411See \`config.log' for more details." >&5
20412echo "$as_me: error: cannot compute sizeof (long long), 77
20413See \`config.log' for more details." >&2;}
20414 { (exit 1); exit 1; }; } ;;
20415esac
20416else
20417 if test "$cross_compiling" = yes; then
5d7b7554
VZ
20418 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20419echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
20420 { (exit 1); exit 1; }; }
20421else
20422 cat >conftest.$ac_ext <<_ACEOF
20423/* confdefs.h. */
20424_ACEOF
20425cat confdefs.h >>conftest.$ac_ext
20426cat >>conftest.$ac_ext <<_ACEOF
20427/* end confdefs.h. */
20428$ac_includes_default
20429long longval () { return (long) (sizeof (long long)); }
20430unsigned long ulongval () { return (long) (sizeof (long long)); }
20431#include <stdio.h>
20432#include <stdlib.h>
20433int
20434main ()
20435{
20436
20437 FILE *f = fopen ("conftest.val", "w");
20438 if (! f)
20439 exit (1);
20440 if (((long) (sizeof (long long))) < 0)
20441 {
20442 long i = longval ();
20443 if (i != ((long) (sizeof (long long))))
20444 exit (1);
20445 fprintf (f, "%ld\n", i);
20446 }
20447 else
20448 {
20449 unsigned long i = ulongval ();
20450 if (i != ((long) (sizeof (long long))))
20451 exit (1);
20452 fprintf (f, "%lu\n", i);
20453 }
20454 exit (ferror (f) || fclose (f) != 0);
20455
20456 ;
20457 return 0;
20458}
20459_ACEOF
20460rm -f conftest$ac_exeext
20461if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20462 (eval $ac_link) 2>&5
20463 ac_status=$?
20464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20465 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20467 (eval $ac_try) 2>&5
20468 ac_status=$?
20469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470 (exit $ac_status); }; }; then
20471 ac_cv_sizeof_long_long=`cat conftest.val`
20472else
20473 echo "$as_me: program exited with status $ac_status" >&5
20474echo "$as_me: failed program was:" >&5
20475sed 's/^/| /' conftest.$ac_ext >&5
20476
20477( exit $ac_status )
20478{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20479See \`config.log' for more details." >&5
20480echo "$as_me: error: cannot compute sizeof (long long), 77
20481See \`config.log' for more details." >&2;}
20482 { (exit 1); exit 1; }; }
20483fi
ac1cb8d3 20484rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20485fi
20486fi
20487rm -f conftest.val
20488else
20489 ac_cv_sizeof_long_long=0
20490fi
20491fi
20492echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20493echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20494cat >>confdefs.h <<_ACEOF
20495#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20496_ACEOF
20497
20498
20499 if test "$ac_cv_sizeof_long_long" != "0"; then
c92ad099 20500 CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
a848cd7e
SC
20501 fi
20502 ;;
20503 * )
20504 echo "$as_me:$LINENO: checking for long long" >&5
20505echo $ECHO_N "checking for long long... $ECHO_C" >&6
20506if test "${ac_cv_type_long_long+set}" = set; then
20507 echo $ECHO_N "(cached) $ECHO_C" >&6
20508else
20509 cat >conftest.$ac_ext <<_ACEOF
20510/* confdefs.h. */
20511_ACEOF
20512cat confdefs.h >>conftest.$ac_ext
20513cat >>conftest.$ac_ext <<_ACEOF
20514/* end confdefs.h. */
20515$ac_includes_default
20516int
20517main ()
20518{
20519if ((long long *) 0)
20520 return 0;
20521if (sizeof (long long))
20522 return 0;
20523 ;
20524 return 0;
20525}
20526_ACEOF
20527rm -f conftest.$ac_objext
20528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20529 (eval $ac_compile) 2>conftest.er1
a848cd7e 20530 ac_status=$?
ac1cb8d3
VS
20531 grep -v '^ *+' conftest.er1 >conftest.err
20532 rm -f conftest.er1
20533 cat conftest.err >&5
a848cd7e
SC
20534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20535 (exit $ac_status); } &&
5d7b7554 20536 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20538 (eval $ac_try) 2>&5
20539 ac_status=$?
20540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20541 (exit $ac_status); }; } &&
20542 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20544 (eval $ac_try) 2>&5
20545 ac_status=$?
20546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20547 (exit $ac_status); }; }; then
20548 ac_cv_type_long_long=yes
20549else
20550 echo "$as_me: failed program was:" >&5
20551sed 's/^/| /' conftest.$ac_ext >&5
20552
20553ac_cv_type_long_long=no
20554fi
ac1cb8d3 20555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20556fi
20557echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20558echo "${ECHO_T}$ac_cv_type_long_long" >&6
20559
20560echo "$as_me:$LINENO: checking size of long long" >&5
20561echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20562if test "${ac_cv_sizeof_long_long+set}" = set; then
20563 echo $ECHO_N "(cached) $ECHO_C" >&6
20564else
20565 if test "$ac_cv_type_long_long" = yes; then
20566 # The cast to unsigned long works around a bug in the HP C Compiler
20567 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20568 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20569 # This bug is HP SR number 8606223364.
20570 if test "$cross_compiling" = yes; then
20571 # Depending upon the size, compute the lo and hi bounds.
20572cat >conftest.$ac_ext <<_ACEOF
20573/* confdefs.h. */
20574_ACEOF
20575cat confdefs.h >>conftest.$ac_ext
20576cat >>conftest.$ac_ext <<_ACEOF
20577/* end confdefs.h. */
20578$ac_includes_default
20579int
20580main ()
20581{
20582static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20583test_array [0] = 0
20584
20585 ;
20586 return 0;
20587}
20588_ACEOF
20589rm -f conftest.$ac_objext
20590if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20591 (eval $ac_compile) 2>conftest.er1
a848cd7e 20592 ac_status=$?
ac1cb8d3
VS
20593 grep -v '^ *+' conftest.er1 >conftest.err
20594 rm -f conftest.er1
20595 cat conftest.err >&5
a848cd7e
SC
20596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20597 (exit $ac_status); } &&
5d7b7554 20598 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20600 (eval $ac_try) 2>&5
20601 ac_status=$?
20602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20603 (exit $ac_status); }; } &&
20604 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20606 (eval $ac_try) 2>&5
20607 ac_status=$?
20608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20609 (exit $ac_status); }; }; then
20610 ac_lo=0 ac_mid=0
20611 while :; do
20612 cat >conftest.$ac_ext <<_ACEOF
20613/* confdefs.h. */
20614_ACEOF
20615cat confdefs.h >>conftest.$ac_ext
20616cat >>conftest.$ac_ext <<_ACEOF
20617/* end confdefs.h. */
20618$ac_includes_default
20619int
20620main ()
20621{
20622static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20623test_array [0] = 0
20624
20625 ;
20626 return 0;
20627}
20628_ACEOF
20629rm -f conftest.$ac_objext
20630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20631 (eval $ac_compile) 2>conftest.er1
a848cd7e 20632 ac_status=$?
ac1cb8d3
VS
20633 grep -v '^ *+' conftest.er1 >conftest.err
20634 rm -f conftest.er1
20635 cat conftest.err >&5
a848cd7e
SC
20636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20637 (exit $ac_status); } &&
5d7b7554 20638 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20640 (eval $ac_try) 2>&5
20641 ac_status=$?
20642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20643 (exit $ac_status); }; } &&
20644 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20646 (eval $ac_try) 2>&5
20647 ac_status=$?
20648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20649 (exit $ac_status); }; }; then
20650 ac_hi=$ac_mid; break
20651else
20652 echo "$as_me: failed program was:" >&5
20653sed 's/^/| /' conftest.$ac_ext >&5
20654
20655ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
20656 if test $ac_lo -le $ac_mid; then
20657 ac_lo= ac_hi=
20658 break
20659 fi
20660 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20661fi
ac1cb8d3 20662rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20663 done
20664else
20665 echo "$as_me: failed program was:" >&5
20666sed 's/^/| /' conftest.$ac_ext >&5
20667
20668cat >conftest.$ac_ext <<_ACEOF
20669/* confdefs.h. */
20670_ACEOF
20671cat confdefs.h >>conftest.$ac_ext
20672cat >>conftest.$ac_ext <<_ACEOF
20673/* end confdefs.h. */
20674$ac_includes_default
20675int
20676main ()
20677{
20678static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20679test_array [0] = 0
20680
20681 ;
20682 return 0;
20683}
20684_ACEOF
20685rm -f conftest.$ac_objext
20686if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20687 (eval $ac_compile) 2>conftest.er1
a848cd7e 20688 ac_status=$?
ac1cb8d3
VS
20689 grep -v '^ *+' conftest.er1 >conftest.err
20690 rm -f conftest.er1
20691 cat conftest.err >&5
a848cd7e
SC
20692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20693 (exit $ac_status); } &&
5d7b7554 20694 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20696 (eval $ac_try) 2>&5
20697 ac_status=$?
20698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20699 (exit $ac_status); }; } &&
20700 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20702 (eval $ac_try) 2>&5
20703 ac_status=$?
20704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20705 (exit $ac_status); }; }; then
20706 ac_hi=-1 ac_mid=-1
20707 while :; do
20708 cat >conftest.$ac_ext <<_ACEOF
20709/* confdefs.h. */
20710_ACEOF
20711cat confdefs.h >>conftest.$ac_ext
20712cat >>conftest.$ac_ext <<_ACEOF
20713/* end confdefs.h. */
20714$ac_includes_default
20715int
20716main ()
20717{
20718static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20719test_array [0] = 0
20720
20721 ;
20722 return 0;
20723}
20724_ACEOF
20725rm -f conftest.$ac_objext
20726if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20727 (eval $ac_compile) 2>conftest.er1
a848cd7e 20728 ac_status=$?
ac1cb8d3
VS
20729 grep -v '^ *+' conftest.er1 >conftest.err
20730 rm -f conftest.er1
20731 cat conftest.err >&5
a848cd7e
SC
20732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20733 (exit $ac_status); } &&
5d7b7554 20734 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20736 (eval $ac_try) 2>&5
20737 ac_status=$?
20738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20739 (exit $ac_status); }; } &&
20740 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20742 (eval $ac_try) 2>&5
20743 ac_status=$?
20744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20745 (exit $ac_status); }; }; then
20746 ac_lo=$ac_mid; break
20747else
20748 echo "$as_me: failed program was:" >&5
20749sed 's/^/| /' conftest.$ac_ext >&5
20750
20751ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20752 if test $ac_mid -le $ac_hi; then
20753 ac_lo= ac_hi=
20754 break
20755 fi
20756 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20757fi
ac1cb8d3 20758rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20759 done
20760else
20761 echo "$as_me: failed program was:" >&5
20762sed 's/^/| /' conftest.$ac_ext >&5
20763
20764ac_lo= ac_hi=
20765fi
ac1cb8d3 20766rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20767fi
ac1cb8d3 20768rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20769# Binary search between lo and hi bounds.
20770while test "x$ac_lo" != "x$ac_hi"; do
20771 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20772 cat >conftest.$ac_ext <<_ACEOF
20773/* confdefs.h. */
20774_ACEOF
20775cat confdefs.h >>conftest.$ac_ext
20776cat >>conftest.$ac_ext <<_ACEOF
20777/* end confdefs.h. */
20778$ac_includes_default
20779int
20780main ()
20781{
20782static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20783test_array [0] = 0
20784
20785 ;
20786 return 0;
20787}
20788_ACEOF
20789rm -f conftest.$ac_objext
20790if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20791 (eval $ac_compile) 2>conftest.er1
a848cd7e 20792 ac_status=$?
ac1cb8d3
VS
20793 grep -v '^ *+' conftest.er1 >conftest.err
20794 rm -f conftest.er1
20795 cat conftest.err >&5
a848cd7e
SC
20796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20797 (exit $ac_status); } &&
5d7b7554 20798 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
20804 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20806 (eval $ac_try) 2>&5
20807 ac_status=$?
20808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20809 (exit $ac_status); }; }; then
20810 ac_hi=$ac_mid
20811else
20812 echo "$as_me: failed program was:" >&5
20813sed 's/^/| /' conftest.$ac_ext >&5
20814
20815ac_lo=`expr '(' $ac_mid ')' + 1`
20816fi
ac1cb8d3 20817rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20818done
20819case $ac_lo in
20820?*) ac_cv_sizeof_long_long=$ac_lo;;
20821'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20822See \`config.log' for more details." >&5
20823echo "$as_me: error: cannot compute sizeof (long long), 77
20824See \`config.log' for more details." >&2;}
20825 { (exit 1); exit 1; }; } ;;
20826esac
20827else
20828 if test "$cross_compiling" = yes; then
5d7b7554
VZ
20829 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20830echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
20831 { (exit 1); exit 1; }; }
20832else
20833 cat >conftest.$ac_ext <<_ACEOF
20834/* confdefs.h. */
20835_ACEOF
20836cat confdefs.h >>conftest.$ac_ext
20837cat >>conftest.$ac_ext <<_ACEOF
20838/* end confdefs.h. */
20839$ac_includes_default
20840long longval () { return (long) (sizeof (long long)); }
20841unsigned long ulongval () { return (long) (sizeof (long long)); }
20842#include <stdio.h>
20843#include <stdlib.h>
20844int
20845main ()
20846{
20847
20848 FILE *f = fopen ("conftest.val", "w");
20849 if (! f)
20850 exit (1);
20851 if (((long) (sizeof (long long))) < 0)
20852 {
20853 long i = longval ();
20854 if (i != ((long) (sizeof (long long))))
20855 exit (1);
20856 fprintf (f, "%ld\n", i);
20857 }
20858 else
20859 {
20860 unsigned long i = ulongval ();
20861 if (i != ((long) (sizeof (long long))))
20862 exit (1);
20863 fprintf (f, "%lu\n", i);
20864 }
20865 exit (ferror (f) || fclose (f) != 0);
20866
20867 ;
20868 return 0;
20869}
20870_ACEOF
20871rm -f conftest$ac_exeext
20872if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20873 (eval $ac_link) 2>&5
20874 ac_status=$?
20875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20876 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20878 (eval $ac_try) 2>&5
20879 ac_status=$?
20880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20881 (exit $ac_status); }; }; then
20882 ac_cv_sizeof_long_long=`cat conftest.val`
20883else
20884 echo "$as_me: program exited with status $ac_status" >&5
20885echo "$as_me: failed program was:" >&5
20886sed 's/^/| /' conftest.$ac_ext >&5
20887
20888( exit $ac_status )
20889{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20890See \`config.log' for more details." >&5
20891echo "$as_me: error: cannot compute sizeof (long long), 77
20892See \`config.log' for more details." >&2;}
20893 { (exit 1); exit 1; }; }
20894fi
ac1cb8d3 20895rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20896fi
20897fi
20898rm -f conftest.val
20899else
20900 ac_cv_sizeof_long_long=0
20901fi
20902fi
20903echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20904echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20905cat >>confdefs.h <<_ACEOF
20906#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20907_ACEOF
20908
20909
20910esac
20911
238ecede
MW
20912echo "$as_me:$LINENO: checking for wchar_t" >&5
20913echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
20914if test "${ac_cv_type_wchar_t+set}" = set; then
20915 echo $ECHO_N "(cached) $ECHO_C" >&6
20916else
20917 cat >conftest.$ac_ext <<_ACEOF
20918/* confdefs.h. */
20919_ACEOF
20920cat confdefs.h >>conftest.$ac_ext
20921cat >>conftest.$ac_ext <<_ACEOF
20922/* end confdefs.h. */
20923
83d8eb47
MW
20924 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20925 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20926 # error "fake wchar_t"
20927 #endif
20928 #ifdef HAVE_WCHAR_H
20929 # ifdef __CYGWIN__
20930 # include <stddef.h>
20931 # endif
20932 # include <wchar.h>
20933 #endif
20934 #ifdef HAVE_STDLIB_H
20935 # include <stdlib.h>
20936 #endif
20937 #include <stdio.h>
20938
20939
20940
20941int
20942main ()
20943{
20944if ((wchar_t *) 0)
20945 return 0;
20946if (sizeof (wchar_t))
20947 return 0;
20948 ;
20949 return 0;
20950}
20951_ACEOF
20952rm -f conftest.$ac_objext
20953if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20954 (eval $ac_compile) 2>conftest.er1
20955 ac_status=$?
20956 grep -v '^ *+' conftest.er1 >conftest.err
20957 rm -f conftest.er1
20958 cat conftest.err >&5
20959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20960 (exit $ac_status); } &&
5d7b7554 20961 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
20962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20963 (eval $ac_try) 2>&5
20964 ac_status=$?
20965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20966 (exit $ac_status); }; } &&
20967 { ac_try='test -s conftest.$ac_objext'
20968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20969 (eval $ac_try) 2>&5
20970 ac_status=$?
20971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20972 (exit $ac_status); }; }; then
20973 ac_cv_type_wchar_t=yes
20974else
20975 echo "$as_me: failed program was:" >&5
20976sed 's/^/| /' conftest.$ac_ext >&5
20977
20978ac_cv_type_wchar_t=no
20979fi
20980rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20981fi
20982echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
20983echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
20984
a848cd7e
SC
20985echo "$as_me:$LINENO: checking size of wchar_t" >&5
20986echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
238ecede 20987if test "${ac_cv_sizeof_wchar_t+set}" = set; then
a848cd7e
SC
20988 echo $ECHO_N "(cached) $ECHO_C" >&6
20989else
238ecede
MW
20990 if test "$ac_cv_type_wchar_t" = yes; then
20991 # The cast to unsigned long works around a bug in the HP C Compiler
20992 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20993 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20994 # This bug is HP SR number 8606223364.
20995 if test "$cross_compiling" = yes; then
20996 # Depending upon the size, compute the lo and hi bounds.
20997cat >conftest.$ac_ext <<_ACEOF
20998/* confdefs.h. */
20999_ACEOF
21000cat confdefs.h >>conftest.$ac_ext
21001cat >>conftest.$ac_ext <<_ACEOF
21002/* end confdefs.h. */
21003
83d8eb47
MW
21004 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21005 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21006 # error "fake wchar_t"
21007 #endif
21008 #ifdef HAVE_WCHAR_H
21009 # ifdef __CYGWIN__
21010 # include <stddef.h>
21011 # endif
21012 # include <wchar.h>
21013 #endif
21014 #ifdef HAVE_STDLIB_H
21015 # include <stdlib.h>
21016 #endif
21017 #include <stdio.h>
21018
21019
21020
21021int
21022main ()
21023{
21024static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
21025test_array [0] = 0
21026
21027 ;
21028 return 0;
21029}
21030_ACEOF
21031rm -f conftest.$ac_objext
21032if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21033 (eval $ac_compile) 2>conftest.er1
21034 ac_status=$?
21035 grep -v '^ *+' conftest.er1 >conftest.err
21036 rm -f conftest.er1
21037 cat conftest.err >&5
21038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21039 (exit $ac_status); } &&
5d7b7554 21040 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21042 (eval $ac_try) 2>&5
21043 ac_status=$?
21044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21045 (exit $ac_status); }; } &&
21046 { ac_try='test -s conftest.$ac_objext'
21047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21048 (eval $ac_try) 2>&5
21049 ac_status=$?
21050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21051 (exit $ac_status); }; }; then
21052 ac_lo=0 ac_mid=0
21053 while :; do
21054 cat >conftest.$ac_ext <<_ACEOF
21055/* confdefs.h. */
21056_ACEOF
21057cat confdefs.h >>conftest.$ac_ext
21058cat >>conftest.$ac_ext <<_ACEOF
21059/* end confdefs.h. */
21060
83d8eb47
MW
21061 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21062 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21063 # error "fake wchar_t"
21064 #endif
21065 #ifdef HAVE_WCHAR_H
21066 # ifdef __CYGWIN__
21067 # include <stddef.h>
21068 # endif
21069 # include <wchar.h>
21070 #endif
21071 #ifdef HAVE_STDLIB_H
21072 # include <stdlib.h>
21073 #endif
21074 #include <stdio.h>
21075
21076
21077
21078int
21079main ()
21080{
21081static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
21082test_array [0] = 0
21083
21084 ;
21085 return 0;
21086}
21087_ACEOF
21088rm -f conftest.$ac_objext
21089if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21090 (eval $ac_compile) 2>conftest.er1
21091 ac_status=$?
21092 grep -v '^ *+' conftest.er1 >conftest.err
21093 rm -f conftest.er1
21094 cat conftest.err >&5
21095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21096 (exit $ac_status); } &&
5d7b7554 21097 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21099 (eval $ac_try) 2>&5
21100 ac_status=$?
21101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21102 (exit $ac_status); }; } &&
21103 { ac_try='test -s conftest.$ac_objext'
21104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21105 (eval $ac_try) 2>&5
21106 ac_status=$?
21107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21108 (exit $ac_status); }; }; then
21109 ac_hi=$ac_mid; break
21110else
21111 echo "$as_me: failed program was:" >&5
21112sed 's/^/| /' conftest.$ac_ext >&5
21113
21114ac_lo=`expr $ac_mid + 1`
21115 if test $ac_lo -le $ac_mid; then
21116 ac_lo= ac_hi=
21117 break
21118 fi
21119 ac_mid=`expr 2 '*' $ac_mid + 1`
21120fi
21121rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21122 done
21123else
21124 echo "$as_me: failed program was:" >&5
21125sed 's/^/| /' conftest.$ac_ext >&5
21126
21127cat >conftest.$ac_ext <<_ACEOF
21128/* confdefs.h. */
21129_ACEOF
21130cat confdefs.h >>conftest.$ac_ext
21131cat >>conftest.$ac_ext <<_ACEOF
21132/* end confdefs.h. */
21133
83d8eb47
MW
21134 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21135 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21136 # error "fake wchar_t"
21137 #endif
21138 #ifdef HAVE_WCHAR_H
21139 # ifdef __CYGWIN__
21140 # include <stddef.h>
21141 # endif
21142 # include <wchar.h>
21143 #endif
21144 #ifdef HAVE_STDLIB_H
21145 # include <stdlib.h>
21146 #endif
21147 #include <stdio.h>
21148
21149
21150
21151int
21152main ()
21153{
21154static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
21155test_array [0] = 0
21156
21157 ;
21158 return 0;
21159}
21160_ACEOF
21161rm -f conftest.$ac_objext
21162if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21163 (eval $ac_compile) 2>conftest.er1
21164 ac_status=$?
21165 grep -v '^ *+' conftest.er1 >conftest.err
21166 rm -f conftest.er1
21167 cat conftest.err >&5
21168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21169 (exit $ac_status); } &&
5d7b7554 21170 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21172 (eval $ac_try) 2>&5
21173 ac_status=$?
21174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21175 (exit $ac_status); }; } &&
21176 { ac_try='test -s conftest.$ac_objext'
21177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21178 (eval $ac_try) 2>&5
21179 ac_status=$?
21180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21181 (exit $ac_status); }; }; then
21182 ac_hi=-1 ac_mid=-1
21183 while :; do
21184 cat >conftest.$ac_ext <<_ACEOF
21185/* confdefs.h. */
21186_ACEOF
21187cat confdefs.h >>conftest.$ac_ext
21188cat >>conftest.$ac_ext <<_ACEOF
21189/* end confdefs.h. */
21190
83d8eb47
MW
21191 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21192 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21193 # error "fake wchar_t"
21194 #endif
21195 #ifdef HAVE_WCHAR_H
21196 # ifdef __CYGWIN__
21197 # include <stddef.h>
21198 # endif
21199 # include <wchar.h>
21200 #endif
21201 #ifdef HAVE_STDLIB_H
21202 # include <stdlib.h>
21203 #endif
21204 #include <stdio.h>
21205
21206
21207
21208int
21209main ()
21210{
21211static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
21212test_array [0] = 0
21213
21214 ;
21215 return 0;
21216}
21217_ACEOF
21218rm -f conftest.$ac_objext
21219if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21220 (eval $ac_compile) 2>conftest.er1
21221 ac_status=$?
21222 grep -v '^ *+' conftest.er1 >conftest.err
21223 rm -f conftest.er1
21224 cat conftest.err >&5
21225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21226 (exit $ac_status); } &&
5d7b7554 21227 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21229 (eval $ac_try) 2>&5
21230 ac_status=$?
21231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21232 (exit $ac_status); }; } &&
21233 { ac_try='test -s conftest.$ac_objext'
21234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21235 (eval $ac_try) 2>&5
21236 ac_status=$?
21237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21238 (exit $ac_status); }; }; then
21239 ac_lo=$ac_mid; break
21240else
21241 echo "$as_me: failed program was:" >&5
21242sed 's/^/| /' conftest.$ac_ext >&5
21243
21244ac_hi=`expr '(' $ac_mid ')' - 1`
21245 if test $ac_mid -le $ac_hi; then
21246 ac_lo= ac_hi=
21247 break
21248 fi
21249 ac_mid=`expr 2 '*' $ac_mid`
21250fi
21251rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21252 done
21253else
21254 echo "$as_me: failed program was:" >&5
21255sed 's/^/| /' conftest.$ac_ext >&5
21256
21257ac_lo= ac_hi=
21258fi
21259rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21260fi
21261rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21262# Binary search between lo and hi bounds.
21263while test "x$ac_lo" != "x$ac_hi"; do
21264 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21265 cat >conftest.$ac_ext <<_ACEOF
21266/* confdefs.h. */
21267_ACEOF
21268cat confdefs.h >>conftest.$ac_ext
21269cat >>conftest.$ac_ext <<_ACEOF
21270/* end confdefs.h. */
21271
83d8eb47
MW
21272 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21273 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21274 # error "fake wchar_t"
21275 #endif
21276 #ifdef HAVE_WCHAR_H
21277 # ifdef __CYGWIN__
21278 # include <stddef.h>
21279 # endif
21280 # include <wchar.h>
21281 #endif
21282 #ifdef HAVE_STDLIB_H
21283 # include <stdlib.h>
21284 #endif
21285 #include <stdio.h>
a848cd7e 21286
a848cd7e 21287
a848cd7e 21288
238ecede
MW
21289int
21290main ()
21291{
21292static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
21293test_array [0] = 0
a848cd7e 21294
238ecede
MW
21295 ;
21296 return 0;
21297}
21298_ACEOF
21299rm -f conftest.$ac_objext
21300if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21301 (eval $ac_compile) 2>conftest.er1
21302 ac_status=$?
21303 grep -v '^ *+' conftest.er1 >conftest.err
21304 rm -f conftest.er1
21305 cat conftest.err >&5
21306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21307 (exit $ac_status); } &&
5d7b7554 21308 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21310 (eval $ac_try) 2>&5
21311 ac_status=$?
21312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21313 (exit $ac_status); }; } &&
21314 { ac_try='test -s conftest.$ac_objext'
21315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21316 (eval $ac_try) 2>&5
21317 ac_status=$?
21318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21319 (exit $ac_status); }; }; then
21320 ac_hi=$ac_mid
21321else
21322 echo "$as_me: failed program was:" >&5
21323sed 's/^/| /' conftest.$ac_ext >&5
21324
21325ac_lo=`expr '(' $ac_mid ')' + 1`
21326fi
21327rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21328done
21329case $ac_lo in
21330?*) ac_cv_sizeof_wchar_t=$ac_lo;;
21331'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
21332See \`config.log' for more details." >&5
21333echo "$as_me: error: cannot compute sizeof (wchar_t), 77
21334See \`config.log' for more details." >&2;}
21335 { (exit 1); exit 1; }; } ;;
21336esac
21337else
21338 if test "$cross_compiling" = yes; then
5d7b7554
VZ
21339 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
21340echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
238ecede 21341 { (exit 1); exit 1; }; }
a848cd7e
SC
21342else
21343 cat >conftest.$ac_ext <<_ACEOF
21344/* confdefs.h. */
21345_ACEOF
21346cat confdefs.h >>conftest.$ac_ext
21347cat >>conftest.$ac_ext <<_ACEOF
21348/* end confdefs.h. */
21349
83d8eb47
MW
21350 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21351 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21352 # error "fake wchar_t"
21353 #endif
21354 #ifdef HAVE_WCHAR_H
21355 # ifdef __CYGWIN__
21356 # include <stddef.h>
21357 # endif
21358 # include <wchar.h>
21359 #endif
21360 #ifdef HAVE_STDLIB_H
21361 # include <stdlib.h>
21362 #endif
21363 #include <stdio.h>
21364
21365
21366
21367long longval () { return (long) (sizeof (wchar_t)); }
21368unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
21369#include <stdio.h>
21370#include <stdlib.h>
21371int
21372main ()
21373{
a848cd7e 21374
238ecede
MW
21375 FILE *f = fopen ("conftest.val", "w");
21376 if (! f)
21377 exit (1);
21378 if (((long) (sizeof (wchar_t))) < 0)
21379 {
21380 long i = longval ();
21381 if (i != ((long) (sizeof (wchar_t))))
21382 exit (1);
21383 fprintf (f, "%ld\n", i);
21384 }
21385 else
21386 {
21387 unsigned long i = ulongval ();
21388 if (i != ((long) (sizeof (wchar_t))))
21389 exit (1);
21390 fprintf (f, "%lu\n", i);
21391 }
21392 exit (ferror (f) || fclose (f) != 0);
21393
21394 ;
21395 return 0;
21396}
a848cd7e
SC
21397_ACEOF
21398rm -f conftest$ac_exeext
21399if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21400 (eval $ac_link) 2>&5
21401 ac_status=$?
21402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21403 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21405 (eval $ac_try) 2>&5
21406 ac_status=$?
21407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21408 (exit $ac_status); }; }; then
238ecede 21409 ac_cv_sizeof_wchar_t=`cat conftest.val`
a848cd7e
SC
21410else
21411 echo "$as_me: program exited with status $ac_status" >&5
21412echo "$as_me: failed program was:" >&5
21413sed 's/^/| /' conftest.$ac_ext >&5
21414
21415( exit $ac_status )
238ecede
MW
21416{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
21417See \`config.log' for more details." >&5
21418echo "$as_me: error: cannot compute sizeof (wchar_t), 77
21419See \`config.log' for more details." >&2;}
21420 { (exit 1); exit 1; }; }
a848cd7e 21421fi
ac1cb8d3 21422rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 21423fi
a848cd7e 21424fi
238ecede
MW
21425rm -f conftest.val
21426else
21427 ac_cv_sizeof_wchar_t=0
21428fi
21429fi
21430echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
21431echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
a848cd7e 21432cat >>confdefs.h <<_ACEOF
238ecede 21433#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
a848cd7e
SC
21434_ACEOF
21435
21436
47a7e797
MW
21437if test "$ac_cv_sizeof_wchar_t" != "0"; then
21438 wxUSE_WCHAR_T=yes
21439else
21440 wxUSE_WCHAR_T=no
21441fi
238ecede 21442
ba3d13e1
VZ
21443echo "$as_me:$LINENO: checking for va_copy" >&5
21444echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
21445if test "${wx_cv_func_va_copy+set}" = set; then
21446 echo $ECHO_N "(cached) $ECHO_C" >&6
21447else
21448
21449 cat >conftest.$ac_ext <<_ACEOF
21450
21451 #include <stdarg.h>
21452 void foo(char *f, ...)
21453 {
21454 va_list ap1, ap2;
21455 va_start(ap1, f);
21456 va_copy(ap2, ap1);
21457 va_end(ap2);
21458 va_end(ap1);
21459 }
5886b072
VZ
21460 int main()
21461 {
b902e639
VZ
21462 foo("hi", 17);
21463 return 0;
5886b072 21464 }
ba3d13e1
VZ
21465_ACEOF
21466rm -f conftest.$ac_objext conftest$ac_exeext
21467if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21468 (eval $ac_link) 2>conftest.er1
21469 ac_status=$?
21470 grep -v '^ *+' conftest.er1 >conftest.err
21471 rm -f conftest.er1
21472 cat conftest.err >&5
21473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21474 (exit $ac_status); } &&
5d7b7554 21475 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ba3d13e1
VZ
21476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21477 (eval $ac_try) 2>&5
21478 ac_status=$?
21479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21480 (exit $ac_status); }; } &&
21481 { ac_try='test -s conftest$ac_exeext'
21482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21483 (eval $ac_try) 2>&5
21484 ac_status=$?
21485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21486 (exit $ac_status); }; }; then
21487 wx_cv_func_va_copy=yes
21488else
21489 echo "$as_me: failed program was:" >&5
21490sed 's/^/| /' conftest.$ac_ext >&5
21491
21492wx_cv_func_va_copy=no
21493
21494fi
21495rm -f conftest.err conftest.$ac_objext \
21496 conftest$ac_exeext conftest.$ac_ext
21497
21498
21499fi
21500echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
21501echo "${ECHO_T}$wx_cv_func_va_copy" >&6
21502
21503if test $wx_cv_func_va_copy = "yes"; then
21504 cat >>confdefs.h <<\_ACEOF
21505#define HAVE_VA_COPY 1
21506_ACEOF
21507
21508else
21509 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
21510echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
21511if test "${wx_cv_type_va_list_lvalue+set}" = set; then
21512 echo $ECHO_N "(cached) $ECHO_C" >&6
21513else
21514
21515 if test "$cross_compiling" = yes; then
21516 wx_cv_type_va_list_lvalue=yes
21517
21518else
21519 cat >conftest.$ac_ext <<_ACEOF
21520
21521 #include <stdarg.h>
21522 int foo(char *f, ...)
21523 {
21524 va_list ap1, ap2;
21525 va_start(ap1, f);
21526 ap2 = ap1;
21527 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
21528 return 1;
21529 va_end(ap2);
21530 va_end(ap1);
21531 return 0;
21532 }
21533 int main()
21534 {
21535 return foo("hi", 17);
21536 }
21537_ACEOF
21538rm -f conftest$ac_exeext
21539if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21540 (eval $ac_link) 2>&5
21541 ac_status=$?
21542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21543 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21545 (eval $ac_try) 2>&5
21546 ac_status=$?
21547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21548 (exit $ac_status); }; }; then
21549 wx_cv_type_va_list_lvalue=yes
21550else
21551 echo "$as_me: program exited with status $ac_status" >&5
21552echo "$as_me: failed program was:" >&5
21553sed 's/^/| /' conftest.$ac_ext >&5
21554
21555( exit $ac_status )
21556wx_cv_type_va_list_lvalue=no
21557fi
21558rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21559fi
21560
21561
21562fi
21563echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
21564echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
21565
21566 if test $wx_cv_type_va_list_lvalue != "yes"; then
21567 cat >>confdefs.h <<\_ACEOF
21568#define VA_LIST_IS_ARRAY 1
21569_ACEOF
21570
21571 fi
21572fi
21573
a848cd7e
SC
21574# Check whether --enable-largefile or --disable-largefile was given.
21575if test "${enable_largefile+set}" = set; then
21576 enableval="$enable_largefile"
21577
21578fi;
21579if test "$enable_largefile" != no; then
21580 wx_largefile=no
21581
21582 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
21583echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
21584if test "${ac_cv_sys_file_offset_bits+set}" = set; then
21585 echo $ECHO_N "(cached) $ECHO_C" >&6
21586else
21587
21588 cat >conftest.$ac_ext <<_ACEOF
21589/* confdefs.h. */
21590_ACEOF
21591cat confdefs.h >>conftest.$ac_ext
21592cat >>conftest.$ac_ext <<_ACEOF
21593/* end confdefs.h. */
21594#define _FILE_OFFSET_BITS 64
21595 #include <sys/types.h>
21596int
21597main ()
21598{
21599typedef struct {
21600 unsigned int field: sizeof(off_t) == 8;
21601} wxlf;
21602
21603 ;
21604 return 0;
21605}
21606_ACEOF
21607rm -f conftest.$ac_objext
21608if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21609 (eval $ac_compile) 2>conftest.er1
a848cd7e 21610 ac_status=$?
ac1cb8d3
VS
21611 grep -v '^ *+' conftest.er1 >conftest.err
21612 rm -f conftest.er1
21613 cat conftest.err >&5
a848cd7e
SC
21614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21615 (exit $ac_status); } &&
5d7b7554 21616 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21618 (eval $ac_try) 2>&5
21619 ac_status=$?
21620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21621 (exit $ac_status); }; } &&
21622 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21624 (eval $ac_try) 2>&5
21625 ac_status=$?
21626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21627 (exit $ac_status); }; }; then
21628 ac_cv_sys_file_offset_bits=64
21629else
21630 echo "$as_me: failed program was:" >&5
21631sed 's/^/| /' conftest.$ac_ext >&5
21632
21633ac_cv_sys_file_offset_bits=no
21634fi
ac1cb8d3 21635rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21636
21637
21638fi
21639echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
21640echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
21641
21642 if test "$ac_cv_sys_file_offset_bits" != no; then
21643 wx_largefile=yes
21644 cat >>confdefs.h <<_ACEOF
21645#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
21646_ACEOF
21647
21648 fi
21649
21650 if test "x$wx_largefile" != "xyes"; then
21651
21652 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
21653echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
21654if test "${ac_cv_sys_large_files+set}" = set; then
21655 echo $ECHO_N "(cached) $ECHO_C" >&6
21656else
21657
21658 cat >conftest.$ac_ext <<_ACEOF
21659/* confdefs.h. */
21660_ACEOF
21661cat confdefs.h >>conftest.$ac_ext
21662cat >>conftest.$ac_ext <<_ACEOF
21663/* end confdefs.h. */
21664#define _LARGE_FILES 1
21665 #include <sys/types.h>
21666int
21667main ()
21668{
21669typedef struct {
21670 unsigned int field: sizeof(off_t) == 8;
21671} wxlf;
21672
21673 ;
21674 return 0;
21675}
21676_ACEOF
21677rm -f conftest.$ac_objext
21678if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21679 (eval $ac_compile) 2>conftest.er1
a848cd7e 21680 ac_status=$?
ac1cb8d3
VS
21681 grep -v '^ *+' conftest.er1 >conftest.err
21682 rm -f conftest.er1
21683 cat conftest.err >&5
a848cd7e
SC
21684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21685 (exit $ac_status); } &&
5d7b7554 21686 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21688 (eval $ac_try) 2>&5
21689 ac_status=$?
21690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21691 (exit $ac_status); }; } &&
21692 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21694 (eval $ac_try) 2>&5
21695 ac_status=$?
21696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21697 (exit $ac_status); }; }; then
21698 ac_cv_sys_large_files=1
21699else
21700 echo "$as_me: failed program was:" >&5
21701sed 's/^/| /' conftest.$ac_ext >&5
21702
21703ac_cv_sys_large_files=no
21704fi
ac1cb8d3 21705rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21706
21707
21708fi
21709echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
21710echo "${ECHO_T}$ac_cv_sys_large_files" >&6
21711
21712 if test "$ac_cv_sys_large_files" != no; then
21713 wx_largefile=yes
21714 cat >>confdefs.h <<_ACEOF
21715#define _LARGE_FILES $ac_cv_sys_large_files
21716_ACEOF
21717
21718 fi
21719
21720 fi
21721
21722 echo "$as_me:$LINENO: checking if large file support is available" >&5
21723echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
21724 if test "x$wx_largefile" = "xyes"; then
21725 cat >>confdefs.h <<\_ACEOF
21726#define HAVE_LARGEFILE_SUPPORT 1
21727_ACEOF
21728
21729 fi
21730 echo "$as_me:$LINENO: result: $wx_largefile" >&5
21731echo "${ECHO_T}$wx_largefile" >&6
21732fi
21733
5b674b9d
DE
21734
21735if test "x$wx_largefile" = "xyes"; then
21736 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
5ff751d6 21737 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
00421666
MW
21738
21739 if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
21740 echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
21741echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6
21742if test "${wx_cv_STDC_EXT_required+set}" = set; then
21743 echo $ECHO_N "(cached) $ECHO_C" >&6
21744else
21745
00421666
MW
21746 cat >conftest.$ac_ext <<_ACEOF
21747/* confdefs.h. */
21748_ACEOF
21749cat confdefs.h >>conftest.$ac_ext
21750cat >>conftest.$ac_ext <<_ACEOF
21751/* end confdefs.h. */
21752
21753int
21754main ()
21755{
21756
21757 #ifndef __STDC_EXT__
21758 choke me
21759 #endif
21760
21761 ;
21762 return 0;
21763}
21764_ACEOF
21765rm -f conftest.$ac_objext
21766if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21767 (eval $ac_compile) 2>conftest.er1
21768 ac_status=$?
21769 grep -v '^ *+' conftest.er1 >conftest.err
21770 rm -f conftest.er1
21771 cat conftest.err >&5
21772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21773 (exit $ac_status); } &&
5d7b7554 21774 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
00421666
MW
21775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21776 (eval $ac_try) 2>&5
21777 ac_status=$?
21778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21779 (exit $ac_status); }; } &&
21780 { ac_try='test -s conftest.$ac_objext'
21781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21782 (eval $ac_try) 2>&5
21783 ac_status=$?
21784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21785 (exit $ac_status); }; }; then
21786 wx_cv_STDC_EXT_required=no
21787else
21788 echo "$as_me: failed program was:" >&5
21789sed 's/^/| /' conftest.$ac_ext >&5
21790
21791wx_cv_STDC_EXT_required=yes
21792
21793fi
21794rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
00421666
MW
21795
21796
21797fi
21798echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
21799echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6
21800 if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
5ff751d6 21801 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
00421666
MW
21802 fi
21803 fi
5b674b9d 21804 else
5ff751d6 21805 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES"
5b674b9d
DE
21806 fi
21807 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
21808echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
21809if test "${ac_cv_sys_largefile_source+set}" = set; then
21810 echo $ECHO_N "(cached) $ECHO_C" >&6
21811else
21812 while :; do
21813 ac_cv_sys_largefile_source=no
21814 cat >conftest.$ac_ext <<_ACEOF
21815/* confdefs.h. */
21816_ACEOF
21817cat confdefs.h >>conftest.$ac_ext
21818cat >>conftest.$ac_ext <<_ACEOF
21819/* end confdefs.h. */
21820#include <stdio.h>
21821int
21822main ()
21823{
21824return !fseeko;
21825 ;
21826 return 0;
21827}
21828_ACEOF
21829rm -f conftest.$ac_objext
21830if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21831 (eval $ac_compile) 2>conftest.er1
21832 ac_status=$?
21833 grep -v '^ *+' conftest.er1 >conftest.err
21834 rm -f conftest.er1
21835 cat conftest.err >&5
21836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21837 (exit $ac_status); } &&
5d7b7554 21838 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
21839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21840 (eval $ac_try) 2>&5
21841 ac_status=$?
21842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21843 (exit $ac_status); }; } &&
21844 { ac_try='test -s conftest.$ac_objext'
21845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21846 (eval $ac_try) 2>&5
21847 ac_status=$?
21848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21849 (exit $ac_status); }; }; then
21850 break
21851else
21852 echo "$as_me: failed program was:" >&5
21853sed 's/^/| /' conftest.$ac_ext >&5
21854
21855fi
21856rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21857 cat >conftest.$ac_ext <<_ACEOF
21858/* confdefs.h. */
21859_ACEOF
21860cat confdefs.h >>conftest.$ac_ext
21861cat >>conftest.$ac_ext <<_ACEOF
21862/* end confdefs.h. */
21863#define _LARGEFILE_SOURCE 1
21864#include <stdio.h>
21865int
21866main ()
21867{
21868return !fseeko;
21869 ;
21870 return 0;
21871}
21872_ACEOF
21873rm -f conftest.$ac_objext
21874if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21875 (eval $ac_compile) 2>conftest.er1
21876 ac_status=$?
21877 grep -v '^ *+' conftest.er1 >conftest.err
21878 rm -f conftest.er1
21879 cat conftest.err >&5
21880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21881 (exit $ac_status); } &&
5d7b7554 21882 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
21883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21884 (eval $ac_try) 2>&5
21885 ac_status=$?
21886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21887 (exit $ac_status); }; } &&
21888 { ac_try='test -s conftest.$ac_objext'
21889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21890 (eval $ac_try) 2>&5
21891 ac_status=$?
21892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21893 (exit $ac_status); }; }; then
21894 ac_cv_sys_largefile_source=1; break
21895else
21896 echo "$as_me: failed program was:" >&5
21897sed 's/^/| /' conftest.$ac_ext >&5
21898
21899fi
21900rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21901 break
21902done
21903fi
21904echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
21905echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
21906if test "$ac_cv_sys_largefile_source" != no; then
21907
21908cat >>confdefs.h <<_ACEOF
21909#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
21910_ACEOF
21911
21912fi
21913rm -f conftest*
21914
21915# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
21916# in glibc 2.1.3, but that breaks too many other things.
21917# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
21918echo "$as_me:$LINENO: checking for fseeko" >&5
21919echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
21920if test "${ac_cv_func_fseeko+set}" = set; then
21921 echo $ECHO_N "(cached) $ECHO_C" >&6
21922else
21923 cat >conftest.$ac_ext <<_ACEOF
21924/* confdefs.h. */
21925_ACEOF
21926cat confdefs.h >>conftest.$ac_ext
21927cat >>conftest.$ac_ext <<_ACEOF
21928/* end confdefs.h. */
21929#include <stdio.h>
21930int
21931main ()
21932{
21933return fseeko && fseeko (stdin, 0, 0);
21934 ;
21935 return 0;
21936}
21937_ACEOF
21938rm -f conftest.$ac_objext conftest$ac_exeext
21939if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21940 (eval $ac_link) 2>conftest.er1
21941 ac_status=$?
21942 grep -v '^ *+' conftest.er1 >conftest.err
21943 rm -f conftest.er1
21944 cat conftest.err >&5
21945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21946 (exit $ac_status); } &&
5d7b7554 21947 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
21948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21949 (eval $ac_try) 2>&5
21950 ac_status=$?
21951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21952 (exit $ac_status); }; } &&
21953 { ac_try='test -s conftest$ac_exeext'
21954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21955 (eval $ac_try) 2>&5
21956 ac_status=$?
21957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21958 (exit $ac_status); }; }; then
21959 ac_cv_func_fseeko=yes
21960else
21961 echo "$as_me: failed program was:" >&5
21962sed 's/^/| /' conftest.$ac_ext >&5
21963
21964ac_cv_func_fseeko=no
21965fi
21966rm -f conftest.err conftest.$ac_objext \
21967 conftest$ac_exeext conftest.$ac_ext
21968fi
21969echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
21970echo "${ECHO_T}$ac_cv_func_fseeko" >&6
21971if test $ac_cv_func_fseeko = yes; then
21972
21973cat >>confdefs.h <<\_ACEOF
21974#define HAVE_FSEEKO 1
21975_ACEOF
21976
21977fi
21978
5b674b9d 21979 if test "$ac_cv_sys_largefile_source" != no; then
5ff751d6 21980 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e 21981 fi
a848cd7e
SC
21982fi
21983
21984echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
21985echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
21986if test "${ac_cv_c_bigendian+set}" = set; then
21987 echo $ECHO_N "(cached) $ECHO_C" >&6
21988else
21989 ac_cv_c_bigendian=unknown
21990# See if sys/param.h defines the BYTE_ORDER macro.
21991cat >conftest.$ac_ext <<_ACEOF
21992/* confdefs.h. */
21993_ACEOF
21994cat confdefs.h >>conftest.$ac_ext
21995cat >>conftest.$ac_ext <<_ACEOF
21996/* end confdefs.h. */
21997#include <sys/types.h>
21998#include <sys/param.h>
21999int
22000main ()
22001{
22002
22003#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
22004 bogus endian macros
22005#endif
22006 ;
22007 return 0;
22008}
22009_ACEOF
22010rm -f conftest.$ac_objext
22011if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22012 (eval $ac_compile) 2>conftest.er1
a848cd7e 22013 ac_status=$?
ac1cb8d3
VS
22014 grep -v '^ *+' conftest.er1 >conftest.err
22015 rm -f conftest.er1
22016 cat conftest.err >&5
a848cd7e
SC
22017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22018 (exit $ac_status); } &&
5d7b7554 22019 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22021 (eval $ac_try) 2>&5
22022 ac_status=$?
22023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22024 (exit $ac_status); }; } &&
22025 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22027 (eval $ac_try) 2>&5
22028 ac_status=$?
22029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22030 (exit $ac_status); }; }; then
22031 # It does; now see whether it defined to BIG_ENDIAN or not.
22032cat >conftest.$ac_ext <<_ACEOF
22033/* confdefs.h. */
22034_ACEOF
22035cat confdefs.h >>conftest.$ac_ext
22036cat >>conftest.$ac_ext <<_ACEOF
22037/* end confdefs.h. */
22038#include <sys/types.h>
22039#include <sys/param.h>
22040int
22041main ()
22042{
22043
22044#if BYTE_ORDER != BIG_ENDIAN
22045 not big endian
22046#endif
22047 ;
22048 return 0;
22049}
22050_ACEOF
22051rm -f conftest.$ac_objext
22052if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22053 (eval $ac_compile) 2>conftest.er1
a848cd7e 22054 ac_status=$?
ac1cb8d3
VS
22055 grep -v '^ *+' conftest.er1 >conftest.err
22056 rm -f conftest.er1
22057 cat conftest.err >&5
a848cd7e
SC
22058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22059 (exit $ac_status); } &&
5d7b7554 22060 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22062 (eval $ac_try) 2>&5
22063 ac_status=$?
22064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22065 (exit $ac_status); }; } &&
22066 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22068 (eval $ac_try) 2>&5
22069 ac_status=$?
22070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22071 (exit $ac_status); }; }; then
22072 ac_cv_c_bigendian=yes
22073else
22074 echo "$as_me: failed program was:" >&5
22075sed 's/^/| /' conftest.$ac_ext >&5
22076
22077ac_cv_c_bigendian=no
22078fi
ac1cb8d3 22079rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22080else
22081 echo "$as_me: failed program was:" >&5
22082sed 's/^/| /' conftest.$ac_ext >&5
22083
22084fi
ac1cb8d3 22085rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22086if test $ac_cv_c_bigendian = unknown; then
22087if test "$cross_compiling" = yes; then
22088 ac_cv_c_bigendian=unknown
22089else
22090 cat >conftest.$ac_ext <<_ACEOF
22091/* confdefs.h. */
22092_ACEOF
22093cat confdefs.h >>conftest.$ac_ext
22094cat >>conftest.$ac_ext <<_ACEOF
22095/* end confdefs.h. */
22096main () {
22097 /* Are we little or big endian? From Harbison&Steele. */
22098 union
22099 {
22100 long l;
22101 char c[sizeof (long)];
22102 } u;
22103 u.l = 1;
22104 exit (u.c[sizeof (long) - 1] == 1);
22105}
22106_ACEOF
22107rm -f conftest$ac_exeext
22108if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22109 (eval $ac_link) 2>&5
22110 ac_status=$?
22111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22112 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22114 (eval $ac_try) 2>&5
22115 ac_status=$?
22116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22117 (exit $ac_status); }; }; then
22118 ac_cv_c_bigendian=no
22119else
22120 echo "$as_me: program exited with status $ac_status" >&5
22121echo "$as_me: failed program was:" >&5
22122sed 's/^/| /' conftest.$ac_ext >&5
22123
22124( exit $ac_status )
22125ac_cv_c_bigendian=yes
22126fi
ac1cb8d3 22127rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22128fi
22129fi
22130fi
22131echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22132echo "${ECHO_T}$ac_cv_c_bigendian" >&6
22133if test $ac_cv_c_bigendian = unknown; then
22134 { 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
22135echo "$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;}
22136fi
22137if test $ac_cv_c_bigendian = yes; then
22138 cat >>confdefs.h <<\_ACEOF
22139#define WORDS_BIGENDIAN 1
22140_ACEOF
22141
22142fi
22143
22144
a848cd7e
SC
22145
22146
22147
22148 ac_ext=cc
22149ac_cpp='$CXXCPP $CPPFLAGS'
22150ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22151ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22152ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22153
22154
22155
22156for ac_header in iostream
22157do
22158as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22159if eval "test \"\${$as_ac_Header+set}\" = set"; then
22160 echo "$as_me:$LINENO: checking for $ac_header" >&5
22161echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22162if eval "test \"\${$as_ac_Header+set}\" = set"; then
22163 echo $ECHO_N "(cached) $ECHO_C" >&6
22164fi
22165echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22166echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22167else
22168 # Is the header compilable?
22169echo "$as_me:$LINENO: checking $ac_header usability" >&5
22170echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22171cat >conftest.$ac_ext <<_ACEOF
22172/* confdefs.h. */
22173_ACEOF
22174cat confdefs.h >>conftest.$ac_ext
22175cat >>conftest.$ac_ext <<_ACEOF
22176/* end confdefs.h. */
22177$ac_includes_default
22178#include <$ac_header>
22179_ACEOF
22180rm -f conftest.$ac_objext
22181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22182 (eval $ac_compile) 2>conftest.er1
a848cd7e 22183 ac_status=$?
ac1cb8d3
VS
22184 grep -v '^ *+' conftest.er1 >conftest.err
22185 rm -f conftest.er1
22186 cat conftest.err >&5
a848cd7e
SC
22187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22188 (exit $ac_status); } &&
5d7b7554 22189 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22191 (eval $ac_try) 2>&5
22192 ac_status=$?
22193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22194 (exit $ac_status); }; } &&
22195 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
22201 ac_header_compiler=yes
22202else
22203 echo "$as_me: failed program was:" >&5
22204sed 's/^/| /' conftest.$ac_ext >&5
22205
22206ac_header_compiler=no
22207fi
ac1cb8d3 22208rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22209echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22210echo "${ECHO_T}$ac_header_compiler" >&6
22211
22212# Is the header present?
22213echo "$as_me:$LINENO: checking $ac_header presence" >&5
22214echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22215cat >conftest.$ac_ext <<_ACEOF
22216/* confdefs.h. */
22217_ACEOF
22218cat confdefs.h >>conftest.$ac_ext
22219cat >>conftest.$ac_ext <<_ACEOF
22220/* end confdefs.h. */
22221#include <$ac_header>
22222_ACEOF
22223if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22224 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22225 ac_status=$?
22226 grep -v '^ *+' conftest.er1 >conftest.err
22227 rm -f conftest.er1
22228 cat conftest.err >&5
22229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22230 (exit $ac_status); } >/dev/null; then
22231 if test -s conftest.err; then
22232 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 22233 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
22234 else
22235 ac_cpp_err=
22236 fi
22237else
22238 ac_cpp_err=yes
22239fi
22240if test -z "$ac_cpp_err"; then
22241 ac_header_preproc=yes
22242else
22243 echo "$as_me: failed program was:" >&5
22244sed 's/^/| /' conftest.$ac_ext >&5
22245
22246 ac_header_preproc=no
22247fi
22248rm -f conftest.err conftest.$ac_ext
22249echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22250echo "${ECHO_T}$ac_header_preproc" >&6
22251
22252# So? What about this header?
ac1cb8d3
VS
22253case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22254 yes:no: )
a848cd7e
SC
22255 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22256echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22257 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22258echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22259 ac_header_preproc=yes
a848cd7e 22260 ;;
ac1cb8d3 22261 no:yes:* )
a848cd7e
SC
22262 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22263echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22264 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22265echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22266 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22267echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22268 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22269echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22270 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22271echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22272 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22273echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22274 (
22275 cat <<\_ASBOX
ac1cb8d3
VS
22276## ----------------------------------------- ##
22277## Report this to wx-dev@lists.wxwidgets.org ##
22278## ----------------------------------------- ##
a848cd7e
SC
22279_ASBOX
22280 ) |
22281 sed "s/^/$as_me: WARNING: /" >&2
22282 ;;
22283esac
22284echo "$as_me:$LINENO: checking for $ac_header" >&5
22285echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22286if eval "test \"\${$as_ac_Header+set}\" = set"; then
22287 echo $ECHO_N "(cached) $ECHO_C" >&6
22288else
ac1cb8d3 22289 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
22290fi
22291echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22292echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22293
22294fi
22295if test `eval echo '${'$as_ac_Header'}'` = yes; then
22296 cat >>confdefs.h <<_ACEOF
22297#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22298_ACEOF
22299
22300fi
22301
22302done
22303
22304
22305 if test "$ac_cv_header_iostream" = "yes" ; then
22306 :
22307 else
22308 cat >>confdefs.h <<\_ACEOF
22309#define wxUSE_IOSTREAMH 1
22310_ACEOF
22311
22312 fi
22313
5d7b7554
VZ
22314 ac_ext=cc
22315ac_cpp='$CXXCPP $CPPFLAGS'
22316ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22317ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22318ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
22319
22320
22321
22322
22323 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
22324echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
22325if test "${wx_cv_cpp_bool+set}" = set; then
22326 echo $ECHO_N "(cached) $ECHO_C" >&6
22327else
22328
22329
22330
22331 ac_ext=cc
22332ac_cpp='$CXXCPP $CPPFLAGS'
22333ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22334ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22335ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22336
22337
22338 cat >conftest.$ac_ext <<_ACEOF
22339/* confdefs.h. */
22340_ACEOF
22341cat confdefs.h >>conftest.$ac_ext
22342cat >>conftest.$ac_ext <<_ACEOF
22343/* end confdefs.h. */
22344
22345
22346int
22347main ()
22348{
22349
22350 bool b = true;
22351
22352 return 0;
22353
22354 ;
22355 return 0;
22356}
22357_ACEOF
22358rm -f conftest.$ac_objext
22359if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22360 (eval $ac_compile) 2>conftest.er1
a848cd7e 22361 ac_status=$?
ac1cb8d3
VS
22362 grep -v '^ *+' conftest.er1 >conftest.err
22363 rm -f conftest.er1
22364 cat conftest.err >&5
a848cd7e
SC
22365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22366 (exit $ac_status); } &&
5d7b7554 22367 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22369 (eval $ac_try) 2>&5
22370 ac_status=$?
22371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22372 (exit $ac_status); }; } &&
22373 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22375 (eval $ac_try) 2>&5
22376 ac_status=$?
22377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22378 (exit $ac_status); }; }; then
22379
22380 wx_cv_cpp_bool=yes
22381
22382else
22383 echo "$as_me: failed program was:" >&5
22384sed 's/^/| /' conftest.$ac_ext >&5
22385
22386
22387 wx_cv_cpp_bool=no
22388
22389
22390fi
ac1cb8d3 22391rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 22392
5d7b7554
VZ
22393 ac_ext=cc
22394ac_cpp='$CXXCPP $CPPFLAGS'
22395ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22396ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22397ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
22398
22399
22400fi
22401echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
22402echo "${ECHO_T}$wx_cv_cpp_bool" >&6
22403
22404 if test "$wx_cv_cpp_bool" = "yes"; then
22405 cat >>confdefs.h <<\_ACEOF
22406#define HAVE_BOOL 1
22407_ACEOF
22408
22409 fi
22410
22411
22412
22413 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
22414echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
22415if test "${wx_cv_explicit+set}" = set; then
22416 echo $ECHO_N "(cached) $ECHO_C" >&6
22417else
22418
22419
22420
22421 ac_ext=cc
22422ac_cpp='$CXXCPP $CPPFLAGS'
22423ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22424ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22425ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22426
22427
22428 cat >conftest.$ac_ext <<_ACEOF
22429/* confdefs.h. */
22430_ACEOF
22431cat confdefs.h >>conftest.$ac_ext
22432cat >>conftest.$ac_ext <<_ACEOF
22433/* end confdefs.h. */
22434
22435 class Foo { public: explicit Foo(int) {} };
22436
22437int
22438main ()
22439{
22440
22441 return 0;
22442
22443 ;
22444 return 0;
22445}
22446_ACEOF
22447rm -f conftest.$ac_objext
22448if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22449 (eval $ac_compile) 2>conftest.er1
a848cd7e 22450 ac_status=$?
ac1cb8d3
VS
22451 grep -v '^ *+' conftest.er1 >conftest.err
22452 rm -f conftest.er1
22453 cat conftest.err >&5
a848cd7e
SC
22454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22455 (exit $ac_status); } &&
5d7b7554 22456 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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_objext'
a848cd7e
SC
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
22469 cat >conftest.$ac_ext <<_ACEOF
22470/* confdefs.h. */
22471_ACEOF
22472cat confdefs.h >>conftest.$ac_ext
22473cat >>conftest.$ac_ext <<_ACEOF
22474/* end confdefs.h. */
22475
22476 class Foo { public: explicit Foo(int) {} };
22477 static void TakeFoo(const Foo& foo) { }
22478
22479int
22480main ()
22481{
22482
22483 TakeFoo(17);
22484 return 0;
22485
22486 ;
22487 return 0;
22488}
22489_ACEOF
22490rm -f conftest.$ac_objext
22491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22492 (eval $ac_compile) 2>conftest.er1
a848cd7e 22493 ac_status=$?
ac1cb8d3
VS
22494 grep -v '^ *+' conftest.er1 >conftest.err
22495 rm -f conftest.er1
22496 cat conftest.err >&5
a848cd7e
SC
22497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22498 (exit $ac_status); } &&
5d7b7554 22499 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22501 (eval $ac_try) 2>&5
22502 ac_status=$?
22503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22504 (exit $ac_status); }; } &&
22505 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22507 (eval $ac_try) 2>&5
22508 ac_status=$?
22509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22510 (exit $ac_status); }; }; then
22511 wx_cv_explicit=no
22512else
22513 echo "$as_me: failed program was:" >&5
22514sed 's/^/| /' conftest.$ac_ext >&5
22515
22516wx_cv_explicit=yes
22517
22518fi
ac1cb8d3 22519rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22520
22521else
22522 echo "$as_me: failed program was:" >&5
22523sed 's/^/| /' conftest.$ac_ext >&5
22524
22525wx_cv_explicit=no
22526
22527fi
ac1cb8d3 22528rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 22529
5d7b7554
VZ
22530 ac_ext=cc
22531ac_cpp='$CXXCPP $CPPFLAGS'
22532ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22533ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22534ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
22535
22536
22537fi
22538echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
22539echo "${ECHO_T}$wx_cv_explicit" >&6
22540
22541 if test "$wx_cv_explicit" = "yes"; then
22542 cat >>confdefs.h <<\_ACEOF
22543#define HAVE_EXPLICIT 1
22544_ACEOF
22545
22546 fi
22547
22548
22549echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
22550echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
22551if test "${ac_cv_cxx_const_cast+set}" = set; then
22552 echo $ECHO_N "(cached) $ECHO_C" >&6
22553else
22554
22555
22556 ac_ext=cc
22557ac_cpp='$CXXCPP $CPPFLAGS'
22558ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22559ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22560ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22561
22562 cat >conftest.$ac_ext <<_ACEOF
22563/* confdefs.h. */
22564_ACEOF
22565cat confdefs.h >>conftest.$ac_ext
22566cat >>conftest.$ac_ext <<_ACEOF
22567/* end confdefs.h. */
22568
22569int
22570main ()
22571{
22572int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
22573 ;
22574 return 0;
22575}
22576_ACEOF
22577rm -f conftest.$ac_objext
22578if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22579 (eval $ac_compile) 2>conftest.er1
a848cd7e 22580 ac_status=$?
ac1cb8d3
VS
22581 grep -v '^ *+' conftest.er1 >conftest.err
22582 rm -f conftest.er1
22583 cat conftest.err >&5
a848cd7e
SC
22584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22585 (exit $ac_status); } &&
5d7b7554 22586 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22588 (eval $ac_try) 2>&5
22589 ac_status=$?
22590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22591 (exit $ac_status); }; } &&
22592 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22594 (eval $ac_try) 2>&5
22595 ac_status=$?
22596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22597 (exit $ac_status); }; }; then
22598 ac_cv_cxx_const_cast=yes
22599else
22600 echo "$as_me: failed program was:" >&5
22601sed 's/^/| /' conftest.$ac_ext >&5
22602
22603ac_cv_cxx_const_cast=no
22604fi
ac1cb8d3 22605rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
22606 ac_ext=cc
22607ac_cpp='$CXXCPP $CPPFLAGS'
22608ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22609ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22610ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
22611
22612
22613fi
22614echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
22615echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
22616if test "$ac_cv_cxx_const_cast" = yes; then
22617
22618cat >>confdefs.h <<\_ACEOF
22619#define HAVE_CONST_CAST
22620_ACEOF
22621
22622fi
22623
7714864e
RL
22624echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
22625echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
22626if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
22627 echo $ECHO_N "(cached) $ECHO_C" >&6
22628else
22629
22630
22631 ac_ext=cc
22632ac_cpp='$CXXCPP $CPPFLAGS'
22633ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22634ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22635ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22636
22637 cat >conftest.$ac_ext <<_ACEOF
22638/* confdefs.h. */
22639_ACEOF
22640cat confdefs.h >>conftest.$ac_ext
22641cat >>conftest.$ac_ext <<_ACEOF
22642/* end confdefs.h. */
22643#include <typeinfo>
22644class Base { public : Base () {} virtual void f () = 0;};
22645class Derived : public Base { public : Derived () {} virtual void f () {} };
22646class Unrelated { public : Unrelated () {} };
22647int g (Unrelated&) { return 0; }
22648int
22649main ()
22650{
22651
22652Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
22653 ;
22654 return 0;
22655}
22656_ACEOF
22657rm -f conftest.$ac_objext
22658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22659 (eval $ac_compile) 2>conftest.er1
22660 ac_status=$?
22661 grep -v '^ *+' conftest.er1 >conftest.err
22662 rm -f conftest.er1
22663 cat conftest.err >&5
22664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22665 (exit $ac_status); } &&
5d7b7554 22666 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7714864e
RL
22667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22668 (eval $ac_try) 2>&5
22669 ac_status=$?
22670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22671 (exit $ac_status); }; } &&
22672 { ac_try='test -s conftest.$ac_objext'
22673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22674 (eval $ac_try) 2>&5
22675 ac_status=$?
22676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22677 (exit $ac_status); }; }; then
22678 ac_cv_cxx_reinterpret_cast=yes
22679else
22680 echo "$as_me: failed program was:" >&5
22681sed 's/^/| /' conftest.$ac_ext >&5
22682
22683ac_cv_cxx_reinterpret_cast=no
22684fi
22685rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
22686 ac_ext=cc
22687ac_cpp='$CXXCPP $CPPFLAGS'
22688ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22689ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22690ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7714864e
RL
22691
22692
22693fi
22694echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
22695echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
22696if test "$ac_cv_cxx_reinterpret_cast" = yes; then
22697
22698cat >>confdefs.h <<\_ACEOF
22699#define HAVE_REINTERPRET_CAST
22700_ACEOF
22701
22702fi
22703
a848cd7e
SC
22704echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
22705echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
22706if test "${ac_cv_cxx_static_cast+set}" = set; then
22707 echo $ECHO_N "(cached) $ECHO_C" >&6
22708else
22709
22710
22711 ac_ext=cc
22712ac_cpp='$CXXCPP $CPPFLAGS'
22713ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22714ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22715ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22716
22717 cat >conftest.$ac_ext <<_ACEOF
22718/* confdefs.h. */
22719_ACEOF
22720cat confdefs.h >>conftest.$ac_ext
22721cat >>conftest.$ac_ext <<_ACEOF
22722/* end confdefs.h. */
22723#include <typeinfo>
22724class Base { public : Base () {} virtual void f () = 0; };
22725class Derived : public Base { public : Derived () {} virtual void f () {} };
22726int g (Derived&) { return 0; }
22727int
22728main ()
22729{
22730
22731Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
22732 ;
22733 return 0;
22734}
22735_ACEOF
22736rm -f conftest.$ac_objext
22737if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22738 (eval $ac_compile) 2>conftest.er1
a848cd7e 22739 ac_status=$?
ac1cb8d3
VS
22740 grep -v '^ *+' conftest.er1 >conftest.err
22741 rm -f conftest.er1
22742 cat conftest.err >&5
a848cd7e
SC
22743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22744 (exit $ac_status); } &&
5d7b7554 22745 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22747 (eval $ac_try) 2>&5
22748 ac_status=$?
22749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22750 (exit $ac_status); }; } &&
22751 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22753 (eval $ac_try) 2>&5
22754 ac_status=$?
22755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22756 (exit $ac_status); }; }; then
22757 ac_cv_cxx_static_cast=yes
22758else
22759 echo "$as_me: failed program was:" >&5
22760sed 's/^/| /' conftest.$ac_ext >&5
22761
22762ac_cv_cxx_static_cast=no
22763fi
ac1cb8d3 22764rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
22765 ac_ext=cc
22766ac_cpp='$CXXCPP $CPPFLAGS'
22767ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22768ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22769ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
22770
22771
22772fi
22773echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
22774echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
22775if test "$ac_cv_cxx_static_cast" = yes; then
22776
22777cat >>confdefs.h <<\_ACEOF
22778#define HAVE_STATIC_CAST
22779_ACEOF
22780
22781fi
22782
22783
3c28b7cb 22784if test "x$SUNCXX" = xyes; then
c92ad099 22785 CXXFLAGS="-features=tmplife $CXXFLAGS"
3c28b7cb
MW
22786fi
22787
9122d155 22788if test "x$SUNCC" = xyes; then
c92ad099 22789 CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
9122d155
VZ
22790fi
22791
0ad5d837 22792if test "x$SGICC" = "xyes"; then
c92ad099 22793 CFLAGS="-woff 3970 $CFLAGS"
0ad5d837
VZ
22794fi
22795if test "x$SGICXX" = "xyes"; then
c92ad099 22796 CXXFLAGS="-woff 3970 $CXXFLAGS"
0ad5d837
VZ
22797fi
22798
2eef8513 22799if test "x$HPCC" = "xyes"; then
c92ad099 22800 CFLAGS="+W 2011,2450 $CFLAGS"
2eef8513
VZ
22801fi
22802if test "x$HPCXX" = "xyes"; then
c92ad099 22803 CXXFLAGS="+W 2340 $CXXFLAGS"
2eef8513
VZ
22804fi
22805
22806if test "x$COMPAQCXX" = "xyes"; then
22807 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
22808fi
22809
f56c22b4 22810if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
f56c22b4
MW
22811 if test "$wxUSE_UNICODE" = "yes"; then
22812 std_string="std::wstring"
22813 char_type="wchar_t"
22814 else
22815 std_string="std::string"
22816 char_type="char"
22817 fi
22818
22819 echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
22820echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6
a848cd7e
SC
22821 cat >conftest.$ac_ext <<_ACEOF
22822/* confdefs.h. */
22823_ACEOF
22824cat confdefs.h >>conftest.$ac_ext
22825cat >>conftest.$ac_ext <<_ACEOF
22826/* end confdefs.h. */
22827#include <string>
a848cd7e
SC
22828int
22829main ()
22830{
f56c22b4 22831$std_string foo;
a848cd7e
SC
22832 ;
22833 return 0;
22834}
22835_ACEOF
22836rm -f conftest.$ac_objext
22837if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22838 (eval $ac_compile) 2>conftest.er1
a848cd7e 22839 ac_status=$?
ac1cb8d3
VS
22840 grep -v '^ *+' conftest.er1 >conftest.err
22841 rm -f conftest.er1
22842 cat conftest.err >&5
a848cd7e
SC
22843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22844 (exit $ac_status); } &&
5d7b7554 22845 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22847 (eval $ac_try) 2>&5
22848 ac_status=$?
22849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22850 (exit $ac_status); }; } &&
22851 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22853 (eval $ac_try) 2>&5
22854 ac_status=$?
22855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22856 (exit $ac_status); }; }; then
22857 echo "$as_me:$LINENO: result: yes" >&5
22858echo "${ECHO_T}yes" >&6
0a08f02a
MB
22859 cat >>confdefs.h <<\_ACEOF
22860#define HAVE_STD_WSTRING 1
22861_ACEOF
22862
a848cd7e
SC
22863else
22864 echo "$as_me: failed program was:" >&5
22865sed 's/^/| /' conftest.$ac_ext >&5
22866
22867echo "$as_me:$LINENO: result: no" >&5
22868echo "${ECHO_T}no" >&6
f56c22b4
MW
22869 echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
22870echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6
0a08f02a
MB
22871 cat >conftest.$ac_ext <<_ACEOF
22872/* confdefs.h. */
22873_ACEOF
22874cat confdefs.h >>conftest.$ac_ext
22875cat >>conftest.$ac_ext <<_ACEOF
22876/* end confdefs.h. */
22877
22878 #ifdef HAVE_WCHAR_H
22879 # ifdef __CYGWIN__
22880 # include <stddef.h>
22881 # endif
22882 # include <wchar.h>
22883 #endif
22884 #ifdef HAVE_STDLIB_H
22885 # include <stdlib.h>
22886 #endif
22887 #include <stdio.h>
22888 #include <string>
22889
22890int
22891main ()
22892{
f56c22b4
MW
22893std::basic_string<$char_type> foo;
22894 const $char_type* dummy = foo.c_str();
0a08f02a
MB
22895 ;
22896 return 0;
22897}
22898_ACEOF
22899rm -f conftest.$ac_objext
22900if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22901 (eval $ac_compile) 2>conftest.er1
22902 ac_status=$?
22903 grep -v '^ *+' conftest.er1 >conftest.err
22904 rm -f conftest.er1
22905 cat conftest.err >&5
22906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22907 (exit $ac_status); } &&
5d7b7554 22908 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0a08f02a
MB
22909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22910 (eval $ac_try) 2>&5
22911 ac_status=$?
22912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22913 (exit $ac_status); }; } &&
22914 { ac_try='test -s conftest.$ac_objext'
22915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22916 (eval $ac_try) 2>&5
22917 ac_status=$?
22918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22919 (exit $ac_status); }; }; then
22920 echo "$as_me:$LINENO: result: yes" >&5
22921echo "${ECHO_T}yes" >&6
22922else
22923 echo "$as_me: failed program was:" >&5
22924sed 's/^/| /' conftest.$ac_ext >&5
22925
22926echo "$as_me:$LINENO: result: no" >&5
22927echo "${ECHO_T}no" >&6
f56c22b4 22928 if test "$wxUSE_STL" = "yes"; then
4b9918c5
MW
22929 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
22930echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
22931 { (exit 1); exit 1; }; }
22932 elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
22933 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
22934echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
a848cd7e 22935 { (exit 1); exit 1; }; }
f56c22b4
MW
22936 else
22937 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
22938echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
22939 wxUSE_STD_STRING=no
22940 fi
22941
0a08f02a 22942
a848cd7e 22943fi
ac1cb8d3 22944rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 22945
0a08f02a
MB
22946fi
22947rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f56c22b4
MW
22948fi
22949
22950if test "$wxUSE_STD_IOSTREAM" = "yes"; then
f56c22b4
MW
22951 echo "$as_me:$LINENO: checking for std::istream" >&5
22952echo $ECHO_N "checking for std::istream... $ECHO_C" >&6
22953if test "${ac_cv_type_std__istream+set}" = set; then
22954 echo $ECHO_N "(cached) $ECHO_C" >&6
22955else
22956 cat >conftest.$ac_ext <<_ACEOF
22957/* confdefs.h. */
22958_ACEOF
22959cat confdefs.h >>conftest.$ac_ext
22960cat >>conftest.$ac_ext <<_ACEOF
22961/* end confdefs.h. */
22962#include <iostream>
22963
22964int
22965main ()
22966{
22967if ((std::istream *) 0)
22968 return 0;
22969if (sizeof (std::istream))
22970 return 0;
22971 ;
22972 return 0;
22973}
22974_ACEOF
22975rm -f conftest.$ac_objext
22976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22977 (eval $ac_compile) 2>conftest.er1
22978 ac_status=$?
22979 grep -v '^ *+' conftest.er1 >conftest.err
22980 rm -f conftest.er1
22981 cat conftest.err >&5
22982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22983 (exit $ac_status); } &&
5d7b7554 22984 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
22985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22986 (eval $ac_try) 2>&5
22987 ac_status=$?
22988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22989 (exit $ac_status); }; } &&
22990 { ac_try='test -s conftest.$ac_objext'
22991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22992 (eval $ac_try) 2>&5
22993 ac_status=$?
22994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22995 (exit $ac_status); }; }; then
22996 ac_cv_type_std__istream=yes
22997else
22998 echo "$as_me: failed program was:" >&5
22999sed 's/^/| /' conftest.$ac_ext >&5
23000
23001ac_cv_type_std__istream=no
23002fi
23003rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23004fi
23005echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
23006echo "${ECHO_T}$ac_cv_type_std__istream" >&6
23007if test $ac_cv_type_std__istream = yes; then
23008
23009cat >>confdefs.h <<_ACEOF
23010#define HAVE_STD__ISTREAM 1
23011_ACEOF
23012
23013
23014else
23015 wxUSE_STD_IOSTREAM=no
23016fi
23017echo "$as_me:$LINENO: checking for std::ostream" >&5
23018echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6
23019if test "${ac_cv_type_std__ostream+set}" = set; then
23020 echo $ECHO_N "(cached) $ECHO_C" >&6
23021else
23022 cat >conftest.$ac_ext <<_ACEOF
23023/* confdefs.h. */
23024_ACEOF
23025cat confdefs.h >>conftest.$ac_ext
23026cat >>conftest.$ac_ext <<_ACEOF
23027/* end confdefs.h. */
23028#include <iostream>
23029
23030int
23031main ()
23032{
23033if ((std::ostream *) 0)
23034 return 0;
23035if (sizeof (std::ostream))
23036 return 0;
23037 ;
23038 return 0;
23039}
23040_ACEOF
23041rm -f conftest.$ac_objext
23042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23043 (eval $ac_compile) 2>conftest.er1
23044 ac_status=$?
23045 grep -v '^ *+' conftest.er1 >conftest.err
23046 rm -f conftest.er1
23047 cat conftest.err >&5
23048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23049 (exit $ac_status); } &&
5d7b7554 23050 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
23051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23052 (eval $ac_try) 2>&5
23053 ac_status=$?
23054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23055 (exit $ac_status); }; } &&
23056 { ac_try='test -s conftest.$ac_objext'
23057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23058 (eval $ac_try) 2>&5
23059 ac_status=$?
23060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23061 (exit $ac_status); }; }; then
23062 ac_cv_type_std__ostream=yes
23063else
23064 echo "$as_me: failed program was:" >&5
23065sed 's/^/| /' conftest.$ac_ext >&5
23066
23067ac_cv_type_std__ostream=no
23068fi
23069rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23070fi
23071echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
23072echo "${ECHO_T}$ac_cv_type_std__ostream" >&6
23073if test $ac_cv_type_std__ostream = yes; then
23074
23075cat >>confdefs.h <<_ACEOF
23076#define HAVE_STD__OSTREAM 1
23077_ACEOF
23078
23079
23080else
23081 wxUSE_STD_IOSTREAM=no
23082fi
23083
23084
23085 if test "$wxUSE_STD_IOSTREAM" != "yes"; then
4b9918c5
MW
23086 if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
23087 { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
23088echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
23089 { (exit 1); exit 1; }; }
23090 else
23091 { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
f56c22b4 23092echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
4b9918c5 23093 fi
f56c22b4 23094 fi
0a08f02a
MB
23095fi
23096
23097if test "$wxUSE_STL" = "yes"; then
0a08f02a
MB
23098 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
23099echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
a848cd7e
SC
23100 cat >conftest.$ac_ext <<_ACEOF
23101/* confdefs.h. */
23102_ACEOF
23103cat confdefs.h >>conftest.$ac_ext
23104cat >>conftest.$ac_ext <<_ACEOF
23105/* end confdefs.h. */
23106#include <string>
0a08f02a
MB
23107 #include <functional>
23108 #include <algorithm>
23109 #include <vector>
23110 #include <list>
a848cd7e
SC
23111int
23112main ()
23113{
0a08f02a
MB
23114std::vector<int> moo;
23115 std::list<int> foo;
23116 std::vector<int>::iterator it =
23117 std::find_if(moo.begin(), moo.end(),
23118 std::bind2nd(std::less<int>(), 3));
a848cd7e
SC
23119 ;
23120 return 0;
23121}
23122_ACEOF
23123rm -f conftest.$ac_objext
23124if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23125 (eval $ac_compile) 2>conftest.er1
a848cd7e 23126 ac_status=$?
ac1cb8d3
VS
23127 grep -v '^ *+' conftest.er1 >conftest.err
23128 rm -f conftest.er1
23129 cat conftest.err >&5
a848cd7e
SC
23130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23131 (exit $ac_status); } &&
5d7b7554 23132 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23134 (eval $ac_try) 2>&5
23135 ac_status=$?
23136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23137 (exit $ac_status); }; } &&
23138 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23140 (eval $ac_try) 2>&5
23141 ac_status=$?
23142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23143 (exit $ac_status); }; }; then
23144 echo "$as_me:$LINENO: result: yes" >&5
23145echo "${ECHO_T}yes" >&6
a848cd7e
SC
23146else
23147 echo "$as_me: failed program was:" >&5
23148sed 's/^/| /' conftest.$ac_ext >&5
23149
23150echo "$as_me:$LINENO: result: no" >&5
23151echo "${ECHO_T}no" >&6
0a08f02a
MB
23152 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
23153echo "$as_me: error: Basic STL functionality missing" >&2;}
23154 { (exit 1); exit 1; }; }
a848cd7e 23155fi
ac1cb8d3 23156rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23157
23158 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
23159echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
23160 cat >conftest.$ac_ext <<_ACEOF
23161/* confdefs.h. */
23162_ACEOF
23163cat confdefs.h >>conftest.$ac_ext
23164cat >>conftest.$ac_ext <<_ACEOF
23165/* end confdefs.h. */
23166#include <string>
23167int
23168main ()
23169{
23170std::string foo, bar;
23171 foo.compare(bar);
23172 foo.compare(1, 1, bar);
23173 foo.compare(1, 1, bar, 1, 1);
23174 foo.compare("");
23175 foo.compare(1, 1, "");
23176 foo.compare(1, 1, "", 2);
23177 ;
23178 return 0;
23179}
23180_ACEOF
23181rm -f conftest.$ac_objext
23182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23183 (eval $ac_compile) 2>conftest.er1
a848cd7e 23184 ac_status=$?
ac1cb8d3
VS
23185 grep -v '^ *+' conftest.er1 >conftest.err
23186 rm -f conftest.er1
23187 cat conftest.err >&5
a848cd7e
SC
23188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23189 (exit $ac_status); } &&
5d7b7554 23190 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23192 (eval $ac_try) 2>&5
23193 ac_status=$?
23194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23195 (exit $ac_status); }; } &&
23196 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23198 (eval $ac_try) 2>&5
23199 ac_status=$?
23200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23201 (exit $ac_status); }; }; then
23202 echo "$as_me:$LINENO: result: yes" >&5
23203echo "${ECHO_T}yes" >&6
23204 cat >>confdefs.h <<\_ACEOF
23205#define HAVE_STD_STRING_COMPARE 1
23206_ACEOF
23207
23208else
23209 echo "$as_me: failed program was:" >&5
23210sed 's/^/| /' conftest.$ac_ext >&5
23211
23212echo "$as_me:$LINENO: result: no" >&5
23213echo "${ECHO_T}no" >&6
23214fi
ac1cb8d3 23215rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23216
23217 if test "${ac_cv_header_hash_map+set}" = set; then
23218 echo "$as_me:$LINENO: checking for hash_map" >&5
23219echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
23220if test "${ac_cv_header_hash_map+set}" = set; then
23221 echo $ECHO_N "(cached) $ECHO_C" >&6
23222fi
23223echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
23224echo "${ECHO_T}$ac_cv_header_hash_map" >&6
23225else
23226 # Is the header compilable?
23227echo "$as_me:$LINENO: checking hash_map usability" >&5
23228echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
23229cat >conftest.$ac_ext <<_ACEOF
23230/* confdefs.h. */
23231_ACEOF
23232cat confdefs.h >>conftest.$ac_ext
23233cat >>conftest.$ac_ext <<_ACEOF
23234/* end confdefs.h. */
23235$ac_includes_default
23236#include <hash_map>
23237_ACEOF
23238rm -f conftest.$ac_objext
23239if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23240 (eval $ac_compile) 2>conftest.er1
bdcade0a 23241 ac_status=$?
ac1cb8d3
VS
23242 grep -v '^ *+' conftest.er1 >conftest.err
23243 rm -f conftest.er1
23244 cat conftest.err >&5
bdcade0a
MB
23245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23246 (exit $ac_status); } &&
5d7b7554 23247 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23249 (eval $ac_try) 2>&5
23250 ac_status=$?
23251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23252 (exit $ac_status); }; } &&
23253 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23255 (eval $ac_try) 2>&5
23256 ac_status=$?
23257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23258 (exit $ac_status); }; }; then
23259 ac_header_compiler=yes
23260else
23261 echo "$as_me: failed program was:" >&5
23262sed 's/^/| /' conftest.$ac_ext >&5
23263
23264ac_header_compiler=no
23265fi
ac1cb8d3 23266rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23267echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23268echo "${ECHO_T}$ac_header_compiler" >&6
23269
23270# Is the header present?
23271echo "$as_me:$LINENO: checking hash_map presence" >&5
23272echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
23273cat >conftest.$ac_ext <<_ACEOF
23274/* confdefs.h. */
23275_ACEOF
23276cat confdefs.h >>conftest.$ac_ext
23277cat >>conftest.$ac_ext <<_ACEOF
23278/* end confdefs.h. */
23279#include <hash_map>
23280_ACEOF
23281if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23282 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23283 ac_status=$?
23284 grep -v '^ *+' conftest.er1 >conftest.err
23285 rm -f conftest.er1
23286 cat conftest.err >&5
23287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23288 (exit $ac_status); } >/dev/null; then
23289 if test -s conftest.err; then
23290 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 23291 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
23292 else
23293 ac_cpp_err=
23294 fi
23295else
23296 ac_cpp_err=yes
23297fi
23298if test -z "$ac_cpp_err"; then
23299 ac_header_preproc=yes
23300else
23301 echo "$as_me: failed program was:" >&5
23302sed 's/^/| /' conftest.$ac_ext >&5
23303
23304 ac_header_preproc=no
23305fi
23306rm -f conftest.err conftest.$ac_ext
23307echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23308echo "${ECHO_T}$ac_header_preproc" >&6
23309
23310# So? What about this header?
ac1cb8d3
VS
23311case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23312 yes:no: )
bdcade0a
MB
23313 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
23314echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23315 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
23316echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
23317 ac_header_preproc=yes
bdcade0a 23318 ;;
ac1cb8d3 23319 no:yes:* )
bdcade0a
MB
23320 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
23321echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23322 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
23323echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
23324 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
23325echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
23326 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
23327echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
23328 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
23329echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23330 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
23331echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
23332 (
23333 cat <<\_ASBOX
ac1cb8d3
VS
23334## ----------------------------------------- ##
23335## Report this to wx-dev@lists.wxwidgets.org ##
23336## ----------------------------------------- ##
bdcade0a
MB
23337_ASBOX
23338 ) |
23339 sed "s/^/$as_me: WARNING: /" >&2
23340 ;;
23341esac
23342echo "$as_me:$LINENO: checking for hash_map" >&5
23343echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
23344if test "${ac_cv_header_hash_map+set}" = set; then
23345 echo $ECHO_N "(cached) $ECHO_C" >&6
23346else
23347 ac_cv_header_hash_map=$ac_header_preproc
23348fi
23349echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
23350echo "${ECHO_T}$ac_cv_header_hash_map" >&6
23351
23352fi
23353if test $ac_cv_header_hash_map = yes; then
23354 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
23355echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
23356 cat >conftest.$ac_ext <<_ACEOF
23357/* confdefs.h. */
23358_ACEOF
23359cat confdefs.h >>conftest.$ac_ext
23360cat >>conftest.$ac_ext <<_ACEOF
23361/* end confdefs.h. */
23362#include <hash_map>
23363 #include <hash_set>
23364int
23365main ()
23366{
23367std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
23368 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
23369 ;
23370 return 0;
23371}
23372_ACEOF
23373rm -f conftest.$ac_objext
23374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23375 (eval $ac_compile) 2>conftest.er1
bdcade0a 23376 ac_status=$?
ac1cb8d3
VS
23377 grep -v '^ *+' conftest.er1 >conftest.err
23378 rm -f conftest.er1
23379 cat conftest.err >&5
bdcade0a
MB
23380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23381 (exit $ac_status); } &&
5d7b7554 23382 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23384 (eval $ac_try) 2>&5
23385 ac_status=$?
23386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23387 (exit $ac_status); }; } &&
23388 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23390 (eval $ac_try) 2>&5
23391 ac_status=$?
23392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23393 (exit $ac_status); }; }; then
23394 echo "$as_me:$LINENO: result: yes" >&5
23395echo "${ECHO_T}yes" >&6
23396 cat >>confdefs.h <<\_ACEOF
23397#define HAVE_HASH_MAP 1
23398_ACEOF
23399
23400 cat >>confdefs.h <<\_ACEOF
23401#define HAVE_STD_HASH_MAP 1
23402_ACEOF
23403
23404else
23405 echo "$as_me: failed program was:" >&5
23406sed 's/^/| /' conftest.$ac_ext >&5
23407
23408echo "$as_me:$LINENO: result: no" >&5
23409echo "${ECHO_T}no" >&6
23410fi
ac1cb8d3 23411rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23412
23413fi
23414
23415
23416
23417 if test "${ac_cv_header_ext_hash_map+set}" = set; then
23418 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
23419echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
23420if test "${ac_cv_header_ext_hash_map+set}" = set; then
23421 echo $ECHO_N "(cached) $ECHO_C" >&6
23422fi
23423echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
23424echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
23425else
23426 # Is the header compilable?
23427echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
23428echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
23429cat >conftest.$ac_ext <<_ACEOF
23430/* confdefs.h. */
23431_ACEOF
23432cat confdefs.h >>conftest.$ac_ext
23433cat >>conftest.$ac_ext <<_ACEOF
23434/* end confdefs.h. */
23435$ac_includes_default
23436#include <ext/hash_map>
23437_ACEOF
23438rm -f conftest.$ac_objext
23439if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23440 (eval $ac_compile) 2>conftest.er1
bdcade0a 23441 ac_status=$?
ac1cb8d3
VS
23442 grep -v '^ *+' conftest.er1 >conftest.err
23443 rm -f conftest.er1
23444 cat conftest.err >&5
bdcade0a
MB
23445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23446 (exit $ac_status); } &&
5d7b7554 23447 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23449 (eval $ac_try) 2>&5
23450 ac_status=$?
23451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23452 (exit $ac_status); }; } &&
23453 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23455 (eval $ac_try) 2>&5
23456 ac_status=$?
23457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23458 (exit $ac_status); }; }; then
23459 ac_header_compiler=yes
23460else
23461 echo "$as_me: failed program was:" >&5
23462sed 's/^/| /' conftest.$ac_ext >&5
23463
23464ac_header_compiler=no
23465fi
ac1cb8d3 23466rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23467echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23468echo "${ECHO_T}$ac_header_compiler" >&6
23469
23470# Is the header present?
23471echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
23472echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
23473cat >conftest.$ac_ext <<_ACEOF
23474/* confdefs.h. */
23475_ACEOF
23476cat confdefs.h >>conftest.$ac_ext
23477cat >>conftest.$ac_ext <<_ACEOF
23478/* end confdefs.h. */
23479#include <ext/hash_map>
23480_ACEOF
23481if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23482 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23483 ac_status=$?
23484 grep -v '^ *+' conftest.er1 >conftest.err
23485 rm -f conftest.er1
23486 cat conftest.err >&5
23487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23488 (exit $ac_status); } >/dev/null; then
23489 if test -s conftest.err; then
23490 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 23491 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
23492 else
23493 ac_cpp_err=
23494 fi
23495else
23496 ac_cpp_err=yes
23497fi
23498if test -z "$ac_cpp_err"; then
23499 ac_header_preproc=yes
23500else
23501 echo "$as_me: failed program was:" >&5
23502sed 's/^/| /' conftest.$ac_ext >&5
23503
23504 ac_header_preproc=no
23505fi
23506rm -f conftest.err conftest.$ac_ext
23507echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23508echo "${ECHO_T}$ac_header_preproc" >&6
23509
23510# So? What about this header?
ac1cb8d3
VS
23511case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23512 yes:no: )
bdcade0a
MB
23513 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
23514echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23515 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
23516echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
23517 ac_header_preproc=yes
bdcade0a 23518 ;;
ac1cb8d3 23519 no:yes:* )
bdcade0a
MB
23520 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
23521echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23522 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
23523echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
23524 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
23525echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
23526 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
23527echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
23528 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
23529echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23530 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
23531echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
23532 (
23533 cat <<\_ASBOX
ac1cb8d3
VS
23534## ----------------------------------------- ##
23535## Report this to wx-dev@lists.wxwidgets.org ##
23536## ----------------------------------------- ##
bdcade0a
MB
23537_ASBOX
23538 ) |
23539 sed "s/^/$as_me: WARNING: /" >&2
23540 ;;
23541esac
23542echo "$as_me:$LINENO: checking for ext/hash_map" >&5
23543echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
23544if test "${ac_cv_header_ext_hash_map+set}" = set; then
23545 echo $ECHO_N "(cached) $ECHO_C" >&6
23546else
23547 ac_cv_header_ext_hash_map=$ac_header_preproc
23548fi
23549echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
23550echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
23551
23552fi
23553if test $ac_cv_header_ext_hash_map = yes; then
23554 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
23555echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
23556 cat >conftest.$ac_ext <<_ACEOF
23557/* confdefs.h. */
23558_ACEOF
23559cat confdefs.h >>conftest.$ac_ext
23560cat >>conftest.$ac_ext <<_ACEOF
23561/* end confdefs.h. */
23562#include <ext/hash_map>
23563 #include <ext/hash_set>
23564int
23565main ()
23566{
23567__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
23568 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
23569 ;
23570 return 0;
23571}
23572_ACEOF
23573rm -f conftest.$ac_objext
23574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23575 (eval $ac_compile) 2>conftest.er1
bdcade0a 23576 ac_status=$?
ac1cb8d3
VS
23577 grep -v '^ *+' conftest.er1 >conftest.err
23578 rm -f conftest.er1
23579 cat conftest.err >&5
bdcade0a
MB
23580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23581 (exit $ac_status); } &&
5d7b7554 23582 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23584 (eval $ac_try) 2>&5
23585 ac_status=$?
23586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23587 (exit $ac_status); }; } &&
23588 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23590 (eval $ac_try) 2>&5
23591 ac_status=$?
23592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23593 (exit $ac_status); }; }; then
23594 echo "$as_me:$LINENO: result: yes" >&5
23595echo "${ECHO_T}yes" >&6
23596 cat >>confdefs.h <<\_ACEOF
23597#define HAVE_EXT_HASH_MAP 1
23598_ACEOF
23599
23600 cat >>confdefs.h <<\_ACEOF
23601#define HAVE_GNU_CXX_HASH_MAP 1
23602_ACEOF
23603
23604else
23605 echo "$as_me: failed program was:" >&5
23606sed 's/^/| /' conftest.$ac_ext >&5
23607
23608echo "$as_me:$LINENO: result: no" >&5
23609echo "${ECHO_T}no" >&6
23610fi
ac1cb8d3 23611rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23612
23613fi
23614
23615
a848cd7e
SC
23616fi
23617
23618
23619SEARCH_INCLUDE="\
23620 /usr/local/include \
23621 \
23622 /usr/Motif-2.1/include \
23623 /usr/Motif-1.2/include \
23624 /usr/include/Motif1.2 \
a848cd7e
SC
23625 \
23626 /usr/dt/include \
23627 /usr/openwin/include \
23628 \
23629 /usr/include/Xm \
23630 \
23631 /usr/X11R6/include \
23632 /usr/X11R6.4/include \
23633 /usr/X11R5/include \
23634 /usr/X11R4/include \
23635 \
23636 /usr/include/X11R6 \
23637 /usr/include/X11R5 \
23638 /usr/include/X11R4 \
23639 \
23640 /usr/local/X11R6/include \
23641 /usr/local/X11R5/include \
23642 /usr/local/X11R4/include \
23643 \
23644 /usr/local/include/X11R6 \
23645 /usr/local/include/X11R5 \
23646 /usr/local/include/X11R4 \
23647 \
23648 /usr/X11/include \
23649 /usr/include/X11 \
23650 /usr/local/X11/include \
23651 /usr/local/include/X11 \
23652 \
a848cd7e 23653 /usr/XFree86/include/X11 \
e051b34e
MW
23654 /usr/pkg/include \
23655 \
a848cd7e
SC
23656 /usr/openwin/share/include"
23657
6f9cf1e6 23658echo "$as_me:$LINENO: checking for libraries directory" >&5
0ad5d837 23659echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6
6f9cf1e6
MW
23660
23661case "${host}" in
23662 *-*-irix6* )
23663 if test "${wx_cv_std_libpath+set}" = set; then
0ad5d837
VZ
23664 echo $ECHO_N "(cached) $ECHO_C" >&6
23665else
23666
c687b303
VZ
23667 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
23668 for e in a so sl dylib dll.a; do
23669 libc="$d/libc.$e"
23670 if test -f $libc; then
23671 save_LIBS="$LIBS"
23672 LIBS="$libc"
23673 cat >conftest.$ac_ext <<_ACEOF
0ad5d837
VZ
23674int main() { return 0; }
23675_ACEOF
23676rm -f conftest.$ac_objext conftest$ac_exeext
23677if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23678 (eval $ac_link) 2>conftest.er1
23679 ac_status=$?
23680 grep -v '^ *+' conftest.er1 >conftest.err
23681 rm -f conftest.er1
23682 cat conftest.err >&5
23683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23684 (exit $ac_status); } &&
5d7b7554 23685 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
23686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23687 (eval $ac_try) 2>&5
23688 ac_status=$?
23689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23690 (exit $ac_status); }; } &&
23691 { ac_try='test -s conftest$ac_exeext'
23692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23693 (eval $ac_try) 2>&5
23694 ac_status=$?
23695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23696 (exit $ac_status); }; }; then
23697 wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
23698else
23699 echo "$as_me: failed program was:" >&5
23700sed 's/^/| /' conftest.$ac_ext >&5
23701
23702fi
23703rm -f conftest.err conftest.$ac_objext \
23704 conftest$ac_exeext conftest.$ac_ext
c687b303
VZ
23705 LIBS="$save_LIBS"
23706 if test "x$wx_cv_std_libpath" != "x"; then
23707 break 2
23708 fi
23709 fi
23710 done
23711 done
23712 if test "x$wx_cv_std_libpath" = "x"; then
23713 wx_cv_std_libpath="lib"
0ad5d837 23714 fi
0ad5d837
VZ
23715
23716
23717fi
6f9cf1e6
MW
23718
23719 ;;
23720
23721 *-*-solaris2* )
23722 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
23723 wx_cv_std_libpath="lib/64"
23724 else
23725 wx_cv_std_libpath="lib"
23726 fi
23727 ;;
23728
23729 *-*-linux* )
23730 if test "$ac_cv_sizeof_void_p" = 8 -a \
23731 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
23732 wx_cv_std_libpath="lib64"
23733 else
23734 wx_cv_std_libpath="lib"
23735 fi
c687b303
VZ
23736 ;;
23737
23738 *)
23739 wx_cv_std_libpath="lib";
23740 ;;
23741esac
0ad5d837 23742
6f9cf1e6
MW
23743echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
23744echo "${ECHO_T}$wx_cv_std_libpath" >&6
23745
23746SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
a848cd7e 23747
3eca31dc
MW
23748if test "$build" != "$host" -a "$GCC" = yes; then
23749 if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
23750 cross_root=`dirname $cross_root`
23751 cross_root=`dirname $cross_root`
23752
23753 SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
23754 SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
5c60e845 23755 SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
3eca31dc
MW
23756
23757 if test -z "$PKG_CONFIG_PATH"; then
23758 PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
23759 export PKG_CONFIG_PATH
23760 fi
23761
23762 if test -z "$x_includes" -o "$x_includes" = NONE; then
23763
23764ac_find_includes=
23765for ac_dir in $SEARCH_INCLUDE /usr/include;
23766 do
23767 if test -f "$ac_dir/X11/Intrinsic.h"; then
23768 ac_find_includes=$ac_dir
23769 break
23770 fi
23771 done
23772
23773 x_includes=$ac_find_includes
23774 fi
23775 if test -z "$x_libraries" -o "$x_libraries" = NONE; then
23776
0ad5d837
VZ
23777 ac_find_libraries=
23778 for ac_dir in $SEARCH_LIB;
3eca31dc
MW
23779 do
23780 for ac_extension in a so sl dylib dll.a; do
23781 if test -f "$ac_dir/libXt.$ac_extension"; then
23782 ac_find_libraries=$ac_dir
23783 break 2
23784 fi
23785 done
23786 done
23787
23788 x_libraries=$ac_find_libraries
23789 fi
23790 fi
23791fi
23792
a848cd7e
SC
23793
23794cat >confcache <<\_ACEOF
23795# This file is a shell script that caches the results of configure
23796# tests run on this system so they can be shared between configure
23797# scripts and configure runs, see configure's option --config-cache.
23798# It is not useful on other systems. If it contains results you don't
23799# want to keep, you may remove or edit it.
23800#
23801# config.status only pays attention to the cache file if you give it
23802# the --recheck option to rerun configure.
23803#
23804# `ac_cv_env_foo' variables (set or unset) will be overridden when
23805# loading this file, other *unset* `ac_cv_foo' will be assigned the
23806# following values.
23807
23808_ACEOF
23809
23810# The following way of writing the cache mishandles newlines in values,
23811# but we know of no workaround that is simple, portable, and efficient.
23812# So, don't put newlines in cache variables' values.
23813# Ultrix sh set writes to stderr and can't be redirected directly,
23814# and sets the high bit in the cache file unless we assign to the vars.
23815{
23816 (set) 2>&1 |
23817 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23818 *ac_space=\ *)
23819 # `set' does not quote correctly, so add quotes (double-quote
23820 # substitution turns \\\\ into \\, and sed turns \\ into \).
23821 sed -n \
ac1cb8d3
VS
23822 "s/'/'\\\\''/g;
23823 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
23824 ;;
23825 *)
23826 # `set' quotes correctly as required by POSIX, so do not add quotes.
23827 sed -n \
ac1cb8d3 23828 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
23829 ;;
23830 esac;
23831} |
23832 sed '
23833 t clear
23834 : clear
23835 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23836 t end
23837 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23838 : end' >>confcache
23839if diff $cache_file confcache >/dev/null 2>&1; then :; else
23840 if test -w $cache_file; then
23841 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23842 cat confcache >$cache_file
23843 else
23844 echo "not updating unwritable cache $cache_file"
23845 fi
23846fi
23847rm -f confcache
23848
23849if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
23850 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
23851echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
23852if test "${wx_cv_lib_glibc21+set}" = set; then
23853 echo $ECHO_N "(cached) $ECHO_C" >&6
23854else
23855
23856 cat >conftest.$ac_ext <<_ACEOF
23857/* confdefs.h. */
23858_ACEOF
23859cat confdefs.h >>conftest.$ac_ext
23860cat >>conftest.$ac_ext <<_ACEOF
23861/* end confdefs.h. */
23862#include <features.h>
23863int
23864main ()
23865{
23866
23867 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
04e525a0 23868 not glibc 2.1
a848cd7e
SC
23869 #endif
23870
23871 ;
23872 return 0;
23873}
23874_ACEOF
23875rm -f conftest.$ac_objext
23876if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23877 (eval $ac_compile) 2>conftest.er1
a848cd7e 23878 ac_status=$?
ac1cb8d3
VS
23879 grep -v '^ *+' conftest.er1 >conftest.err
23880 rm -f conftest.er1
23881 cat conftest.err >&5
a848cd7e
SC
23882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23883 (exit $ac_status); } &&
5d7b7554 23884 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23886 (eval $ac_try) 2>&5
23887 ac_status=$?
23888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23889 (exit $ac_status); }; } &&
23890 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23892 (eval $ac_try) 2>&5
23893 ac_status=$?
23894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23895 (exit $ac_status); }; }; then
23896
23897 wx_cv_lib_glibc21=yes
23898
23899else
23900 echo "$as_me: failed program was:" >&5
23901sed 's/^/| /' conftest.$ac_ext >&5
23902
23903
23904 wx_cv_lib_glibc21=no
23905
23906
23907fi
ac1cb8d3 23908rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23909
23910fi
23911echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
23912echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
23913 if test "$wx_cv_lib_glibc21" = "yes"; then
23914 cat >>confdefs.h <<\_ACEOF
23915#define wxHAVE_GLIBC2 1
23916_ACEOF
23917
23918 fi
23919fi
23920
23921if test "x$wx_cv_lib_glibc21" = "xyes"; then
23922 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
23923 cat >>confdefs.h <<\_ACEOF
23924#define _GNU_SOURCE 1
23925_ACEOF
23926
23927 fi
23928fi
23929
5d7b7554
VZ
23930have_cos=0
23931have_floor=0
a848cd7e 23932
5d7b7554
VZ
23933for ac_func in cos
23934do
23935as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23936echo "$as_me:$LINENO: checking for $ac_func" >&5
23937echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23938if eval "test \"\${$as_ac_var+set}\" = set"; then
a848cd7e 23939 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 23940else
5d7b7554 23941 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
23942/* confdefs.h. */
23943_ACEOF
23944cat confdefs.h >>conftest.$ac_ext
23945cat >>conftest.$ac_ext <<_ACEOF
23946/* end confdefs.h. */
5d7b7554
VZ
23947/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23948 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23949#define $ac_func innocuous_$ac_func
23950
23951/* System header to define __stub macros and hopefully few prototypes,
23952 which can conflict with char $ac_func (); below.
23953 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23954 <limits.h> exists even on freestanding compilers. */
23955
23956#ifdef __STDC__
23957# include <limits.h>
23958#else
23959# include <assert.h>
23960#endif
23961
23962#undef $ac_func
23963
23964/* Override any gcc2 internal prototype to avoid an error. */
23965#ifdef __cplusplus
23966extern "C"
23967{
23968#endif
23969/* We use char because int might match the return type of a gcc2
23970 builtin and then its argument prototype would still apply. */
23971char $ac_func ();
23972/* The GNU C library defines this for functions which it implements
23973 to always fail with ENOSYS. Some functions are actually named
23974 something starting with __ and the normal name is an alias. */
23975#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23976choke me
23977#else
23978char (*f) () = $ac_func;
23979#endif
23980#ifdef __cplusplus
23981}
23982#endif
23983
23984int
23985main ()
23986{
23987return f != $ac_func;
23988 ;
23989 return 0;
23990}
a848cd7e 23991_ACEOF
5d7b7554
VZ
23992rm -f conftest.$ac_objext conftest$ac_exeext
23993if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23994 (eval $ac_link) 2>conftest.er1
a848cd7e 23995 ac_status=$?
ac1cb8d3
VS
23996 grep -v '^ *+' conftest.er1 >conftest.err
23997 rm -f conftest.er1
23998 cat conftest.err >&5
a848cd7e
SC
23999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24000 (exit $ac_status); } &&
5d7b7554 24001 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24003 (eval $ac_try) 2>&5
24004 ac_status=$?
24005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24006 (exit $ac_status); }; } &&
5d7b7554 24007 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24009 (eval $ac_try) 2>&5
24010 ac_status=$?
24011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24012 (exit $ac_status); }; }; then
5d7b7554 24013 eval "$as_ac_var=yes"
a848cd7e
SC
24014else
24015 echo "$as_me: failed program was:" >&5
24016sed 's/^/| /' conftest.$ac_ext >&5
24017
5d7b7554 24018eval "$as_ac_var=no"
a848cd7e 24019fi
5d7b7554
VZ
24020rm -f conftest.err conftest.$ac_objext \
24021 conftest$ac_exeext conftest.$ac_ext
a848cd7e 24022fi
5d7b7554
VZ
24023echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24024echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24025if test `eval echo '${'$as_ac_var'}'` = yes; then
24026 cat >>confdefs.h <<_ACEOF
24027#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24028_ACEOF
24029 have_cos=1
a848cd7e 24030fi
5d7b7554 24031done
a848cd7e 24032
ab0f0edd 24033
5d7b7554 24034for ac_func in floor
a848cd7e
SC
24035do
24036as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24037echo "$as_me:$LINENO: checking for $ac_func" >&5
24038echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24039if eval "test \"\${$as_ac_var+set}\" = set"; then
24040 echo $ECHO_N "(cached) $ECHO_C" >&6
24041else
24042 cat >conftest.$ac_ext <<_ACEOF
24043/* confdefs.h. */
24044_ACEOF
24045cat confdefs.h >>conftest.$ac_ext
24046cat >>conftest.$ac_ext <<_ACEOF
24047/* end confdefs.h. */
ac1cb8d3
VS
24048/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24049 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24050#define $ac_func innocuous_$ac_func
24051
a848cd7e
SC
24052/* System header to define __stub macros and hopefully few prototypes,
24053 which can conflict with char $ac_func (); below.
24054 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24055 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24056
a848cd7e
SC
24057#ifdef __STDC__
24058# include <limits.h>
24059#else
24060# include <assert.h>
24061#endif
ac1cb8d3
VS
24062
24063#undef $ac_func
24064
a848cd7e
SC
24065/* Override any gcc2 internal prototype to avoid an error. */
24066#ifdef __cplusplus
24067extern "C"
24068{
24069#endif
24070/* We use char because int might match the return type of a gcc2
24071 builtin and then its argument prototype would still apply. */
24072char $ac_func ();
24073/* The GNU C library defines this for functions which it implements
24074 to always fail with ENOSYS. Some functions are actually named
24075 something starting with __ and the normal name is an alias. */
24076#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24077choke me
24078#else
24079char (*f) () = $ac_func;
24080#endif
24081#ifdef __cplusplus
24082}
24083#endif
24084
24085int
24086main ()
24087{
24088return f != $ac_func;
24089 ;
24090 return 0;
24091}
24092_ACEOF
24093rm -f conftest.$ac_objext conftest$ac_exeext
24094if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24095 (eval $ac_link) 2>conftest.er1
a848cd7e 24096 ac_status=$?
ac1cb8d3
VS
24097 grep -v '^ *+' conftest.er1 >conftest.err
24098 rm -f conftest.er1
24099 cat conftest.err >&5
a848cd7e
SC
24100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24101 (exit $ac_status); } &&
5d7b7554
VZ
24102 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
24103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24104 (eval $ac_try) 2>&5
24105 ac_status=$?
24106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24107 (exit $ac_status); }; } &&
24108 { ac_try='test -s conftest$ac_exeext'
24109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24110 (eval $ac_try) 2>&5
24111 ac_status=$?
24112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24113 (exit $ac_status); }; }; then
24114 eval "$as_ac_var=yes"
24115else
24116 echo "$as_me: failed program was:" >&5
24117sed 's/^/| /' conftest.$ac_ext >&5
24118
24119eval "$as_ac_var=no"
24120fi
24121rm -f conftest.err conftest.$ac_objext \
24122 conftest$ac_exeext conftest.$ac_ext
24123fi
24124echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24125echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24126if test `eval echo '${'$as_ac_var'}'` = yes; then
24127 cat >>confdefs.h <<_ACEOF
24128#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24129_ACEOF
24130 have_floor=1
24131fi
24132done
24133
24134echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
24135echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
24136if test "$have_cos" = 1 -a "$have_floor" = 1; then
24137 echo "$as_me:$LINENO: result: yes" >&5
24138echo "${ECHO_T}yes" >&6
24139else
24140 echo "$as_me:$LINENO: result: no" >&5
24141echo "${ECHO_T}no" >&6
24142 LIBS="$LIBS -lm"
24143 # use different functions to avoid configure caching
24144 have_sin=0
24145 have_ceil=0
24146
24147for ac_func in sin
24148do
24149as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24150echo "$as_me:$LINENO: checking for $ac_func" >&5
24151echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24152if eval "test \"\${$as_ac_var+set}\" = set"; then
24153 echo $ECHO_N "(cached) $ECHO_C" >&6
24154else
24155 cat >conftest.$ac_ext <<_ACEOF
24156/* confdefs.h. */
24157_ACEOF
24158cat confdefs.h >>conftest.$ac_ext
24159cat >>conftest.$ac_ext <<_ACEOF
24160/* end confdefs.h. */
24161/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24162 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24163#define $ac_func innocuous_$ac_func
24164
24165/* System header to define __stub macros and hopefully few prototypes,
24166 which can conflict with char $ac_func (); below.
24167 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24168 <limits.h> exists even on freestanding compilers. */
24169
24170#ifdef __STDC__
24171# include <limits.h>
24172#else
24173# include <assert.h>
24174#endif
24175
24176#undef $ac_func
24177
24178/* Override any gcc2 internal prototype to avoid an error. */
24179#ifdef __cplusplus
24180extern "C"
24181{
24182#endif
24183/* We use char because int might match the return type of a gcc2
24184 builtin and then its argument prototype would still apply. */
24185char $ac_func ();
24186/* The GNU C library defines this for functions which it implements
24187 to always fail with ENOSYS. Some functions are actually named
24188 something starting with __ and the normal name is an alias. */
24189#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24190choke me
24191#else
24192char (*f) () = $ac_func;
24193#endif
24194#ifdef __cplusplus
24195}
24196#endif
24197
24198int
24199main ()
24200{
24201return f != $ac_func;
24202 ;
24203 return 0;
24204}
24205_ACEOF
24206rm -f conftest.$ac_objext conftest$ac_exeext
24207if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24208 (eval $ac_link) 2>conftest.er1
24209 ac_status=$?
24210 grep -v '^ *+' conftest.er1 >conftest.err
24211 rm -f conftest.er1
24212 cat conftest.err >&5
24213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24214 (exit $ac_status); } &&
24215 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
24216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24217 (eval $ac_try) 2>&5
24218 ac_status=$?
24219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24220 (exit $ac_status); }; } &&
24221 { ac_try='test -s conftest$ac_exeext'
24222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24223 (eval $ac_try) 2>&5
24224 ac_status=$?
24225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24226 (exit $ac_status); }; }; then
24227 eval "$as_ac_var=yes"
24228else
24229 echo "$as_me: failed program was:" >&5
24230sed 's/^/| /' conftest.$ac_ext >&5
24231
24232eval "$as_ac_var=no"
24233fi
24234rm -f conftest.err conftest.$ac_objext \
24235 conftest$ac_exeext conftest.$ac_ext
24236fi
24237echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24238echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24239if test `eval echo '${'$as_ac_var'}'` = yes; then
24240 cat >>confdefs.h <<_ACEOF
24241#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24242_ACEOF
24243 have_sin=1
24244fi
24245done
24246
24247
24248for ac_func in ceil
24249do
24250as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24251echo "$as_me:$LINENO: checking for $ac_func" >&5
24252echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24253if eval "test \"\${$as_ac_var+set}\" = set"; then
24254 echo $ECHO_N "(cached) $ECHO_C" >&6
24255else
24256 cat >conftest.$ac_ext <<_ACEOF
24257/* confdefs.h. */
24258_ACEOF
24259cat confdefs.h >>conftest.$ac_ext
24260cat >>conftest.$ac_ext <<_ACEOF
24261/* end confdefs.h. */
24262/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24263 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24264#define $ac_func innocuous_$ac_func
24265
24266/* System header to define __stub macros and hopefully few prototypes,
24267 which can conflict with char $ac_func (); below.
24268 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24269 <limits.h> exists even on freestanding compilers. */
24270
24271#ifdef __STDC__
24272# include <limits.h>
24273#else
24274# include <assert.h>
24275#endif
24276
24277#undef $ac_func
24278
24279/* Override any gcc2 internal prototype to avoid an error. */
24280#ifdef __cplusplus
24281extern "C"
24282{
24283#endif
24284/* We use char because int might match the return type of a gcc2
24285 builtin and then its argument prototype would still apply. */
24286char $ac_func ();
24287/* The GNU C library defines this for functions which it implements
24288 to always fail with ENOSYS. Some functions are actually named
24289 something starting with __ and the normal name is an alias. */
24290#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24291choke me
24292#else
24293char (*f) () = $ac_func;
24294#endif
24295#ifdef __cplusplus
24296}
24297#endif
24298
24299int
24300main ()
24301{
24302return f != $ac_func;
24303 ;
24304 return 0;
24305}
24306_ACEOF
24307rm -f conftest.$ac_objext conftest$ac_exeext
24308if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24309 (eval $ac_link) 2>conftest.er1
24310 ac_status=$?
24311 grep -v '^ *+' conftest.er1 >conftest.err
24312 rm -f conftest.er1
24313 cat conftest.err >&5
24314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24315 (exit $ac_status); } &&
24316 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
24317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24318 (eval $ac_try) 2>&5
24319 ac_status=$?
24320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24321 (exit $ac_status); }; } &&
24322 { ac_try='test -s conftest$ac_exeext'
24323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24324 (eval $ac_try) 2>&5
24325 ac_status=$?
24326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24327 (exit $ac_status); }; }; then
24328 eval "$as_ac_var=yes"
24329else
24330 echo "$as_me: failed program was:" >&5
24331sed 's/^/| /' conftest.$ac_ext >&5
24332
24333eval "$as_ac_var=no"
24334fi
24335rm -f conftest.err conftest.$ac_objext \
24336 conftest$ac_exeext conftest.$ac_ext
24337fi
24338echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24339echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24340if test `eval echo '${'$as_ac_var'}'` = yes; then
24341 cat >>confdefs.h <<_ACEOF
24342#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24343_ACEOF
24344 have_ceil=1
24345fi
24346done
24347
24348 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
24349echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
24350 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
24351 echo "$as_me:$LINENO: result: yes" >&5
24352echo "${ECHO_T}yes" >&6
24353 else
24354 echo "$as_me:$LINENO: result: no" >&5
24355echo "${ECHO_T}no" >&6
24356 # not sure we should warn the user, crash, etc.
24357 fi
24358fi
24359
24360
24361
24362if test "$wxUSE_REGEX" != "no"; then
24363 cat >>confdefs.h <<\_ACEOF
24364#define wxUSE_REGEX 1
24365_ACEOF
24366
24367
24368 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
24369 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
24370echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
24371 wxUSE_REGEX=builtin
24372 fi
24373
24374 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
24375 if test "${ac_cv_header_regex_h+set}" = set; then
24376 echo "$as_me:$LINENO: checking for regex.h" >&5
24377echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
24378if test "${ac_cv_header_regex_h+set}" = set; then
24379 echo $ECHO_N "(cached) $ECHO_C" >&6
24380fi
24381echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
24382echo "${ECHO_T}$ac_cv_header_regex_h" >&6
24383else
24384 # Is the header compilable?
24385echo "$as_me:$LINENO: checking regex.h usability" >&5
24386echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
24387cat >conftest.$ac_ext <<_ACEOF
24388/* confdefs.h. */
24389_ACEOF
24390cat confdefs.h >>conftest.$ac_ext
24391cat >>conftest.$ac_ext <<_ACEOF
24392/* end confdefs.h. */
24393$ac_includes_default
24394#include <regex.h>
24395_ACEOF
24396rm -f conftest.$ac_objext
24397if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24398 (eval $ac_compile) 2>conftest.er1
24399 ac_status=$?
24400 grep -v '^ *+' conftest.er1 >conftest.err
24401 rm -f conftest.er1
24402 cat conftest.err >&5
24403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24404 (exit $ac_status); } &&
24405 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
24406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24407 (eval $ac_try) 2>&5
24408 ac_status=$?
24409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24410 (exit $ac_status); }; } &&
24411 { ac_try='test -s conftest.$ac_objext'
24412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24413 (eval $ac_try) 2>&5
24414 ac_status=$?
24415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24416 (exit $ac_status); }; }; then
24417 ac_header_compiler=yes
24418else
24419 echo "$as_me: failed program was:" >&5
24420sed 's/^/| /' conftest.$ac_ext >&5
24421
24422ac_header_compiler=no
24423fi
24424rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24425echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24426echo "${ECHO_T}$ac_header_compiler" >&6
24427
24428# Is the header present?
24429echo "$as_me:$LINENO: checking regex.h presence" >&5
24430echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
24431cat >conftest.$ac_ext <<_ACEOF
24432/* confdefs.h. */
24433_ACEOF
24434cat confdefs.h >>conftest.$ac_ext
24435cat >>conftest.$ac_ext <<_ACEOF
24436/* end confdefs.h. */
24437#include <regex.h>
24438_ACEOF
24439if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24440 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24441 ac_status=$?
24442 grep -v '^ *+' conftest.er1 >conftest.err
24443 rm -f conftest.er1
24444 cat conftest.err >&5
24445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24446 (exit $ac_status); } >/dev/null; then
24447 if test -s conftest.err; then
24448 ac_cpp_err=$ac_cxx_preproc_warn_flag
24449 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24450 else
24451 ac_cpp_err=
24452 fi
24453else
24454 ac_cpp_err=yes
24455fi
24456if test -z "$ac_cpp_err"; then
24457 ac_header_preproc=yes
24458else
24459 echo "$as_me: failed program was:" >&5
24460sed 's/^/| /' conftest.$ac_ext >&5
24461
24462 ac_header_preproc=no
24463fi
24464rm -f conftest.err conftest.$ac_ext
24465echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24466echo "${ECHO_T}$ac_header_preproc" >&6
24467
24468# So? What about this header?
24469case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24470 yes:no: )
24471 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
24472echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24473 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
24474echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
24475 ac_header_preproc=yes
24476 ;;
24477 no:yes:* )
24478 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
24479echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
24480 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
24481echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
24482 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
24483echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
24484 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
24485echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
24486 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
24487echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
24488 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
24489echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
24490 (
24491 cat <<\_ASBOX
24492## ----------------------------------------- ##
24493## Report this to wx-dev@lists.wxwidgets.org ##
24494## ----------------------------------------- ##
24495_ASBOX
24496 ) |
24497 sed "s/^/$as_me: WARNING: /" >&2
24498 ;;
24499esac
24500echo "$as_me:$LINENO: checking for regex.h" >&5
24501echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
24502if test "${ac_cv_header_regex_h+set}" = set; then
24503 echo $ECHO_N "(cached) $ECHO_C" >&6
24504else
24505 ac_cv_header_regex_h=$ac_header_preproc
24506fi
24507echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
24508echo "${ECHO_T}$ac_cv_header_regex_h" >&6
24509
24510fi
24511if test $ac_cv_header_regex_h = yes; then
24512
24513
24514for ac_func in regcomp re_search
24515do
24516as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24517echo "$as_me:$LINENO: checking for $ac_func" >&5
24518echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24519if eval "test \"\${$as_ac_var+set}\" = set"; then
24520 echo $ECHO_N "(cached) $ECHO_C" >&6
24521else
24522 cat >conftest.$ac_ext <<_ACEOF
24523/* confdefs.h. */
24524_ACEOF
24525cat confdefs.h >>conftest.$ac_ext
24526cat >>conftest.$ac_ext <<_ACEOF
24527/* end confdefs.h. */
24528/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24529 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24530#define $ac_func innocuous_$ac_func
24531
24532/* System header to define __stub macros and hopefully few prototypes,
24533 which can conflict with char $ac_func (); below.
24534 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24535 <limits.h> exists even on freestanding compilers. */
24536
24537#ifdef __STDC__
24538# include <limits.h>
24539#else
24540# include <assert.h>
24541#endif
24542
24543#undef $ac_func
24544
24545/* Override any gcc2 internal prototype to avoid an error. */
24546#ifdef __cplusplus
24547extern "C"
24548{
24549#endif
24550/* We use char because int might match the return type of a gcc2
24551 builtin and then its argument prototype would still apply. */
24552char $ac_func ();
24553/* The GNU C library defines this for functions which it implements
24554 to always fail with ENOSYS. Some functions are actually named
24555 something starting with __ and the normal name is an alias. */
24556#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24557choke me
24558#else
24559char (*f) () = $ac_func;
24560#endif
24561#ifdef __cplusplus
24562}
24563#endif
24564
24565int
24566main ()
24567{
24568return f != $ac_func;
24569 ;
24570 return 0;
24571}
24572_ACEOF
24573rm -f conftest.$ac_objext conftest$ac_exeext
24574if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24575 (eval $ac_link) 2>conftest.er1
24576 ac_status=$?
24577 grep -v '^ *+' conftest.er1 >conftest.err
24578 rm -f conftest.er1
24579 cat conftest.err >&5
24580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24581 (exit $ac_status); } &&
24582 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24584 (eval $ac_try) 2>&5
24585 ac_status=$?
24586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24587 (exit $ac_status); }; } &&
24588 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24590 (eval $ac_try) 2>&5
24591 ac_status=$?
24592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24593 (exit $ac_status); }; }; then
24594 eval "$as_ac_var=yes"
24595else
24596 echo "$as_me: failed program was:" >&5
24597sed 's/^/| /' conftest.$ac_ext >&5
24598
24599eval "$as_ac_var=no"
24600fi
ac1cb8d3
VS
24601rm -f conftest.err conftest.$ac_objext \
24602 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24603fi
24604echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24605echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24606if test `eval echo '${'$as_ac_var'}'` = yes; then
24607 cat >>confdefs.h <<_ACEOF
24608#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24609_ACEOF
24610
24611fi
24612done
24613
24614fi
24615
24616
24617
24618 if test "x$ac_cv_func_regcomp" != "xyes"; then
24619 if test "$wxUSE_REGEX" = "sys" ; then
24620 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
24621echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
24622 { (exit 1); exit 1; }; }
24623 else
24624 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
24625echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
24626 wxUSE_REGEX=builtin
24627 fi
24628 else
24629 wxUSE_REGEX=sys
24630 cat >>confdefs.h <<\_ACEOF
24631#define WX_NO_REGEX_ADVANCED 1
24632_ACEOF
24633
24634 fi
24635 fi
24636fi
24637
24638
24639ZLIB_LINK=
24640if test "$wxUSE_ZLIB" != "no" ; then
24641 cat >>confdefs.h <<\_ACEOF
24642#define wxUSE_ZLIB 1
24643_ACEOF
24644
24645
24646 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
24647 if test "$USE_DARWIN" = 1; then
24648 system_zlib_h_ok="yes"
24649 else
24650 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
24651echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
24652if test "${ac_cv_header_zlib_h+set}" = set; then
24653 echo $ECHO_N "(cached) $ECHO_C" >&6
24654else
24655 if test "$cross_compiling" = yes; then
24656 unset ac_cv_header_zlib_h
24657
24658else
24659 cat >conftest.$ac_ext <<_ACEOF
24660/* confdefs.h. */
24661_ACEOF
24662cat confdefs.h >>conftest.$ac_ext
24663cat >>conftest.$ac_ext <<_ACEOF
24664/* end confdefs.h. */
24665
24666 #include <zlib.h>
24667 #include <stdio.h>
24668
24669 int main()
24670 {
24671 FILE *f=fopen("conftestval", "w");
24672 if (!f) exit(1);
24673 fprintf(f, "%s",
24674 ZLIB_VERSION[0] == '1' &&
24675 (ZLIB_VERSION[2] > '1' ||
24676 (ZLIB_VERSION[2] == '1' &&
24677 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
24678 exit(0);
24679 }
24680
24681_ACEOF
24682rm -f conftest$ac_exeext
24683if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24684 (eval $ac_link) 2>&5
24685 ac_status=$?
24686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24687 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24689 (eval $ac_try) 2>&5
24690 ac_status=$?
24691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24692 (exit $ac_status); }; }; then
24693 ac_cv_header_zlib_h=`cat conftestval`
24694else
24695 echo "$as_me: program exited with status $ac_status" >&5
24696echo "$as_me: failed program was:" >&5
24697sed 's/^/| /' conftest.$ac_ext >&5
24698
24699( exit $ac_status )
24700ac_cv_header_zlib_h=no
24701fi
ac1cb8d3 24702rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24703fi
24704
24705fi
24706echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
24707echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
24708 if test "${ac_cv_header_zlib_h+set}" = set; then
24709 echo "$as_me:$LINENO: checking for zlib.h" >&5
24710echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
24711if test "${ac_cv_header_zlib_h+set}" = set; then
24712 echo $ECHO_N "(cached) $ECHO_C" >&6
24713fi
24714echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
24715echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
24716else
24717 # Is the header compilable?
24718echo "$as_me:$LINENO: checking zlib.h usability" >&5
24719echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
24720cat >conftest.$ac_ext <<_ACEOF
24721/* confdefs.h. */
24722_ACEOF
24723cat confdefs.h >>conftest.$ac_ext
24724cat >>conftest.$ac_ext <<_ACEOF
24725/* end confdefs.h. */
24726$ac_includes_default
24727#include <zlib.h>
24728_ACEOF
24729rm -f conftest.$ac_objext
24730if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24731 (eval $ac_compile) 2>conftest.er1
a848cd7e 24732 ac_status=$?
ac1cb8d3
VS
24733 grep -v '^ *+' conftest.er1 >conftest.err
24734 rm -f conftest.er1
24735 cat conftest.err >&5
a848cd7e
SC
24736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24737 (exit $ac_status); } &&
5d7b7554 24738 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24740 (eval $ac_try) 2>&5
24741 ac_status=$?
24742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24743 (exit $ac_status); }; } &&
24744 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24746 (eval $ac_try) 2>&5
24747 ac_status=$?
24748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24749 (exit $ac_status); }; }; then
24750 ac_header_compiler=yes
24751else
24752 echo "$as_me: failed program was:" >&5
24753sed 's/^/| /' conftest.$ac_ext >&5
24754
24755ac_header_compiler=no
24756fi
ac1cb8d3 24757rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24758echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24759echo "${ECHO_T}$ac_header_compiler" >&6
24760
24761# Is the header present?
24762echo "$as_me:$LINENO: checking zlib.h presence" >&5
24763echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
24764cat >conftest.$ac_ext <<_ACEOF
24765/* confdefs.h. */
24766_ACEOF
24767cat confdefs.h >>conftest.$ac_ext
24768cat >>conftest.$ac_ext <<_ACEOF
24769/* end confdefs.h. */
24770#include <zlib.h>
24771_ACEOF
24772if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24773 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24774 ac_status=$?
24775 grep -v '^ *+' conftest.er1 >conftest.err
24776 rm -f conftest.er1
24777 cat conftest.err >&5
24778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24779 (exit $ac_status); } >/dev/null; then
24780 if test -s conftest.err; then
5d7b7554
VZ
24781 ac_cpp_err=$ac_cxx_preproc_warn_flag
24782 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
24783 else
24784 ac_cpp_err=
24785 fi
24786else
24787 ac_cpp_err=yes
24788fi
24789if test -z "$ac_cpp_err"; then
24790 ac_header_preproc=yes
24791else
24792 echo "$as_me: failed program was:" >&5
24793sed 's/^/| /' conftest.$ac_ext >&5
24794
24795 ac_header_preproc=no
24796fi
24797rm -f conftest.err conftest.$ac_ext
24798echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24799echo "${ECHO_T}$ac_header_preproc" >&6
24800
24801# So? What about this header?
5d7b7554 24802case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 24803 yes:no: )
a848cd7e
SC
24804 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
24805echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24806 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
24807echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
24808 ac_header_preproc=yes
a848cd7e 24809 ;;
ac1cb8d3 24810 no:yes:* )
a848cd7e
SC
24811 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
24812echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24813 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
24814echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
24815 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
24816echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
24817 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
24818echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24819 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
24820echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24821 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
24822echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24823 (
24824 cat <<\_ASBOX
ac1cb8d3
VS
24825## ----------------------------------------- ##
24826## Report this to wx-dev@lists.wxwidgets.org ##
24827## ----------------------------------------- ##
a848cd7e
SC
24828_ASBOX
24829 ) |
24830 sed "s/^/$as_me: WARNING: /" >&2
24831 ;;
24832esac
24833echo "$as_me:$LINENO: checking for zlib.h" >&5
24834echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
24835if test "${ac_cv_header_zlib_h+set}" = set; then
24836 echo $ECHO_N "(cached) $ECHO_C" >&6
24837else
24838 ac_cv_header_zlib_h=$ac_header_preproc
24839fi
24840echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
24841echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
24842
24843fi
24844
24845
24846
24847 system_zlib_h_ok=$ac_cv_header_zlib_h
24848 fi
24849
24850 if test "$system_zlib_h_ok" = "yes"; then
24851 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
24852echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
24853if test "${ac_cv_lib_z_deflate+set}" = set; then
24854 echo $ECHO_N "(cached) $ECHO_C" >&6
24855else
24856 ac_check_lib_save_LIBS=$LIBS
24857LIBS="-lz $LIBS"
24858cat >conftest.$ac_ext <<_ACEOF
24859/* confdefs.h. */
24860_ACEOF
24861cat confdefs.h >>conftest.$ac_ext
24862cat >>conftest.$ac_ext <<_ACEOF
24863/* end confdefs.h. */
24864
24865/* Override any gcc2 internal prototype to avoid an error. */
24866#ifdef __cplusplus
24867extern "C"
24868#endif
24869/* We use char because int might match the return type of a gcc2
24870 builtin and then its argument prototype would still apply. */
24871char deflate ();
24872int
24873main ()
24874{
24875deflate ();
24876 ;
24877 return 0;
24878}
24879_ACEOF
24880rm -f conftest.$ac_objext conftest$ac_exeext
24881if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24882 (eval $ac_link) 2>conftest.er1
a848cd7e 24883 ac_status=$?
ac1cb8d3
VS
24884 grep -v '^ *+' conftest.er1 >conftest.err
24885 rm -f conftest.er1
24886 cat conftest.err >&5
a848cd7e
SC
24887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24888 (exit $ac_status); } &&
5d7b7554 24889 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24891 (eval $ac_try) 2>&5
24892 ac_status=$?
24893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24894 (exit $ac_status); }; } &&
24895 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24897 (eval $ac_try) 2>&5
24898 ac_status=$?
24899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24900 (exit $ac_status); }; }; then
24901 ac_cv_lib_z_deflate=yes
24902else
24903 echo "$as_me: failed program was:" >&5
24904sed 's/^/| /' conftest.$ac_ext >&5
24905
24906ac_cv_lib_z_deflate=no
24907fi
ac1cb8d3
VS
24908rm -f conftest.err conftest.$ac_objext \
24909 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24910LIBS=$ac_check_lib_save_LIBS
24911fi
24912echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
24913echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
24914if test $ac_cv_lib_z_deflate = yes; then
24915 ZLIB_LINK=" -lz"
24916fi
24917
24918 fi
24919
24920 if test "x$ZLIB_LINK" = "x" ; then
24921 if test "$wxUSE_ZLIB" = "sys" ; then
24922 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
24923echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
24924 { (exit 1); exit 1; }; }
24925 else
24926 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
24927echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
24928 wxUSE_ZLIB=builtin
24929 fi
24930 else
24931 wxUSE_ZLIB=sys
24932 fi
24933 fi
24934fi
24935
24936
24937PNG_LINK=
24938if test "$wxUSE_LIBPNG" != "no" ; then
24939 cat >>confdefs.h <<\_ACEOF
24940#define wxUSE_LIBPNG 1
24941_ACEOF
24942
24943
24944 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
24945 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
24946echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
24947 wxUSE_LIBPNG=sys
24948 fi
24949
24950 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
24951 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
24952echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
24953 wxUSE_LIBPNG=builtin
24954 fi
24955
24956 if test "$wxUSE_MGL" != 1 ; then
24957 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
24958 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
24959echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
24960if test "${ac_cv_header_png_h+set}" = set; then
24961 echo $ECHO_N "(cached) $ECHO_C" >&6
24962else
24963 if test "$cross_compiling" = yes; then
24964 unset ac_cv_header_png_h
24965
24966else
24967 cat >conftest.$ac_ext <<_ACEOF
24968/* confdefs.h. */
24969_ACEOF
24970cat confdefs.h >>conftest.$ac_ext
24971cat >>conftest.$ac_ext <<_ACEOF
24972/* end confdefs.h. */
24973
24974 #include <png.h>
24975 #include <stdio.h>
24976
24977 int main()
24978 {
24979 FILE *f=fopen("conftestval", "w");
24980 if (!f) exit(1);
24981 fprintf(f, "%s",
24982 PNG_LIBPNG_VER > 90 ? "yes" : "no");
24983 exit(0);
24984 }
24985
24986_ACEOF
24987rm -f conftest$ac_exeext
24988if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24989 (eval $ac_link) 2>&5
24990 ac_status=$?
24991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24992 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24994 (eval $ac_try) 2>&5
24995 ac_status=$?
24996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24997 (exit $ac_status); }; }; then
24998 ac_cv_header_png_h=`cat conftestval`
24999else
25000 echo "$as_me: program exited with status $ac_status" >&5
25001echo "$as_me: failed program was:" >&5
25002sed 's/^/| /' conftest.$ac_ext >&5
25003
25004( exit $ac_status )
25005ac_cv_header_png_h=no
25006fi
ac1cb8d3 25007rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25008fi
25009
25010fi
25011echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25012echo "${ECHO_T}$ac_cv_header_png_h" >&6
25013 if test "${ac_cv_header_png_h+set}" = set; then
25014 echo "$as_me:$LINENO: checking for png.h" >&5
25015echo $ECHO_N "checking for png.h... $ECHO_C" >&6
25016if test "${ac_cv_header_png_h+set}" = set; then
25017 echo $ECHO_N "(cached) $ECHO_C" >&6
25018fi
25019echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25020echo "${ECHO_T}$ac_cv_header_png_h" >&6
25021else
25022 # Is the header compilable?
25023echo "$as_me:$LINENO: checking png.h usability" >&5
25024echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
25025cat >conftest.$ac_ext <<_ACEOF
25026/* confdefs.h. */
25027_ACEOF
25028cat confdefs.h >>conftest.$ac_ext
25029cat >>conftest.$ac_ext <<_ACEOF
25030/* end confdefs.h. */
25031$ac_includes_default
25032#include <png.h>
25033_ACEOF
25034rm -f conftest.$ac_objext
25035if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25036 (eval $ac_compile) 2>conftest.er1
a848cd7e 25037 ac_status=$?
ac1cb8d3
VS
25038 grep -v '^ *+' conftest.er1 >conftest.err
25039 rm -f conftest.er1
25040 cat conftest.err >&5
a848cd7e
SC
25041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25042 (exit $ac_status); } &&
5d7b7554 25043 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25045 (eval $ac_try) 2>&5
25046 ac_status=$?
25047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25048 (exit $ac_status); }; } &&
25049 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25051 (eval $ac_try) 2>&5
25052 ac_status=$?
25053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25054 (exit $ac_status); }; }; then
25055 ac_header_compiler=yes
25056else
25057 echo "$as_me: failed program was:" >&5
25058sed 's/^/| /' conftest.$ac_ext >&5
25059
25060ac_header_compiler=no
25061fi
ac1cb8d3 25062rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25063echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25064echo "${ECHO_T}$ac_header_compiler" >&6
25065
25066# Is the header present?
25067echo "$as_me:$LINENO: checking png.h presence" >&5
25068echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
25069cat >conftest.$ac_ext <<_ACEOF
25070/* confdefs.h. */
25071_ACEOF
25072cat confdefs.h >>conftest.$ac_ext
25073cat >>conftest.$ac_ext <<_ACEOF
25074/* end confdefs.h. */
25075#include <png.h>
25076_ACEOF
25077if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25078 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25079 ac_status=$?
25080 grep -v '^ *+' conftest.er1 >conftest.err
25081 rm -f conftest.er1
25082 cat conftest.err >&5
25083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25084 (exit $ac_status); } >/dev/null; then
25085 if test -s conftest.err; then
5d7b7554
VZ
25086 ac_cpp_err=$ac_cxx_preproc_warn_flag
25087 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
25088 else
25089 ac_cpp_err=
25090 fi
25091else
25092 ac_cpp_err=yes
25093fi
25094if test -z "$ac_cpp_err"; then
25095 ac_header_preproc=yes
25096else
25097 echo "$as_me: failed program was:" >&5
25098sed 's/^/| /' conftest.$ac_ext >&5
25099
25100 ac_header_preproc=no
25101fi
25102rm -f conftest.err conftest.$ac_ext
25103echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25104echo "${ECHO_T}$ac_header_preproc" >&6
25105
25106# So? What about this header?
5d7b7554 25107case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 25108 yes:no: )
a848cd7e
SC
25109 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
25110echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25111 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
25112echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
25113 ac_header_preproc=yes
a848cd7e 25114 ;;
ac1cb8d3 25115 no:yes:* )
a848cd7e
SC
25116 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
25117echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25118 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
25119echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
25120 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
25121echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
25122 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
25123echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25124 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
25125echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25126 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
25127echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25128 (
25129 cat <<\_ASBOX
ac1cb8d3
VS
25130## ----------------------------------------- ##
25131## Report this to wx-dev@lists.wxwidgets.org ##
25132## ----------------------------------------- ##
a848cd7e
SC
25133_ASBOX
25134 ) |
25135 sed "s/^/$as_me: WARNING: /" >&2
25136 ;;
25137esac
25138echo "$as_me:$LINENO: checking for png.h" >&5
25139echo $ECHO_N "checking for png.h... $ECHO_C" >&6
25140if test "${ac_cv_header_png_h+set}" = set; then
25141 echo $ECHO_N "(cached) $ECHO_C" >&6
25142else
25143 ac_cv_header_png_h=$ac_header_preproc
25144fi
25145echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25146echo "${ECHO_T}$ac_cv_header_png_h" >&6
25147
25148fi
25149
25150
25151
25152 if test "$ac_cv_header_png_h" = "yes"; then
25153 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
25154echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
25155if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
25156 echo $ECHO_N "(cached) $ECHO_C" >&6
25157else
25158 ac_check_lib_save_LIBS=$LIBS
25159LIBS="-lpng -lz -lm $LIBS"
25160cat >conftest.$ac_ext <<_ACEOF
25161/* confdefs.h. */
25162_ACEOF
25163cat confdefs.h >>conftest.$ac_ext
25164cat >>conftest.$ac_ext <<_ACEOF
25165/* end confdefs.h. */
25166
25167/* Override any gcc2 internal prototype to avoid an error. */
25168#ifdef __cplusplus
25169extern "C"
25170#endif
25171/* We use char because int might match the return type of a gcc2
25172 builtin and then its argument prototype would still apply. */
25173char png_check_sig ();
25174int
25175main ()
25176{
25177png_check_sig ();
25178 ;
25179 return 0;
25180}
25181_ACEOF
25182rm -f conftest.$ac_objext conftest$ac_exeext
25183if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25184 (eval $ac_link) 2>conftest.er1
a848cd7e 25185 ac_status=$?
ac1cb8d3
VS
25186 grep -v '^ *+' conftest.er1 >conftest.err
25187 rm -f conftest.er1
25188 cat conftest.err >&5
a848cd7e
SC
25189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25190 (exit $ac_status); } &&
5d7b7554 25191 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25193 (eval $ac_try) 2>&5
25194 ac_status=$?
25195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25196 (exit $ac_status); }; } &&
25197 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25199 (eval $ac_try) 2>&5
25200 ac_status=$?
25201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25202 (exit $ac_status); }; }; then
25203 ac_cv_lib_png_png_check_sig=yes
25204else
25205 echo "$as_me: failed program was:" >&5
25206sed 's/^/| /' conftest.$ac_ext >&5
25207
25208ac_cv_lib_png_png_check_sig=no
25209fi
ac1cb8d3
VS
25210rm -f conftest.err conftest.$ac_objext \
25211 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25212LIBS=$ac_check_lib_save_LIBS
25213fi
25214echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
25215echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
25216if test $ac_cv_lib_png_png_check_sig = yes; then
25217 PNG_LINK=" -lpng -lz"
25218fi
25219
25220 fi
25221
25222 if test "x$PNG_LINK" = "x" ; then
25223 if test "$wxUSE_LIBPNG" = "sys" ; then
25224 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
25225echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
25226 { (exit 1); exit 1; }; }
25227 else
25228 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
25229echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
25230 wxUSE_LIBPNG=builtin
25231 fi
25232 else
25233 wxUSE_LIBPNG=sys
25234 fi
25235 fi
25236 fi
25237
25238 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
25239fi
25240
25241
25242JPEG_LINK=
25243if test "$wxUSE_LIBJPEG" != "no" ; then
25244 cat >>confdefs.h <<\_ACEOF
25245#define wxUSE_LIBJPEG 1
25246_ACEOF
25247
25248
25249 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
25250 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
25251echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
25252 wxUSE_LIBJPEG=sys
25253 fi
25254
25255 if test "$wxUSE_MGL" != 1 ; then
25256 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
25257 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
25258echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
25259 if test "${ac_cv_header_jpeglib_h+set}" = set; then
25260 echo $ECHO_N "(cached) $ECHO_C" >&6
25261else
25262 cat >conftest.$ac_ext <<_ACEOF
25263/* confdefs.h. */
25264_ACEOF
25265cat confdefs.h >>conftest.$ac_ext
25266cat >>conftest.$ac_ext <<_ACEOF
25267/* end confdefs.h. */
25268
25269 #undef HAVE_STDLIB_H
25270 #include <stdio.h>
25271 #include <jpeglib.h>
25272
25273int
25274main ()
25275{
25276
25277
25278 ;
25279 return 0;
25280}
25281_ACEOF
25282rm -f conftest.$ac_objext
25283if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25284 (eval $ac_compile) 2>conftest.er1
a848cd7e 25285 ac_status=$?
ac1cb8d3
VS
25286 grep -v '^ *+' conftest.er1 >conftest.err
25287 rm -f conftest.er1
25288 cat conftest.err >&5
a848cd7e
SC
25289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25290 (exit $ac_status); } &&
5d7b7554 25291 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25293 (eval $ac_try) 2>&5
25294 ac_status=$?
25295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25296 (exit $ac_status); }; } &&
25297 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25299 (eval $ac_try) 2>&5
25300 ac_status=$?
25301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25302 (exit $ac_status); }; }; then
25303 ac_cv_header_jpeglib_h=yes
25304else
25305 echo "$as_me: failed program was:" >&5
25306sed 's/^/| /' conftest.$ac_ext >&5
25307
25308ac_cv_header_jpeglib_h=no
25309
25310fi
ac1cb8d3 25311rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25312
25313fi
25314
25315 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
25316echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
25317
25318 if test "$ac_cv_header_jpeglib_h" = "yes"; then
25319 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
25320echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
25321if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
25322 echo $ECHO_N "(cached) $ECHO_C" >&6
25323else
25324 ac_check_lib_save_LIBS=$LIBS
25325LIBS="-ljpeg $LIBS"
25326cat >conftest.$ac_ext <<_ACEOF
25327/* confdefs.h. */
25328_ACEOF
25329cat confdefs.h >>conftest.$ac_ext
25330cat >>conftest.$ac_ext <<_ACEOF
25331/* end confdefs.h. */
25332
25333/* Override any gcc2 internal prototype to avoid an error. */
25334#ifdef __cplusplus
25335extern "C"
25336#endif
25337/* We use char because int might match the return type of a gcc2
25338 builtin and then its argument prototype would still apply. */
25339char jpeg_read_header ();
25340int
25341main ()
25342{
25343jpeg_read_header ();
25344 ;
25345 return 0;
25346}
25347_ACEOF
25348rm -f conftest.$ac_objext conftest$ac_exeext
25349if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25350 (eval $ac_link) 2>conftest.er1
a848cd7e 25351 ac_status=$?
ac1cb8d3
VS
25352 grep -v '^ *+' conftest.er1 >conftest.err
25353 rm -f conftest.er1
25354 cat conftest.err >&5
a848cd7e
SC
25355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25356 (exit $ac_status); } &&
5d7b7554 25357 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25359 (eval $ac_try) 2>&5
25360 ac_status=$?
25361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25362 (exit $ac_status); }; } &&
25363 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25365 (eval $ac_try) 2>&5
25366 ac_status=$?
25367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25368 (exit $ac_status); }; }; then
25369 ac_cv_lib_jpeg_jpeg_read_header=yes
25370else
25371 echo "$as_me: failed program was:" >&5
25372sed 's/^/| /' conftest.$ac_ext >&5
25373
25374ac_cv_lib_jpeg_jpeg_read_header=no
25375fi
ac1cb8d3
VS
25376rm -f conftest.err conftest.$ac_objext \
25377 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25378LIBS=$ac_check_lib_save_LIBS
25379fi
25380echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
25381echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
25382if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
25383 JPEG_LINK=" -ljpeg"
25384fi
25385
25386 fi
25387
25388 if test "x$JPEG_LINK" = "x" ; then
25389 if test "$wxUSE_LIBJPEG" = "sys" ; then
25390 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
25391echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
25392 { (exit 1); exit 1; }; }
25393 else
25394 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
25395echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
25396 wxUSE_LIBJPEG=builtin
25397 fi
25398 else
25399 wxUSE_LIBJPEG=sys
25400 fi
25401 fi
25402 fi
25403fi
25404
25405
25406TIFF_LINK=
25407TIFF_PREREQ_LINKS=-lm
25408if test "$wxUSE_LIBTIFF" != "no" ; then
25409 cat >>confdefs.h <<\_ACEOF
25410#define wxUSE_LIBTIFF 1
25411_ACEOF
25412
25413
25414 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
25415 if test "$wxUSE_LIBJPEG" = "sys"; then
25416 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
25417 fi
25418 if test "$wxUSE_ZLIB" = "sys"; then
25419 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
25420 fi
25421 if test "${ac_cv_header_tiffio_h+set}" = set; then
25422 echo "$as_me:$LINENO: checking for tiffio.h" >&5
25423echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
25424if test "${ac_cv_header_tiffio_h+set}" = set; then
25425 echo $ECHO_N "(cached) $ECHO_C" >&6
25426fi
25427echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
25428echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
25429else
25430 # Is the header compilable?
25431echo "$as_me:$LINENO: checking tiffio.h usability" >&5
25432echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
25433cat >conftest.$ac_ext <<_ACEOF
25434/* confdefs.h. */
25435_ACEOF
25436cat confdefs.h >>conftest.$ac_ext
25437cat >>conftest.$ac_ext <<_ACEOF
25438/* end confdefs.h. */
25439$ac_includes_default
25440#include <tiffio.h>
25441_ACEOF
25442rm -f conftest.$ac_objext
25443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25444 (eval $ac_compile) 2>conftest.er1
a848cd7e 25445 ac_status=$?
ac1cb8d3
VS
25446 grep -v '^ *+' conftest.er1 >conftest.err
25447 rm -f conftest.er1
25448 cat conftest.err >&5
a848cd7e
SC
25449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25450 (exit $ac_status); } &&
5d7b7554 25451 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25453 (eval $ac_try) 2>&5
25454 ac_status=$?
25455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25456 (exit $ac_status); }; } &&
25457 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25459 (eval $ac_try) 2>&5
25460 ac_status=$?
25461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25462 (exit $ac_status); }; }; then
25463 ac_header_compiler=yes
25464else
25465 echo "$as_me: failed program was:" >&5
25466sed 's/^/| /' conftest.$ac_ext >&5
25467
25468ac_header_compiler=no
25469fi
ac1cb8d3 25470rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25471echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25472echo "${ECHO_T}$ac_header_compiler" >&6
25473
25474# Is the header present?
25475echo "$as_me:$LINENO: checking tiffio.h presence" >&5
25476echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
25477cat >conftest.$ac_ext <<_ACEOF
25478/* confdefs.h. */
25479_ACEOF
25480cat confdefs.h >>conftest.$ac_ext
25481cat >>conftest.$ac_ext <<_ACEOF
25482/* end confdefs.h. */
25483#include <tiffio.h>
25484_ACEOF
25485if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25486 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25487 ac_status=$?
25488 grep -v '^ *+' conftest.er1 >conftest.err
25489 rm -f conftest.er1
25490 cat conftest.err >&5
25491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25492 (exit $ac_status); } >/dev/null; then
25493 if test -s conftest.err; then
5d7b7554
VZ
25494 ac_cpp_err=$ac_cxx_preproc_warn_flag
25495 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
25496 else
25497 ac_cpp_err=
25498 fi
25499else
25500 ac_cpp_err=yes
25501fi
25502if test -z "$ac_cpp_err"; then
25503 ac_header_preproc=yes
25504else
25505 echo "$as_me: failed program was:" >&5
25506sed 's/^/| /' conftest.$ac_ext >&5
25507
25508 ac_header_preproc=no
25509fi
25510rm -f conftest.err conftest.$ac_ext
25511echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25512echo "${ECHO_T}$ac_header_preproc" >&6
25513
25514# So? What about this header?
5d7b7554 25515case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 25516 yes:no: )
a848cd7e
SC
25517 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
25518echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25519 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
25520echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
25521 ac_header_preproc=yes
a848cd7e 25522 ;;
ac1cb8d3 25523 no:yes:* )
a848cd7e
SC
25524 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
25525echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25526 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
25527echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
25528 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
25529echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
25530 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
25531echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25532 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
25533echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25534 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
25535echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25536 (
25537 cat <<\_ASBOX
ac1cb8d3
VS
25538## ----------------------------------------- ##
25539## Report this to wx-dev@lists.wxwidgets.org ##
25540## ----------------------------------------- ##
a848cd7e
SC
25541_ASBOX
25542 ) |
25543 sed "s/^/$as_me: WARNING: /" >&2
25544 ;;
25545esac
25546echo "$as_me:$LINENO: checking for tiffio.h" >&5
25547echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
25548if test "${ac_cv_header_tiffio_h+set}" = set; then
25549 echo $ECHO_N "(cached) $ECHO_C" >&6
25550else
25551 ac_cv_header_tiffio_h=$ac_header_preproc
25552fi
25553echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
25554echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
25555
25556fi
25557if test $ac_cv_header_tiffio_h = yes; then
25558
25559 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
25560echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
25561if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
25562 echo $ECHO_N "(cached) $ECHO_C" >&6
25563else
25564 ac_check_lib_save_LIBS=$LIBS
25565LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
25566cat >conftest.$ac_ext <<_ACEOF
25567/* confdefs.h. */
25568_ACEOF
25569cat confdefs.h >>conftest.$ac_ext
25570cat >>conftest.$ac_ext <<_ACEOF
25571/* end confdefs.h. */
25572
25573/* Override any gcc2 internal prototype to avoid an error. */
25574#ifdef __cplusplus
25575extern "C"
25576#endif
25577/* We use char because int might match the return type of a gcc2
25578 builtin and then its argument prototype would still apply. */
25579char TIFFError ();
25580int
25581main ()
25582{
25583TIFFError ();
25584 ;
25585 return 0;
25586}
25587_ACEOF
25588rm -f conftest.$ac_objext conftest$ac_exeext
25589if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25590 (eval $ac_link) 2>conftest.er1
a848cd7e 25591 ac_status=$?
ac1cb8d3
VS
25592 grep -v '^ *+' conftest.er1 >conftest.err
25593 rm -f conftest.er1
25594 cat conftest.err >&5
a848cd7e
SC
25595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25596 (exit $ac_status); } &&
5d7b7554 25597 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25599 (eval $ac_try) 2>&5
25600 ac_status=$?
25601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25602 (exit $ac_status); }; } &&
25603 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25605 (eval $ac_try) 2>&5
25606 ac_status=$?
25607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25608 (exit $ac_status); }; }; then
25609 ac_cv_lib_tiff_TIFFError=yes
25610else
25611 echo "$as_me: failed program was:" >&5
25612sed 's/^/| /' conftest.$ac_ext >&5
25613
25614ac_cv_lib_tiff_TIFFError=no
25615fi
ac1cb8d3
VS
25616rm -f conftest.err conftest.$ac_objext \
25617 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25618LIBS=$ac_check_lib_save_LIBS
25619fi
25620echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
25621echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
25622if test $ac_cv_lib_tiff_TIFFError = yes; then
25623 TIFF_LINK=" -ltiff"
25624fi
25625
25626
25627
25628fi
25629
25630
25631
25632 if test "x$TIFF_LINK" = "x" ; then
25633 if test "$wxUSE_LIBTIFF" = "sys" ; then
25634 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
25635echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
25636 { (exit 1); exit 1; }; }
25637 else
25638 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
25639echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
25640 wxUSE_LIBTIFF=builtin
25641 fi
25642 else
25643 wxUSE_LIBTIFF=sys
25644 fi
25645 fi
25646fi
25647
25648
47a7e797
MW
25649if test "$wxUSE_WCHAR_T" != "yes"; then
25650 if test "$wxUSE_EXPAT" != "no"; then
25651 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
25652echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
25653 wxUSE_EXPAT=no
25654 fi
25655 if test "$wxUSE_XML" != "no"; then
25656 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
25657echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
25658 wxUSE_XML=no
25659 fi
25660fi
25661
a848cd7e
SC
25662if test "$wxUSE_EXPAT" != "no"; then
25663 wxUSE_XML=yes
25664 cat >>confdefs.h <<\_ACEOF
25665#define wxUSE_EXPAT 1
25666_ACEOF
25667
25668 cat >>confdefs.h <<\_ACEOF
25669#define wxUSE_XML 1
25670_ACEOF
25671
25672
25673 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
25674 if test "${ac_cv_header_expat_h+set}" = set; then
25675 echo "$as_me:$LINENO: checking for expat.h" >&5
25676echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
25677if test "${ac_cv_header_expat_h+set}" = set; then
25678 echo $ECHO_N "(cached) $ECHO_C" >&6
25679fi
25680echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
25681echo "${ECHO_T}$ac_cv_header_expat_h" >&6
25682else
25683 # Is the header compilable?
25684echo "$as_me:$LINENO: checking expat.h usability" >&5
25685echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
25686cat >conftest.$ac_ext <<_ACEOF
25687/* confdefs.h. */
25688_ACEOF
25689cat confdefs.h >>conftest.$ac_ext
25690cat >>conftest.$ac_ext <<_ACEOF
25691/* end confdefs.h. */
25692$ac_includes_default
25693#include <expat.h>
25694_ACEOF
25695rm -f conftest.$ac_objext
25696if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25697 (eval $ac_compile) 2>conftest.er1
a848cd7e 25698 ac_status=$?
ac1cb8d3
VS
25699 grep -v '^ *+' conftest.er1 >conftest.err
25700 rm -f conftest.er1
25701 cat conftest.err >&5
a848cd7e
SC
25702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25703 (exit $ac_status); } &&
5d7b7554 25704 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25706 (eval $ac_try) 2>&5
25707 ac_status=$?
25708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25709 (exit $ac_status); }; } &&
25710 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25712 (eval $ac_try) 2>&5
25713 ac_status=$?
25714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25715 (exit $ac_status); }; }; then
25716 ac_header_compiler=yes
25717else
25718 echo "$as_me: failed program was:" >&5
25719sed 's/^/| /' conftest.$ac_ext >&5
25720
25721ac_header_compiler=no
25722fi
ac1cb8d3 25723rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25724echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25725echo "${ECHO_T}$ac_header_compiler" >&6
25726
25727# Is the header present?
25728echo "$as_me:$LINENO: checking expat.h presence" >&5
25729echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
25730cat >conftest.$ac_ext <<_ACEOF
25731/* confdefs.h. */
25732_ACEOF
25733cat confdefs.h >>conftest.$ac_ext
25734cat >>conftest.$ac_ext <<_ACEOF
25735/* end confdefs.h. */
25736#include <expat.h>
25737_ACEOF
25738if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25739 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25740 ac_status=$?
25741 grep -v '^ *+' conftest.er1 >conftest.err
25742 rm -f conftest.er1
25743 cat conftest.err >&5
25744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25745 (exit $ac_status); } >/dev/null; then
25746 if test -s conftest.err; then
5d7b7554
VZ
25747 ac_cpp_err=$ac_cxx_preproc_warn_flag
25748 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
25749 else
25750 ac_cpp_err=
25751 fi
25752else
25753 ac_cpp_err=yes
25754fi
25755if test -z "$ac_cpp_err"; then
25756 ac_header_preproc=yes
25757else
25758 echo "$as_me: failed program was:" >&5
25759sed 's/^/| /' conftest.$ac_ext >&5
25760
25761 ac_header_preproc=no
25762fi
25763rm -f conftest.err conftest.$ac_ext
25764echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25765echo "${ECHO_T}$ac_header_preproc" >&6
25766
25767# So? What about this header?
5d7b7554 25768case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 25769 yes:no: )
a848cd7e
SC
25770 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
25771echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25772 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
25773echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
25774 ac_header_preproc=yes
a848cd7e 25775 ;;
ac1cb8d3 25776 no:yes:* )
a848cd7e
SC
25777 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
25778echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25779 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
25780echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
25781 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
25782echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
25783 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
25784echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25785 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
25786echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25787 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
25788echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25789 (
25790 cat <<\_ASBOX
ac1cb8d3
VS
25791## ----------------------------------------- ##
25792## Report this to wx-dev@lists.wxwidgets.org ##
25793## ----------------------------------------- ##
a848cd7e
SC
25794_ASBOX
25795 ) |
25796 sed "s/^/$as_me: WARNING: /" >&2
25797 ;;
25798esac
25799echo "$as_me:$LINENO: checking for expat.h" >&5
25800echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
25801if test "${ac_cv_header_expat_h+set}" = set; then
25802 echo $ECHO_N "(cached) $ECHO_C" >&6
25803else
25804 ac_cv_header_expat_h=$ac_header_preproc
25805fi
25806echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
25807echo "${ECHO_T}$ac_cv_header_expat_h" >&6
25808
25809fi
25810if test $ac_cv_header_expat_h = yes; then
25811 found_expat_h=1
25812fi
25813
25814
25815 if test "x$found_expat_h" = "x1"; then
25816 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
25817echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
25818if test "${wx_cv_expat_is_not_broken+set}" = set; then
25819 echo $ECHO_N "(cached) $ECHO_C" >&6
25820else
25821
a848cd7e
SC
25822 cat >conftest.$ac_ext <<_ACEOF
25823/* confdefs.h. */
25824_ACEOF
25825cat confdefs.h >>conftest.$ac_ext
25826cat >>conftest.$ac_ext <<_ACEOF
25827/* end confdefs.h. */
25828#include <expat.h>
25829int
25830main ()
25831{
25832
25833 ;
25834 return 0;
25835}
25836_ACEOF
25837rm -f conftest.$ac_objext
25838if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25839 (eval $ac_compile) 2>conftest.er1
a848cd7e 25840 ac_status=$?
ac1cb8d3
VS
25841 grep -v '^ *+' conftest.er1 >conftest.err
25842 rm -f conftest.er1
25843 cat conftest.err >&5
a848cd7e
SC
25844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25845 (exit $ac_status); } &&
5d7b7554 25846 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25848 (eval $ac_try) 2>&5
25849 ac_status=$?
25850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25851 (exit $ac_status); }; } &&
25852 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25854 (eval $ac_try) 2>&5
25855 ac_status=$?
25856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25857 (exit $ac_status); }; }; then
25858 wx_cv_expat_is_not_broken=yes
25859else
25860 echo "$as_me: failed program was:" >&5
25861sed 's/^/| /' conftest.$ac_ext >&5
25862
25863wx_cv_expat_is_not_broken=no
25864
25865fi
ac1cb8d3 25866rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25867
25868
25869fi
25870echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
25871echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
25872 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
25873 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
25874echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
25875if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
25876 echo $ECHO_N "(cached) $ECHO_C" >&6
25877else
25878 ac_check_lib_save_LIBS=$LIBS
25879LIBS="-lexpat $LIBS"
25880cat >conftest.$ac_ext <<_ACEOF
25881/* confdefs.h. */
25882_ACEOF
25883cat confdefs.h >>conftest.$ac_ext
25884cat >>conftest.$ac_ext <<_ACEOF
25885/* end confdefs.h. */
25886
25887/* Override any gcc2 internal prototype to avoid an error. */
25888#ifdef __cplusplus
25889extern "C"
25890#endif
25891/* We use char because int might match the return type of a gcc2
25892 builtin and then its argument prototype would still apply. */
25893char XML_ParserCreate ();
25894int
25895main ()
25896{
25897XML_ParserCreate ();
25898 ;
25899 return 0;
25900}
25901_ACEOF
25902rm -f conftest.$ac_objext conftest$ac_exeext
25903if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25904 (eval $ac_link) 2>conftest.er1
a848cd7e 25905 ac_status=$?
ac1cb8d3
VS
25906 grep -v '^ *+' conftest.er1 >conftest.err
25907 rm -f conftest.er1
25908 cat conftest.err >&5
a848cd7e
SC
25909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25910 (exit $ac_status); } &&
5d7b7554 25911 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25913 (eval $ac_try) 2>&5
25914 ac_status=$?
25915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25916 (exit $ac_status); }; } &&
25917 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25919 (eval $ac_try) 2>&5
25920 ac_status=$?
25921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25922 (exit $ac_status); }; }; then
25923 ac_cv_lib_expat_XML_ParserCreate=yes
25924else
25925 echo "$as_me: failed program was:" >&5
25926sed 's/^/| /' conftest.$ac_ext >&5
25927
25928ac_cv_lib_expat_XML_ParserCreate=no
25929fi
ac1cb8d3
VS
25930rm -f conftest.err conftest.$ac_objext \
25931 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25932LIBS=$ac_check_lib_save_LIBS
25933fi
25934echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
25935echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
25936if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
25937 EXPAT_LINK=" -lexpat"
25938fi
25939
25940 fi
25941 fi
25942 if test "x$EXPAT_LINK" = "x" ; then
25943 if test "$wxUSE_EXPAT" = "sys" ; then
25944 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
25945echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
25946 { (exit 1); exit 1; }; }
25947 else
25948 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
25949echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
25950 wxUSE_EXPAT=builtin
25951 fi
25952 else
25953 wxUSE_EXPAT=sys
25954 fi
25955 fi
25956 if test "$wxUSE_EXPAT" = "builtin" ; then
25957
25958
25959subdirs="$subdirs src/expat"
25960
25961 fi
25962fi
25963
25964
25965
25966if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
25967 if test "${ac_cv_header_mspack_h+set}" = set; then
25968 echo "$as_me:$LINENO: checking for mspack.h" >&5
25969echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
25970if test "${ac_cv_header_mspack_h+set}" = set; then
25971 echo $ECHO_N "(cached) $ECHO_C" >&6
25972fi
25973echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
25974echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
25975else
25976 # Is the header compilable?
25977echo "$as_me:$LINENO: checking mspack.h usability" >&5
25978echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
25979cat >conftest.$ac_ext <<_ACEOF
25980/* confdefs.h. */
25981_ACEOF
25982cat confdefs.h >>conftest.$ac_ext
25983cat >>conftest.$ac_ext <<_ACEOF
25984/* end confdefs.h. */
25985$ac_includes_default
25986#include <mspack.h>
25987_ACEOF
25988rm -f conftest.$ac_objext
25989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25990 (eval $ac_compile) 2>conftest.er1
a848cd7e 25991 ac_status=$?
ac1cb8d3
VS
25992 grep -v '^ *+' conftest.er1 >conftest.err
25993 rm -f conftest.er1
25994 cat conftest.err >&5
a848cd7e
SC
25995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25996 (exit $ac_status); } &&
5d7b7554 25997 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25999 (eval $ac_try) 2>&5
26000 ac_status=$?
26001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26002 (exit $ac_status); }; } &&
26003 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26005 (eval $ac_try) 2>&5
26006 ac_status=$?
26007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26008 (exit $ac_status); }; }; then
26009 ac_header_compiler=yes
26010else
26011 echo "$as_me: failed program was:" >&5
26012sed 's/^/| /' conftest.$ac_ext >&5
26013
26014ac_header_compiler=no
26015fi
ac1cb8d3 26016rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26017echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26018echo "${ECHO_T}$ac_header_compiler" >&6
26019
26020# Is the header present?
26021echo "$as_me:$LINENO: checking mspack.h presence" >&5
26022echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
26023cat >conftest.$ac_ext <<_ACEOF
26024/* confdefs.h. */
26025_ACEOF
26026cat confdefs.h >>conftest.$ac_ext
26027cat >>conftest.$ac_ext <<_ACEOF
26028/* end confdefs.h. */
26029#include <mspack.h>
26030_ACEOF
26031if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26032 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26033 ac_status=$?
26034 grep -v '^ *+' conftest.er1 >conftest.err
26035 rm -f conftest.er1
26036 cat conftest.err >&5
26037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26038 (exit $ac_status); } >/dev/null; then
26039 if test -s conftest.err; then
5d7b7554
VZ
26040 ac_cpp_err=$ac_cxx_preproc_warn_flag
26041 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26042 else
26043 ac_cpp_err=
26044 fi
26045else
26046 ac_cpp_err=yes
26047fi
26048if test -z "$ac_cpp_err"; then
26049 ac_header_preproc=yes
26050else
26051 echo "$as_me: failed program was:" >&5
26052sed 's/^/| /' conftest.$ac_ext >&5
26053
26054 ac_header_preproc=no
26055fi
26056rm -f conftest.err conftest.$ac_ext
26057echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26058echo "${ECHO_T}$ac_header_preproc" >&6
26059
26060# So? What about this header?
5d7b7554 26061case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26062 yes:no: )
a848cd7e
SC
26063 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
26064echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26065 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
26066echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
26067 ac_header_preproc=yes
a848cd7e 26068 ;;
ac1cb8d3 26069 no:yes:* )
a848cd7e
SC
26070 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
26071echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26072 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
26073echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
26074 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
26075echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
26076 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
26077echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26078 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
26079echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26080 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
26081echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26082 (
26083 cat <<\_ASBOX
ac1cb8d3
VS
26084## ----------------------------------------- ##
26085## Report this to wx-dev@lists.wxwidgets.org ##
26086## ----------------------------------------- ##
a848cd7e
SC
26087_ASBOX
26088 ) |
26089 sed "s/^/$as_me: WARNING: /" >&2
26090 ;;
26091esac
26092echo "$as_me:$LINENO: checking for mspack.h" >&5
26093echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
26094if test "${ac_cv_header_mspack_h+set}" = set; then
26095 echo $ECHO_N "(cached) $ECHO_C" >&6
26096else
26097 ac_cv_header_mspack_h=$ac_header_preproc
26098fi
26099echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
26100echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
26101
26102fi
26103if test $ac_cv_header_mspack_h = yes; then
26104 found_mspack_h=1
26105fi
26106
26107
26108 if test "x$found_mspack_h" = "x1"; then
26109 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
26110echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
26111if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
26112 echo $ECHO_N "(cached) $ECHO_C" >&6
26113else
26114 ac_check_lib_save_LIBS=$LIBS
26115LIBS="-lmspack $LIBS"
26116cat >conftest.$ac_ext <<_ACEOF
26117/* confdefs.h. */
26118_ACEOF
26119cat confdefs.h >>conftest.$ac_ext
26120cat >>conftest.$ac_ext <<_ACEOF
26121/* end confdefs.h. */
26122
26123/* Override any gcc2 internal prototype to avoid an error. */
26124#ifdef __cplusplus
26125extern "C"
26126#endif
26127/* We use char because int might match the return type of a gcc2
26128 builtin and then its argument prototype would still apply. */
26129char mspack_create_chm_decompressor ();
26130int
26131main ()
26132{
26133mspack_create_chm_decompressor ();
26134 ;
26135 return 0;
26136}
26137_ACEOF
26138rm -f conftest.$ac_objext conftest$ac_exeext
26139if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26140 (eval $ac_link) 2>conftest.er1
a848cd7e 26141 ac_status=$?
ac1cb8d3
VS
26142 grep -v '^ *+' conftest.er1 >conftest.err
26143 rm -f conftest.er1
26144 cat conftest.err >&5
a848cd7e
SC
26145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26146 (exit $ac_status); } &&
5d7b7554 26147 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26149 (eval $ac_try) 2>&5
26150 ac_status=$?
26151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26152 (exit $ac_status); }; } &&
26153 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26155 (eval $ac_try) 2>&5
26156 ac_status=$?
26157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26158 (exit $ac_status); }; }; then
26159 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
26160else
26161 echo "$as_me: failed program was:" >&5
26162sed 's/^/| /' conftest.$ac_ext >&5
26163
26164ac_cv_lib_mspack_mspack_create_chm_decompressor=no
26165fi
ac1cb8d3
VS
26166rm -f conftest.err conftest.$ac_objext \
26167 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26168LIBS=$ac_check_lib_save_LIBS
26169fi
26170echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
26171echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
26172if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
26173 MSPACK_LINK=" -lmspack"
26174fi
26175
26176 fi
26177 if test "x$MSPACK_LINK" = "x" ; then
26178 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
26179 fi
26180fi
26181
26182if test "$wxUSE_LIBMSPACK" != "no"; then
26183 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
26184#define wxUSE_LIBMSPACK 1
26185_ACEOF
26186
a848cd7e
SC
26187fi
26188
26189
26190
26191AFMINSTALL=
26192WIN32INSTALL=
26193
26194TOOLKIT=
26195TOOLKIT_INCLUDE=
26196WIDGET_SET=
26197
26198if test "$USE_WIN32" = 1 ; then
26199
26200for ac_header in w32api.h
26201do
26202as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26203if eval "test \"\${$as_ac_Header+set}\" = set"; then
26204 echo "$as_me:$LINENO: checking for $ac_header" >&5
26205echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26206if eval "test \"\${$as_ac_Header+set}\" = set"; then
26207 echo $ECHO_N "(cached) $ECHO_C" >&6
26208fi
26209echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26210echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26211else
26212 # Is the header compilable?
26213echo "$as_me:$LINENO: checking $ac_header usability" >&5
26214echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26215cat >conftest.$ac_ext <<_ACEOF
26216/* confdefs.h. */
26217_ACEOF
26218cat confdefs.h >>conftest.$ac_ext
26219cat >>conftest.$ac_ext <<_ACEOF
26220/* end confdefs.h. */
26221$ac_includes_default
26222#include <$ac_header>
26223_ACEOF
26224rm -f conftest.$ac_objext
26225if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26226 (eval $ac_compile) 2>conftest.er1
a848cd7e 26227 ac_status=$?
ac1cb8d3
VS
26228 grep -v '^ *+' conftest.er1 >conftest.err
26229 rm -f conftest.er1
26230 cat conftest.err >&5
a848cd7e
SC
26231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26232 (exit $ac_status); } &&
5d7b7554 26233 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26235 (eval $ac_try) 2>&5
26236 ac_status=$?
26237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26238 (exit $ac_status); }; } &&
26239 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26241 (eval $ac_try) 2>&5
26242 ac_status=$?
26243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26244 (exit $ac_status); }; }; then
26245 ac_header_compiler=yes
26246else
26247 echo "$as_me: failed program was:" >&5
26248sed 's/^/| /' conftest.$ac_ext >&5
26249
26250ac_header_compiler=no
26251fi
ac1cb8d3 26252rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26253echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26254echo "${ECHO_T}$ac_header_compiler" >&6
26255
26256# Is the header present?
26257echo "$as_me:$LINENO: checking $ac_header presence" >&5
26258echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26259cat >conftest.$ac_ext <<_ACEOF
26260/* confdefs.h. */
26261_ACEOF
26262cat confdefs.h >>conftest.$ac_ext
26263cat >>conftest.$ac_ext <<_ACEOF
26264/* end confdefs.h. */
26265#include <$ac_header>
26266_ACEOF
26267if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26268 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26269 ac_status=$?
26270 grep -v '^ *+' conftest.er1 >conftest.err
26271 rm -f conftest.er1
26272 cat conftest.err >&5
26273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26274 (exit $ac_status); } >/dev/null; then
26275 if test -s conftest.err; then
5d7b7554
VZ
26276 ac_cpp_err=$ac_cxx_preproc_warn_flag
26277 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26278 else
26279 ac_cpp_err=
26280 fi
26281else
26282 ac_cpp_err=yes
26283fi
26284if test -z "$ac_cpp_err"; then
26285 ac_header_preproc=yes
26286else
26287 echo "$as_me: failed program was:" >&5
26288sed 's/^/| /' conftest.$ac_ext >&5
26289
26290 ac_header_preproc=no
26291fi
26292rm -f conftest.err conftest.$ac_ext
26293echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26294echo "${ECHO_T}$ac_header_preproc" >&6
26295
26296# So? What about this header?
5d7b7554 26297case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26298 yes:no: )
a848cd7e
SC
26299 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26300echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26301 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26302echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26303 ac_header_preproc=yes
a848cd7e 26304 ;;
ac1cb8d3 26305 no:yes:* )
a848cd7e
SC
26306 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26307echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26308 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26309echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26310 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26311echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26312 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26313echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26314 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26315echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26316 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26317echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26318 (
26319 cat <<\_ASBOX
ac1cb8d3
VS
26320## ----------------------------------------- ##
26321## Report this to wx-dev@lists.wxwidgets.org ##
26322## ----------------------------------------- ##
a848cd7e
SC
26323_ASBOX
26324 ) |
26325 sed "s/^/$as_me: WARNING: /" >&2
26326 ;;
26327esac
26328echo "$as_me:$LINENO: checking for $ac_header" >&5
26329echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26330if eval "test \"\${$as_ac_Header+set}\" = set"; then
26331 echo $ECHO_N "(cached) $ECHO_C" >&6
26332else
ac1cb8d3 26333 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
26334fi
26335echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26336echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26337
26338fi
26339if test `eval echo '${'$as_ac_Header'}'` = yes; then
26340 cat >>confdefs.h <<_ACEOF
26341#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26342_ACEOF
26343
26344fi
26345
26346done
26347
26348 if test "${ac_cv_header_windows_h+set}" = set; then
26349 echo "$as_me:$LINENO: checking for windows.h" >&5
26350echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
26351if test "${ac_cv_header_windows_h+set}" = set; then
26352 echo $ECHO_N "(cached) $ECHO_C" >&6
26353fi
26354echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
26355echo "${ECHO_T}$ac_cv_header_windows_h" >&6
26356else
26357 # Is the header compilable?
26358echo "$as_me:$LINENO: checking windows.h usability" >&5
26359echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
26360cat >conftest.$ac_ext <<_ACEOF
26361/* confdefs.h. */
26362_ACEOF
26363cat confdefs.h >>conftest.$ac_ext
26364cat >>conftest.$ac_ext <<_ACEOF
26365/* end confdefs.h. */
26366$ac_includes_default
26367#include <windows.h>
26368_ACEOF
26369rm -f conftest.$ac_objext
26370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26371 (eval $ac_compile) 2>conftest.er1
a848cd7e 26372 ac_status=$?
ac1cb8d3
VS
26373 grep -v '^ *+' conftest.er1 >conftest.err
26374 rm -f conftest.er1
26375 cat conftest.err >&5
a848cd7e
SC
26376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26377 (exit $ac_status); } &&
5d7b7554 26378 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26380 (eval $ac_try) 2>&5
26381 ac_status=$?
26382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26383 (exit $ac_status); }; } &&
26384 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26386 (eval $ac_try) 2>&5
26387 ac_status=$?
26388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26389 (exit $ac_status); }; }; then
26390 ac_header_compiler=yes
26391else
26392 echo "$as_me: failed program was:" >&5
26393sed 's/^/| /' conftest.$ac_ext >&5
26394
26395ac_header_compiler=no
26396fi
ac1cb8d3 26397rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26398echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26399echo "${ECHO_T}$ac_header_compiler" >&6
26400
26401# Is the header present?
26402echo "$as_me:$LINENO: checking windows.h presence" >&5
26403echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
26404cat >conftest.$ac_ext <<_ACEOF
26405/* confdefs.h. */
26406_ACEOF
26407cat confdefs.h >>conftest.$ac_ext
26408cat >>conftest.$ac_ext <<_ACEOF
26409/* end confdefs.h. */
26410#include <windows.h>
26411_ACEOF
26412if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26413 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26414 ac_status=$?
26415 grep -v '^ *+' conftest.er1 >conftest.err
26416 rm -f conftest.er1
26417 cat conftest.err >&5
26418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26419 (exit $ac_status); } >/dev/null; then
26420 if test -s conftest.err; then
5d7b7554
VZ
26421 ac_cpp_err=$ac_cxx_preproc_warn_flag
26422 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26423 else
26424 ac_cpp_err=
26425 fi
26426else
26427 ac_cpp_err=yes
26428fi
26429if test -z "$ac_cpp_err"; then
26430 ac_header_preproc=yes
26431else
26432 echo "$as_me: failed program was:" >&5
26433sed 's/^/| /' conftest.$ac_ext >&5
26434
26435 ac_header_preproc=no
26436fi
26437rm -f conftest.err conftest.$ac_ext
26438echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26439echo "${ECHO_T}$ac_header_preproc" >&6
26440
26441# So? What about this header?
5d7b7554 26442case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26443 yes:no: )
a848cd7e
SC
26444 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
26445echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26446 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
26447echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
26448 ac_header_preproc=yes
a848cd7e 26449 ;;
ac1cb8d3 26450 no:yes:* )
a848cd7e
SC
26451 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
26452echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26453 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
26454echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
26455 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
26456echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
26457 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
26458echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26459 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
26460echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26461 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
26462echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26463 (
26464 cat <<\_ASBOX
ac1cb8d3
VS
26465## ----------------------------------------- ##
26466## Report this to wx-dev@lists.wxwidgets.org ##
26467## ----------------------------------------- ##
a848cd7e
SC
26468_ASBOX
26469 ) |
26470 sed "s/^/$as_me: WARNING: /" >&2
26471 ;;
26472esac
26473echo "$as_me:$LINENO: checking for windows.h" >&5
26474echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
26475if test "${ac_cv_header_windows_h+set}" = set; then
26476 echo $ECHO_N "(cached) $ECHO_C" >&6
26477else
26478 ac_cv_header_windows_h=$ac_header_preproc
26479fi
26480echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
26481echo "${ECHO_T}$ac_cv_header_windows_h" >&6
26482
26483fi
26484if test $ac_cv_header_windows_h = yes; then
26485 :
26486else
26487
26488 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
26489echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
26490 { (exit 1); exit 1; }; }
26491
26492fi
26493
26494
26495
26496 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
26497
26498 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
26499 LIBS="$LIBS -loleacc"
26500 fi
26501
26502 case "${host}" in
26503 *-*-cygwin* )
26504 LIBS="$LIBS -lkernel32 -luser32"
a848cd7e
SC
26505 esac
26506
26507 if test "$wxUSE_ODBC" = "sys" ; then
26508 wxUSE_ODBC = "yes"
26509 fi
26510 if test "$wxUSE_ODBC" = "yes" ; then
26511 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
26512 cat >>confdefs.h <<\_ACEOF
26513#define wxUSE_ODBC 1
26514_ACEOF
26515
26516 fi
26517
370d2fd7 26518 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
a848cd7e
SC
26519 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
26520
004ee6da 26521 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
370d2fd7 26522
a848cd7e
SC
26523 WIN32INSTALL=win32install
26524fi
26525
26526if test "$wxUSE_GUI" = "yes"; then
26527 USE_GUI=1
26528
26529 GUI_TK_LIBRARY=
26530
26531 WXGTK12=
26532 WXGTK127=
26533 WXGTK20=
26534 WXGPE=
26535
207bc66c
RN
26536 if test "$wxUSE_COCOA" = 1 ; then
26537 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
26538 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
26539echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
26540 wxUSE_PRINTING_ARCHITECTURE=no
26541 fi
26542 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
26543 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
26544echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
26545 wxUSE_DRAG_AND_DROP=no
26546 fi
26547 if test "$wxUSE_DRAGIMAGE" = "yes"; then
26548 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
26549echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
26550 wxUSE_DRAGIMAGE=no
26551 fi
26552 fi
26553
a848cd7e
SC
26554 if test "$wxUSE_MSW" = 1 ; then
26555 TOOLKIT=MSW
26556 GUIDIST=MSW_DIST
26557
ceec2216 26558 case "${host}" in
a848cd7e
SC
26559 *-*-mingw32* )
26560 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
26561 esac
26562 fi
26563
26564 if test "$wxUSE_GTK" = 1; then
5d7b7554
VZ
26565 ac_ext=c
26566ac_cpp='$CPP $CPPFLAGS'
26567ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26568ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26569ac_compiler_gnu=$ac_cv_c_compiler_gnu
26570
26571
a848cd7e
SC
26572 echo "$as_me:$LINENO: checking for GTK+ version" >&5
26573echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
26574
26575 gtk_version_cached=1
26576 if test "${wx_cv_lib_gtk+set}" = set; then
26577 echo $ECHO_N "(cached) $ECHO_C" >&6
26578else
26579
26580 gtk_version_cached=0
26581 echo "$as_me:$LINENO: result: " >&5
26582echo "${ECHO_T}" >&6
26583
26584 GTK_MODULES=
26585 if test "$wxUSE_THREADS" = "yes"; then
26586 GTK_MODULES=gthread
26587 fi
26588
f597b41c 26589 wx_cv_lib_gtk=
5001df0d
MW
26590 if test "x$wxGTK_VERSION" != "x1"
26591 then
26592 case "${host}" in
26593 *-*-solaris2* )
26594 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
5ff751d6 26595 enable_gtktest=no
5001df0d
MW
26596 fi
26597 esac
26598
a848cd7e
SC
26599 # Check whether --enable-gtktest or --disable-gtktest was given.
26600if test "${enable_gtktest+set}" = set; then
26601 enableval="$enable_gtktest"
26602
26603else
26604 enable_gtktest=yes
26605fi;
26606
26607 pkg_config_args=gtk+-2.0
26608 for module in . $GTK_MODULES
26609 do
26610 case "$module" in
26611 gthread)
26612 pkg_config_args="$pkg_config_args gthread-2.0"
26613 ;;
26614 esac
26615 done
26616
26617 no_gtk=""
26618
26619 # Extract the first word of "pkg-config", so it can be a program name with args.
26620set dummy pkg-config; ac_word=$2
26621echo "$as_me:$LINENO: checking for $ac_word" >&5
26622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26623if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
26624 echo $ECHO_N "(cached) $ECHO_C" >&6
26625else
26626 case $PKG_CONFIG in
26627 [\\/]* | ?:[\\/]*)
26628 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
26629 ;;
26630 *)
26631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26632for as_dir in $PATH
26633do
26634 IFS=$as_save_IFS
26635 test -z "$as_dir" && as_dir=.
26636 for ac_exec_ext in '' $ac_executable_extensions; do
26637 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26638 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26640 break 2
26641 fi
26642done
26643done
26644
26645 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
26646 ;;
26647esac
26648fi
26649PKG_CONFIG=$ac_cv_path_PKG_CONFIG
26650
26651if test -n "$PKG_CONFIG"; then
26652 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
26653echo "${ECHO_T}$PKG_CONFIG" >&6
26654else
26655 echo "$as_me:$LINENO: result: no" >&5
26656echo "${ECHO_T}no" >&6
26657fi
26658
26659
26660 if test x$PKG_CONFIG != xno ; then
26661 if pkg-config --atleast-pkgconfig-version 0.7 ; then
26662 :
26663 else
c2218763 26664 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
26665 no_gtk=yes
26666 PKG_CONFIG=no
26667 fi
26668 else
26669 no_gtk=yes
26670 fi
26671
26672 min_gtk_version=2.0.0
26673 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
26674echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
26675
26676 if test x$PKG_CONFIG != xno ; then
26677 ## don't try to run the test against uninstalled libtool libs
26678 if $PKG_CONFIG --uninstalled $pkg_config_args; then
26679 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
26680 enable_gtktest=no
26681 fi
26682
26683 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
26684 :
26685 else
26686 no_gtk=yes
26687 fi
26688 fi
26689
26690 if test x"$no_gtk" = x ; then
26691 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
26692 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
26693 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
26694 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
26695 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
26696 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
26697 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
26698 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
26699 if test "x$enable_gtktest" = "xyes" ; then
26700 ac_save_CFLAGS="$CFLAGS"
26701 ac_save_LIBS="$LIBS"
26702 CFLAGS="$CFLAGS $GTK_CFLAGS"
26703 LIBS="$GTK_LIBS $LIBS"
26704 rm -f conf.gtktest
26705 if test "$cross_compiling" = yes; then
26706 echo $ac_n "cross compiling; assumed OK... $ac_c"
26707else
26708 cat >conftest.$ac_ext <<_ACEOF
26709/* confdefs.h. */
26710_ACEOF
26711cat confdefs.h >>conftest.$ac_ext
26712cat >>conftest.$ac_ext <<_ACEOF
26713/* end confdefs.h. */
26714
26715#include <gtk/gtk.h>
26716#include <stdio.h>
26717#include <stdlib.h>
26718
26719int
26720main ()
26721{
26722 int major, minor, micro;
26723 char *tmp_version;
26724
26725 system ("touch conf.gtktest");
26726
26727 /* HP/UX 9 (%@#!) writes to sscanf strings */
26728 tmp_version = g_strdup("$min_gtk_version");
26729 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
26730 printf("%s, bad version string\n", "$min_gtk_version");
26731 exit(1);
26732 }
26733
26734 if ((gtk_major_version != $gtk_config_major_version) ||
26735 (gtk_minor_version != $gtk_config_minor_version) ||
26736 (gtk_micro_version != $gtk_config_micro_version))
26737 {
26738 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
26739 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
26740 gtk_major_version, gtk_minor_version, gtk_micro_version);
26741 printf ("*** was found! If pkg-config was correct, then it is best\n");
26742 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
26743 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
26744 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
26745 printf("*** required on your system.\n");
26746 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
26747 printf("*** to point to the correct configuration files\n");
26748 }
26749 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
26750 (gtk_minor_version != GTK_MINOR_VERSION) ||
26751 (gtk_micro_version != GTK_MICRO_VERSION))
26752 {
26753 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
26754 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
26755 printf("*** library (version %d.%d.%d)\n",
26756 gtk_major_version, gtk_minor_version, gtk_micro_version);
26757 }
26758 else
26759 {
26760 if ((gtk_major_version > major) ||
26761 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
26762 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
26763 {
26764 return 0;
26765 }
26766 else
26767 {
26768 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
26769 gtk_major_version, gtk_minor_version, gtk_micro_version);
26770 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
26771 major, minor, micro);
26772 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
26773 printf("***\n");
26774 printf("*** If you have already installed a sufficiently new version, this error\n");
26775 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
26776 printf("*** being found. The easiest way to fix this is to remove the old version\n");
26777 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
26778 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
26779 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
26780 printf("*** so that the correct libraries are found at run-time))\n");
26781 }
26782 }
26783 return 1;
26784}
26785
26786_ACEOF
26787rm -f conftest$ac_exeext
26788if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26789 (eval $ac_link) 2>&5
26790 ac_status=$?
26791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26792 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26794 (eval $ac_try) 2>&5
26795 ac_status=$?
26796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26797 (exit $ac_status); }; }; then
26798 :
26799else
26800 echo "$as_me: program exited with status $ac_status" >&5
26801echo "$as_me: failed program was:" >&5
26802sed 's/^/| /' conftest.$ac_ext >&5
26803
26804( exit $ac_status )
26805no_gtk=yes
26806fi
ac1cb8d3 26807rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26808fi
26809 CFLAGS="$ac_save_CFLAGS"
26810 LIBS="$ac_save_LIBS"
26811 fi
26812 fi
26813 if test "x$no_gtk" = x ; then
26814 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
26815echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
26816 wx_cv_lib_gtk=2.0
26817 else
26818 echo "$as_me:$LINENO: result: no" >&5
26819echo "${ECHO_T}no" >&6
26820 if test "$PKG_CONFIG" = "no" ; then
26821 echo "*** A new enough version of pkg-config was not found."
26822 echo "*** See http://pkgconfig.sourceforge.net"
26823 else
26824 if test -f conf.gtktest ; then
26825 :
26826 else
26827 echo "*** Could not run GTK+ test program, checking why..."
26828 ac_save_CFLAGS="$CFLAGS"
26829 ac_save_LIBS="$LIBS"
26830 CFLAGS="$CFLAGS $GTK_CFLAGS"
26831 LIBS="$LIBS $GTK_LIBS"
26832 cat >conftest.$ac_ext <<_ACEOF
26833/* confdefs.h. */
26834_ACEOF
26835cat confdefs.h >>conftest.$ac_ext
26836cat >>conftest.$ac_ext <<_ACEOF
26837/* end confdefs.h. */
26838
26839#include <gtk/gtk.h>
26840#include <stdio.h>
26841
26842int
26843main ()
26844{
26845 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
26846 ;
26847 return 0;
26848}
26849_ACEOF
26850rm -f conftest.$ac_objext conftest$ac_exeext
26851if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26852 (eval $ac_link) 2>conftest.er1
a848cd7e 26853 ac_status=$?
ac1cb8d3
VS
26854 grep -v '^ *+' conftest.er1 >conftest.err
26855 rm -f conftest.er1
26856 cat conftest.err >&5
a848cd7e
SC
26857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26858 (exit $ac_status); } &&
5d7b7554 26859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26861 (eval $ac_try) 2>&5
26862 ac_status=$?
26863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26864 (exit $ac_status); }; } &&
26865 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26867 (eval $ac_try) 2>&5
26868 ac_status=$?
26869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26870 (exit $ac_status); }; }; then
26871 echo "*** The test program compiled, but did not run. This usually means"
26872 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
26873 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
26874 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
26875 echo "*** to the installed location Also, make sure you have run ldconfig if that"
26876 echo "*** is required on your system"
26877 echo "***"
26878 echo "*** If you have an old version installed, it is best to remove it, although"
26879 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
26880else
26881 echo "$as_me: failed program was:" >&5
26882sed 's/^/| /' conftest.$ac_ext >&5
26883
26884 echo "*** The test program failed to compile or link. See the file config.log for the"
26885 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
26886fi
ac1cb8d3
VS
26887rm -f conftest.err conftest.$ac_objext \
26888 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26889 CFLAGS="$ac_save_CFLAGS"
26890 LIBS="$ac_save_LIBS"
26891 fi
26892 fi
26893 GTK_CFLAGS=""
26894 GTK_LIBS=""
26895 :
26896 fi
26897
26898
26899 rm -f conf.gtktest
26900
5001df0d
MW
26901
26902 case "${host}" in
26903 *-*-solaris2* )
26904 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
26905 GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'`
26906 GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'`
26907 fi
26908 if test "$wxUSE_SHARED" != "yes"; then
26909 GTK_LIBS="$GTK_LIBS -lX11"
26910 fi
26911 esac
f597b41c
MW
26912 fi
26913
f34ca037
MW
26914 if test -z "$wx_cv_lib_gtk"; then
26915 if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
a848cd7e
SC
26916
26917# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
26918if test "${with_gtk_prefix+set}" = set; then
26919 withval="$with_gtk_prefix"
26920 gtk_config_prefix="$withval"
26921else
26922 gtk_config_prefix=""
26923fi;
26924
26925# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
26926if test "${with_gtk_exec_prefix+set}" = set; then
26927 withval="$with_gtk_exec_prefix"
26928 gtk_config_exec_prefix="$withval"
26929else
26930 gtk_config_exec_prefix=""
26931fi;
26932# Check whether --enable-gtktest or --disable-gtktest was given.
26933if test "${enable_gtktest+set}" = set; then
26934 enableval="$enable_gtktest"
26935
26936else
26937 enable_gtktest=yes
26938fi;
26939
26940 for module in . $GTK_MODULES
26941 do
26942 case "$module" in
26943 gthread)
26944 gtk_config_args="$gtk_config_args gthread"
26945 ;;
26946 esac
26947 done
26948
26949 if test x$gtk_config_exec_prefix != x ; then
26950 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
26951 if test x${GTK_CONFIG+set} != xset ; then
26952 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
26953 fi
26954 fi
26955 if test x$gtk_config_prefix != x ; then
26956 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
26957 if test x${GTK_CONFIG+set} != xset ; then
26958 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
26959 fi
26960 fi
26961
26962 # Extract the first word of "gtk-config", so it can be a program name with args.
26963set dummy gtk-config; ac_word=$2
26964echo "$as_me:$LINENO: checking for $ac_word" >&5
26965echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26966if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
26967 echo $ECHO_N "(cached) $ECHO_C" >&6
26968else
26969 case $GTK_CONFIG in
26970 [\\/]* | ?:[\\/]*)
26971 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
26972 ;;
26973 *)
26974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26975for as_dir in $PATH
26976do
26977 IFS=$as_save_IFS
26978 test -z "$as_dir" && as_dir=.
26979 for ac_exec_ext in '' $ac_executable_extensions; do
26980 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26981 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26983 break 2
26984 fi
26985done
26986done
26987
26988 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
26989 ;;
26990esac
26991fi
26992GTK_CONFIG=$ac_cv_path_GTK_CONFIG
26993
26994if test -n "$GTK_CONFIG"; then
26995 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
26996echo "${ECHO_T}$GTK_CONFIG" >&6
26997else
26998 echo "$as_me:$LINENO: result: no" >&5
26999echo "${ECHO_T}no" >&6
27000fi
27001
27002 min_gtk_version=1.2.7
27003 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
27004echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
27005 no_gtk=""
27006 if test "$GTK_CONFIG" = "no" ; then
27007 no_gtk=yes
27008 else
27009 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
27010 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
27011 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
27012 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
27013 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
27014 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
27015 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
27016 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
27017 if test "x$enable_gtktest" = "xyes" ; then
27018 ac_save_CFLAGS="$CFLAGS"
27019 ac_save_LIBS="$LIBS"
27020 CFLAGS="$CFLAGS $GTK_CFLAGS"
27021 LIBS="$GTK_LIBS $LIBS"
27022 rm -f conf.gtktest
27023 if test "$cross_compiling" = yes; then
27024 echo $ac_n "cross compiling; assumed OK... $ac_c"
27025else
27026 cat >conftest.$ac_ext <<_ACEOF
27027/* confdefs.h. */
27028_ACEOF
27029cat confdefs.h >>conftest.$ac_ext
27030cat >>conftest.$ac_ext <<_ACEOF
27031/* end confdefs.h. */
27032
27033#include <gtk/gtk.h>
27034#include <stdio.h>
27035#include <stdlib.h>
27036
27037int
27038main ()
27039{
27040 int major, minor, micro;
27041 char *tmp_version;
27042
27043 system ("touch conf.gtktest");
27044
27045 /* HP/UX 9 (%@#!) writes to sscanf strings */
27046 tmp_version = g_strdup("$min_gtk_version");
27047 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
27048 printf("%s, bad version string\n", "$min_gtk_version");
27049 exit(1);
27050 }
27051
27052 if ((gtk_major_version != $gtk_config_major_version) ||
27053 (gtk_minor_version != $gtk_config_minor_version) ||
27054 (gtk_micro_version != $gtk_config_micro_version))
27055 {
27056 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
27057 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
27058 gtk_major_version, gtk_minor_version, gtk_micro_version);
27059 printf ("*** was found! If gtk-config was correct, then it is best\n");
27060 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
27061 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
27062 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
27063 printf("*** required on your system.\n");
27064 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
27065 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
27066 printf("*** before re-running configure\n");
27067 }
27068#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
27069 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
27070 (gtk_minor_version != GTK_MINOR_VERSION) ||
27071 (gtk_micro_version != GTK_MICRO_VERSION))
27072 {
27073 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
27074 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
27075 printf("*** library (version %d.%d.%d)\n",
27076 gtk_major_version, gtk_minor_version, gtk_micro_version);
27077 }
27078#endif /* defined (GTK_MAJOR_VERSION) ... */
27079 else
27080 {
27081 if ((gtk_major_version > major) ||
27082 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
27083 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
27084 {
27085 return 0;
27086 }
27087 else
27088 {
27089 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
27090 gtk_major_version, gtk_minor_version, gtk_micro_version);
27091 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
27092 major, minor, micro);
27093 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
27094 printf("***\n");
27095 printf("*** If you have already installed a sufficiently new version, this error\n");
27096 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
27097 printf("*** being found. The easiest way to fix this is to remove the old version\n");
27098 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
27099 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
27100 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27101 printf("*** so that the correct libraries are found at run-time))\n");
27102 }
27103 }
27104 return 1;
27105}
27106
27107_ACEOF
27108rm -f conftest$ac_exeext
27109if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27110 (eval $ac_link) 2>&5
27111 ac_status=$?
27112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27113 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27115 (eval $ac_try) 2>&5
27116 ac_status=$?
27117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27118 (exit $ac_status); }; }; then
27119 :
27120else
27121 echo "$as_me: program exited with status $ac_status" >&5
27122echo "$as_me: failed program was:" >&5
27123sed 's/^/| /' conftest.$ac_ext >&5
27124
27125( exit $ac_status )
27126no_gtk=yes
27127fi
ac1cb8d3 27128rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27129fi
27130 CFLAGS="$ac_save_CFLAGS"
27131 LIBS="$ac_save_LIBS"
27132 fi
27133 fi
27134 if test "x$no_gtk" = x ; then
27135 echo "$as_me:$LINENO: result: yes" >&5
27136echo "${ECHO_T}yes" >&6
27137 wx_cv_lib_gtk=1.2.7
27138 else
27139 echo "$as_me:$LINENO: result: no" >&5
27140echo "${ECHO_T}no" >&6
27141 if test "$GTK_CONFIG" = "no" ; then
27142 echo "*** The gtk-config script installed by GTK could not be found"
27143 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
27144 echo "*** your path, or set the GTK_CONFIG environment variable to the"
27145 echo "*** full path to gtk-config."
27146 else
27147 if test -f conf.gtktest ; then
27148 :
27149 else
27150 echo "*** Could not run GTK test program, checking why..."
27151 CFLAGS="$CFLAGS $GTK_CFLAGS"
27152 LIBS="$LIBS $GTK_LIBS"
27153 cat >conftest.$ac_ext <<_ACEOF
27154/* confdefs.h. */
27155_ACEOF
27156cat confdefs.h >>conftest.$ac_ext
27157cat >>conftest.$ac_ext <<_ACEOF
27158/* end confdefs.h. */
27159
27160#include <gtk/gtk.h>
27161#include <stdio.h>
27162
27163int
27164main ()
27165{
27166 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
27167 ;
27168 return 0;
27169}
27170_ACEOF
27171rm -f conftest.$ac_objext conftest$ac_exeext
27172if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27173 (eval $ac_link) 2>conftest.er1
a848cd7e 27174 ac_status=$?
ac1cb8d3
VS
27175 grep -v '^ *+' conftest.er1 >conftest.err
27176 rm -f conftest.er1
27177 cat conftest.err >&5
a848cd7e
SC
27178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27179 (exit $ac_status); } &&
5d7b7554 27180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27182 (eval $ac_try) 2>&5
27183 ac_status=$?
27184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27185 (exit $ac_status); }; } &&
27186 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27188 (eval $ac_try) 2>&5
27189 ac_status=$?
27190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27191 (exit $ac_status); }; }; then
27192 echo "*** The test program compiled, but did not run. This usually means"
27193 echo "*** that the run-time linker is not finding GTK or finding the wrong"
27194 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
27195 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
27196 echo "*** to the installed location Also, make sure you have run ldconfig if that"
27197 echo "*** is required on your system"
27198 echo "***"
27199 echo "*** If you have an old version installed, it is best to remove it, although"
27200 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
27201 echo "***"
27202 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
27203 echo "*** came with the system with the command"
27204 echo "***"
27205 echo "*** rpm --erase --nodeps gtk gtk-devel"
27206else
27207 echo "$as_me: failed program was:" >&5
27208sed 's/^/| /' conftest.$ac_ext >&5
27209
27210 echo "*** The test program failed to compile or link. See the file config.log for the"
27211 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
27212 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
27213 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
27214fi
ac1cb8d3
VS
27215rm -f conftest.err conftest.$ac_objext \
27216 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27217 CFLAGS="$ac_save_CFLAGS"
27218 LIBS="$ac_save_LIBS"
27219 fi
27220 fi
27221 GTK_CFLAGS=""
27222 GTK_LIBS=""
27223 :
27224 fi
27225
27226
27227 rm -f conf.gtktest
27228
27229
f34ca037 27230 if test -z "$wx_cv_lib_gtk"; then
a848cd7e
SC
27231
27232# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
27233if test "${with_gtk_prefix+set}" = set; then
27234 withval="$with_gtk_prefix"
27235 gtk_config_prefix="$withval"
27236else
27237 gtk_config_prefix=""
27238fi;
27239
27240# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
27241if test "${with_gtk_exec_prefix+set}" = set; then
27242 withval="$with_gtk_exec_prefix"
27243 gtk_config_exec_prefix="$withval"
27244else
27245 gtk_config_exec_prefix=""
27246fi;
27247# Check whether --enable-gtktest or --disable-gtktest was given.
27248if test "${enable_gtktest+set}" = set; then
27249 enableval="$enable_gtktest"
27250
27251else
27252 enable_gtktest=yes
27253fi;
27254
27255 for module in . $GTK_MODULES
27256 do
27257 case "$module" in
27258 gthread)
27259 gtk_config_args="$gtk_config_args gthread"
27260 ;;
27261 esac
27262 done
27263
27264 if test x$gtk_config_exec_prefix != x ; then
27265 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
27266 if test x${GTK_CONFIG+set} != xset ; then
27267 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
27268 fi
27269 fi
27270 if test x$gtk_config_prefix != x ; then
27271 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
27272 if test x${GTK_CONFIG+set} != xset ; then
27273 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
27274 fi
27275 fi
27276
27277 # Extract the first word of "gtk-config", so it can be a program name with args.
27278set dummy gtk-config; ac_word=$2
27279echo "$as_me:$LINENO: checking for $ac_word" >&5
27280echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27281if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
27282 echo $ECHO_N "(cached) $ECHO_C" >&6
27283else
27284 case $GTK_CONFIG in
27285 [\\/]* | ?:[\\/]*)
27286 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
27287 ;;
27288 *)
27289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27290for as_dir in $PATH
27291do
27292 IFS=$as_save_IFS
27293 test -z "$as_dir" && as_dir=.
27294 for ac_exec_ext in '' $ac_executable_extensions; do
27295 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27296 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27298 break 2
27299 fi
27300done
27301done
27302
27303 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
27304 ;;
27305esac
27306fi
27307GTK_CONFIG=$ac_cv_path_GTK_CONFIG
27308
27309if test -n "$GTK_CONFIG"; then
27310 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
27311echo "${ECHO_T}$GTK_CONFIG" >&6
27312else
27313 echo "$as_me:$LINENO: result: no" >&5
27314echo "${ECHO_T}no" >&6
27315fi
27316
27317 min_gtk_version=1.2.3
27318 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
27319echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
27320 no_gtk=""
27321 if test "$GTK_CONFIG" = "no" ; then
27322 no_gtk=yes
27323 else
27324 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
27325 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
27326 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
27327 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
27328 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
27329 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
27330 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
27331 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
27332 if test "x$enable_gtktest" = "xyes" ; then
27333 ac_save_CFLAGS="$CFLAGS"
27334 ac_save_LIBS="$LIBS"
27335 CFLAGS="$CFLAGS $GTK_CFLAGS"
27336 LIBS="$GTK_LIBS $LIBS"
27337 rm -f conf.gtktest
27338 if test "$cross_compiling" = yes; then
27339 echo $ac_n "cross compiling; assumed OK... $ac_c"
27340else
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#include <stdlib.h>
27351
27352int
27353main ()
27354{
27355 int major, minor, micro;
27356 char *tmp_version;
27357
27358 system ("touch conf.gtktest");
27359
27360 /* HP/UX 9 (%@#!) writes to sscanf strings */
27361 tmp_version = g_strdup("$min_gtk_version");
27362 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
27363 printf("%s, bad version string\n", "$min_gtk_version");
27364 exit(1);
27365 }
27366
27367 if ((gtk_major_version != $gtk_config_major_version) ||
27368 (gtk_minor_version != $gtk_config_minor_version) ||
27369 (gtk_micro_version != $gtk_config_micro_version))
27370 {
27371 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
27372 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
27373 gtk_major_version, gtk_minor_version, gtk_micro_version);
27374 printf ("*** was found! If gtk-config was correct, then it is best\n");
27375 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
27376 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
27377 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
27378 printf("*** required on your system.\n");
27379 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
27380 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
27381 printf("*** before re-running configure\n");
27382 }
27383#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
27384 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
27385 (gtk_minor_version != GTK_MINOR_VERSION) ||
27386 (gtk_micro_version != GTK_MICRO_VERSION))
27387 {
27388 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
27389 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
27390 printf("*** library (version %d.%d.%d)\n",
27391 gtk_major_version, gtk_minor_version, gtk_micro_version);
27392 }
27393#endif /* defined (GTK_MAJOR_VERSION) ... */
27394 else
27395 {
27396 if ((gtk_major_version > major) ||
27397 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
27398 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
27399 {
27400 return 0;
27401 }
27402 else
27403 {
27404 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
27405 gtk_major_version, gtk_minor_version, gtk_micro_version);
27406 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
27407 major, minor, micro);
27408 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
27409 printf("***\n");
27410 printf("*** If you have already installed a sufficiently new version, this error\n");
27411 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
27412 printf("*** being found. The easiest way to fix this is to remove the old version\n");
27413 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
27414 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
27415 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27416 printf("*** so that the correct libraries are found at run-time))\n");
27417 }
27418 }
27419 return 1;
27420}
27421
27422_ACEOF
27423rm -f conftest$ac_exeext
27424if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27425 (eval $ac_link) 2>&5
27426 ac_status=$?
27427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27428 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27430 (eval $ac_try) 2>&5
27431 ac_status=$?
27432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27433 (exit $ac_status); }; }; then
27434 :
27435else
27436 echo "$as_me: program exited with status $ac_status" >&5
27437echo "$as_me: failed program was:" >&5
27438sed 's/^/| /' conftest.$ac_ext >&5
27439
27440( exit $ac_status )
27441no_gtk=yes
27442fi
ac1cb8d3 27443rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27444fi
27445 CFLAGS="$ac_save_CFLAGS"
27446 LIBS="$ac_save_LIBS"
27447 fi
27448 fi
27449 if test "x$no_gtk" = x ; then
27450 echo "$as_me:$LINENO: result: yes" >&5
27451echo "${ECHO_T}yes" >&6
27452 wx_cv_lib_gtk=1.2.3
27453 else
27454 echo "$as_me:$LINENO: result: no" >&5
27455echo "${ECHO_T}no" >&6
27456 if test "$GTK_CONFIG" = "no" ; then
27457 echo "*** The gtk-config script installed by GTK could not be found"
27458 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
27459 echo "*** your path, or set the GTK_CONFIG environment variable to the"
27460 echo "*** full path to gtk-config."
27461 else
27462 if test -f conf.gtktest ; then
27463 :
27464 else
27465 echo "*** Could not run GTK test program, checking why..."
27466 CFLAGS="$CFLAGS $GTK_CFLAGS"
27467 LIBS="$LIBS $GTK_LIBS"
27468 cat >conftest.$ac_ext <<_ACEOF
27469/* confdefs.h. */
27470_ACEOF
27471cat confdefs.h >>conftest.$ac_ext
27472cat >>conftest.$ac_ext <<_ACEOF
27473/* end confdefs.h. */
27474
27475#include <gtk/gtk.h>
27476#include <stdio.h>
27477
27478int
27479main ()
27480{
27481 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
27482 ;
27483 return 0;
27484}
27485_ACEOF
27486rm -f conftest.$ac_objext conftest$ac_exeext
27487if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27488 (eval $ac_link) 2>conftest.er1
a848cd7e 27489 ac_status=$?
ac1cb8d3
VS
27490 grep -v '^ *+' conftest.er1 >conftest.err
27491 rm -f conftest.er1
27492 cat conftest.err >&5
a848cd7e
SC
27493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27494 (exit $ac_status); } &&
5d7b7554 27495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27497 (eval $ac_try) 2>&5
27498 ac_status=$?
27499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27500 (exit $ac_status); }; } &&
27501 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27503 (eval $ac_try) 2>&5
27504 ac_status=$?
27505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27506 (exit $ac_status); }; }; then
27507 echo "*** The test program compiled, but did not run. This usually means"
27508 echo "*** that the run-time linker is not finding GTK or finding the wrong"
27509 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
27510 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
27511 echo "*** to the installed location Also, make sure you have run ldconfig if that"
27512 echo "*** is required on your system"
27513 echo "***"
27514 echo "*** If you have an old version installed, it is best to remove it, although"
27515 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
27516 echo "***"
27517 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
27518 echo "*** came with the system with the command"
27519 echo "***"
27520 echo "*** rpm --erase --nodeps gtk gtk-devel"
27521else
27522 echo "$as_me: failed program was:" >&5
27523sed 's/^/| /' conftest.$ac_ext >&5
27524
27525 echo "*** The test program failed to compile or link. See the file config.log for the"
27526 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
27527 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
27528 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
27529fi
ac1cb8d3
VS
27530rm -f conftest.err conftest.$ac_objext \
27531 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27532 CFLAGS="$ac_save_CFLAGS"
27533 LIBS="$ac_save_LIBS"
27534 fi
27535 fi
27536 GTK_CFLAGS=""
27537 GTK_LIBS=""
27538 :
27539 fi
27540
27541
27542 rm -f conf.gtktest
27543
f34ca037 27544 fi
a848cd7e
SC
27545 fi
27546 fi
27547
27548 if test -z "$wx_cv_lib_gtk"; then
27549 wx_cv_lib_gtk=none
27550 else
27551 wx_cv_cflags_gtk=$GTK_CFLAGS
d2822091 27552 wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
a848cd7e
SC
27553 fi
27554
27555
27556fi
27557
27558
27559 if test "$gtk_version_cached" = 1; then
27560 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
27561echo "${ECHO_T}$wx_cv_lib_gtk" >&6
27562 fi
27563
27564 case "$wx_cv_lib_gtk" in
27565 2.0) WXGTK20=1
27566 TOOLKIT_VERSION=2
27567 ;;
27568 1.2.7) WXGTK127=1
27569 WXGTK12=1
27570 ;;
27571 1.2.3) WXGTK12=1
27572 ;;
27573 *) { { echo "$as_me:$LINENO: error:
f597b41c
MW
27574The development files for GTK+ were not found. For GTK+ 2, please
27575ensure that pkg-config is in the path and that gtk+-2.0.pc is
27576installed. For GTK+ 1.2 please check that gtk-config is in the path,
27577and that the version is 1.2.3 or above. Also check that the
27578libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
27579--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
27580 " >&5
27581echo "$as_me: error:
f597b41c
MW
27582The development files for GTK+ were not found. For GTK+ 2, please
27583ensure that pkg-config is in the path and that gtk+-2.0.pc is
27584installed. For GTK+ 1.2 please check that gtk-config is in the path,
27585and that the version is 1.2.3 or above. Also check that the
27586libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
27587--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
27588 " >&2;}
27589 { (exit 1); exit 1; }; }
27590 ;;
27591 esac
27592
27593 if test "$WXGTK20" = 1; then
e56f4f9e 27594 save_CXXFLAGS="$CFLAGS"
304205f1 27595 save_LIBS="$LIBS"
c92ad099 27596 CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
abc736fd 27597 LIBS="$LIBS $wx_cv_libs_gtk"
304205f1 27598
d12aef51
VZ
27599 echo "$as_me:$LINENO: checking if gtk_icon_size_lookup is missing" >&5
27600echo $ECHO_N "checking if gtk_icon_size_lookup is missing... $ECHO_C" >&6
27601 cat >conftest.$ac_ext <<_ACEOF
304205f1
VS
27602/* confdefs.h. */
27603_ACEOF
27604cat confdefs.h >>conftest.$ac_ext
27605cat >>conftest.$ac_ext <<_ACEOF
27606/* end confdefs.h. */
304205f1 27607
d12aef51 27608 #include <gtk/gtk.h>
304205f1 27609
d12aef51
VZ
27610int
27611main ()
27612{
304205f1 27613
d12aef51 27614 void *f = gtk_icon_size_lookup;
abc736fd
MW
27615
27616 ;
27617 return 0;
27618}
27619_ACEOF
27620rm -f conftest.$ac_objext
27621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27622 (eval $ac_compile) 2>conftest.er1
27623 ac_status=$?
27624 grep -v '^ *+' conftest.er1 >conftest.err
27625 rm -f conftest.er1
27626 cat conftest.err >&5
27627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27628 (exit $ac_status); } &&
e56f4f9e 27629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
abc736fd
MW
27630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27631 (eval $ac_try) 2>&5
27632 ac_status=$?
27633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27634 (exit $ac_status); }; } &&
27635 { ac_try='test -s conftest.$ac_objext'
27636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27637 (eval $ac_try) 2>&5
27638 ac_status=$?
27639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27640 (exit $ac_status); }; }; then
27641
27642 echo "$as_me:$LINENO: result: no" >&5
27643echo "${ECHO_T}no" >&6
27644
27645else
27646 echo "$as_me: failed program was:" >&5
27647sed 's/^/| /' conftest.$ac_ext >&5
27648
27649
27650 cat >>confdefs.h <<\_ACEOF
27651#define NEED_GTK_ICON_SIZE_LOOKUP 1
27652_ACEOF
27653
27654 echo "$as_me:$LINENO: result: yes" >&5
27655echo "${ECHO_T}yes" >&6
27656
27657fi
27658rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27659
9755e73b
VS
27660 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
27661echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
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
27671int
27672main ()
27673{
27674
27675 #if !GTK_CHECK_VERSION(2,4,0)
04e525a0 27676 Not GTK+ 2.4
9755e73b
VS
27677 #endif
27678
27679 ;
27680 return 0;
27681}
27682_ACEOF
27683rm -f conftest.$ac_objext
27684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27685 (eval $ac_compile) 2>conftest.er1
27686 ac_status=$?
27687 grep -v '^ *+' conftest.er1 >conftest.err
27688 rm -f conftest.er1
27689 cat conftest.err >&5
27690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27691 (exit $ac_status); } &&
e56f4f9e 27692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9755e73b
VS
27693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27694 (eval $ac_try) 2>&5
27695 ac_status=$?
27696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27697 (exit $ac_status); }; } &&
27698 { ac_try='test -s conftest.$ac_objext'
27699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27700 (eval $ac_try) 2>&5
27701 ac_status=$?
27702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27703 (exit $ac_status); }; }; then
27704
27705 cat >>confdefs.h <<\_ACEOF
27706#define __WXGTK24__ 1
27707_ACEOF
27708
27709 echo "$as_me:$LINENO: result: yes" >&5
27710echo "${ECHO_T}yes" >&6
27711
27712else
27713 echo "$as_me: failed program was:" >&5
27714sed 's/^/| /' conftest.$ac_ext >&5
27715
27716
27717 echo "$as_me:$LINENO: result: no" >&5
27718echo "${ECHO_T}no" >&6
27719
27720fi
27721rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27722
304205f1
VS
27723 CFLAGS="$save_CFLAGS"
27724 LIBS="$save_LIBS"
a848cd7e
SC
27725 else
27726 if test "$wxUSE_UNICODE" = "yes"; then
27727 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
27728echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
27729 wxUSE_UNICODE=no
27730 fi
27731 fi
27732
e56f4f9e
VZ
27733 ac_ext=cc
27734ac_cpp='$CXXCPP $CPPFLAGS'
27735ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27736ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27737ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27738
27739
a848cd7e
SC
27740 if test "$USE_DARWIN" != 1; then
27741
27742for ac_func in poll
27743do
27744as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27745echo "$as_me:$LINENO: checking for $ac_func" >&5
27746echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27747if eval "test \"\${$as_ac_var+set}\" = set"; then
27748 echo $ECHO_N "(cached) $ECHO_C" >&6
27749else
27750 cat >conftest.$ac_ext <<_ACEOF
27751/* confdefs.h. */
27752_ACEOF
27753cat confdefs.h >>conftest.$ac_ext
27754cat >>conftest.$ac_ext <<_ACEOF
27755/* end confdefs.h. */
ac1cb8d3
VS
27756/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27757 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27758#define $ac_func innocuous_$ac_func
27759
a848cd7e
SC
27760/* System header to define __stub macros and hopefully few prototypes,
27761 which can conflict with char $ac_func (); below.
27762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27763 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 27764
a848cd7e
SC
27765#ifdef __STDC__
27766# include <limits.h>
27767#else
27768# include <assert.h>
27769#endif
ac1cb8d3
VS
27770
27771#undef $ac_func
27772
a848cd7e
SC
27773/* Override any gcc2 internal prototype to avoid an error. */
27774#ifdef __cplusplus
27775extern "C"
27776{
27777#endif
27778/* We use char because int might match the return type of a gcc2
27779 builtin and then its argument prototype would still apply. */
27780char $ac_func ();
27781/* The GNU C library defines this for functions which it implements
27782 to always fail with ENOSYS. Some functions are actually named
27783 something starting with __ and the normal name is an alias. */
27784#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27785choke me
27786#else
27787char (*f) () = $ac_func;
27788#endif
27789#ifdef __cplusplus
27790}
27791#endif
27792
27793int
27794main ()
27795{
27796return f != $ac_func;
27797 ;
27798 return 0;
27799}
27800_ACEOF
27801rm -f conftest.$ac_objext conftest$ac_exeext
27802if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27803 (eval $ac_link) 2>conftest.er1
a848cd7e 27804 ac_status=$?
ac1cb8d3
VS
27805 grep -v '^ *+' conftest.er1 >conftest.err
27806 rm -f conftest.er1
27807 cat conftest.err >&5
a848cd7e
SC
27808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27809 (exit $ac_status); } &&
5d7b7554 27810 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27812 (eval $ac_try) 2>&5
27813 ac_status=$?
27814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27815 (exit $ac_status); }; } &&
27816 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27818 (eval $ac_try) 2>&5
27819 ac_status=$?
27820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27821 (exit $ac_status); }; }; then
27822 eval "$as_ac_var=yes"
27823else
27824 echo "$as_me: failed program was:" >&5
27825sed 's/^/| /' conftest.$ac_ext >&5
27826
27827eval "$as_ac_var=no"
27828fi
ac1cb8d3
VS
27829rm -f conftest.err conftest.$ac_objext \
27830 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27831fi
27832echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27833echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27834if test `eval echo '${'$as_ac_var'}'` = yes; then
27835 cat >>confdefs.h <<_ACEOF
27836#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27837_ACEOF
27838
27839fi
27840done
27841
27842 fi
27843
27844 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
27845 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
27846
27847 AFMINSTALL=afminstall
27848 TOOLKIT=GTK
27849 GUIDIST=GTK_DIST
27850
27851 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
27852echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
27853if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
27854 echo $ECHO_N "(cached) $ECHO_C" >&6
27855else
27856 ac_check_lib_save_LIBS=$LIBS
27857LIBS="-lgdk $LIBS"
27858cat >conftest.$ac_ext <<_ACEOF
27859/* confdefs.h. */
27860_ACEOF
27861cat confdefs.h >>conftest.$ac_ext
27862cat >>conftest.$ac_ext <<_ACEOF
27863/* end confdefs.h. */
27864
27865/* Override any gcc2 internal prototype to avoid an error. */
27866#ifdef __cplusplus
27867extern "C"
27868#endif
27869/* We use char because int might match the return type of a gcc2
27870 builtin and then its argument prototype would still apply. */
27871char gdk_im_open ();
27872int
27873main ()
27874{
27875gdk_im_open ();
27876 ;
27877 return 0;
27878}
27879_ACEOF
27880rm -f conftest.$ac_objext conftest$ac_exeext
27881if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27882 (eval $ac_link) 2>conftest.er1
a848cd7e 27883 ac_status=$?
ac1cb8d3
VS
27884 grep -v '^ *+' conftest.er1 >conftest.err
27885 rm -f conftest.er1
27886 cat conftest.err >&5
a848cd7e
SC
27887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27888 (exit $ac_status); } &&
5d7b7554 27889 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27891 (eval $ac_try) 2>&5
27892 ac_status=$?
27893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27894 (exit $ac_status); }; } &&
27895 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27897 (eval $ac_try) 2>&5
27898 ac_status=$?
27899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27900 (exit $ac_status); }; }; then
27901 ac_cv_lib_gdk_gdk_im_open=yes
27902else
27903 echo "$as_me: failed program was:" >&5
27904sed 's/^/| /' conftest.$ac_ext >&5
27905
27906ac_cv_lib_gdk_gdk_im_open=no
27907fi
ac1cb8d3
VS
27908rm -f conftest.err conftest.$ac_objext \
27909 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27910LIBS=$ac_check_lib_save_LIBS
27911fi
27912echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
27913echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
27914if test $ac_cv_lib_gdk_gdk_im_open = yes; then
27915 cat >>confdefs.h <<\_ACEOF
27916#define HAVE_XIM 1
27917_ACEOF
27918
27919fi
27920
27921
27922
27923 if test "$wxUSE_GPE" = "yes"; then
27924 echo "$as_me:$LINENO: checking for gpewidget library" >&5
27925echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
27926
0ad5d837
VZ
27927 ac_find_libraries=
27928 for ac_dir in $SEARCH_LIB;
a848cd7e 27929 do
3eca31dc 27930 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
27931 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
27932 ac_find_libraries=$ac_dir
27933 break 2
27934 fi
27935 done
27936 done
27937
27938 if test "$ac_find_libraries" != "" ; then
27939
0ad5d837 27940 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
27941 ac_path_to_link=""
27942 else
0ad5d837
VZ
27943 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
27944 result=$?
27945 if test $result = 0; then
27946 ac_path_to_link=""
27947 else
27948 ac_path_to_link=" -L$ac_find_libraries"
27949 fi
a848cd7e
SC
27950 fi
27951
27952 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
27953 WXGPE=1
0ad5d837
VZ
27954 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
27955echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
27956 else
27957 echo "$as_me:$LINENO: result: not found" >&5
27958echo "${ECHO_T}not found" >&6
27959 fi
27960
27961 fi
27962 fi
27963
27964 if test "$wxUSE_MGL" = 1; then
27965 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
27966echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
27967 if test "x$MGL_ROOT" = x ; then
27968 echo "$as_me:$LINENO: result: not found" >&5
27969echo "${ECHO_T}not found" >&6
27970 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
27971echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
27972 { (exit 1); exit 1; }; }
27973 else
27974 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
27975echo "${ECHO_T}$MGL_ROOT" >&6
27976 fi
27977
27978 echo "$as_me:$LINENO: checking for libmgl location" >&5
27979echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
27980 case "${host}" in
27981 *-*-linux* )
27982 if test "x$wxUSE_SHARED" = xyes ; then
27983 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
27984 else
27985 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
27986 fi
27987 ;;
27988 *-pc-msdosdjgpp )
27989 mgl_os_candidates="dos32/dj2"
27990 ;;
27991 *)
27992 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
27993echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
27994 { (exit 1); exit 1; }; }
27995 esac
27996
27997 mgl_lib_type=""
27998 mgl_os=""
27999
28000 for mgl_os_i in $mgl_os_candidates ; do
28001 if test "x$mgl_os" = x ; then
28002 if test "$wxUSE_DEBUG_FLAG" = yes ; then
28003 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
28004 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
28005 mgl_lib_type=debug
28006 mgl_os=$mgl_os_i
28007 fi
28008 fi
28009 if test "x$mgl_lib_type" = x ; then
28010 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
28011 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
28012 mgl_lib_type=release
28013 mgl_os=$mgl_os_i
28014 fi
28015 fi
28016 fi
28017 done
28018
28019 if test "x$mgl_os" = x ; then
28020 echo "$as_me:$LINENO: result: not found" >&5
28021echo "${ECHO_T}not found" >&6
28022 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
28023echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
28024 { (exit 1); exit 1; }; }
28025 fi
28026 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
28027echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
28028
28029 wxUSE_UNIVERSAL="yes"
28030
28031 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
28032 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
28033
28034 AFMINSTALL=afminstall
28035 TOOLKIT=MGL
28036 GUIDIST=MGL_DIST
28037 fi
28038
28039 if test "$wxUSE_MICROWIN" = 1; then
28040 echo "$as_me:$LINENO: checking for MicroWindows" >&5
28041echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
28042 if test "x$MICROWINDOWS" = x ; then
28043 echo "$as_me:$LINENO: result: not found" >&5
28044echo "${ECHO_T}not found" >&6
28045 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
28046echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
28047 { (exit 1); exit 1; }; }
28048 else
28049 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
28050echo "${ECHO_T}$MICROWINDOWS" >&6
28051 fi
28052
28053 if test -f $MICROWINDOWS/lib/libmwin.a; then
28054 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
28055echo "${ECHO_T}MicroWindows' libraries found." >&6
28056 else
28057 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
28058echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
28059 { (exit 1); exit 1; }; }
28060 fi
28061
28062 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
28063 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
28064
28065 wxUSE_UNIVERSAL="yes"
28066
28067 AFMINSTALL=afminstall
28068 TOOLKIT=MICROWIN
28069 GUIDIST=MICROWIN_DIST
28070
28071 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
28072 fi
28073
74b84332 28074 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
5d7b7554
VZ
28075
28076if test "x$ac_path_x_has_been_run" != xyes; then
28077 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
28078echo $ECHO_N "checking for X... $ECHO_C" >&6
28079
5d7b7554 28080ac_path_x_has_been_run=yes
a848cd7e
SC
28081
28082# Check whether --with-x or --without-x was given.
28083if test "${with_x+set}" = set; then
28084 withval="$with_x"
28085
28086fi;
28087# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
28088if test "x$with_x" = xno; then
28089 # The user explicitly disabled X.
28090 have_x=disabled
28091else
28092 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
28093 # Both variables are already set.
28094 have_x=yes
28095 else
28096 if test "${ac_cv_have_x+set}" = set; then
28097 echo $ECHO_N "(cached) $ECHO_C" >&6
28098else
28099 # One or both of the vars are not set, and there is no cached value.
28100ac_x_includes=no ac_x_libraries=no
28101rm -fr conftest.dir
28102if mkdir conftest.dir; then
28103 cd conftest.dir
28104 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
28105 cat >Imakefile <<'_ACEOF'
28106acfindx:
28107 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
28108_ACEOF
28109 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
28110 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
28111 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
28112 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
28113 for ac_extension in a so sl; do
28114 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
28115 test -f $ac_im_libdir/libX11.$ac_extension; then
28116 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
28117 fi
28118 done
28119 # Screen out bogus values from the imake configuration. They are
28120 # bogus both because they are the default anyway, and because
28121 # using them would break gcc on systems where it needs fixed includes.
28122 case $ac_im_incroot in
28123 /usr/include) ;;
28124 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
28125 esac
28126 case $ac_im_usrlibdir in
28127 /usr/lib | /lib) ;;
28128 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
28129 esac
28130 fi
28131 cd ..
28132 rm -fr conftest.dir
28133fi
28134
28135# Standard set of common directories for X headers.
28136# Check X11 before X11Rn because it is often a symlink to the current release.
28137ac_x_header_dirs='
28138/usr/X11/include
28139/usr/X11R6/include
28140/usr/X11R5/include
28141/usr/X11R4/include
28142
28143/usr/include/X11
28144/usr/include/X11R6
28145/usr/include/X11R5
28146/usr/include/X11R4
28147
28148/usr/local/X11/include
28149/usr/local/X11R6/include
28150/usr/local/X11R5/include
28151/usr/local/X11R4/include
28152
28153/usr/local/include/X11
28154/usr/local/include/X11R6
28155/usr/local/include/X11R5
28156/usr/local/include/X11R4
28157
28158/usr/X386/include
28159/usr/x386/include
28160/usr/XFree86/include/X11
28161
28162/usr/include
28163/usr/local/include
28164/usr/unsupported/include
28165/usr/athena/include
28166/usr/local/x11r5/include
28167/usr/lpp/Xamples/include
28168
28169/usr/openwin/include
28170/usr/openwin/share/include'
28171
28172if test "$ac_x_includes" = no; then
5d7b7554 28173 # Guess where to find include files, by looking for a specified header file.
a848cd7e
SC
28174 # First, try using that file with no special directory specified.
28175 cat >conftest.$ac_ext <<_ACEOF
28176/* confdefs.h. */
28177_ACEOF
28178cat confdefs.h >>conftest.$ac_ext
28179cat >>conftest.$ac_ext <<_ACEOF
28180/* end confdefs.h. */
1b52ba67 28181#include <X11/Xlib.h>
a848cd7e
SC
28182_ACEOF
28183if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28184 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28185 ac_status=$?
28186 grep -v '^ *+' conftest.er1 >conftest.err
28187 rm -f conftest.er1
28188 cat conftest.err >&5
28189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28190 (exit $ac_status); } >/dev/null; then
28191 if test -s conftest.err; then
5d7b7554
VZ
28192 ac_cpp_err=$ac_cxx_preproc_warn_flag
28193 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
28194 else
28195 ac_cpp_err=
28196 fi
28197else
28198 ac_cpp_err=yes
28199fi
28200if test -z "$ac_cpp_err"; then
28201 # We can compile using X headers with no special include directory.
28202ac_x_includes=
28203else
28204 echo "$as_me: failed program was:" >&5
28205sed 's/^/| /' conftest.$ac_ext >&5
28206
28207 for ac_dir in $ac_x_header_dirs; do
1b52ba67 28208 if test -r "$ac_dir/X11/Xlib.h"; then
a848cd7e
SC
28209 ac_x_includes=$ac_dir
28210 break
28211 fi
28212done
28213fi
28214rm -f conftest.err conftest.$ac_ext
28215fi # $ac_x_includes = no
28216
28217if test "$ac_x_libraries" = no; then
28218 # Check for the libraries.
28219 # See if we find them without any special options.
28220 # Don't add to $LIBS permanently.
28221 ac_save_LIBS=$LIBS
1b52ba67 28222 LIBS="-lX11 $LIBS"
a848cd7e
SC
28223 cat >conftest.$ac_ext <<_ACEOF
28224/* confdefs.h. */
28225_ACEOF
28226cat confdefs.h >>conftest.$ac_ext
28227cat >>conftest.$ac_ext <<_ACEOF
28228/* end confdefs.h. */
1b52ba67 28229#include <X11/Xlib.h>
a848cd7e
SC
28230int
28231main ()
28232{
1b52ba67 28233XrmInitialize ()
a848cd7e
SC
28234 ;
28235 return 0;
28236}
28237_ACEOF
28238rm -f conftest.$ac_objext conftest$ac_exeext
28239if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28240 (eval $ac_link) 2>conftest.er1
a848cd7e 28241 ac_status=$?
ac1cb8d3
VS
28242 grep -v '^ *+' conftest.er1 >conftest.err
28243 rm -f conftest.er1
28244 cat conftest.err >&5
a848cd7e
SC
28245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28246 (exit $ac_status); } &&
5d7b7554 28247 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28249 (eval $ac_try) 2>&5
28250 ac_status=$?
28251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28252 (exit $ac_status); }; } &&
28253 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28255 (eval $ac_try) 2>&5
28256 ac_status=$?
28257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28258 (exit $ac_status); }; }; then
28259 LIBS=$ac_save_LIBS
28260# We can link X programs with no special library path.
28261ac_x_libraries=
28262else
28263 echo "$as_me: failed program was:" >&5
28264sed 's/^/| /' conftest.$ac_ext >&5
28265
28266LIBS=$ac_save_LIBS
28267for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
28268do
28269 # Don't even attempt the hair of trying to link an X program!
28270 for ac_extension in a so sl; do
1b52ba67 28271 if test -r $ac_dir/libX11.$ac_extension; then
a848cd7e
SC
28272 ac_x_libraries=$ac_dir
28273 break 2
28274 fi
28275 done
28276done
28277fi
ac1cb8d3
VS
28278rm -f conftest.err conftest.$ac_objext \
28279 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28280fi # $ac_x_libraries = no
28281
28282if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
28283 # Didn't find X anywhere. Cache the known absence of X.
28284 ac_cv_have_x="have_x=no"
28285else
28286 # Record where we found X for the cache.
28287 ac_cv_have_x="have_x=yes \
ac1cb8d3 28288 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
28289fi
28290fi
28291
28292 fi
28293 eval "$ac_cv_have_x"
28294fi # $with_x != no
28295
28296if test "$have_x" != yes; then
28297 echo "$as_me:$LINENO: result: $have_x" >&5
28298echo "${ECHO_T}$have_x" >&6
28299 no_x=yes
28300else
28301 # If each of the values was on the command line, it overrides each guess.
28302 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
28303 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
28304 # Update the cache value to reflect the command line values.
28305 ac_cv_have_x="have_x=yes \
28306 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5d7b7554
VZ
28307 # It might be that x_includes is empty (headers are found in the
28308 # standard search path. Then output the corresponding message
28309 ac_out_x_includes=$x_includes
28310 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
28311 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
28312echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
a848cd7e
SC
28313fi
28314
5d7b7554 28315fi
a848cd7e
SC
28316if test "$no_x" = yes; then
28317 # Not all programs may use this symbol, but it does not hurt to define it.
28318
28319cat >>confdefs.h <<\_ACEOF
28320#define X_DISPLAY_MISSING 1
28321_ACEOF
28322
28323 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
28324else
28325 if test -n "$x_includes"; then
28326 X_CFLAGS="$X_CFLAGS -I$x_includes"
28327 fi
28328
28329 # It would also be nice to do this for all -L options, not just this one.
28330 if test -n "$x_libraries"; then
28331 X_LIBS="$X_LIBS -L$x_libraries"
28332 # For Solaris; some versions of Sun CC require a space after -R and
28333 # others require no space. Words are not sufficient . . . .
28334 case `(uname -sr) 2>/dev/null` in
28335 "SunOS 5"*)
28336 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
28337echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
28338 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
28339 cat >conftest.$ac_ext <<_ACEOF
28340/* confdefs.h. */
28341_ACEOF
28342cat confdefs.h >>conftest.$ac_ext
28343cat >>conftest.$ac_ext <<_ACEOF
28344/* end confdefs.h. */
28345
28346int
28347main ()
28348{
28349
28350 ;
28351 return 0;
28352}
28353_ACEOF
28354rm -f conftest.$ac_objext conftest$ac_exeext
28355if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28356 (eval $ac_link) 2>conftest.er1
a848cd7e 28357 ac_status=$?
ac1cb8d3
VS
28358 grep -v '^ *+' conftest.er1 >conftest.err
28359 rm -f conftest.er1
28360 cat conftest.err >&5
a848cd7e
SC
28361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28362 (exit $ac_status); } &&
5d7b7554 28363 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28365 (eval $ac_try) 2>&5
28366 ac_status=$?
28367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28368 (exit $ac_status); }; } &&
28369 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28371 (eval $ac_try) 2>&5
28372 ac_status=$?
28373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28374 (exit $ac_status); }; }; then
28375 ac_R_nospace=yes
28376else
28377 echo "$as_me: failed program was:" >&5
28378sed 's/^/| /' conftest.$ac_ext >&5
28379
28380ac_R_nospace=no
28381fi
ac1cb8d3
VS
28382rm -f conftest.err conftest.$ac_objext \
28383 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28384 if test $ac_R_nospace = yes; then
28385 echo "$as_me:$LINENO: result: no" >&5
28386echo "${ECHO_T}no" >&6
28387 X_LIBS="$X_LIBS -R$x_libraries"
28388 else
28389 LIBS="$ac_xsave_LIBS -R $x_libraries"
28390 cat >conftest.$ac_ext <<_ACEOF
28391/* confdefs.h. */
28392_ACEOF
28393cat confdefs.h >>conftest.$ac_ext
28394cat >>conftest.$ac_ext <<_ACEOF
28395/* end confdefs.h. */
28396
28397int
28398main ()
28399{
28400
28401 ;
28402 return 0;
28403}
28404_ACEOF
28405rm -f conftest.$ac_objext conftest$ac_exeext
28406if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28407 (eval $ac_link) 2>conftest.er1
a848cd7e 28408 ac_status=$?
ac1cb8d3
VS
28409 grep -v '^ *+' conftest.er1 >conftest.err
28410 rm -f conftest.er1
28411 cat conftest.err >&5
a848cd7e
SC
28412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28413 (exit $ac_status); } &&
5d7b7554 28414 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28416 (eval $ac_try) 2>&5
28417 ac_status=$?
28418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28419 (exit $ac_status); }; } &&
28420 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28422 (eval $ac_try) 2>&5
28423 ac_status=$?
28424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28425 (exit $ac_status); }; }; then
28426 ac_R_space=yes
28427else
28428 echo "$as_me: failed program was:" >&5
28429sed 's/^/| /' conftest.$ac_ext >&5
28430
28431ac_R_space=no
28432fi
ac1cb8d3
VS
28433rm -f conftest.err conftest.$ac_objext \
28434 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28435 if test $ac_R_space = yes; then
28436 echo "$as_me:$LINENO: result: yes" >&5
28437echo "${ECHO_T}yes" >&6
28438 X_LIBS="$X_LIBS -R $x_libraries"
28439 else
28440 echo "$as_me:$LINENO: result: neither works" >&5
28441echo "${ECHO_T}neither works" >&6
28442 fi
28443 fi
28444 LIBS=$ac_xsave_LIBS
28445 esac
28446 fi
28447
28448 # Check for system-dependent libraries X programs must link with.
28449 # Do this before checking for the system-independent R6 libraries
28450 # (-lICE), since we may need -lsocket or whatever for X linking.
28451
28452 if test "$ISC" = yes; then
28453 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
28454 else
28455 # Martyn Johnson says this is needed for Ultrix, if the X
28456 # libraries were built with DECnet support. And Karl Berry says
28457 # the Alpha needs dnet_stub (dnet does not exist).
28458 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
28459 cat >conftest.$ac_ext <<_ACEOF
28460/* confdefs.h. */
28461_ACEOF
28462cat confdefs.h >>conftest.$ac_ext
28463cat >>conftest.$ac_ext <<_ACEOF
28464/* end confdefs.h. */
28465
28466/* Override any gcc2 internal prototype to avoid an error. */
28467#ifdef __cplusplus
28468extern "C"
28469#endif
28470/* We use char because int might match the return type of a gcc2
28471 builtin and then its argument prototype would still apply. */
28472char XOpenDisplay ();
28473int
28474main ()
28475{
28476XOpenDisplay ();
28477 ;
28478 return 0;
28479}
28480_ACEOF
28481rm -f conftest.$ac_objext conftest$ac_exeext
28482if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28483 (eval $ac_link) 2>conftest.er1
a848cd7e 28484 ac_status=$?
ac1cb8d3
VS
28485 grep -v '^ *+' conftest.er1 >conftest.err
28486 rm -f conftest.er1
28487 cat conftest.err >&5
a848cd7e
SC
28488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28489 (exit $ac_status); } &&
5d7b7554 28490 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28492 (eval $ac_try) 2>&5
28493 ac_status=$?
28494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28495 (exit $ac_status); }; } &&
28496 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28498 (eval $ac_try) 2>&5
28499 ac_status=$?
28500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28501 (exit $ac_status); }; }; then
28502 :
28503else
28504 echo "$as_me: failed program was:" >&5
28505sed 's/^/| /' conftest.$ac_ext >&5
28506
28507echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
28508echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
28509if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
28510 echo $ECHO_N "(cached) $ECHO_C" >&6
28511else
28512 ac_check_lib_save_LIBS=$LIBS
28513LIBS="-ldnet $LIBS"
28514cat >conftest.$ac_ext <<_ACEOF
28515/* confdefs.h. */
28516_ACEOF
28517cat confdefs.h >>conftest.$ac_ext
28518cat >>conftest.$ac_ext <<_ACEOF
28519/* end confdefs.h. */
28520
28521/* Override any gcc2 internal prototype to avoid an error. */
28522#ifdef __cplusplus
28523extern "C"
28524#endif
28525/* We use char because int might match the return type of a gcc2
28526 builtin and then its argument prototype would still apply. */
28527char dnet_ntoa ();
28528int
28529main ()
28530{
28531dnet_ntoa ();
28532 ;
28533 return 0;
28534}
28535_ACEOF
28536rm -f conftest.$ac_objext conftest$ac_exeext
28537if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28538 (eval $ac_link) 2>conftest.er1
a848cd7e 28539 ac_status=$?
ac1cb8d3
VS
28540 grep -v '^ *+' conftest.er1 >conftest.err
28541 rm -f conftest.er1
28542 cat conftest.err >&5
a848cd7e
SC
28543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28544 (exit $ac_status); } &&
5d7b7554 28545 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28547 (eval $ac_try) 2>&5
28548 ac_status=$?
28549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28550 (exit $ac_status); }; } &&
28551 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28553 (eval $ac_try) 2>&5
28554 ac_status=$?
28555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28556 (exit $ac_status); }; }; then
28557 ac_cv_lib_dnet_dnet_ntoa=yes
28558else
28559 echo "$as_me: failed program was:" >&5
28560sed 's/^/| /' conftest.$ac_ext >&5
28561
28562ac_cv_lib_dnet_dnet_ntoa=no
28563fi
ac1cb8d3
VS
28564rm -f conftest.err conftest.$ac_objext \
28565 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28566LIBS=$ac_check_lib_save_LIBS
28567fi
28568echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
28569echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
28570if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
28571 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
28572fi
28573
28574 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
28575 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
28576echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
28577if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
28578 echo $ECHO_N "(cached) $ECHO_C" >&6
28579else
28580 ac_check_lib_save_LIBS=$LIBS
28581LIBS="-ldnet_stub $LIBS"
28582cat >conftest.$ac_ext <<_ACEOF
28583/* confdefs.h. */
28584_ACEOF
28585cat confdefs.h >>conftest.$ac_ext
28586cat >>conftest.$ac_ext <<_ACEOF
28587/* end confdefs.h. */
28588
28589/* Override any gcc2 internal prototype to avoid an error. */
28590#ifdef __cplusplus
28591extern "C"
28592#endif
28593/* We use char because int might match the return type of a gcc2
28594 builtin and then its argument prototype would still apply. */
28595char dnet_ntoa ();
28596int
28597main ()
28598{
28599dnet_ntoa ();
28600 ;
28601 return 0;
28602}
28603_ACEOF
28604rm -f conftest.$ac_objext conftest$ac_exeext
28605if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28606 (eval $ac_link) 2>conftest.er1
a848cd7e 28607 ac_status=$?
ac1cb8d3
VS
28608 grep -v '^ *+' conftest.er1 >conftest.err
28609 rm -f conftest.er1
28610 cat conftest.err >&5
a848cd7e
SC
28611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28612 (exit $ac_status); } &&
5d7b7554 28613 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28615 (eval $ac_try) 2>&5
28616 ac_status=$?
28617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28618 (exit $ac_status); }; } &&
28619 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28621 (eval $ac_try) 2>&5
28622 ac_status=$?
28623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28624 (exit $ac_status); }; }; then
28625 ac_cv_lib_dnet_stub_dnet_ntoa=yes
28626else
28627 echo "$as_me: failed program was:" >&5
28628sed 's/^/| /' conftest.$ac_ext >&5
28629
28630ac_cv_lib_dnet_stub_dnet_ntoa=no
28631fi
ac1cb8d3
VS
28632rm -f conftest.err conftest.$ac_objext \
28633 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28634LIBS=$ac_check_lib_save_LIBS
28635fi
28636echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
28637echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
28638if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
28639 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
28640fi
28641
28642 fi
28643fi
ac1cb8d3
VS
28644rm -f conftest.err conftest.$ac_objext \
28645 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28646 LIBS="$ac_xsave_LIBS"
28647
28648 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
28649 # to get the SysV transport functions.
28650 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
28651 # needs -lnsl.
28652 # The nsl library prevents programs from opening the X display
28653 # on Irix 5.2, according to T.E. Dickey.
28654 # The functions gethostbyname, getservbyname, and inet_addr are
28655 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
28656 echo "$as_me:$LINENO: checking for gethostbyname" >&5
28657echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
28658if test "${ac_cv_func_gethostbyname+set}" = set; then
28659 echo $ECHO_N "(cached) $ECHO_C" >&6
28660else
28661 cat >conftest.$ac_ext <<_ACEOF
28662/* confdefs.h. */
28663_ACEOF
28664cat confdefs.h >>conftest.$ac_ext
28665cat >>conftest.$ac_ext <<_ACEOF
28666/* end confdefs.h. */
ac1cb8d3
VS
28667/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
28668 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28669#define gethostbyname innocuous_gethostbyname
28670
a848cd7e
SC
28671/* System header to define __stub macros and hopefully few prototypes,
28672 which can conflict with char gethostbyname (); below.
28673 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28674 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28675
a848cd7e
SC
28676#ifdef __STDC__
28677# include <limits.h>
28678#else
28679# include <assert.h>
28680#endif
ac1cb8d3
VS
28681
28682#undef gethostbyname
28683
a848cd7e
SC
28684/* Override any gcc2 internal prototype to avoid an error. */
28685#ifdef __cplusplus
28686extern "C"
28687{
28688#endif
28689/* We use char because int might match the return type of a gcc2
28690 builtin and then its argument prototype would still apply. */
28691char gethostbyname ();
28692/* The GNU C library defines this for functions which it implements
28693 to always fail with ENOSYS. Some functions are actually named
28694 something starting with __ and the normal name is an alias. */
28695#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
28696choke me
28697#else
28698char (*f) () = gethostbyname;
28699#endif
28700#ifdef __cplusplus
28701}
28702#endif
28703
28704int
28705main ()
28706{
28707return f != gethostbyname;
28708 ;
28709 return 0;
28710}
28711_ACEOF
28712rm -f conftest.$ac_objext conftest$ac_exeext
28713if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28714 (eval $ac_link) 2>conftest.er1
a848cd7e 28715 ac_status=$?
ac1cb8d3
VS
28716 grep -v '^ *+' conftest.er1 >conftest.err
28717 rm -f conftest.er1
28718 cat conftest.err >&5
a848cd7e
SC
28719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28720 (exit $ac_status); } &&
5d7b7554 28721 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28723 (eval $ac_try) 2>&5
28724 ac_status=$?
28725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28726 (exit $ac_status); }; } &&
28727 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28729 (eval $ac_try) 2>&5
28730 ac_status=$?
28731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28732 (exit $ac_status); }; }; then
28733 ac_cv_func_gethostbyname=yes
28734else
28735 echo "$as_me: failed program was:" >&5
28736sed 's/^/| /' conftest.$ac_ext >&5
28737
28738ac_cv_func_gethostbyname=no
28739fi
ac1cb8d3
VS
28740rm -f conftest.err conftest.$ac_objext \
28741 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28742fi
28743echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
28744echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
28745
28746 if test $ac_cv_func_gethostbyname = no; then
28747 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
28748echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
28749if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
28750 echo $ECHO_N "(cached) $ECHO_C" >&6
28751else
28752 ac_check_lib_save_LIBS=$LIBS
28753LIBS="-lnsl $LIBS"
28754cat >conftest.$ac_ext <<_ACEOF
28755/* confdefs.h. */
28756_ACEOF
28757cat confdefs.h >>conftest.$ac_ext
28758cat >>conftest.$ac_ext <<_ACEOF
28759/* end confdefs.h. */
28760
28761/* Override any gcc2 internal prototype to avoid an error. */
28762#ifdef __cplusplus
28763extern "C"
28764#endif
28765/* We use char because int might match the return type of a gcc2
28766 builtin and then its argument prototype would still apply. */
28767char gethostbyname ();
28768int
28769main ()
28770{
28771gethostbyname ();
28772 ;
28773 return 0;
28774}
28775_ACEOF
28776rm -f conftest.$ac_objext conftest$ac_exeext
28777if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
28778 (eval $ac_link) 2>conftest.er1
28779 ac_status=$?
28780 grep -v '^ *+' conftest.er1 >conftest.err
28781 rm -f conftest.er1
28782 cat conftest.err >&5
28783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28784 (exit $ac_status); } &&
5d7b7554 28785 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28787 (eval $ac_try) 2>&5
28788 ac_status=$?
28789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28790 (exit $ac_status); }; } &&
28791 { ac_try='test -s conftest$ac_exeext'
28792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28793 (eval $ac_try) 2>&5
28794 ac_status=$?
28795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28796 (exit $ac_status); }; }; then
28797 ac_cv_lib_nsl_gethostbyname=yes
28798else
28799 echo "$as_me: failed program was:" >&5
28800sed 's/^/| /' conftest.$ac_ext >&5
28801
28802ac_cv_lib_nsl_gethostbyname=no
28803fi
28804rm -f conftest.err conftest.$ac_objext \
28805 conftest$ac_exeext conftest.$ac_ext
28806LIBS=$ac_check_lib_save_LIBS
28807fi
28808echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
28809echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
28810if test $ac_cv_lib_nsl_gethostbyname = yes; then
28811 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
28812fi
28813
28814 if test $ac_cv_lib_nsl_gethostbyname = no; then
28815 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
28816echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
28817if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
28818 echo $ECHO_N "(cached) $ECHO_C" >&6
28819else
28820 ac_check_lib_save_LIBS=$LIBS
28821LIBS="-lbsd $LIBS"
28822cat >conftest.$ac_ext <<_ACEOF
28823/* confdefs.h. */
28824_ACEOF
28825cat confdefs.h >>conftest.$ac_ext
28826cat >>conftest.$ac_ext <<_ACEOF
28827/* end confdefs.h. */
28828
28829/* Override any gcc2 internal prototype to avoid an error. */
28830#ifdef __cplusplus
28831extern "C"
28832#endif
28833/* We use char because int might match the return type of a gcc2
28834 builtin and then its argument prototype would still apply. */
28835char gethostbyname ();
28836int
28837main ()
28838{
28839gethostbyname ();
28840 ;
28841 return 0;
28842}
28843_ACEOF
28844rm -f conftest.$ac_objext conftest$ac_exeext
28845if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28846 (eval $ac_link) 2>conftest.er1
a848cd7e 28847 ac_status=$?
ac1cb8d3
VS
28848 grep -v '^ *+' conftest.er1 >conftest.err
28849 rm -f conftest.er1
28850 cat conftest.err >&5
a848cd7e
SC
28851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28852 (exit $ac_status); } &&
5d7b7554 28853 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
28854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28855 (eval $ac_try) 2>&5
28856 ac_status=$?
28857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
28858 (exit $ac_status); }; } &&
28859 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28861 (eval $ac_try) 2>&5
28862 ac_status=$?
28863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28864 (exit $ac_status); }; }; then
28865 ac_cv_lib_bsd_gethostbyname=yes
28866else
28867 echo "$as_me: failed program was:" >&5
28868sed 's/^/| /' conftest.$ac_ext >&5
28869
28870ac_cv_lib_bsd_gethostbyname=no
28871fi
ac1cb8d3
VS
28872rm -f conftest.err conftest.$ac_objext \
28873 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28874LIBS=$ac_check_lib_save_LIBS
28875fi
28876echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
28877echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
28878if test $ac_cv_lib_bsd_gethostbyname = yes; then
28879 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
28880fi
28881
28882 fi
28883 fi
28884
28885 # lieder@skyler.mavd.honeywell.com says without -lsocket,
28886 # socket/setsockopt and other routines are undefined under SCO ODT
28887 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
28888 # on later versions), says Simon Leinen: it contains gethostby*
28889 # variants that don't use the name server (or something). -lsocket
28890 # must be given before -lnsl if both are needed. We assume that
28891 # if connect needs -lnsl, so does gethostbyname.
28892 echo "$as_me:$LINENO: checking for connect" >&5
28893echo $ECHO_N "checking for connect... $ECHO_C" >&6
28894if test "${ac_cv_func_connect+set}" = set; then
28895 echo $ECHO_N "(cached) $ECHO_C" >&6
28896else
28897 cat >conftest.$ac_ext <<_ACEOF
28898/* confdefs.h. */
28899_ACEOF
28900cat confdefs.h >>conftest.$ac_ext
28901cat >>conftest.$ac_ext <<_ACEOF
28902/* end confdefs.h. */
ac1cb8d3
VS
28903/* Define connect to an innocuous variant, in case <limits.h> declares connect.
28904 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28905#define connect innocuous_connect
28906
a848cd7e
SC
28907/* System header to define __stub macros and hopefully few prototypes,
28908 which can conflict with char connect (); below.
28909 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28910 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28911
a848cd7e
SC
28912#ifdef __STDC__
28913# include <limits.h>
28914#else
28915# include <assert.h>
28916#endif
ac1cb8d3
VS
28917
28918#undef connect
28919
a848cd7e
SC
28920/* Override any gcc2 internal prototype to avoid an error. */
28921#ifdef __cplusplus
28922extern "C"
28923{
28924#endif
28925/* We use char because int might match the return type of a gcc2
28926 builtin and then its argument prototype would still apply. */
28927char connect ();
28928/* The GNU C library defines this for functions which it implements
28929 to always fail with ENOSYS. Some functions are actually named
28930 something starting with __ and the normal name is an alias. */
28931#if defined (__stub_connect) || defined (__stub___connect)
28932choke me
28933#else
28934char (*f) () = connect;
28935#endif
28936#ifdef __cplusplus
28937}
28938#endif
28939
28940int
28941main ()
28942{
28943return f != connect;
28944 ;
28945 return 0;
28946}
28947_ACEOF
28948rm -f conftest.$ac_objext conftest$ac_exeext
28949if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28950 (eval $ac_link) 2>conftest.er1
a848cd7e 28951 ac_status=$?
ac1cb8d3
VS
28952 grep -v '^ *+' conftest.er1 >conftest.err
28953 rm -f conftest.er1
28954 cat conftest.err >&5
a848cd7e
SC
28955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28956 (exit $ac_status); } &&
5d7b7554 28957 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28959 (eval $ac_try) 2>&5
28960 ac_status=$?
28961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28962 (exit $ac_status); }; } &&
28963 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28965 (eval $ac_try) 2>&5
28966 ac_status=$?
28967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28968 (exit $ac_status); }; }; then
28969 ac_cv_func_connect=yes
28970else
28971 echo "$as_me: failed program was:" >&5
28972sed 's/^/| /' conftest.$ac_ext >&5
28973
28974ac_cv_func_connect=no
28975fi
ac1cb8d3
VS
28976rm -f conftest.err conftest.$ac_objext \
28977 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28978fi
28979echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
28980echo "${ECHO_T}$ac_cv_func_connect" >&6
28981
28982 if test $ac_cv_func_connect = no; then
28983 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
28984echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
28985if test "${ac_cv_lib_socket_connect+set}" = set; then
28986 echo $ECHO_N "(cached) $ECHO_C" >&6
28987else
28988 ac_check_lib_save_LIBS=$LIBS
28989LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
28990cat >conftest.$ac_ext <<_ACEOF
28991/* confdefs.h. */
28992_ACEOF
28993cat confdefs.h >>conftest.$ac_ext
28994cat >>conftest.$ac_ext <<_ACEOF
28995/* end confdefs.h. */
28996
28997/* Override any gcc2 internal prototype to avoid an error. */
28998#ifdef __cplusplus
28999extern "C"
29000#endif
29001/* We use char because int might match the return type of a gcc2
29002 builtin and then its argument prototype would still apply. */
29003char connect ();
29004int
29005main ()
29006{
29007connect ();
29008 ;
29009 return 0;
29010}
29011_ACEOF
29012rm -f conftest.$ac_objext conftest$ac_exeext
29013if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29014 (eval $ac_link) 2>conftest.er1
a848cd7e 29015 ac_status=$?
ac1cb8d3
VS
29016 grep -v '^ *+' conftest.er1 >conftest.err
29017 rm -f conftest.er1
29018 cat conftest.err >&5
a848cd7e
SC
29019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29020 (exit $ac_status); } &&
5d7b7554 29021 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29023 (eval $ac_try) 2>&5
29024 ac_status=$?
29025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29026 (exit $ac_status); }; } &&
29027 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29029 (eval $ac_try) 2>&5
29030 ac_status=$?
29031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29032 (exit $ac_status); }; }; then
29033 ac_cv_lib_socket_connect=yes
29034else
29035 echo "$as_me: failed program was:" >&5
29036sed 's/^/| /' conftest.$ac_ext >&5
29037
29038ac_cv_lib_socket_connect=no
29039fi
ac1cb8d3
VS
29040rm -f conftest.err conftest.$ac_objext \
29041 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29042LIBS=$ac_check_lib_save_LIBS
29043fi
29044echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
29045echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
29046if test $ac_cv_lib_socket_connect = yes; then
29047 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
29048fi
29049
29050 fi
29051
29052 # Guillermo Gomez says -lposix is necessary on A/UX.
29053 echo "$as_me:$LINENO: checking for remove" >&5
29054echo $ECHO_N "checking for remove... $ECHO_C" >&6
29055if test "${ac_cv_func_remove+set}" = set; then
29056 echo $ECHO_N "(cached) $ECHO_C" >&6
29057else
29058 cat >conftest.$ac_ext <<_ACEOF
29059/* confdefs.h. */
29060_ACEOF
29061cat confdefs.h >>conftest.$ac_ext
29062cat >>conftest.$ac_ext <<_ACEOF
29063/* end confdefs.h. */
ac1cb8d3
VS
29064/* Define remove to an innocuous variant, in case <limits.h> declares remove.
29065 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29066#define remove innocuous_remove
29067
a848cd7e
SC
29068/* System header to define __stub macros and hopefully few prototypes,
29069 which can conflict with char remove (); below.
29070 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29071 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29072
a848cd7e
SC
29073#ifdef __STDC__
29074# include <limits.h>
29075#else
29076# include <assert.h>
29077#endif
ac1cb8d3
VS
29078
29079#undef remove
29080
a848cd7e
SC
29081/* Override any gcc2 internal prototype to avoid an error. */
29082#ifdef __cplusplus
29083extern "C"
29084{
29085#endif
29086/* We use char because int might match the return type of a gcc2
29087 builtin and then its argument prototype would still apply. */
29088char remove ();
29089/* The GNU C library defines this for functions which it implements
29090 to always fail with ENOSYS. Some functions are actually named
29091 something starting with __ and the normal name is an alias. */
29092#if defined (__stub_remove) || defined (__stub___remove)
29093choke me
29094#else
29095char (*f) () = remove;
29096#endif
29097#ifdef __cplusplus
29098}
29099#endif
29100
29101int
29102main ()
29103{
29104return f != remove;
29105 ;
29106 return 0;
29107}
29108_ACEOF
29109rm -f conftest.$ac_objext conftest$ac_exeext
29110if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29111 (eval $ac_link) 2>conftest.er1
a848cd7e 29112 ac_status=$?
ac1cb8d3
VS
29113 grep -v '^ *+' conftest.er1 >conftest.err
29114 rm -f conftest.er1
29115 cat conftest.err >&5
a848cd7e
SC
29116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29117 (exit $ac_status); } &&
5d7b7554 29118 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29120 (eval $ac_try) 2>&5
29121 ac_status=$?
29122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29123 (exit $ac_status); }; } &&
29124 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29126 (eval $ac_try) 2>&5
29127 ac_status=$?
29128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29129 (exit $ac_status); }; }; then
29130 ac_cv_func_remove=yes
29131else
29132 echo "$as_me: failed program was:" >&5
29133sed 's/^/| /' conftest.$ac_ext >&5
29134
29135ac_cv_func_remove=no
29136fi
ac1cb8d3
VS
29137rm -f conftest.err conftest.$ac_objext \
29138 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29139fi
29140echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
29141echo "${ECHO_T}$ac_cv_func_remove" >&6
29142
29143 if test $ac_cv_func_remove = no; then
29144 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
29145echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
29146if test "${ac_cv_lib_posix_remove+set}" = set; then
29147 echo $ECHO_N "(cached) $ECHO_C" >&6
29148else
29149 ac_check_lib_save_LIBS=$LIBS
29150LIBS="-lposix $LIBS"
29151cat >conftest.$ac_ext <<_ACEOF
29152/* confdefs.h. */
29153_ACEOF
29154cat confdefs.h >>conftest.$ac_ext
29155cat >>conftest.$ac_ext <<_ACEOF
29156/* end confdefs.h. */
29157
29158/* Override any gcc2 internal prototype to avoid an error. */
29159#ifdef __cplusplus
29160extern "C"
29161#endif
29162/* We use char because int might match the return type of a gcc2
29163 builtin and then its argument prototype would still apply. */
29164char remove ();
29165int
29166main ()
29167{
29168remove ();
29169 ;
29170 return 0;
29171}
29172_ACEOF
29173rm -f conftest.$ac_objext conftest$ac_exeext
29174if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29175 (eval $ac_link) 2>conftest.er1
a848cd7e 29176 ac_status=$?
ac1cb8d3
VS
29177 grep -v '^ *+' conftest.er1 >conftest.err
29178 rm -f conftest.er1
29179 cat conftest.err >&5
a848cd7e
SC
29180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29181 (exit $ac_status); } &&
5d7b7554 29182 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29184 (eval $ac_try) 2>&5
29185 ac_status=$?
29186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29187 (exit $ac_status); }; } &&
29188 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29190 (eval $ac_try) 2>&5
29191 ac_status=$?
29192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29193 (exit $ac_status); }; }; then
29194 ac_cv_lib_posix_remove=yes
29195else
29196 echo "$as_me: failed program was:" >&5
29197sed 's/^/| /' conftest.$ac_ext >&5
29198
29199ac_cv_lib_posix_remove=no
29200fi
ac1cb8d3
VS
29201rm -f conftest.err conftest.$ac_objext \
29202 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29203LIBS=$ac_check_lib_save_LIBS
29204fi
29205echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
29206echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
29207if test $ac_cv_lib_posix_remove = yes; then
29208 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
29209fi
29210
29211 fi
29212
29213 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
29214 echo "$as_me:$LINENO: checking for shmat" >&5
29215echo $ECHO_N "checking for shmat... $ECHO_C" >&6
29216if test "${ac_cv_func_shmat+set}" = set; then
29217 echo $ECHO_N "(cached) $ECHO_C" >&6
29218else
29219 cat >conftest.$ac_ext <<_ACEOF
29220/* confdefs.h. */
29221_ACEOF
29222cat confdefs.h >>conftest.$ac_ext
29223cat >>conftest.$ac_ext <<_ACEOF
29224/* end confdefs.h. */
ac1cb8d3
VS
29225/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
29226 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29227#define shmat innocuous_shmat
29228
a848cd7e
SC
29229/* System header to define __stub macros and hopefully few prototypes,
29230 which can conflict with char shmat (); below.
29231 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29232 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29233
a848cd7e
SC
29234#ifdef __STDC__
29235# include <limits.h>
29236#else
29237# include <assert.h>
29238#endif
ac1cb8d3
VS
29239
29240#undef shmat
29241
a848cd7e
SC
29242/* Override any gcc2 internal prototype to avoid an error. */
29243#ifdef __cplusplus
29244extern "C"
29245{
29246#endif
29247/* We use char because int might match the return type of a gcc2
29248 builtin and then its argument prototype would still apply. */
29249char shmat ();
29250/* The GNU C library defines this for functions which it implements
29251 to always fail with ENOSYS. Some functions are actually named
29252 something starting with __ and the normal name is an alias. */
29253#if defined (__stub_shmat) || defined (__stub___shmat)
29254choke me
29255#else
29256char (*f) () = shmat;
29257#endif
29258#ifdef __cplusplus
29259}
29260#endif
29261
29262int
29263main ()
29264{
29265return f != shmat;
29266 ;
29267 return 0;
29268}
29269_ACEOF
29270rm -f conftest.$ac_objext conftest$ac_exeext
29271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29272 (eval $ac_link) 2>conftest.er1
a848cd7e 29273 ac_status=$?
ac1cb8d3
VS
29274 grep -v '^ *+' conftest.er1 >conftest.err
29275 rm -f conftest.er1
29276 cat conftest.err >&5
a848cd7e
SC
29277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29278 (exit $ac_status); } &&
5d7b7554 29279 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29281 (eval $ac_try) 2>&5
29282 ac_status=$?
29283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29284 (exit $ac_status); }; } &&
29285 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29287 (eval $ac_try) 2>&5
29288 ac_status=$?
29289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29290 (exit $ac_status); }; }; then
29291 ac_cv_func_shmat=yes
29292else
29293 echo "$as_me: failed program was:" >&5
29294sed 's/^/| /' conftest.$ac_ext >&5
29295
29296ac_cv_func_shmat=no
29297fi
ac1cb8d3
VS
29298rm -f conftest.err conftest.$ac_objext \
29299 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29300fi
29301echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
29302echo "${ECHO_T}$ac_cv_func_shmat" >&6
29303
29304 if test $ac_cv_func_shmat = no; then
29305 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
29306echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
29307if test "${ac_cv_lib_ipc_shmat+set}" = set; then
29308 echo $ECHO_N "(cached) $ECHO_C" >&6
29309else
29310 ac_check_lib_save_LIBS=$LIBS
29311LIBS="-lipc $LIBS"
29312cat >conftest.$ac_ext <<_ACEOF
29313/* confdefs.h. */
29314_ACEOF
29315cat confdefs.h >>conftest.$ac_ext
29316cat >>conftest.$ac_ext <<_ACEOF
29317/* end confdefs.h. */
29318
29319/* Override any gcc2 internal prototype to avoid an error. */
29320#ifdef __cplusplus
29321extern "C"
29322#endif
29323/* We use char because int might match the return type of a gcc2
29324 builtin and then its argument prototype would still apply. */
29325char shmat ();
29326int
29327main ()
29328{
29329shmat ();
29330 ;
29331 return 0;
29332}
29333_ACEOF
29334rm -f conftest.$ac_objext conftest$ac_exeext
29335if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29336 (eval $ac_link) 2>conftest.er1
a848cd7e 29337 ac_status=$?
ac1cb8d3
VS
29338 grep -v '^ *+' conftest.er1 >conftest.err
29339 rm -f conftest.er1
29340 cat conftest.err >&5
a848cd7e
SC
29341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29342 (exit $ac_status); } &&
5d7b7554 29343 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29345 (eval $ac_try) 2>&5
29346 ac_status=$?
29347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29348 (exit $ac_status); }; } &&
29349 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29351 (eval $ac_try) 2>&5
29352 ac_status=$?
29353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29354 (exit $ac_status); }; }; then
29355 ac_cv_lib_ipc_shmat=yes
29356else
29357 echo "$as_me: failed program was:" >&5
29358sed 's/^/| /' conftest.$ac_ext >&5
29359
29360ac_cv_lib_ipc_shmat=no
29361fi
ac1cb8d3
VS
29362rm -f conftest.err conftest.$ac_objext \
29363 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29364LIBS=$ac_check_lib_save_LIBS
29365fi
29366echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
29367echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
29368if test $ac_cv_lib_ipc_shmat = yes; then
29369 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
29370fi
29371
29372 fi
29373 fi
29374
29375 # Check for libraries that X11R6 Xt/Xaw programs need.
29376 ac_save_LDFLAGS=$LDFLAGS
29377 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
29378 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
29379 # check for ICE first), but we must link in the order -lSM -lICE or
29380 # we get undefined symbols. So assume we have SM if we have ICE.
29381 # These have to be linked with before -lX11, unlike the other
29382 # libraries we check for below, so use a different variable.
29383 # John Interrante, Karl Berry
29384 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
29385echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
29386if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
29387 echo $ECHO_N "(cached) $ECHO_C" >&6
29388else
29389 ac_check_lib_save_LIBS=$LIBS
29390LIBS="-lICE $X_EXTRA_LIBS $LIBS"
29391cat >conftest.$ac_ext <<_ACEOF
29392/* confdefs.h. */
29393_ACEOF
29394cat confdefs.h >>conftest.$ac_ext
29395cat >>conftest.$ac_ext <<_ACEOF
29396/* end confdefs.h. */
29397
29398/* Override any gcc2 internal prototype to avoid an error. */
29399#ifdef __cplusplus
29400extern "C"
29401#endif
29402/* We use char because int might match the return type of a gcc2
29403 builtin and then its argument prototype would still apply. */
29404char IceConnectionNumber ();
29405int
29406main ()
29407{
29408IceConnectionNumber ();
29409 ;
29410 return 0;
29411}
29412_ACEOF
29413rm -f conftest.$ac_objext conftest$ac_exeext
29414if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29415 (eval $ac_link) 2>conftest.er1
a848cd7e 29416 ac_status=$?
ac1cb8d3
VS
29417 grep -v '^ *+' conftest.er1 >conftest.err
29418 rm -f conftest.er1
29419 cat conftest.err >&5
a848cd7e
SC
29420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29421 (exit $ac_status); } &&
5d7b7554 29422 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29424 (eval $ac_try) 2>&5
29425 ac_status=$?
29426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29427 (exit $ac_status); }; } &&
29428 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29430 (eval $ac_try) 2>&5
29431 ac_status=$?
29432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29433 (exit $ac_status); }; }; then
29434 ac_cv_lib_ICE_IceConnectionNumber=yes
29435else
29436 echo "$as_me: failed program was:" >&5
29437sed 's/^/| /' conftest.$ac_ext >&5
29438
29439ac_cv_lib_ICE_IceConnectionNumber=no
29440fi
ac1cb8d3
VS
29441rm -f conftest.err conftest.$ac_objext \
29442 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29443LIBS=$ac_check_lib_save_LIBS
29444fi
29445echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
29446echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
29447if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
29448 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
29449fi
29450
29451 LDFLAGS=$ac_save_LDFLAGS
29452
29453fi
29454
29455
29456 if test "$no_x" = "yes"; then
89d90d6d
VZ
29457 { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
29458echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
29459 { (exit 1); exit 1; }; }
a848cd7e
SC
29460 fi
29461
74b84332
VS
29462 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
29463 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
29464 AFMINSTALL=afminstall
29465 COMPILED_X_PROGRAM=0
29466
74b84332
VS
29467 fi
29468
29469 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
29470 if test "$wxUSE_NANOX" = "yes"; then
29471 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
29472echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
29473 if test "x$MICROWIN" = x ; then
29474 echo "$as_me:$LINENO: result: not found" >&5
29475echo "${ECHO_T}not found" >&6
29476 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
29477echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
29478 { (exit 1); exit 1; }; }
29479 else
29480 echo "$as_me:$LINENO: result: $MICROWIN" >&5
29481echo "${ECHO_T}$MICROWIN" >&6
29482 cat >>confdefs.h <<\_ACEOF
29483#define wxUSE_NANOX 1
29484_ACEOF
29485
29486 fi
29487 fi
29488
29489 if test "$wxUSE_UNICODE" = "yes"; then
29490
29491 succeeded=no
29492
29493 if test -z "$PKG_CONFIG"; then
29494 # Extract the first word of "pkg-config", so it can be a program name with args.
29495set dummy pkg-config; ac_word=$2
29496echo "$as_me:$LINENO: checking for $ac_word" >&5
29497echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29498if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29499 echo $ECHO_N "(cached) $ECHO_C" >&6
29500else
29501 case $PKG_CONFIG in
29502 [\\/]* | ?:[\\/]*)
29503 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29504 ;;
29505 *)
29506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29507for as_dir in $PATH
29508do
29509 IFS=$as_save_IFS
29510 test -z "$as_dir" && as_dir=.
29511 for ac_exec_ext in '' $ac_executable_extensions; do
29512 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29513 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29515 break 2
29516 fi
29517done
29518done
29519
29520 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
29521 ;;
29522esac
29523fi
29524PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29525
29526if test -n "$PKG_CONFIG"; then
29527 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29528echo "${ECHO_T}$PKG_CONFIG" >&6
29529else
29530 echo "$as_me:$LINENO: result: no" >&5
29531echo "${ECHO_T}no" >&6
29532fi
29533
29534 fi
29535
29536 if test "$PKG_CONFIG" = "no" ; then
29537 echo "*** The pkg-config script could not be found. Make sure it is"
29538 echo "*** in your path, or set the PKG_CONFIG environment variable"
29539 echo "*** to the full path to pkg-config."
29540 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
29541 else
29542 PKG_CONFIG_MIN_VERSION=0.9.0
29543 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
29544 echo "$as_me:$LINENO: checking for pangox" >&5
29545echo $ECHO_N "checking for pangox... $ECHO_C" >&6
29546
29547 if $PKG_CONFIG --exists "pangox" ; then
29548 echo "$as_me:$LINENO: result: yes" >&5
29549echo "${ECHO_T}yes" >&6
29550 succeeded=yes
29551
29552 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
29553echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
29554 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
29555 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
29556echo "${ECHO_T}$PANGOX_CFLAGS" >&6
29557
29558 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
29559echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
29560 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
29561 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
29562echo "${ECHO_T}$PANGOX_LIBS" >&6
29563 else
29564 PANGOX_CFLAGS=""
29565 PANGOX_LIBS=""
29566 ## If we have a custom action on failure, don't print errors, but
29567 ## do set a variable so people can do so.
29568 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
29569
29570 fi
29571
29572
29573
29574 else
29575 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
29576 echo "*** See http://www.freedesktop.org/software/pkgconfig"
29577 fi
29578 fi
29579
29580 if test $succeeded = yes; then
29581
c92ad099 29582 CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
a848cd7e
SC
29583 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
29584
29585 else
29586
29587 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
29588echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
29589 { (exit 1); exit 1; }; }
29590
29591
29592 fi
29593
29594
29595 succeeded=no
29596
29597 if test -z "$PKG_CONFIG"; then
29598 # Extract the first word of "pkg-config", so it can be a program name with args.
29599set dummy pkg-config; ac_word=$2
29600echo "$as_me:$LINENO: checking for $ac_word" >&5
29601echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29602if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29603 echo $ECHO_N "(cached) $ECHO_C" >&6
29604else
29605 case $PKG_CONFIG in
29606 [\\/]* | ?:[\\/]*)
29607 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29608 ;;
29609 *)
29610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29611for as_dir in $PATH
29612do
29613 IFS=$as_save_IFS
29614 test -z "$as_dir" && as_dir=.
29615 for ac_exec_ext in '' $ac_executable_extensions; do
29616 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29617 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29619 break 2
29620 fi
29621done
29622done
29623
29624 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
29625 ;;
29626esac
29627fi
29628PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29629
29630if test -n "$PKG_CONFIG"; then
29631 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29632echo "${ECHO_T}$PKG_CONFIG" >&6
29633else
29634 echo "$as_me:$LINENO: result: no" >&5
29635echo "${ECHO_T}no" >&6
29636fi
29637
29638 fi
29639
29640 if test "$PKG_CONFIG" = "no" ; then
29641 echo "*** The pkg-config script could not be found. Make sure it is"
29642 echo "*** in your path, or set the PKG_CONFIG environment variable"
29643 echo "*** to the full path to pkg-config."
29644 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
29645 else
29646 PKG_CONFIG_MIN_VERSION=0.9.0
29647 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
29648 echo "$as_me:$LINENO: checking for pangoft2" >&5
29649echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
29650
29651 if $PKG_CONFIG --exists "pangoft2" ; then
29652 echo "$as_me:$LINENO: result: yes" >&5
29653echo "${ECHO_T}yes" >&6
29654 succeeded=yes
29655
29656 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
29657echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
29658 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
29659 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
29660echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
29661
29662 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
29663echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
29664 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
29665 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
29666echo "${ECHO_T}$PANGOFT2_LIBS" >&6
29667 else
29668 PANGOFT2_CFLAGS=""
29669 PANGOFT2_LIBS=""
29670 ## If we have a custom action on failure, don't print errors, but
29671 ## do set a variable so people can do so.
29672 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
29673
29674 fi
29675
29676
29677
29678 else
29679 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
29680 echo "*** See http://www.freedesktop.org/software/pkgconfig"
29681 fi
29682 fi
29683
29684 if test $succeeded = yes; then
29685
c92ad099 29686 CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
a848cd7e
SC
29687 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
29688
29689 else
29690
29691 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
29692echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
29693 wxUSE_PRINTING_ARCHITECTURE="no"
29694
29695
29696 fi
29697
29698
29699 succeeded=no
29700
29701 if test -z "$PKG_CONFIG"; then
29702 # Extract the first word of "pkg-config", so it can be a program name with args.
29703set dummy pkg-config; ac_word=$2
29704echo "$as_me:$LINENO: checking for $ac_word" >&5
29705echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29706if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29707 echo $ECHO_N "(cached) $ECHO_C" >&6
29708else
29709 case $PKG_CONFIG in
29710 [\\/]* | ?:[\\/]*)
29711 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29712 ;;
29713 *)
29714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29715for as_dir in $PATH
29716do
29717 IFS=$as_save_IFS
29718 test -z "$as_dir" && as_dir=.
29719 for ac_exec_ext in '' $ac_executable_extensions; do
29720 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29721 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29723 break 2
29724 fi
29725done
29726done
29727
29728 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
29729 ;;
29730esac
29731fi
29732PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29733
29734if test -n "$PKG_CONFIG"; then
29735 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29736echo "${ECHO_T}$PKG_CONFIG" >&6
29737else
29738 echo "$as_me:$LINENO: result: no" >&5
29739echo "${ECHO_T}no" >&6
29740fi
29741
29742 fi
29743
29744 if test "$PKG_CONFIG" = "no" ; then
29745 echo "*** The pkg-config script could not be found. Make sure it is"
29746 echo "*** in your path, or set the PKG_CONFIG environment variable"
29747 echo "*** to the full path to pkg-config."
29748 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
29749 else
29750 PKG_CONFIG_MIN_VERSION=0.9.0
29751 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
29752 echo "$as_me:$LINENO: checking for pangoxft" >&5
29753echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
29754
29755 if $PKG_CONFIG --exists "pangoxft" ; then
29756 echo "$as_me:$LINENO: result: yes" >&5
29757echo "${ECHO_T}yes" >&6
29758 succeeded=yes
29759
29760 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
29761echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
29762 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
29763 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
29764echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
29765
29766 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
29767echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
29768 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
29769 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
29770echo "${ECHO_T}$PANGOXFT_LIBS" >&6
29771 else
29772 PANGOXFT_CFLAGS=""
29773 PANGOXFT_LIBS=""
29774 ## If we have a custom action on failure, don't print errors, but
29775 ## do set a variable so people can do so.
29776 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
29777
29778 fi
29779
29780
29781
29782 else
29783 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
29784 echo "*** See http://www.freedesktop.org/software/pkgconfig"
29785 fi
29786 fi
29787
29788 if test $succeeded = yes; then
29789
4ae1af05
MB
29790 cat >>confdefs.h <<\_ACEOF
29791#define HAVE_PANGO_XFT 1
29792_ACEOF
29793
c92ad099 29794 CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
a848cd7e
SC
29795 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
29796
29797 else
29798
29799 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
29800echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
29801
29802
29803 fi
29804
e56f4f9e 29805 save_CXXFLAGS="$CXXFLAGS"
304205f1 29806 save_LIBS="$LIBS"
e56f4f9e 29807 CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
304205f1
VS
29808 LIBS="$LIBS $PANGOX_LIBS"
29809
29810for ac_func in pango_font_family_is_monospace
29811do
29812as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29813echo "$as_me:$LINENO: checking for $ac_func" >&5
29814echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29815if eval "test \"\${$as_ac_var+set}\" = set"; then
29816 echo $ECHO_N "(cached) $ECHO_C" >&6
29817else
29818 cat >conftest.$ac_ext <<_ACEOF
29819/* confdefs.h. */
29820_ACEOF
29821cat confdefs.h >>conftest.$ac_ext
29822cat >>conftest.$ac_ext <<_ACEOF
29823/* end confdefs.h. */
29824/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29825 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29826#define $ac_func innocuous_$ac_func
29827
29828/* System header to define __stub macros and hopefully few prototypes,
29829 which can conflict with char $ac_func (); below.
29830 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29831 <limits.h> exists even on freestanding compilers. */
29832
29833#ifdef __STDC__
29834# include <limits.h>
29835#else
29836# include <assert.h>
29837#endif
29838
29839#undef $ac_func
29840
29841/* Override any gcc2 internal prototype to avoid an error. */
29842#ifdef __cplusplus
29843extern "C"
29844{
29845#endif
29846/* We use char because int might match the return type of a gcc2
29847 builtin and then its argument prototype would still apply. */
29848char $ac_func ();
29849/* The GNU C library defines this for functions which it implements
29850 to always fail with ENOSYS. Some functions are actually named
29851 something starting with __ and the normal name is an alias. */
29852#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29853choke me
29854#else
29855char (*f) () = $ac_func;
29856#endif
29857#ifdef __cplusplus
29858}
29859#endif
29860
29861int
29862main ()
29863{
29864return f != $ac_func;
29865 ;
29866 return 0;
29867}
29868_ACEOF
29869rm -f conftest.$ac_objext conftest$ac_exeext
29870if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29871 (eval $ac_link) 2>conftest.er1
29872 ac_status=$?
29873 grep -v '^ *+' conftest.er1 >conftest.err
29874 rm -f conftest.er1
29875 cat conftest.err >&5
29876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29877 (exit $ac_status); } &&
5d7b7554 29878 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
304205f1
VS
29879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29880 (eval $ac_try) 2>&5
29881 ac_status=$?
29882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29883 (exit $ac_status); }; } &&
29884 { ac_try='test -s conftest$ac_exeext'
29885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29886 (eval $ac_try) 2>&5
29887 ac_status=$?
29888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29889 (exit $ac_status); }; }; then
29890 eval "$as_ac_var=yes"
29891else
29892 echo "$as_me: failed program was:" >&5
29893sed 's/^/| /' conftest.$ac_ext >&5
29894
29895eval "$as_ac_var=no"
29896fi
29897rm -f conftest.err conftest.$ac_objext \
29898 conftest$ac_exeext conftest.$ac_ext
29899fi
29900echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29901echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29902if test `eval echo '${'$as_ac_var'}'` = yes; then
29903 cat >>confdefs.h <<_ACEOF
29904#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29905_ACEOF
29906
29907fi
29908done
29909
e56f4f9e 29910 CXXFLAGS="$save_CXXFLAGS"
304205f1 29911 LIBS="$save_LIBS"
a848cd7e
SC
29912 fi
29913
29914 wxUSE_UNIVERSAL="yes"
29915
29916 if test "$wxUSE_NANOX" = "yes"; then
29917 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
29918 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"
29919 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
29920 else
29921 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
29922 fi
29923
a848cd7e
SC
29924 TOOLKIT=X11
29925 GUIDIST=X11_DIST
29926 fi
29927
29928 if test "$wxUSE_MOTIF" = 1; then
0a08f02a
MB
29929 if test "$wxUSE_UNICODE" = "yes"; then
29930 { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
29931echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
29932 { (exit 1); exit 1; }; }
29933 fi
29934
74b84332
VS
29935 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
29936echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 29937
74b84332
VS
29938ac_find_includes=
29939for ac_dir in $SEARCH_INCLUDE /usr/include;
29940 do
29941 if test -f "$ac_dir/Xm/Xm.h"; then
29942 ac_find_includes=$ac_dir
29943 break
29944 fi
29945 done
a848cd7e 29946
74b84332
VS
29947 if test "$ac_find_includes" != "" ; then
29948 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
29949echo "${ECHO_T}found in $ac_find_includes" >&6
29950
29951 if test "x$ac_find_includes" = "x/usr/include"; then
29952 ac_path_to_include=""
29953 else
29954 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
29955 result=$?
29956 if test $result = 0; then
29957 ac_path_to_include=""
29958 else
29959 ac_path_to_include=" -I$ac_find_includes"
29960 fi
a848cd7e
SC
29961 fi
29962
74b84332
VS
29963 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
29964 else
e56f4f9e
VZ
29965 save_CXXFLAGS=$CXXFLAGS
29966 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
e051b34e 29967
74b84332 29968 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
29969/* confdefs.h. */
29970_ACEOF
29971cat confdefs.h >>conftest.$ac_ext
29972cat >>conftest.$ac_ext <<_ACEOF
29973/* end confdefs.h. */
29974
74b84332
VS
29975 #include <Xm/Xm.h>
29976
a848cd7e
SC
29977int
29978main ()
29979{
29980
74b84332
VS
29981 int version;
29982 version = xmUseVersion;
29983
a848cd7e
SC
29984 ;
29985 return 0;
29986}
29987_ACEOF
74b84332
VS
29988rm -f conftest.$ac_objext
29989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29990 (eval $ac_compile) 2>conftest.er1
a848cd7e 29991 ac_status=$?
ac1cb8d3
VS
29992 grep -v '^ *+' conftest.er1 >conftest.err
29993 rm -f conftest.er1
29994 cat conftest.err >&5
a848cd7e
SC
29995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29996 (exit $ac_status); } &&
5d7b7554 29997 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29999 (eval $ac_try) 2>&5
30000 ac_status=$?
30001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30002 (exit $ac_status); }; } &&
74b84332 30003 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30005 (eval $ac_try) 2>&5
30006 ac_status=$?
30007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30008 (exit $ac_status); }; }; then
74b84332
VS
30009
30010 echo "$as_me:$LINENO: result: found in default search path" >&5
30011echo "${ECHO_T}found in default search path" >&6
30012 COMPILED_X_PROGRAM=1
30013
a848cd7e
SC
30014else
30015 echo "$as_me: failed program was:" >&5
30016sed 's/^/| /' conftest.$ac_ext >&5
30017
a848cd7e 30018
74b84332
VS
30019 echo "$as_me:$LINENO: result: no" >&5
30020echo "${ECHO_T}no" >&6
e051b34e
MW
30021 { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
30022echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
74b84332 30023 { (exit 1); exit 1; }; }
a848cd7e 30024
a848cd7e 30025
a848cd7e 30026fi
74b84332 30027rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e051b34e 30028
e56f4f9e 30029 CXXFLAGS=$save_CXXFLAGS
74b84332
VS
30030 fi
30031
0ad5d837
VZ
30032
30033 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
74b84332
VS
30034echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
30035
0ad5d837
VZ
30036 ac_find_libraries=
30037 for ac_dir in $SEARCH_LIB;
74b84332 30038 do
3eca31dc 30039 for ac_extension in a so sl dylib dll.a; do
74b84332
VS
30040 if test -f "$ac_dir/libXm.$ac_extension"; then
30041 ac_find_libraries=$ac_dir
30042 break 2
a848cd7e 30043 fi
74b84332
VS
30044 done
30045 done
a848cd7e 30046
0ad5d837
VZ
30047
30048 if test "x$ac_find_libraries" != "x" ; then
30049 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
30050echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e 30051
74b84332 30052
0ad5d837 30053 if test "$ac_find_libraries" = "default location"; then
74b84332 30054 ac_path_to_link=""
a848cd7e 30055 else
0ad5d837
VZ
30056 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
30057 result=$?
30058 if test $result = 0; then
30059 ac_path_to_link=""
30060 else
30061 ac_path_to_link=" -L$ac_find_libraries"
30062 fi
74b84332
VS
30063 fi
30064
0ad5d837
VZ
30065 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
30066 else
e56f4f9e
VZ
30067 save_CXXFLAGS=$CXXFLAGS
30068 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
6f9cf1e6
MW
30069 save_LIBS="$LIBS"
30070 LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
74b84332 30071
0ad5d837 30072 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
30073/* confdefs.h. */
30074_ACEOF
30075cat confdefs.h >>conftest.$ac_ext
30076cat >>conftest.$ac_ext <<_ACEOF
30077/* end confdefs.h. */
30078
0ad5d837 30079 #include <Xm/Xm.h>
74b84332 30080
a848cd7e
SC
30081int
30082main ()
30083{
74b84332 30084
0ad5d837
VZ
30085 int version;
30086 version = xmUseVersion;
74b84332 30087
a848cd7e
SC
30088 ;
30089 return 0;
30090}
30091_ACEOF
0ad5d837
VZ
30092rm -f conftest.$ac_objext conftest$ac_exeext
30093if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30094 (eval $ac_link) 2>conftest.er1
a848cd7e 30095 ac_status=$?
ac1cb8d3
VS
30096 grep -v '^ *+' conftest.er1 >conftest.err
30097 rm -f conftest.er1
30098 cat conftest.err >&5
a848cd7e
SC
30099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30100 (exit $ac_status); } &&
5d7b7554 30101 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30103 (eval $ac_try) 2>&5
30104 ac_status=$?
30105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30106 (exit $ac_status); }; } &&
0ad5d837 30107 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30109 (eval $ac_try) 2>&5
30110 ac_status=$?
30111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30112 (exit $ac_status); }; }; then
74b84332 30113
0ad5d837 30114 echo "$as_me:$LINENO: result: found in default search path" >&5
74b84332 30115echo "${ECHO_T}found in default search path" >&6
0ad5d837 30116 COMPILED_X_PROGRAM=1
74b84332 30117
a848cd7e
SC
30118else
30119 echo "$as_me: failed program was:" >&5
30120sed 's/^/| /' conftest.$ac_ext >&5
30121
74b84332 30122
6f9cf1e6 30123 echo "$as_me:$LINENO: result: no" >&5
74b84332 30124echo "${ECHO_T}no" >&6
6f9cf1e6 30125 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
74b84332
VS
30126echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
30127 { (exit 1); exit 1; }; }
30128
30129
30130fi
0ad5d837
VZ
30131rm -f conftest.err conftest.$ac_objext \
30132 conftest$ac_exeext conftest.$ac_ext
74b84332 30133
e56f4f9e 30134 CXXFLAGS=$save_CXXFLAGS
6f9cf1e6 30135 LIBS="$save_LIBS"
74b84332
VS
30136 fi
30137
30138 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
30139echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
30140 libp_link=""
30141 libsm_ice_link=""
30142 libs_found=0
30143 for libp in "" " -lXp"; do
30144 if test "$libs_found" = "0"; then
30145 for libsm_ice in "" " -lSM -lICE"; do
30146 if test "$libs_found" = "0"; then
30147 save_LIBS="$LIBS"
30148 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
e56f4f9e
VZ
30149 save_CXXFLAGS=$CXXFLAGS
30150 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
74b84332
VS
30151
30152 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
30153/* confdefs.h. */
30154_ACEOF
30155cat confdefs.h >>conftest.$ac_ext
30156cat >>conftest.$ac_ext <<_ACEOF
30157/* end confdefs.h. */
30158
74b84332
VS
30159 #include <Xm/Xm.h>
30160 #include <Xm/List.h>
30161
a848cd7e
SC
30162int
30163main ()
30164{
74b84332
VS
30165
30166 XmString string = NULL;
30167 Widget w = NULL;
30168 int position = 0;
30169 XmListAddItem(w, string, position);
30170
a848cd7e
SC
30171 ;
30172 return 0;
30173}
30174_ACEOF
30175rm -f conftest.$ac_objext conftest$ac_exeext
30176if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30177 (eval $ac_link) 2>conftest.er1
a848cd7e 30178 ac_status=$?
ac1cb8d3
VS
30179 grep -v '^ *+' conftest.er1 >conftest.err
30180 rm -f conftest.er1
30181 cat conftest.err >&5
a848cd7e
SC
30182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30183 (exit $ac_status); } &&
5d7b7554 30184 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30186 (eval $ac_try) 2>&5
30187 ac_status=$?
30188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30189 (exit $ac_status); }; } &&
30190 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30192 (eval $ac_try) 2>&5
30193 ac_status=$?
30194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30195 (exit $ac_status); }; }; then
30196
30197 libp_link="$libp"
30198 libsm_ice_link="$libsm_ice"
30199 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
30200echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
30201 libs_found=1
30202
30203else
30204 echo "$as_me: failed program was:" >&5
30205sed 's/^/| /' conftest.$ac_ext >&5
30206
30207
30208
30209fi
ac1cb8d3
VS
30210rm -f conftest.err conftest.$ac_objext \
30211 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30212
30213 LIBS="$save_LIBS"
e56f4f9e 30214 CXXFLAGS=$save_CXXFLAGS
a848cd7e
SC
30215 fi
30216 done
30217 fi
30218 done
30219
30220 if test "$libs_found" = "0"; then
30221 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
30222echo "${ECHO_T}can't find the right libraries" >&6
30223 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
30224echo "$as_me: error: can't link a simple motif program" >&2;}
30225 { (exit 1); exit 1; }; }
30226 fi
30227
62fa8b3a
MW
30228 echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
30229echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6
30230if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
30231 echo $ECHO_N "(cached) $ECHO_C" >&6
30232else
30233 ac_check_lib_save_LIBS=$LIBS
30234LIBS="-lSgm $LIBS"
30235cat >conftest.$ac_ext <<_ACEOF
30236/* confdefs.h. */
30237_ACEOF
30238cat confdefs.h >>conftest.$ac_ext
30239cat >>conftest.$ac_ext <<_ACEOF
30240/* end confdefs.h. */
30241
30242/* Override any gcc2 internal prototype to avoid an error. */
30243#ifdef __cplusplus
30244extern "C"
30245#endif
30246/* We use char because int might match the return type of a gcc2
30247 builtin and then its argument prototype would still apply. */
30248char SgCreateList ();
30249int
30250main ()
30251{
30252SgCreateList ();
30253 ;
30254 return 0;
30255}
30256_ACEOF
30257rm -f conftest.$ac_objext conftest$ac_exeext
30258if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30259 (eval $ac_link) 2>conftest.er1
30260 ac_status=$?
30261 grep -v '^ *+' conftest.er1 >conftest.err
30262 rm -f conftest.er1
30263 cat conftest.err >&5
30264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30265 (exit $ac_status); } &&
5d7b7554 30266 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
30267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30268 (eval $ac_try) 2>&5
30269 ac_status=$?
30270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30271 (exit $ac_status); }; } &&
30272 { ac_try='test -s conftest$ac_exeext'
30273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30274 (eval $ac_try) 2>&5
30275 ac_status=$?
30276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30277 (exit $ac_status); }; }; then
30278 ac_cv_lib_Sgm_SgCreateList=yes
30279else
30280 echo "$as_me: failed program was:" >&5
30281sed 's/^/| /' conftest.$ac_ext >&5
30282
30283ac_cv_lib_Sgm_SgCreateList=no
30284fi
30285rm -f conftest.err conftest.$ac_objext \
30286 conftest$ac_exeext conftest.$ac_ext
30287LIBS=$ac_check_lib_save_LIBS
30288fi
30289echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
30290echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6
30291if test $ac_cv_lib_Sgm_SgCreateList = yes; then
30292 libsgm_link=" -lSgm"
30293fi
30294
30295
e56f4f9e
VZ
30296 save_CXXFLAGS=$CXXFLAGS
30297 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
0ad5d837 30298
a848cd7e
SC
30299 echo "$as_me:$LINENO: checking for Motif 2" >&5
30300echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
0ad5d837
VZ
30301if test "${wx_cv_lib_motif2+set}" = set; then
30302 echo $ECHO_N "(cached) $ECHO_C" >&6
30303else
30304 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
30305/* confdefs.h. */
30306_ACEOF
30307cat confdefs.h >>conftest.$ac_ext
30308cat >>conftest.$ac_ext <<_ACEOF
30309/* end confdefs.h. */
30310
0ad5d837 30311 #include <Xm/Xm.h>
a848cd7e
SC
30312
30313int
30314main ()
30315{
30316
0ad5d837
VZ
30317 #if XmVersion < 2000
30318 Not Motif 2
30319 #endif
a848cd7e
SC
30320
30321 ;
30322 return 0;
30323}
30324_ACEOF
30325rm -f conftest.$ac_objext
30326if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30327 (eval $ac_compile) 2>conftest.er1
a848cd7e 30328 ac_status=$?
ac1cb8d3
VS
30329 grep -v '^ *+' conftest.er1 >conftest.err
30330 rm -f conftest.er1
30331 cat conftest.err >&5
a848cd7e
SC
30332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30333 (exit $ac_status); } &&
5d7b7554 30334 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30336 (eval $ac_try) 2>&5
30337 ac_status=$?
30338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30339 (exit $ac_status); }; } &&
30340 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30342 (eval $ac_try) 2>&5
30343 ac_status=$?
30344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30345 (exit $ac_status); }; }; then
0ad5d837 30346 wx_cv_lib_motif2="yes"
a848cd7e
SC
30347else
30348 echo "$as_me: failed program was:" >&5
30349sed 's/^/| /' conftest.$ac_ext >&5
30350
0ad5d837
VZ
30351wx_cv_lib_motif2="no"
30352fi
30353rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30354fi
30355echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
30356echo "${ECHO_T}$wx_cv_lib_motif2" >&6
30357 if test "$wx_cv_lib_motif2" = "yes"; then
30358 cat >>confdefs.h <<\_ACEOF
30359#define __WXMOTIF20__ 1
30360_ACEOF
a848cd7e 30361
0ad5d837
VZ
30362 else
30363 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
30364#define __WXMOTIF20__ 0
30365_ACEOF
30366
0ad5d837 30367 fi
2113bc77
MW
30368
30369 echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
30370echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6
0ad5d837
VZ
30371if test "${wx_cv_lib_lesstif+set}" = set; then
30372 echo $ECHO_N "(cached) $ECHO_C" >&6
30373else
30374 cat >conftest.$ac_ext <<_ACEOF
2113bc77
MW
30375/* confdefs.h. */
30376_ACEOF
30377cat confdefs.h >>conftest.$ac_ext
30378cat >>conftest.$ac_ext <<_ACEOF
30379/* end confdefs.h. */
30380
0ad5d837 30381 #include <Xm/Xm.h>
2113bc77
MW
30382
30383int
30384main ()
30385{
30386
0ad5d837
VZ
30387 #if !defined(LesstifVersion) || LesstifVersion <= 0
30388 Not Lesstif
30389 #endif
2113bc77
MW
30390
30391 ;
30392 return 0;
30393}
30394_ACEOF
30395rm -f conftest.$ac_objext
30396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30397 (eval $ac_compile) 2>conftest.er1
30398 ac_status=$?
30399 grep -v '^ *+' conftest.er1 >conftest.err
30400 rm -f conftest.er1
30401 cat conftest.err >&5
30402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30403 (exit $ac_status); } &&
5d7b7554 30404 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2113bc77
MW
30405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30406 (eval $ac_try) 2>&5
30407 ac_status=$?
30408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30409 (exit $ac_status); }; } &&
30410 { ac_try='test -s conftest.$ac_objext'
30411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30412 (eval $ac_try) 2>&5
30413 ac_status=$?
30414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30415 (exit $ac_status); }; }; then
0ad5d837 30416 wx_cv_lib_lesstif="yes"
2113bc77
MW
30417else
30418 echo "$as_me: failed program was:" >&5
30419sed 's/^/| /' conftest.$ac_ext >&5
30420
0ad5d837
VZ
30421wx_cv_lib_lesstif="no"
30422fi
30423rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2113bc77 30424
0ad5d837
VZ
30425fi
30426echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
30427echo "${ECHO_T}$wx_cv_lib_lesstif" >&6
30428 if test "$wx_cv_lib_lesstif" = "yes"; then
30429 cat >>confdefs.h <<\_ACEOF
30430#define __WXLESSTIF__ 1
30431_ACEOF
30432
30433 else
30434 cat >>confdefs.h <<\_ACEOF
2113bc77
MW
30435#define __WXLESSTIF__ 0
30436_ACEOF
30437
0ad5d837 30438 fi
2113bc77 30439
e56f4f9e 30440 CXXFLAGS=$save_CXXFLAGS
a848cd7e 30441
62fa8b3a 30442 GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
30443 TOOLKIT=MOTIF
30444 GUIDIST=MOTIF_DIST
30445 fi
30446
74b84332 30447 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
30448 if test "$wxUSE_LIBXPM" = "sys"; then
30449 echo "$as_me:$LINENO: checking for Xpm library" >&5
30450echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
30451
0ad5d837
VZ
30452 ac_find_libraries=
30453 for ac_dir in $SEARCH_LIB;
a848cd7e 30454 do
3eca31dc 30455 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
30456 if test -f "$ac_dir/libXpm.$ac_extension"; then
30457 ac_find_libraries=$ac_dir
30458 break 2
30459 fi
30460 done
30461 done
30462
30463 if test "$ac_find_libraries" != "" ; then
30464
0ad5d837 30465 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
30466 ac_path_to_link=""
30467 else
0ad5d837
VZ
30468 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
30469 result=$?
30470 if test $result = 0; then
30471 ac_path_to_link=""
30472 else
30473 ac_path_to_link=" -L$ac_find_libraries"
30474 fi
a848cd7e
SC
30475 fi
30476
30477 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
0ad5d837
VZ
30478 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
30479echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
30480
30481 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
30482echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
30483if test "${wx_cv_x11_xpm_h+set}" = set; then
30484 echo $ECHO_N "(cached) $ECHO_C" >&6
30485else
30486
e56f4f9e
VZ
30487 save_CXXFLAGS=$CXXFLAGS
30488 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
a848cd7e
SC
30489
30490 cat >conftest.$ac_ext <<_ACEOF
30491/* confdefs.h. */
30492_ACEOF
30493cat confdefs.h >>conftest.$ac_ext
30494cat >>conftest.$ac_ext <<_ACEOF
30495/* end confdefs.h. */
30496
30497 #include <X11/xpm.h>
30498
30499int
30500main ()
30501{
30502
30503 int version;
30504 version = XpmLibraryVersion();
30505
30506 ;
30507 return 0;
30508}
30509_ACEOF
30510rm -f conftest.$ac_objext
30511if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30512 (eval $ac_compile) 2>conftest.er1
a848cd7e 30513 ac_status=$?
ac1cb8d3
VS
30514 grep -v '^ *+' conftest.er1 >conftest.err
30515 rm -f conftest.er1
30516 cat conftest.err >&5
a848cd7e
SC
30517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30518 (exit $ac_status); } &&
5d7b7554 30519 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30521 (eval $ac_try) 2>&5
30522 ac_status=$?
30523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30524 (exit $ac_status); }; } &&
30525 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30527 (eval $ac_try) 2>&5
30528 ac_status=$?
30529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30530 (exit $ac_status); }; }; then
30531 wx_cv_x11_xpm_h=yes
30532else
30533 echo "$as_me: failed program was:" >&5
30534sed 's/^/| /' conftest.$ac_ext >&5
30535
30536wx_cv_x11_xpm_h=no
30537
30538fi
ac1cb8d3 30539rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 30540
e56f4f9e 30541 CXXFLAGS=$save_CXXFLAGS
a848cd7e
SC
30542
30543
30544fi
30545echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
30546echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
30547
30548 if test $wx_cv_x11_xpm_h = "yes"; then
30549 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
30550 cat >>confdefs.h <<\_ACEOF
30551#define wxHAVE_LIB_XPM 1
30552_ACEOF
30553
30554 else
30555 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
30556echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
30557 fi
30558 fi
30559
30560 fi
30561
30562 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
30563echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
30564if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
30565 echo $ECHO_N "(cached) $ECHO_C" >&6
30566else
30567 ac_check_lib_save_LIBS=$LIBS
30568LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
30569cat >conftest.$ac_ext <<_ACEOF
30570/* confdefs.h. */
30571_ACEOF
30572cat confdefs.h >>conftest.$ac_ext
30573cat >>conftest.$ac_ext <<_ACEOF
30574/* end confdefs.h. */
30575
30576/* Override any gcc2 internal prototype to avoid an error. */
30577#ifdef __cplusplus
30578extern "C"
30579#endif
30580/* We use char because int might match the return type of a gcc2
30581 builtin and then its argument prototype would still apply. */
30582char XShapeQueryExtension ();
30583int
30584main ()
30585{
30586XShapeQueryExtension ();
30587 ;
30588 return 0;
30589}
30590_ACEOF
30591rm -f conftest.$ac_objext conftest$ac_exeext
30592if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30593 (eval $ac_link) 2>conftest.er1
a848cd7e 30594 ac_status=$?
ac1cb8d3
VS
30595 grep -v '^ *+' conftest.er1 >conftest.err
30596 rm -f conftest.er1
30597 cat conftest.err >&5
a848cd7e
SC
30598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30599 (exit $ac_status); } &&
5d7b7554 30600 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30602 (eval $ac_try) 2>&5
30603 ac_status=$?
30604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30605 (exit $ac_status); }; } &&
30606 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30608 (eval $ac_try) 2>&5
30609 ac_status=$?
30610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30611 (exit $ac_status); }; }; then
30612 ac_cv_lib_Xext_XShapeQueryExtension=yes
30613else
30614 echo "$as_me: failed program was:" >&5
30615sed 's/^/| /' conftest.$ac_ext >&5
30616
30617ac_cv_lib_Xext_XShapeQueryExtension=no
30618fi
ac1cb8d3
VS
30619rm -f conftest.err conftest.$ac_objext \
30620 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30621LIBS=$ac_check_lib_save_LIBS
30622fi
30623echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
30624echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
30625if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
30626
30627 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
30628 wxHAVE_XEXT_LIB=1
30629
30630fi
30631
30632
30633 if test "$wxHAVE_XEXT_LIB" = 1; then
e56f4f9e
VZ
30634 save_CXXFLAGS="$CXXFLAGS"
30635 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
a848cd7e
SC
30636
30637 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
30638echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
30639 cat >conftest.$ac_ext <<_ACEOF
30640/* confdefs.h. */
30641_ACEOF
30642cat confdefs.h >>conftest.$ac_ext
30643cat >>conftest.$ac_ext <<_ACEOF
30644/* end confdefs.h. */
30645
30646 #include <X11/Xlib.h>
30647 #include <X11/extensions/shape.h>
30648
30649int
30650main ()
30651{
30652
30653 int dummy1, dummy2;
30654 XShapeQueryExtension((Display*)NULL,
30655 (int*)NULL, (int*)NULL);
30656
30657 ;
30658 return 0;
30659}
30660_ACEOF
30661rm -f conftest.$ac_objext
30662if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30663 (eval $ac_compile) 2>conftest.er1
a848cd7e 30664 ac_status=$?
ac1cb8d3
VS
30665 grep -v '^ *+' conftest.er1 >conftest.err
30666 rm -f conftest.er1
30667 cat conftest.err >&5
a848cd7e
SC
30668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30669 (exit $ac_status); } &&
5d7b7554 30670 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30672 (eval $ac_try) 2>&5
30673 ac_status=$?
30674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30675 (exit $ac_status); }; } &&
30676 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30678 (eval $ac_try) 2>&5
30679 ac_status=$?
30680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30681 (exit $ac_status); }; }; then
30682
30683 cat >>confdefs.h <<\_ACEOF
30684#define HAVE_XSHAPE 1
30685_ACEOF
30686
30687 echo "$as_me:$LINENO: result: found" >&5
30688echo "${ECHO_T}found" >&6
30689
30690else
30691 echo "$as_me: failed program was:" >&5
30692sed 's/^/| /' conftest.$ac_ext >&5
30693
30694
30695 echo "$as_me:$LINENO: result: not found" >&5
30696echo "${ECHO_T}not found" >&6
30697
30698fi
ac1cb8d3 30699rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e56f4f9e 30700 CXXFLAGS="$save_CXXFLAGS"
a848cd7e
SC
30701
30702 fi
30703 fi
30704
30705 if test "$wxUSE_MAC" = 1; then
30706 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
30707echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
30708 if test "$GCC" = yes; then
30709 echo "$as_me:$LINENO: result: gcc" >&5
30710echo "${ECHO_T}gcc" >&6
30711 CPPFLAGS_PASCAL="-fpascal-strings"
30712 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
30713 echo "$as_me:$LINENO: result: xlc" >&5
30714echo "${ECHO_T}xlc" >&6
30715 CPPFLAGS_PASCAL="-qmacpstr"
30716 else
30717 echo "$as_me:$LINENO: result: none" >&5
30718echo "${ECHO_T}none" >&6
30719 fi
30720
1e9e8aba 30721 if test "x$wxUSE_UNIX" = "xyes"; then
c92ad099 30722 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS"
1e9e8aba 30723 else
c92ad099 30724 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS"
1e9e8aba 30725 fi
a848cd7e 30726
a848cd7e
SC
30727 TOOLKIT=MAC
30728 GUIDIST=MACX_DIST
dd21ced8 30729 WXBASEPORT="_carbon"
a848cd7e
SC
30730 fi
30731
30732 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
30733 TOOLKIT=COCOA
30734 GUIDIST=COCOA_DIST
30735 fi
30736
30737 if test "$wxUSE_PM" = 1; then
30738 TOOLKIT=PM
de59c161
RD
30739 GUIDIST=PM_DIST
30740 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
30741echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
30742if test "${wx_cv_spbcdata+set}" = set; then
30743 echo $ECHO_N "(cached) $ECHO_C" >&6
30744else
30745
30746 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
30747/* confdefs.h. */
30748_ACEOF
30749cat confdefs.h >>conftest.$ac_ext
30750cat >>conftest.$ac_ext <<_ACEOF
30751/* end confdefs.h. */
30752
30753 #define INCL_PM
30754 #include <os2.h>
30755
30756int
30757main ()
30758{
30759
30760 SPBCDATA test;
30761
30762 ;
30763 return 0;
30764}
30765_ACEOF
30766rm -f conftest.$ac_objext
30767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30768 (eval $ac_compile) 2>conftest.er1
de59c161 30769 ac_status=$?
ac1cb8d3
VS
30770 grep -v '^ *+' conftest.er1 >conftest.err
30771 rm -f conftest.er1
30772 cat conftest.err >&5
de59c161
RD
30773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30774 (exit $ac_status); } &&
5d7b7554 30775 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30777 (eval $ac_try) 2>&5
30778 ac_status=$?
30779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30780 (exit $ac_status); }; } &&
30781 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
30782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30783 (eval $ac_try) 2>&5
30784 ac_status=$?
30785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30786 (exit $ac_status); }; }; then
30787 wx_cv_spbcdata=yes
30788else
30789 echo "$as_me: failed program was:" >&5
30790sed 's/^/| /' conftest.$ac_ext >&5
30791
30792wx_cv_spbcdata=no
30793
30794fi
ac1cb8d3 30795rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
30796
30797
30798fi
30799echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
30800echo "${ECHO_T}$wx_cv_spbcdata" >&6
30801
30802 if test $wx_cv_spbcdata = "yes"; then
30803 cat >>confdefs.h <<\_ACEOF
30804#define HAVE_SPBCDATA 1
30805_ACEOF
30806
30807 fi
a848cd7e
SC
30808 fi
30809
30810 if test "$TOOLKIT" = "PM" ; then
30811 TOOLKIT_DIR="os2"
30812 else
30813 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
30814 fi
30815
a848cd7e 30816 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
30817 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
30818 WIDGET_SET=univ
a848cd7e
SC
30819 fi
30820
30821 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
30822 DISTDIR="wx\$(TOOLKIT)"
30823else
30824 USE_GUI=0
30825
30826 TOOLKIT_DIR="base"
30827
30828 if test "$USE_WIN32" = 1 ; then
a848cd7e 30829 TOOLKIT="MSW"
a848cd7e
SC
30830 fi
30831
a848cd7e
SC
30832 GUIDIST="BASE_DIST"
30833 DISTDIR="wxBase"
30834fi
30835
30836
d12aef51
VZ
30837if test "$wxUSE_GUI" = "yes"; then
30838 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
30839
30840for ac_header in X11/Xlib.h
30841do
30842as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30843if eval "test \"\${$as_ac_Header+set}\" = set"; then
30844 echo "$as_me:$LINENO: checking for $ac_header" >&5
30845echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30846if eval "test \"\${$as_ac_Header+set}\" = set"; then
30847 echo $ECHO_N "(cached) $ECHO_C" >&6
30848fi
30849echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30850echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30851else
30852 # Is the header compilable?
30853echo "$as_me:$LINENO: checking $ac_header usability" >&5
30854echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30855cat >conftest.$ac_ext <<_ACEOF
30856/* confdefs.h. */
30857_ACEOF
30858cat confdefs.h >>conftest.$ac_ext
30859cat >>conftest.$ac_ext <<_ACEOF
30860/* end confdefs.h. */
30861$ac_includes_default
30862#include <$ac_header>
30863_ACEOF
30864rm -f conftest.$ac_objext
30865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30866 (eval $ac_compile) 2>conftest.er1
30867 ac_status=$?
30868 grep -v '^ *+' conftest.er1 >conftest.err
30869 rm -f conftest.er1
30870 cat conftest.err >&5
30871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30872 (exit $ac_status); } &&
5d7b7554 30873 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
30874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30875 (eval $ac_try) 2>&5
30876 ac_status=$?
30877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30878 (exit $ac_status); }; } &&
30879 { ac_try='test -s conftest.$ac_objext'
30880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30881 (eval $ac_try) 2>&5
30882 ac_status=$?
30883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30884 (exit $ac_status); }; }; then
30885 ac_header_compiler=yes
30886else
30887 echo "$as_me: failed program was:" >&5
30888sed 's/^/| /' conftest.$ac_ext >&5
30889
30890ac_header_compiler=no
30891fi
30892rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30893echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30894echo "${ECHO_T}$ac_header_compiler" >&6
30895
30896# Is the header present?
30897echo "$as_me:$LINENO: checking $ac_header presence" >&5
30898echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30899cat >conftest.$ac_ext <<_ACEOF
30900/* confdefs.h. */
30901_ACEOF
30902cat confdefs.h >>conftest.$ac_ext
30903cat >>conftest.$ac_ext <<_ACEOF
30904/* end confdefs.h. */
30905#include <$ac_header>
30906_ACEOF
30907if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30908 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30909 ac_status=$?
30910 grep -v '^ *+' conftest.er1 >conftest.err
30911 rm -f conftest.er1
30912 cat conftest.err >&5
30913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30914 (exit $ac_status); } >/dev/null; then
30915 if test -s conftest.err; then
5d7b7554
VZ
30916 ac_cpp_err=$ac_cxx_preproc_warn_flag
30917 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
d12aef51
VZ
30918 else
30919 ac_cpp_err=
30920 fi
30921else
30922 ac_cpp_err=yes
30923fi
30924if test -z "$ac_cpp_err"; then
30925 ac_header_preproc=yes
30926else
30927 echo "$as_me: failed program was:" >&5
30928sed 's/^/| /' conftest.$ac_ext >&5
30929
30930 ac_header_preproc=no
30931fi
30932rm -f conftest.err conftest.$ac_ext
30933echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30934echo "${ECHO_T}$ac_header_preproc" >&6
30935
30936# So? What about this header?
5d7b7554 30937case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
d12aef51
VZ
30938 yes:no: )
30939 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30940echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30941 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30942echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30943 ac_header_preproc=yes
30944 ;;
30945 no:yes:* )
30946 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30947echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30948 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30949echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30950 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30951echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30952 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30953echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30954 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30955echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30956 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30957echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30958 (
30959 cat <<\_ASBOX
30960## ----------------------------------------- ##
30961## Report this to wx-dev@lists.wxwidgets.org ##
30962## ----------------------------------------- ##
30963_ASBOX
30964 ) |
30965 sed "s/^/$as_me: WARNING: /" >&2
30966 ;;
30967esac
30968echo "$as_me:$LINENO: checking for $ac_header" >&5
30969echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30970if eval "test \"\${$as_ac_Header+set}\" = set"; then
30971 echo $ECHO_N "(cached) $ECHO_C" >&6
30972else
30973 eval "$as_ac_Header=\$ac_header_preproc"
30974fi
30975echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30976echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30977
30978fi
30979if test `eval echo '${'$as_ac_Header'}'` = yes; then
30980 cat >>confdefs.h <<_ACEOF
30981#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30982_ACEOF
30983
30984fi
30985
30986done
30987
30988
30989for ac_header in X11/XKBlib.h
30990do
30991as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30992echo "$as_me:$LINENO: checking for $ac_header" >&5
30993echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30994if eval "test \"\${$as_ac_Header+set}\" = set"; then
30995 echo $ECHO_N "(cached) $ECHO_C" >&6
30996else
30997 cat >conftest.$ac_ext <<_ACEOF
30998/* confdefs.h. */
30999_ACEOF
31000cat confdefs.h >>conftest.$ac_ext
31001cat >>conftest.$ac_ext <<_ACEOF
31002/* end confdefs.h. */
31003
31004 #if HAVE_X11_XLIB_H
31005 #include <X11/Xlib.h>
31006 #endif
31007
31008
31009#include <$ac_header>
31010_ACEOF
31011rm -f conftest.$ac_objext
31012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31013 (eval $ac_compile) 2>conftest.er1
31014 ac_status=$?
31015 grep -v '^ *+' conftest.er1 >conftest.err
31016 rm -f conftest.er1
31017 cat conftest.err >&5
31018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31019 (exit $ac_status); } &&
5d7b7554 31020 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
31021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31022 (eval $ac_try) 2>&5
31023 ac_status=$?
31024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31025 (exit $ac_status); }; } &&
31026 { ac_try='test -s conftest.$ac_objext'
31027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31028 (eval $ac_try) 2>&5
31029 ac_status=$?
31030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31031 (exit $ac_status); }; }; then
31032 eval "$as_ac_Header=yes"
31033else
31034 echo "$as_me: failed program was:" >&5
31035sed 's/^/| /' conftest.$ac_ext >&5
31036
31037eval "$as_ac_Header=no"
31038fi
31039rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31040fi
31041echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31042echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31043if test `eval echo '${'$as_ac_Header'}'` = yes; then
31044 cat >>confdefs.h <<_ACEOF
31045#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31046_ACEOF
31047
31048fi
31049
31050done
31051
31052 fi
31053fi
31054
a848cd7e
SC
31055
31056
31057IODBC_C_SRC=""
31058
31059
31060if test "$TOOLKIT" != "MSW" ; then
31061
31062 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
31063
31064 if test "${ac_cv_header_sql_h+set}" = set; then
31065 echo "$as_me:$LINENO: checking for sql.h" >&5
31066echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
31067if test "${ac_cv_header_sql_h+set}" = set; then
31068 echo $ECHO_N "(cached) $ECHO_C" >&6
31069fi
31070echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
31071echo "${ECHO_T}$ac_cv_header_sql_h" >&6
31072else
31073 # Is the header compilable?
31074echo "$as_me:$LINENO: checking sql.h usability" >&5
31075echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
31076cat >conftest.$ac_ext <<_ACEOF
31077/* confdefs.h. */
31078_ACEOF
31079cat confdefs.h >>conftest.$ac_ext
31080cat >>conftest.$ac_ext <<_ACEOF
31081/* end confdefs.h. */
31082$ac_includes_default
31083#include <sql.h>
31084_ACEOF
31085rm -f conftest.$ac_objext
31086if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31087 (eval $ac_compile) 2>conftest.er1
a848cd7e 31088 ac_status=$?
ac1cb8d3
VS
31089 grep -v '^ *+' conftest.er1 >conftest.err
31090 rm -f conftest.er1
31091 cat conftest.err >&5
a848cd7e
SC
31092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31093 (exit $ac_status); } &&
5d7b7554 31094 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31096 (eval $ac_try) 2>&5
31097 ac_status=$?
31098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31099 (exit $ac_status); }; } &&
31100 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31102 (eval $ac_try) 2>&5
31103 ac_status=$?
31104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31105 (exit $ac_status); }; }; then
31106 ac_header_compiler=yes
31107else
31108 echo "$as_me: failed program was:" >&5
31109sed 's/^/| /' conftest.$ac_ext >&5
31110
31111ac_header_compiler=no
31112fi
ac1cb8d3 31113rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31114echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31115echo "${ECHO_T}$ac_header_compiler" >&6
31116
31117# Is the header present?
31118echo "$as_me:$LINENO: checking sql.h presence" >&5
31119echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
31120cat >conftest.$ac_ext <<_ACEOF
31121/* confdefs.h. */
31122_ACEOF
31123cat confdefs.h >>conftest.$ac_ext
31124cat >>conftest.$ac_ext <<_ACEOF
31125/* end confdefs.h. */
31126#include <sql.h>
31127_ACEOF
31128if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31129 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31130 ac_status=$?
31131 grep -v '^ *+' conftest.er1 >conftest.err
31132 rm -f conftest.er1
31133 cat conftest.err >&5
31134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31135 (exit $ac_status); } >/dev/null; then
31136 if test -s conftest.err; then
5d7b7554
VZ
31137 ac_cpp_err=$ac_cxx_preproc_warn_flag
31138 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
31139 else
31140 ac_cpp_err=
31141 fi
31142else
31143 ac_cpp_err=yes
31144fi
31145if test -z "$ac_cpp_err"; then
31146 ac_header_preproc=yes
31147else
31148 echo "$as_me: failed program was:" >&5
31149sed 's/^/| /' conftest.$ac_ext >&5
31150
31151 ac_header_preproc=no
31152fi
31153rm -f conftest.err conftest.$ac_ext
31154echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31155echo "${ECHO_T}$ac_header_preproc" >&6
31156
31157# So? What about this header?
5d7b7554 31158case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 31159 yes:no: )
a848cd7e
SC
31160 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
31161echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
31162 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
31163echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
31164 ac_header_preproc=yes
a848cd7e 31165 ;;
ac1cb8d3 31166 no:yes:* )
a848cd7e
SC
31167 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
31168echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
31169 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
31170echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
31171 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
31172echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
31173 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
31174echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
31175 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
31176echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
31177 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
31178echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
31179 (
31180 cat <<\_ASBOX
ac1cb8d3
VS
31181## ----------------------------------------- ##
31182## Report this to wx-dev@lists.wxwidgets.org ##
31183## ----------------------------------------- ##
a848cd7e
SC
31184_ASBOX
31185 ) |
31186 sed "s/^/$as_me: WARNING: /" >&2
31187 ;;
31188esac
31189echo "$as_me:$LINENO: checking for sql.h" >&5
31190echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
31191if test "${ac_cv_header_sql_h+set}" = set; then
31192 echo $ECHO_N "(cached) $ECHO_C" >&6
31193else
31194 ac_cv_header_sql_h=$ac_header_preproc
31195fi
31196echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
31197echo "${ECHO_T}$ac_cv_header_sql_h" >&6
31198
31199fi
31200if test $ac_cv_header_sql_h = yes; then
31201 found_sql_h=1
31202fi
31203
31204
31205 if test "x$found_sql_h" = "x1" ; then
31206 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
31207echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
31208if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
31209 echo $ECHO_N "(cached) $ECHO_C" >&6
31210else
31211 ac_check_lib_save_LIBS=$LIBS
31212LIBS="-liodbc $LIBS"
31213cat >conftest.$ac_ext <<_ACEOF
31214/* confdefs.h. */
31215_ACEOF
31216cat confdefs.h >>conftest.$ac_ext
31217cat >>conftest.$ac_ext <<_ACEOF
31218/* end confdefs.h. */
31219
31220/* Override any gcc2 internal prototype to avoid an error. */
31221#ifdef __cplusplus
31222extern "C"
31223#endif
31224/* We use char because int might match the return type of a gcc2
31225 builtin and then its argument prototype would still apply. */
31226char SQLAllocEnv ();
31227int
31228main ()
31229{
31230SQLAllocEnv ();
31231 ;
31232 return 0;
31233}
31234_ACEOF
31235rm -f conftest.$ac_objext conftest$ac_exeext
31236if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31237 (eval $ac_link) 2>conftest.er1
a848cd7e 31238 ac_status=$?
ac1cb8d3
VS
31239 grep -v '^ *+' conftest.er1 >conftest.err
31240 rm -f conftest.er1
31241 cat conftest.err >&5
a848cd7e
SC
31242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31243 (exit $ac_status); } &&
5d7b7554 31244 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31246 (eval $ac_try) 2>&5
31247 ac_status=$?
31248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31249 (exit $ac_status); }; } &&
31250 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31252 (eval $ac_try) 2>&5
31253 ac_status=$?
31254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31255 (exit $ac_status); }; }; then
31256 ac_cv_lib_iodbc_SQLAllocEnv=yes
31257else
31258 echo "$as_me: failed program was:" >&5
31259sed 's/^/| /' conftest.$ac_ext >&5
31260
31261ac_cv_lib_iodbc_SQLAllocEnv=no
31262fi
ac1cb8d3
VS
31263rm -f conftest.err conftest.$ac_objext \
31264 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31265LIBS=$ac_check_lib_save_LIBS
31266fi
31267echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
31268echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
31269if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
31270 ODBC_LINK=" -liodbc"
31271else
31272
31273 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
31274echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
31275if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
31276 echo $ECHO_N "(cached) $ECHO_C" >&6
31277else
31278 ac_check_lib_save_LIBS=$LIBS
31279LIBS="-lunixodbc $LIBS"
31280cat >conftest.$ac_ext <<_ACEOF
31281/* confdefs.h. */
31282_ACEOF
31283cat confdefs.h >>conftest.$ac_ext
31284cat >>conftest.$ac_ext <<_ACEOF
31285/* end confdefs.h. */
31286
31287/* Override any gcc2 internal prototype to avoid an error. */
31288#ifdef __cplusplus
31289extern "C"
31290#endif
31291/* We use char because int might match the return type of a gcc2
31292 builtin and then its argument prototype would still apply. */
31293char SQLAllocEnv ();
31294int
31295main ()
31296{
31297SQLAllocEnv ();
31298 ;
31299 return 0;
31300}
31301_ACEOF
31302rm -f conftest.$ac_objext conftest$ac_exeext
31303if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31304 (eval $ac_link) 2>conftest.er1
a848cd7e 31305 ac_status=$?
ac1cb8d3
VS
31306 grep -v '^ *+' conftest.er1 >conftest.err
31307 rm -f conftest.er1
31308 cat conftest.err >&5
a848cd7e
SC
31309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31310 (exit $ac_status); } &&
5d7b7554 31311 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31313 (eval $ac_try) 2>&5
31314 ac_status=$?
31315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31316 (exit $ac_status); }; } &&
31317 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31319 (eval $ac_try) 2>&5
31320 ac_status=$?
31321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31322 (exit $ac_status); }; }; then
31323 ac_cv_lib_unixodbc_SQLAllocEnv=yes
31324else
31325 echo "$as_me: failed program was:" >&5
31326sed 's/^/| /' conftest.$ac_ext >&5
31327
31328ac_cv_lib_unixodbc_SQLAllocEnv=no
31329fi
ac1cb8d3
VS
31330rm -f conftest.err conftest.$ac_objext \
31331 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31332LIBS=$ac_check_lib_save_LIBS
31333fi
31334echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
31335echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
31336if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
31337 ODBC_LINK=" -lunixodbc"
31338else
31339
31340 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
31341echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
31342if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
31343 echo $ECHO_N "(cached) $ECHO_C" >&6
31344else
31345 ac_check_lib_save_LIBS=$LIBS
31346LIBS="-lodbc $LIBS"
31347cat >conftest.$ac_ext <<_ACEOF
31348/* confdefs.h. */
31349_ACEOF
31350cat confdefs.h >>conftest.$ac_ext
31351cat >>conftest.$ac_ext <<_ACEOF
31352/* end confdefs.h. */
31353
31354/* Override any gcc2 internal prototype to avoid an error. */
31355#ifdef __cplusplus
31356extern "C"
31357#endif
31358/* We use char because int might match the return type of a gcc2
31359 builtin and then its argument prototype would still apply. */
31360char SQLAllocEnv ();
31361int
31362main ()
31363{
31364SQLAllocEnv ();
31365 ;
31366 return 0;
31367}
31368_ACEOF
31369rm -f conftest.$ac_objext conftest$ac_exeext
31370if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31371 (eval $ac_link) 2>conftest.er1
a848cd7e 31372 ac_status=$?
ac1cb8d3
VS
31373 grep -v '^ *+' conftest.er1 >conftest.err
31374 rm -f conftest.er1
31375 cat conftest.err >&5
a848cd7e
SC
31376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31377 (exit $ac_status); } &&
5d7b7554 31378 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31380 (eval $ac_try) 2>&5
31381 ac_status=$?
31382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31383 (exit $ac_status); }; } &&
31384 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31386 (eval $ac_try) 2>&5
31387 ac_status=$?
31388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31389 (exit $ac_status); }; }; then
31390 ac_cv_lib_odbc_SQLAllocEnv=yes
31391else
31392 echo "$as_me: failed program was:" >&5
31393sed 's/^/| /' conftest.$ac_ext >&5
31394
31395ac_cv_lib_odbc_SQLAllocEnv=no
31396fi
ac1cb8d3
VS
31397rm -f conftest.err conftest.$ac_objext \
31398 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31399LIBS=$ac_check_lib_save_LIBS
31400fi
31401echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
31402echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
31403if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
31404 ODBC_LINK=" -lodbc"
31405fi
31406
31407
31408fi
31409
31410
31411fi
31412
31413 fi
31414 if test "x$ODBC_LINK" = "x" ; then
31415 if test "$wxUSE_ODBC" = "sys" ; then
31416 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
31417echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
31418 { (exit 1); exit 1; }; }
31419 else
31420 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
31421echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
31422 wxUSE_ODBC=builtin
31423 fi
31424 else
31425 wxUSE_ODBC=sys
31426 fi
31427 fi
a848cd7e 31428
2da0c077
RD
31429 if test "$wxUSE_ODBC" = "builtin" ; then
31430 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
31431#define wxUSE_BUILTIN_IODBC 1
31432_ACEOF
31433
a848cd7e
SC
31434 fi
31435fi
31436
2da0c077
RD
31437if test "$wxUSE_ODBC" != "no" ; then
31438 cat >>confdefs.h <<\_ACEOF
31439#define wxUSE_ODBC 1
31440_ACEOF
31441
31442 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
31443
5ff751d6 31444 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_IODBC_"
2da0c077 31445fi
a848cd7e 31446
01cb68df 31447
a848cd7e 31448if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 31449 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
31450 echo "$as_me:$LINENO: checking for Xinerama" >&5
31451echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
31452
0ad5d837
VZ
31453 ac_find_libraries=
31454 for ac_dir in $SEARCH_LIB;
31455 do
31456 for ac_extension in a so sl dylib dll.a; do
31457 if test -f "$ac_dir/libXinerama.$ac_extension"; then
31458 ac_find_libraries=$ac_dir
31459 break 2
31460 fi
31461 done
31462 done
31463
a848cd7e
SC
31464 if test "$ac_find_libraries" != "" ; then
31465
0ad5d837 31466 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31467 ac_path_to_link=""
31468 else
0ad5d837
VZ
31469 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
31470 result=$?
31471 if test $result = 0; then
31472 ac_path_to_link=""
31473 else
31474 ac_path_to_link=" -L$ac_find_libraries"
31475 fi
a848cd7e
SC
31476 fi
31477
31478 if test "$ac_path_to_link" != " -L/usr/lib" ; then
31479 LDFLAGS="$LDFLAGS $ac_path_to_link"
31480 fi
31481 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
31482 echo "$as_me:$LINENO: result: yes" >&5
31483echo "${ECHO_T}yes" >&6
31484
31485 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
31486echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
31487
0ad5d837
VZ
31488 ac_find_libraries=
31489 for ac_dir in $SEARCH_LIB;
a848cd7e 31490 do
3eca31dc 31491 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
31492 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
31493 ac_find_libraries=$ac_dir
31494 break 2
31495 fi
31496 done
31497 done
31498
31499 if test "$ac_find_libraries" != "" ; then
31500 echo "$as_me:$LINENO: result: yes" >&5
31501echo "${ECHO_T}yes" >&6
31502
31503for ac_header in X11/extensions/xf86vmode.h
31504do
31505as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31506echo "$as_me:$LINENO: checking for $ac_header" >&5
31507echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31508if eval "test \"\${$as_ac_Header+set}\" = set"; then
31509 echo $ECHO_N "(cached) $ECHO_C" >&6
31510else
31511 cat >conftest.$ac_ext <<_ACEOF
31512/* confdefs.h. */
31513_ACEOF
31514cat confdefs.h >>conftest.$ac_ext
31515cat >>conftest.$ac_ext <<_ACEOF
31516/* end confdefs.h. */
31517
31518 #if HAVE_X11_XLIB_H
31519 #include <X11/Xlib.h>
31520 #endif
31521
31522
31523#include <$ac_header>
31524_ACEOF
31525rm -f conftest.$ac_objext
31526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31527 (eval $ac_compile) 2>conftest.er1
a848cd7e 31528 ac_status=$?
ac1cb8d3
VS
31529 grep -v '^ *+' conftest.er1 >conftest.err
31530 rm -f conftest.er1
31531 cat conftest.err >&5
a848cd7e
SC
31532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31533 (exit $ac_status); } &&
5d7b7554 31534 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31536 (eval $ac_try) 2>&5
31537 ac_status=$?
31538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31539 (exit $ac_status); }; } &&
31540 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31542 (eval $ac_try) 2>&5
31543 ac_status=$?
31544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31545 (exit $ac_status); }; }; then
31546 eval "$as_ac_Header=yes"
31547else
31548 echo "$as_me: failed program was:" >&5
31549sed 's/^/| /' conftest.$ac_ext >&5
31550
31551eval "$as_ac_Header=no"
31552fi
ac1cb8d3 31553rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31554fi
31555echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31556echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31557if test `eval echo '${'$as_ac_Header'}'` = yes; then
31558 cat >>confdefs.h <<_ACEOF
31559#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31560_ACEOF
31561
31562 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
31563
31564fi
31565
31566done
31567
31568 else
31569 echo "$as_me:$LINENO: result: no" >&5
31570echo "${ECHO_T}no" >&6
31571 fi
31572
31573 else
31574 echo "$as_me:$LINENO: result: no" >&5
31575echo "${ECHO_T}no" >&6
dcc1b6ad
VS
31576 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
31577echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
31578 wxUSE_DISPLAY="no"
31579 fi
01cb68df
RG
31580 elif test "$wxUSE_MSW" = 1; then
31581
e5efa97e 31582for ac_header in ddraw.h
01cb68df
RG
31583do
31584as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 31585echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
31586echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31587if eval "test \"\${$as_ac_Header+set}\" = set"; then
31588 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 31589else
5294a27e 31590 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
31591/* confdefs.h. */
31592_ACEOF
31593cat confdefs.h >>conftest.$ac_ext
31594cat >>conftest.$ac_ext <<_ACEOF
31595/* end confdefs.h. */
5294a27e
VZ
31596#include <windows.h>
31597
01cb68df
RG
31598#include <$ac_header>
31599_ACEOF
31600rm -f conftest.$ac_objext
31601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31602 (eval $ac_compile) 2>conftest.er1
01cb68df 31603 ac_status=$?
ac1cb8d3
VS
31604 grep -v '^ *+' conftest.er1 >conftest.err
31605 rm -f conftest.er1
31606 cat conftest.err >&5
01cb68df
RG
31607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31608 (exit $ac_status); } &&
5d7b7554 31609 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31611 (eval $ac_try) 2>&5
31612 ac_status=$?
31613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31614 (exit $ac_status); }; } &&
31615 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
31616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31617 (eval $ac_try) 2>&5
31618 ac_status=$?
31619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31620 (exit $ac_status); }; }; then
5294a27e 31621 eval "$as_ac_Header=yes"
01cb68df
RG
31622else
31623 echo "$as_me: failed program was:" >&5
31624sed 's/^/| /' conftest.$ac_ext >&5
31625
5294a27e 31626eval "$as_ac_Header=no"
01cb68df 31627fi
ac1cb8d3 31628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
31629fi
31630echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31631echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
31632if test `eval echo '${'$as_ac_Header'}'` = yes; then
31633 cat >>confdefs.h <<_ACEOF
31634#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31635_ACEOF
31636
01cb68df
RG
31637fi
31638
31639done
31640
a848cd7e
SC
31641 fi
31642fi
31643
31644
31645USE_OPENGL=0
31646if test "$wxUSE_OPENGL" = "yes"; then
31647 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
31648 OPENGL_LIBS="-framework OpenGL -framework AGL"
31649 elif test "$wxUSE_MSW" = 1; then
31650 OPENGL_LIBS="-lopengl32 -lglu32"
31651 else
31652
31653
31654ac_find_includes=
31655for ac_dir in $SEARCH_INCLUDE /usr/include;
31656 do
31657 if test -f "$ac_dir/GL/gl.h"; then
31658 ac_find_includes=$ac_dir
31659 break
31660 fi
31661 done
31662
31663 if test "$ac_find_includes" != "" ; then
31664 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
31665echo "${ECHO_T}found in $ac_find_includes" >&6
31666
31667 if test "x$ac_find_includes" = "x/usr/include"; then
31668 ac_path_to_include=""
31669 else
31670 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
31671 result=$?
31672 if test $result = 0; then
31673 ac_path_to_include=""
31674 else
31675 ac_path_to_include=" -I$ac_find_includes"
31676 fi
31677 fi
31678
c92ad099 31679 CPPFLAGS="$ac_path_to_include $CPPFLAGS"
a848cd7e
SC
31680 fi
31681
31682 if test "${ac_cv_header_GL_gl_h+set}" = set; then
31683 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
31684echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
31685if test "${ac_cv_header_GL_gl_h+set}" = set; then
31686 echo $ECHO_N "(cached) $ECHO_C" >&6
31687fi
31688echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
31689echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
31690else
31691 # Is the header compilable?
31692echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
31693echo $ECHO_N "checking GL/gl.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 <GL/gl.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); } &&
5d7b7554 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 GL/gl.h presence" >&5
31737echo $ECHO_N "checking GL/gl.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 <GL/gl.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: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
31779echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
31780 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
31781echo "$as_me: WARNING: GL/gl.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: GL/gl.h: present but cannot be compiled" >&5
31786echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
31787 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
31788echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
31789 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
31790echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
31791 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
31792echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
31793 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
31794echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
31795 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
31796echo "$as_me: WARNING: GL/gl.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 GL/gl.h" >&5
31808echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
31809if test "${ac_cv_header_GL_gl_h+set}" = set; then
31810 echo $ECHO_N "(cached) $ECHO_C" >&6
31811else
31812 ac_cv_header_GL_gl_h=$ac_header_preproc
31813fi
31814echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
31815echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
31816
31817fi
31818if test $ac_cv_header_GL_gl_h = yes; then
31819
31820 found_gl=0
31821
31822 echo "$as_me:$LINENO: checking for -lGL" >&5
31823echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
31824
0ad5d837
VZ
31825 ac_find_libraries=
31826 for ac_dir in $SEARCH_LIB;
a848cd7e 31827 do
3eca31dc 31828 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
31829 if test -f "$ac_dir/libGL.$ac_extension"; then
31830 ac_find_libraries=$ac_dir
31831 break 2
31832 fi
31833 done
31834 done
31835
31836 if test "$ac_find_libraries" != "" ; then
69120ee4
VZ
31837 echo "$as_me:$LINENO: result: yes" >&5
31838echo "${ECHO_T}yes" >&6
31839
a848cd7e 31840
0ad5d837 31841 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31842 ac_path_to_link=""
31843 else
0ad5d837
VZ
31844 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
31845 result=$?
31846 if test $result = 0; then
31847 ac_path_to_link=""
31848 else
31849 ac_path_to_link=" -L$ac_find_libraries"
31850 fi
a848cd7e
SC
31851 fi
31852
31853 if test "$ac_path_to_link" != " -L/usr/lib" ; then
31854 LDFLAGS_GL="$ac_path_to_link"
31855 fi
31856
69120ee4
VZ
31857 echo "$as_me:$LINENO: checking for -lGLU" >&5
31858echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
a848cd7e 31859
0ad5d837
VZ
31860 ac_find_libraries=
31861 for ac_dir in $SEARCH_LIB;
31862 do
31863 for ac_extension in a so sl dylib dll.a; do
31864 if test -f "$ac_dir/libGLU.$ac_extension"; then
31865 ac_find_libraries=$ac_dir
31866 break 2
31867 fi
31868 done
31869 done
31870
a848cd7e
SC
31871 if test "$ac_find_libraries" != "" ; then
31872
0ad5d837 31873 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31874 ac_path_to_link=""
31875 else
0ad5d837
VZ
31876 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
31877 result=$?
31878 if test $result = 0; then
31879 ac_path_to_link=""
31880 else
31881 ac_path_to_link=" -L$ac_find_libraries"
31882 fi
a848cd7e
SC
31883 fi
31884
31885 if test "$ac_path_to_link" != " -L/usr/lib" -a \
31886 "$ac_path_to_link" != "$LDFLAGS_GL"; then
31887 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
31888 fi
31889
31890 found_gl=1
31891 OPENGL_LIBS="-lGL -lGLU"
31892 echo "$as_me:$LINENO: result: yes" >&5
31893echo "${ECHO_T}yes" >&6
69120ee4
VZ
31894 else
31895 echo "$as_me:$LINENO: result: no" >&5
31896echo "${ECHO_T}no" >&6
a848cd7e 31897 fi
69120ee4
VZ
31898 else
31899 echo "$as_me:$LINENO: result: no" >&5
31900echo "${ECHO_T}no" >&6
a848cd7e
SC
31901 fi
31902
31903 if test "$found_gl" != 1; then
a848cd7e
SC
31904 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
31905echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
31906
0ad5d837
VZ
31907 ac_find_libraries=
31908 for ac_dir in $SEARCH_LIB;
a848cd7e 31909 do
3eca31dc 31910 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
31911 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
31912 ac_find_libraries=$ac_dir
31913 break 2
31914 fi
31915 done
31916 done
31917
31918 if test "$ac_find_libraries" != "" ; then
31919
0ad5d837 31920 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31921 ac_path_to_link=""
31922 else
0ad5d837
VZ
31923 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
31924 result=$?
31925 if test $result = 0; then
31926 ac_path_to_link=""
31927 else
31928 ac_path_to_link=" -L$ac_find_libraries"
31929 fi
a848cd7e
SC
31930 fi
31931
31932 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
31933 OPENGL_LIBS="-lMesaGL -lMesaGLU"
31934 echo "$as_me:$LINENO: result: yes" >&5
31935echo "${ECHO_T}yes" >&6
31936 else
31937 echo "$as_me:$LINENO: result: no" >&5
31938echo "${ECHO_T}no" >&6
31939 fi
31940 fi
31941
31942fi
31943
31944
31945
31946 if test "x$OPENGL_LIBS" = "x"; then
31947 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
31948echo "$as_me: error: OpenGL libraries not available" >&2;}
31949 { (exit 1); exit 1; }; }
31950 fi
31951 fi
31952
31953 if test "$wxUSE_OPENGL" = "yes"; then
31954 USE_OPENGL=1
31955 cat >>confdefs.h <<\_ACEOF
31956#define wxUSE_OPENGL 1
31957_ACEOF
31958
31959 cat >>confdefs.h <<\_ACEOF
31960#define wxUSE_GLCANVAS 1
31961_ACEOF
31962
31963 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
31964 fi
31965fi
31966
a848cd7e
SC
31967
31968if test -n "$TOOLKIT" ; then
31969 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
31970fi
31971
a848cd7e
SC
31972
31973
31974if test "$wxUSE_SHARED" = "yes"; then
31975 case "${host}" in
31976 *-pc-msdosdjgpp )
31977 wxUSE_SHARED=no
31978 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
31979echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
31980 ;;
31981 esac
31982fi
31983
a848cd7e 31984if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
31985
31986
31987 found_versioning=no
31988
31989
31990 if test $found_versioning = no ; then
31991 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
31992echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
31993if test "${wx_cv_version_script+set}" = set; then
31994 echo $ECHO_N "(cached) $ECHO_C" >&6
31995else
31996
31997 echo "VER_1 { *; };" >conftest.sym
31998 echo "int main() { return 0; }" >conftest.cpp
31999
32000 if { ac_try='
32001 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
32002 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
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 if test -s conftest.stderr ; then
32009 wx_cv_version_script=no
32010 else
32011 wx_cv_version_script=yes
32012 fi
32013 else
32014 wx_cv_version_script=no
32015 fi
e5d4b470
MW
32016
32017 if test $wx_cv_version_script = yes
32018 then
32019 echo "struct B { virtual ~B() { } }; \
32020 struct D : public B { }; \
32021 void F() { D d; }" > conftest.cpp
32022
32023 if { ac_try='
32024 $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
32025 -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
32026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32027 (eval $ac_try) 2>&5
32028 ac_status=$?
32029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32030 (exit $ac_status); }; } &&
32031 { ac_try='
32032 $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
32033 -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
32034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32035 (eval $ac_try) 2>&5
32036 ac_status=$?
32037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32038 (exit $ac_status); }; }
32039 then
32040 if { ac_try='
32041 $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
32042 -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
32043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32044 (eval $ac_try) 2>&5
32045 ac_status=$?
32046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32047 (exit $ac_status); }; }
32048 then
32049 wx_cv_version_script=yes
32050 else
32051 wx_cv_version_script=no
32052 fi
32053 fi
32054 fi
32055
a848cd7e 32056 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
e5d4b470 32057 rm -f conftest1.output conftest2.output conftest3.output
a848cd7e
SC
32058
32059fi
32060echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
32061echo "${ECHO_T}$wx_cv_version_script" >&6
32062 if test $wx_cv_version_script = yes ; then
32063 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
32064 fi
32065 fi
32066
32067
32068 case "${host}" in
32069 *-*-linux* | *-*-gnu* )
32070 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 32071 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
6ebeb4c7 32072 ;;
a848cd7e
SC
32073
32074 *-*-solaris2* )
32075 if test "$GCC" = yes ; then
c92ad099 32076 CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
a848cd7e
SC
32077
32078 saveLdflags="$LDFLAGS"
32079 LDFLAGS="$saveLdflags -Wl,-rpath,/"
32080 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
32081echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
32082 cat >conftest.$ac_ext <<_ACEOF
32083/* confdefs.h. */
32084_ACEOF
32085cat confdefs.h >>conftest.$ac_ext
32086cat >>conftest.$ac_ext <<_ACEOF
32087/* end confdefs.h. */
32088
32089int
32090main ()
32091{
32092
32093 ;
32094 return 0;
32095}
32096_ACEOF
32097rm -f conftest.$ac_objext conftest$ac_exeext
32098if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32099 (eval $ac_link) 2>conftest.er1
a848cd7e 32100 ac_status=$?
ac1cb8d3
VS
32101 grep -v '^ *+' conftest.er1 >conftest.err
32102 rm -f conftest.er1
32103 cat conftest.err >&5
a848cd7e
SC
32104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32105 (exit $ac_status); } &&
5d7b7554 32106 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32108 (eval $ac_try) 2>&5
32109 ac_status=$?
32110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32111 (exit $ac_status); }; } &&
32112 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32114 (eval $ac_try) 2>&5
32115 ac_status=$?
32116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32117 (exit $ac_status); }; }; then
32118
32119 echo "$as_me:$LINENO: result: yes" >&5
32120echo "${ECHO_T}yes" >&6
32121 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 32122 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
32123
32124else
32125 echo "$as_me: failed program was:" >&5
32126sed 's/^/| /' conftest.$ac_ext >&5
32127
32128
32129 echo "$as_me:$LINENO: result: no" >&5
32130echo "${ECHO_T}no" >&6
32131 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
32132echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
32133 LDFLAGS="$saveLdflags -Wl,-R,/"
32134 cat >conftest.$ac_ext <<_ACEOF
32135/* confdefs.h. */
32136_ACEOF
32137cat confdefs.h >>conftest.$ac_ext
32138cat >>conftest.$ac_ext <<_ACEOF
32139/* end confdefs.h. */
32140
32141int
32142main ()
32143{
32144
32145 ;
32146 return 0;
32147}
32148_ACEOF
32149rm -f conftest.$ac_objext conftest$ac_exeext
32150if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32151 (eval $ac_link) 2>conftest.er1
a848cd7e 32152 ac_status=$?
ac1cb8d3
VS
32153 grep -v '^ *+' conftest.er1 >conftest.err
32154 rm -f conftest.er1
32155 cat conftest.err >&5
a848cd7e
SC
32156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32157 (exit $ac_status); } &&
5d7b7554 32158 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
32164 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32166 (eval $ac_try) 2>&5
32167 ac_status=$?
32168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32169 (exit $ac_status); }; }; then
32170
ffa0583f 32171 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 32172echo "${ECHO_T}yes" >&6
ffa0583f
RL
32173 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
32174 WXCONFIG_RPATH="-Wl,-R,\$libdir"
32175
a848cd7e
SC
32176else
32177 echo "$as_me: failed program was:" >&5
32178sed 's/^/| /' conftest.$ac_ext >&5
32179
32180
32181 echo "$as_me:$LINENO: result: no" >&5
32182echo "${ECHO_T}no" >&6
32183
32184fi
ac1cb8d3
VS
32185rm -f conftest.err conftest.$ac_objext \
32186 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32187
32188fi
ac1cb8d3
VS
32189rm -f conftest.err conftest.$ac_objext \
32190 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32191 LDFLAGS="$saveLdflags"
32192 else
a848cd7e 32193 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 32194 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
32195 fi
32196 ;;
32197
cfda0ea8 32198 *-*-darwin* )
0caebc27
MW
32199 install_name_tool=`which install_name_tool`
32200 if test "$install_name_tool" -a -x "$install_name_tool"; then
32201 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
32202 cat <<EOF >change-install-names
a848cd7e
SC
32203#!/bin/sh
32204libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
32205inst_cmd="install_name_tool "
32206for i in \${libnames} ; do
32207 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
32208done
32209\${inst_cmd} \${3}
32210EOF
0caebc27
MW
32211 chmod +x change-install-names
32212 fi
a848cd7e
SC
32213 ;;
32214
32215 *-*-cygwin* | *-*-mingw32* )
5ff751d6
VZ
32216 WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
32217 ;;
a848cd7e 32218
81f90336
MW
32219 *-*-hpux* )
32220 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
32221 WXCONFIG_RPATH="-Wl,+b,\$libdir"
5ff751d6 32222 ;;
81f90336 32223
a848cd7e 32224 esac
ceec2216 32225
ffa0583f
RL
32226 if test $wxUSE_RPATH = "no"; then
32227 SAMPLES_RPATH_FLAG=''
32228 SAMPLES_RPATH_POSTLINK=''
32229 WXCONFIG_RPATH=''
32230 fi
32231
32232 SHARED=1
32233
32234else
32235
ceec2216
RL
32236 config_linkage_component="-static"
32237 SHARED=0
ffa0583f 32238
ceec2216 32239fi
a848cd7e 32240
a848cd7e 32241
ceec2216
RL
32242UNICODE=0
32243lib_unicode_suffix=
32244WX_CHARTYPE="ansi"
32245if test "$wxUSE_UNICODE" = "yes"; then
32246 lib_unicode_suffix=u
32247 WX_CHARTYPE="unicode"
32248 UNICODE=1
a848cd7e
SC
32249fi
32250
ceec2216
RL
32251lib_debug_suffix=
32252WX_DEBUGTYPE="release"
32253DEBUG_FLAG=0
32254if test "$wxUSE_DEBUG_FLAG" = "yes"; then
32255 lib_debug_suffix=d
32256 WX_DEBUGTYPE="debug"
32257 DEBUG_FLAG=1
32258fi
a848cd7e 32259
ceec2216
RL
32260WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
32261WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 32262
ceec2216
RL
32263DEBUG_INFO=0
32264if test "$wxUSE_DEBUG_INFO" = "yes"; then
32265 DEBUG_INFO=1
32266fi
a848cd7e 32267
ceec2216 32268WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 32269
ceec2216 32270TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 32271
ceec2216 32272TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 32273
ceec2216
RL
32274if test "$cross_compiling" = "yes"; then
32275 HOST_SUFFIX="-$host_alias"
32276 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
32277 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
32278fi
32279
dd21ced8 32280WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
abc736fd
MW
32281if test "${TOOLKIT_DIR}" = "os2"; then
32282 WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
32283else
32284 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
32285fi
ceec2216
RL
32286
32287
32288
1d1af5ea
DE
32289if test "$wxUSE_COCOA" = 1; then
32290
32291
32292 ac_ext=c
32293ac_cpp='$CPP $CPPFLAGS'
32294ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32295ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32296ac_compiler_gnu=$ac_cv_c_compiler_gnu
32297
32298ac_ext=m
32299
32300 echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
32301echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
32302 cat >conftest.$ac_ext <<_ACEOF
32303/* confdefs.h. */
32304_ACEOF
32305cat confdefs.h >>conftest.$ac_ext
32306cat >>conftest.$ac_ext <<_ACEOF
32307/* end confdefs.h. */
32308#include <AppKit/NSEvent.h>
32309#include <CoreFoundation/CoreFoundation.h>
32310
32311int
32312main ()
32313{
32314
32315 ;
32316 return 0;
32317}
32318_ACEOF
32319rm -f conftest.$ac_objext
32320if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32321 (eval $ac_compile) 2>conftest.er1
32322 ac_status=$?
32323 grep -v '^ *+' conftest.er1 >conftest.err
32324 rm -f conftest.er1
32325 cat conftest.err >&5
32326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32327 (exit $ac_status); } &&
5d7b7554 32328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
32329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32330 (eval $ac_try) 2>&5
32331 ac_status=$?
32332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32333 (exit $ac_status); }; } &&
32334 { ac_try='test -s conftest.$ac_objext'
32335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32336 (eval $ac_try) 2>&5
32337 ac_status=$?
32338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32339 (exit $ac_status); }; }; then
32340 echo "$as_me:$LINENO: result: no" >&5
32341echo "${ECHO_T}no" >&6
32342else
32343 echo "$as_me: failed program was:" >&5
32344sed 's/^/| /' conftest.$ac_ext >&5
32345
32346echo "$as_me:$LINENO: result: yes" >&5
32347echo "${ECHO_T}yes" >&6
32348 echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
32349echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
32350 cat >conftest.$ac_ext <<_ACEOF
32351/* confdefs.h. */
32352_ACEOF
32353cat confdefs.h >>conftest.$ac_ext
32354cat >>conftest.$ac_ext <<_ACEOF
32355/* end confdefs.h. */
32356#define __Point__ 1
32357#include <AppKit/NSEvent.h>
32358#include <CoreFoundation/CoreFoundation.h>
32359
32360int
32361main ()
32362{
32363
32364 ;
32365 return 0;
32366}
32367_ACEOF
32368rm -f conftest.$ac_objext
32369if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32370 (eval $ac_compile) 2>conftest.er1
32371 ac_status=$?
32372 grep -v '^ *+' conftest.er1 >conftest.err
32373 rm -f conftest.er1
32374 cat conftest.err >&5
32375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32376 (exit $ac_status); } &&
5d7b7554 32377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
32378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32379 (eval $ac_try) 2>&5
32380 ac_status=$?
32381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32382 (exit $ac_status); }; } &&
32383 { ac_try='test -s conftest.$ac_objext'
32384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32385 (eval $ac_try) 2>&5
32386 ac_status=$?
32387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32388 (exit $ac_status); }; }; then
32389 echo "$as_me:$LINENO: result: yes" >&5
32390echo "${ECHO_T}yes" >&6
32391 cat >>confdefs.h <<\_ACEOF
32392#define __Point__ 1
32393_ACEOF
32394
32395
32396else
32397 echo "$as_me: failed program was:" >&5
32398sed 's/^/| /' conftest.$ac_ext >&5
32399
32400{ { echo "$as_me:$LINENO: error: no
32401See \`config.log' for more details." >&5
32402echo "$as_me: error: no
32403See \`config.log' for more details." >&2;}
32404 { (exit 1); exit 1; }; }
32405
32406fi
32407rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32408
32409fi
32410rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
32411 ac_ext=cc
32412ac_cpp='$CXXCPP $CPPFLAGS'
32413ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32414ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32415ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1d1af5ea
DE
32416
32417fi
32418
a848cd7e 32419if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
32420 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
32421 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 32422
a848cd7e 32423 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
32424
32425 # Extract the first word of "Rez", so it can be a program name with args.
32426set dummy Rez; ac_word=$2
32427echo "$as_me:$LINENO: checking for $ac_word" >&5
32428echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 32429if test "${ac_cv_prog_REZ+set}" = set; then
a848cd7e
SC
32430 echo $ECHO_N "(cached) $ECHO_C" >&6
32431else
8ced02f6
DE
32432 if test -n "$REZ"; then
32433 ac_cv_prog_REZ="$REZ" # Let the user override the test.
a848cd7e
SC
32434else
32435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32436for as_dir in $PATH
32437do
32438 IFS=$as_save_IFS
32439 test -z "$as_dir" && as_dir=.
32440 for ac_exec_ext in '' $ac_executable_extensions; do
32441 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 32442 ac_cv_prog_REZ="Rez"
a848cd7e
SC
32443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32444 break 2
32445 fi
32446done
32447done
32448
8ced02f6 32449 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
a848cd7e
SC
32450fi
32451fi
8ced02f6
DE
32452REZ=$ac_cv_prog_REZ
32453if test -n "$REZ"; then
32454 echo "$as_me:$LINENO: result: $REZ" >&5
32455echo "${ECHO_T}$REZ" >&6
a848cd7e
SC
32456else
32457 echo "$as_me:$LINENO: result: no" >&5
32458echo "${ECHO_T}no" >&6
32459fi
32460
32461 # Extract the first word of "DeRez", so it can be a program name with args.
32462set dummy DeRez; ac_word=$2
32463echo "$as_me:$LINENO: checking for $ac_word" >&5
32464echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
32465if test "${ac_cv_prog_DEREZ+set}" = set; then
32466 echo $ECHO_N "(cached) $ECHO_C" >&6
32467else
32468 if test -n "$DEREZ"; then
32469 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
32470else
32471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32472for as_dir in $PATH
32473do
32474 IFS=$as_save_IFS
32475 test -z "$as_dir" && as_dir=.
32476 for ac_exec_ext in '' $ac_executable_extensions; do
32477 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32478 ac_cv_prog_DEREZ="DeRez"
32479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32480 break 2
32481 fi
32482done
32483done
32484
32485 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
32486fi
32487fi
32488DEREZ=$ac_cv_prog_DEREZ
32489if test -n "$DEREZ"; then
32490 echo "$as_me:$LINENO: result: $DEREZ" >&5
32491echo "${ECHO_T}$DEREZ" >&6
32492else
32493 echo "$as_me:$LINENO: result: no" >&5
32494echo "${ECHO_T}no" >&6
32495fi
32496
32497 # Extract the first word of "SetFile", so it can be a program name with args.
32498set dummy SetFile; ac_word=$2
32499echo "$as_me:$LINENO: checking for $ac_word" >&5
32500echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
32501if test "${ac_cv_prog_SETFILE+set}" = set; then
32502 echo $ECHO_N "(cached) $ECHO_C" >&6
32503else
32504 if test -n "$SETFILE"; then
32505 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
32506else
32507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32508for as_dir in $PATH
32509do
32510 IFS=$as_save_IFS
32511 test -z "$as_dir" && as_dir=.
32512 for ac_exec_ext in '' $ac_executable_extensions; do
32513 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32514 ac_cv_prog_SETFILE="SetFile"
32515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32516 break 2
32517 fi
32518done
32519done
32520
32521 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
32522fi
32523fi
32524SETFILE=$ac_cv_prog_SETFILE
32525if test -n "$SETFILE"; then
32526 echo "$as_me:$LINENO: result: $SETFILE" >&5
32527echo "${ECHO_T}$SETFILE" >&6
32528else
32529 echo "$as_me:$LINENO: result: no" >&5
32530echo "${ECHO_T}no" >&6
32531fi
32532
32533
32534 MACSETFILE="\$(SETFILE)"
32535
32536 if test "$wxUSE_MAC" = 1; then
8ced02f6 32537 POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
004ee6da
RL
32538 RESCOMP="$REZ"
32539 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e 32540 else
004ee6da
RL
32541 POSTLINK_COMMAND="echo -n | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
32542 RESCOMP="echo -n \| $REZ"
32543 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
a848cd7e 32544 fi
004ee6da 32545
a848cd7e 32546else
ffa0583f 32547 MACSETFILE="@true"
a848cd7e 32548
8ced02f6 32549 if test "$wxUSE_PM" = 1; then
004ee6da
RL
32550 RESCOMP="emxbind"
32551 WXCONFIG_RESFLAGS="-ep"
32552
32553 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
a848cd7e 32554 else
8ced02f6 32555 POSTLINK_COMMAND="@true"
a848cd7e 32556 fi
004ee6da 32557
a848cd7e
SC
32558fi
32559
32560
32561
32562echo "$as_me:$LINENO: checking for mode_t" >&5
32563echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
32564if test "${ac_cv_type_mode_t+set}" = set; then
32565 echo $ECHO_N "(cached) $ECHO_C" >&6
32566else
32567 cat >conftest.$ac_ext <<_ACEOF
32568/* confdefs.h. */
32569_ACEOF
32570cat confdefs.h >>conftest.$ac_ext
32571cat >>conftest.$ac_ext <<_ACEOF
32572/* end confdefs.h. */
32573$ac_includes_default
32574int
32575main ()
32576{
32577if ((mode_t *) 0)
32578 return 0;
32579if (sizeof (mode_t))
32580 return 0;
32581 ;
32582 return 0;
32583}
32584_ACEOF
32585rm -f conftest.$ac_objext
32586if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32587 (eval $ac_compile) 2>conftest.er1
a848cd7e 32588 ac_status=$?
ac1cb8d3
VS
32589 grep -v '^ *+' conftest.er1 >conftest.err
32590 rm -f conftest.er1
32591 cat conftest.err >&5
a848cd7e
SC
32592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32593 (exit $ac_status); } &&
5d7b7554 32594 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32596 (eval $ac_try) 2>&5
32597 ac_status=$?
32598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32599 (exit $ac_status); }; } &&
32600 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32602 (eval $ac_try) 2>&5
32603 ac_status=$?
32604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32605 (exit $ac_status); }; }; then
32606 ac_cv_type_mode_t=yes
32607else
32608 echo "$as_me: failed program was:" >&5
32609sed 's/^/| /' conftest.$ac_ext >&5
32610
32611ac_cv_type_mode_t=no
32612fi
ac1cb8d3 32613rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32614fi
32615echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
32616echo "${ECHO_T}$ac_cv_type_mode_t" >&6
32617if test $ac_cv_type_mode_t = yes; then
32618 :
32619else
32620
32621cat >>confdefs.h <<_ACEOF
32622#define mode_t int
32623_ACEOF
32624
32625fi
32626
32627echo "$as_me:$LINENO: checking for off_t" >&5
32628echo $ECHO_N "checking for off_t... $ECHO_C" >&6
32629if test "${ac_cv_type_off_t+set}" = set; then
32630 echo $ECHO_N "(cached) $ECHO_C" >&6
32631else
32632 cat >conftest.$ac_ext <<_ACEOF
32633/* confdefs.h. */
32634_ACEOF
32635cat confdefs.h >>conftest.$ac_ext
32636cat >>conftest.$ac_ext <<_ACEOF
32637/* end confdefs.h. */
32638$ac_includes_default
32639int
32640main ()
32641{
32642if ((off_t *) 0)
32643 return 0;
32644if (sizeof (off_t))
32645 return 0;
32646 ;
32647 return 0;
32648}
32649_ACEOF
32650rm -f conftest.$ac_objext
32651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32652 (eval $ac_compile) 2>conftest.er1
a848cd7e 32653 ac_status=$?
ac1cb8d3
VS
32654 grep -v '^ *+' conftest.er1 >conftest.err
32655 rm -f conftest.er1
32656 cat conftest.err >&5
a848cd7e
SC
32657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32658 (exit $ac_status); } &&
5d7b7554 32659 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32661 (eval $ac_try) 2>&5
32662 ac_status=$?
32663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32664 (exit $ac_status); }; } &&
32665 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32667 (eval $ac_try) 2>&5
32668 ac_status=$?
32669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32670 (exit $ac_status); }; }; then
32671 ac_cv_type_off_t=yes
32672else
32673 echo "$as_me: failed program was:" >&5
32674sed 's/^/| /' conftest.$ac_ext >&5
32675
32676ac_cv_type_off_t=no
32677fi
ac1cb8d3 32678rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32679fi
32680echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
32681echo "${ECHO_T}$ac_cv_type_off_t" >&6
32682if test $ac_cv_type_off_t = yes; then
32683 :
32684else
32685
32686cat >>confdefs.h <<_ACEOF
32687#define off_t long
32688_ACEOF
32689
32690fi
32691
32692echo "$as_me:$LINENO: checking for pid_t" >&5
32693echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
32694if test "${ac_cv_type_pid_t+set}" = set; then
32695 echo $ECHO_N "(cached) $ECHO_C" >&6
32696else
32697 cat >conftest.$ac_ext <<_ACEOF
32698/* confdefs.h. */
32699_ACEOF
32700cat confdefs.h >>conftest.$ac_ext
32701cat >>conftest.$ac_ext <<_ACEOF
32702/* end confdefs.h. */
32703$ac_includes_default
32704int
32705main ()
32706{
32707if ((pid_t *) 0)
32708 return 0;
32709if (sizeof (pid_t))
32710 return 0;
32711 ;
32712 return 0;
32713}
32714_ACEOF
32715rm -f conftest.$ac_objext
32716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32717 (eval $ac_compile) 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); } &&
5d7b7554 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_objext'
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 ac_cv_type_pid_t=yes
32737else
32738 echo "$as_me: failed program was:" >&5
32739sed 's/^/| /' conftest.$ac_ext >&5
32740
32741ac_cv_type_pid_t=no
32742fi
ac1cb8d3 32743rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32744fi
32745echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
32746echo "${ECHO_T}$ac_cv_type_pid_t" >&6
32747if test $ac_cv_type_pid_t = yes; then
32748 :
32749else
32750
32751cat >>confdefs.h <<_ACEOF
32752#define pid_t int
32753_ACEOF
32754
32755fi
32756
32757echo "$as_me:$LINENO: checking for size_t" >&5
32758echo $ECHO_N "checking for size_t... $ECHO_C" >&6
32759if test "${ac_cv_type_size_t+set}" = set; then
32760 echo $ECHO_N "(cached) $ECHO_C" >&6
32761else
32762 cat >conftest.$ac_ext <<_ACEOF
32763/* confdefs.h. */
32764_ACEOF
32765cat confdefs.h >>conftest.$ac_ext
32766cat >>conftest.$ac_ext <<_ACEOF
32767/* end confdefs.h. */
32768$ac_includes_default
32769int
32770main ()
32771{
32772if ((size_t *) 0)
32773 return 0;
32774if (sizeof (size_t))
32775 return 0;
32776 ;
32777 return 0;
32778}
32779_ACEOF
32780rm -f conftest.$ac_objext
32781if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32782 (eval $ac_compile) 2>conftest.er1
a848cd7e 32783 ac_status=$?
ac1cb8d3
VS
32784 grep -v '^ *+' conftest.er1 >conftest.err
32785 rm -f conftest.er1
32786 cat conftest.err >&5
a848cd7e
SC
32787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32788 (exit $ac_status); } &&
5d7b7554 32789 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32791 (eval $ac_try) 2>&5
32792 ac_status=$?
32793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32794 (exit $ac_status); }; } &&
32795 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32797 (eval $ac_try) 2>&5
32798 ac_status=$?
32799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32800 (exit $ac_status); }; }; then
32801 ac_cv_type_size_t=yes
32802else
32803 echo "$as_me: failed program was:" >&5
32804sed 's/^/| /' conftest.$ac_ext >&5
32805
32806ac_cv_type_size_t=no
32807fi
ac1cb8d3 32808rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32809fi
32810echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
32811echo "${ECHO_T}$ac_cv_type_size_t" >&6
32812if test $ac_cv_type_size_t = yes; then
32813 :
32814else
32815
32816cat >>confdefs.h <<_ACEOF
32817#define size_t unsigned
32818_ACEOF
32819
32820fi
32821
32822echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
32823echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
32824if test "${ac_cv_type_uid_t+set}" = set; then
32825 echo $ECHO_N "(cached) $ECHO_C" >&6
32826else
32827 cat >conftest.$ac_ext <<_ACEOF
32828/* confdefs.h. */
32829_ACEOF
32830cat confdefs.h >>conftest.$ac_ext
32831cat >>conftest.$ac_ext <<_ACEOF
32832/* end confdefs.h. */
32833#include <sys/types.h>
32834
32835_ACEOF
32836if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32837 $EGREP "uid_t" >/dev/null 2>&1; then
32838 ac_cv_type_uid_t=yes
32839else
32840 ac_cv_type_uid_t=no
32841fi
32842rm -f conftest*
32843
32844fi
32845echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
32846echo "${ECHO_T}$ac_cv_type_uid_t" >&6
32847if test $ac_cv_type_uid_t = no; then
32848
32849cat >>confdefs.h <<\_ACEOF
32850#define uid_t int
32851_ACEOF
32852
32853
32854cat >>confdefs.h <<\_ACEOF
32855#define gid_t int
32856_ACEOF
32857
32858fi
32859
32860
d51253e8
RL
32861echo "$as_me:$LINENO: checking for ssize_t" >&5
32862echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
32863if test "${ac_cv_type_ssize_t+set}" = set; then
32864 echo $ECHO_N "(cached) $ECHO_C" >&6
32865else
32866 cat >conftest.$ac_ext <<_ACEOF
32867/* confdefs.h. */
32868_ACEOF
32869cat confdefs.h >>conftest.$ac_ext
32870cat >>conftest.$ac_ext <<_ACEOF
32871/* end confdefs.h. */
32872$ac_includes_default
32873int
32874main ()
32875{
32876if ((ssize_t *) 0)
32877 return 0;
32878if (sizeof (ssize_t))
32879 return 0;
32880 ;
32881 return 0;
32882}
32883_ACEOF
32884rm -f conftest.$ac_objext
32885if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32886 (eval $ac_compile) 2>conftest.er1
32887 ac_status=$?
32888 grep -v '^ *+' conftest.er1 >conftest.err
32889 rm -f conftest.er1
32890 cat conftest.err >&5
32891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32892 (exit $ac_status); } &&
5d7b7554 32893 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d51253e8
RL
32894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32895 (eval $ac_try) 2>&5
32896 ac_status=$?
32897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32898 (exit $ac_status); }; } &&
32899 { ac_try='test -s conftest.$ac_objext'
32900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32901 (eval $ac_try) 2>&5
32902 ac_status=$?
32903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32904 (exit $ac_status); }; }; then
32905 ac_cv_type_ssize_t=yes
32906else
32907 echo "$as_me: failed program was:" >&5
32908sed 's/^/| /' conftest.$ac_ext >&5
32909
32910ac_cv_type_ssize_t=no
32911fi
32912rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32913fi
32914echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
32915echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
32916if test $ac_cv_type_ssize_t = yes; then
32917
32918cat >>confdefs.h <<_ACEOF
32919#define HAVE_SSIZE_T 1
32920_ACEOF
32921
32922
32923fi
32924
32925
a848cd7e
SC
32926echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
32927echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
32928if test "${wx_cv_size_t_is_uint+set}" = set; then
32929 echo $ECHO_N "(cached) $ECHO_C" >&6
32930else
32931
32932 cat >conftest.$ac_ext <<_ACEOF
32933/* confdefs.h. */
32934_ACEOF
32935cat confdefs.h >>conftest.$ac_ext
32936cat >>conftest.$ac_ext <<_ACEOF
32937/* end confdefs.h. */
32938#include <stddef.h>
32939int
32940main ()
32941{
32942
32943 return 0; }
32944
32945 struct Foo { void foo(size_t); void foo(unsigned int); };
32946
32947 int bar() {
32948
32949 ;
32950 return 0;
32951}
32952_ACEOF
32953rm -f conftest.$ac_objext
32954if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32955 (eval $ac_compile) 2>conftest.er1
a848cd7e 32956 ac_status=$?
ac1cb8d3
VS
32957 grep -v '^ *+' conftest.er1 >conftest.err
32958 rm -f conftest.er1
32959 cat conftest.err >&5
a848cd7e
SC
32960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32961 (exit $ac_status); } &&
5d7b7554 32962 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32964 (eval $ac_try) 2>&5
32965 ac_status=$?
32966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32967 (exit $ac_status); }; } &&
32968 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32970 (eval $ac_try) 2>&5
32971 ac_status=$?
32972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32973 (exit $ac_status); }; }; then
32974 wx_cv_size_t_is_uint=no
32975else
32976 echo "$as_me: failed program was:" >&5
32977sed 's/^/| /' conftest.$ac_ext >&5
32978
32979wx_cv_size_t_is_uint=yes
32980
32981fi
ac1cb8d3 32982rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32983
32984
32985fi
32986echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
32987echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
32988
32989if test "$wx_cv_size_t_is_uint" = "yes"; then
32990 cat >>confdefs.h <<\_ACEOF
32991#define wxSIZE_T_IS_UINT 1
32992_ACEOF
32993
32994else
32995 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
32996echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
32997if test "${wx_cv_size_t_is_ulong+set}" = set; then
32998 echo $ECHO_N "(cached) $ECHO_C" >&6
32999else
33000 cat >conftest.$ac_ext <<_ACEOF
33001/* confdefs.h. */
33002_ACEOF
33003cat confdefs.h >>conftest.$ac_ext
33004cat >>conftest.$ac_ext <<_ACEOF
33005/* end confdefs.h. */
33006#include <stddef.h>
33007int
33008main ()
33009{
33010
33011 return 0; }
33012
33013 struct Foo { void foo(size_t); void foo(unsigned long); };
33014
33015 int bar() {
33016
33017 ;
33018 return 0;
33019}
33020_ACEOF
33021rm -f conftest.$ac_objext
33022if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33023 (eval $ac_compile) 2>conftest.er1
a848cd7e 33024 ac_status=$?
ac1cb8d3
VS
33025 grep -v '^ *+' conftest.er1 >conftest.err
33026 rm -f conftest.er1
33027 cat conftest.err >&5
a848cd7e
SC
33028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33029 (exit $ac_status); } &&
5d7b7554 33030 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33032 (eval $ac_try) 2>&5
33033 ac_status=$?
33034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33035 (exit $ac_status); }; } &&
33036 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33038 (eval $ac_try) 2>&5
33039 ac_status=$?
33040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33041 (exit $ac_status); }; }; then
33042 wx_cv_size_t_is_ulong=no
33043else
33044 echo "$as_me: failed program was:" >&5
33045sed 's/^/| /' conftest.$ac_ext >&5
33046
33047wx_cv_size_t_is_ulong=yes
33048
33049fi
ac1cb8d3 33050rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33051
33052fi
33053echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
33054echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
33055
33056 if test "$wx_cv_size_t_is_ulong" = "yes"; then
33057 cat >>confdefs.h <<\_ACEOF
33058#define wxSIZE_T_IS_ULONG 1
33059_ACEOF
33060
33061 fi
33062fi
33063
a848cd7e
SC
33064
33065echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
33066echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
33067if test "${wx_cv_struct_pw_gecos+set}" = set; then
33068 echo $ECHO_N "(cached) $ECHO_C" >&6
33069else
33070
33071 cat >conftest.$ac_ext <<_ACEOF
33072/* confdefs.h. */
33073_ACEOF
33074cat confdefs.h >>conftest.$ac_ext
33075cat >>conftest.$ac_ext <<_ACEOF
33076/* end confdefs.h. */
33077#include <pwd.h>
33078int
33079main ()
33080{
33081
33082 char *p;
33083 struct passwd *pw;
33084 p = pw->pw_gecos;
33085
33086 ;
33087 return 0;
33088}
33089_ACEOF
33090rm -f conftest.$ac_objext
33091if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33092 (eval $ac_compile) 2>conftest.er1
a848cd7e 33093 ac_status=$?
ac1cb8d3
VS
33094 grep -v '^ *+' conftest.er1 >conftest.err
33095 rm -f conftest.er1
33096 cat conftest.err >&5
a848cd7e
SC
33097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33098 (exit $ac_status); } &&
5d7b7554 33099 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33101 (eval $ac_try) 2>&5
33102 ac_status=$?
33103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33104 (exit $ac_status); }; } &&
33105 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33107 (eval $ac_try) 2>&5
33108 ac_status=$?
33109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33110 (exit $ac_status); }; }; then
33111
33112 wx_cv_struct_pw_gecos=yes
33113
33114else
33115 echo "$as_me: failed program was:" >&5
33116sed 's/^/| /' conftest.$ac_ext >&5
33117
33118
33119 wx_cv_struct_pw_gecos=no
33120
33121
33122fi
ac1cb8d3 33123rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33124
33125
33126fi
33127echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
33128echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
33129
33130if test "$wx_cv_struct_pw_gecos" = "yes"; then
33131 cat >>confdefs.h <<\_ACEOF
33132#define HAVE_PW_GECOS 1
33133_ACEOF
33134
33135fi
33136
33137
47a7e797 33138if test "$wxUSE_WCHAR_T" = "yes"; then
a848cd7e
SC
33139 cat >>confdefs.h <<\_ACEOF
33140#define wxUSE_WCHAR_T 1
33141_ACEOF
33142
33143
33144 WCSLEN_FOUND=0
33145 WCHAR_LINK=
33146
33147for ac_func in wcslen
33148do
33149as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33150echo "$as_me:$LINENO: checking for $ac_func" >&5
33151echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33152if eval "test \"\${$as_ac_var+set}\" = set"; then
33153 echo $ECHO_N "(cached) $ECHO_C" >&6
33154else
33155 cat >conftest.$ac_ext <<_ACEOF
33156/* confdefs.h. */
33157_ACEOF
33158cat confdefs.h >>conftest.$ac_ext
33159cat >>conftest.$ac_ext <<_ACEOF
33160/* end confdefs.h. */
ac1cb8d3
VS
33161/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33162 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33163#define $ac_func innocuous_$ac_func
33164
a848cd7e
SC
33165/* System header to define __stub macros and hopefully few prototypes,
33166 which can conflict with char $ac_func (); below.
33167 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33168 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33169
a848cd7e
SC
33170#ifdef __STDC__
33171# include <limits.h>
33172#else
33173# include <assert.h>
33174#endif
ac1cb8d3
VS
33175
33176#undef $ac_func
33177
a848cd7e
SC
33178/* Override any gcc2 internal prototype to avoid an error. */
33179#ifdef __cplusplus
33180extern "C"
33181{
33182#endif
33183/* We use char because int might match the return type of a gcc2
33184 builtin and then its argument prototype would still apply. */
33185char $ac_func ();
33186/* The GNU C library defines this for functions which it implements
33187 to always fail with ENOSYS. Some functions are actually named
33188 something starting with __ and the normal name is an alias. */
33189#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33190choke me
33191#else
33192char (*f) () = $ac_func;
33193#endif
33194#ifdef __cplusplus
33195}
33196#endif
33197
33198int
33199main ()
33200{
33201return f != $ac_func;
33202 ;
33203 return 0;
33204}
33205_ACEOF
33206rm -f conftest.$ac_objext conftest$ac_exeext
33207if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33208 (eval $ac_link) 2>conftest.er1
a848cd7e 33209 ac_status=$?
ac1cb8d3
VS
33210 grep -v '^ *+' conftest.er1 >conftest.err
33211 rm -f conftest.er1
33212 cat conftest.err >&5
a848cd7e
SC
33213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33214 (exit $ac_status); } &&
5d7b7554 33215 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33217 (eval $ac_try) 2>&5
33218 ac_status=$?
33219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33220 (exit $ac_status); }; } &&
33221 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33223 (eval $ac_try) 2>&5
33224 ac_status=$?
33225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33226 (exit $ac_status); }; }; then
33227 eval "$as_ac_var=yes"
33228else
33229 echo "$as_me: failed program was:" >&5
33230sed 's/^/| /' conftest.$ac_ext >&5
33231
33232eval "$as_ac_var=no"
33233fi
ac1cb8d3
VS
33234rm -f conftest.err conftest.$ac_objext \
33235 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33236fi
33237echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33238echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33239if test `eval echo '${'$as_ac_var'}'` = yes; then
33240 cat >>confdefs.h <<_ACEOF
33241#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33242_ACEOF
33243 WCSLEN_FOUND=1
33244fi
33245done
33246
33247
33248 if test "$WCSLEN_FOUND" = 0; then
33249 if test "$TOOLKIT" = "MSW"; then
33250 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
33251echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
33252if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
33253 echo $ECHO_N "(cached) $ECHO_C" >&6
33254else
33255 ac_check_lib_save_LIBS=$LIBS
33256LIBS="-lmsvcrt $LIBS"
33257cat >conftest.$ac_ext <<_ACEOF
33258/* confdefs.h. */
33259_ACEOF
33260cat confdefs.h >>conftest.$ac_ext
33261cat >>conftest.$ac_ext <<_ACEOF
33262/* end confdefs.h. */
33263
33264/* Override any gcc2 internal prototype to avoid an error. */
33265#ifdef __cplusplus
33266extern "C"
33267#endif
33268/* We use char because int might match the return type of a gcc2
33269 builtin and then its argument prototype would still apply. */
33270char wcslen ();
33271int
33272main ()
33273{
33274wcslen ();
33275 ;
33276 return 0;
33277}
33278_ACEOF
33279rm -f conftest.$ac_objext conftest$ac_exeext
33280if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33281 (eval $ac_link) 2>conftest.er1
a848cd7e 33282 ac_status=$?
ac1cb8d3
VS
33283 grep -v '^ *+' conftest.er1 >conftest.err
33284 rm -f conftest.er1
33285 cat conftest.err >&5
a848cd7e
SC
33286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33287 (exit $ac_status); } &&
5d7b7554 33288 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33290 (eval $ac_try) 2>&5
33291 ac_status=$?
33292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33293 (exit $ac_status); }; } &&
33294 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33296 (eval $ac_try) 2>&5
33297 ac_status=$?
33298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33299 (exit $ac_status); }; }; then
33300 ac_cv_lib_msvcrt_wcslen=yes
33301else
33302 echo "$as_me: failed program was:" >&5
33303sed 's/^/| /' conftest.$ac_ext >&5
33304
33305ac_cv_lib_msvcrt_wcslen=no
33306fi
ac1cb8d3
VS
33307rm -f conftest.err conftest.$ac_objext \
33308 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33309LIBS=$ac_check_lib_save_LIBS
33310fi
33311echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
33312echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
33313if test $ac_cv_lib_msvcrt_wcslen = yes; then
33314 WCHAR_OK=1
33315fi
33316
33317 else
33318 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
33319echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
33320if test "${ac_cv_lib_w_wcslen+set}" = set; then
33321 echo $ECHO_N "(cached) $ECHO_C" >&6
33322else
33323 ac_check_lib_save_LIBS=$LIBS
33324LIBS="-lw $LIBS"
33325cat >conftest.$ac_ext <<_ACEOF
33326/* confdefs.h. */
33327_ACEOF
33328cat confdefs.h >>conftest.$ac_ext
33329cat >>conftest.$ac_ext <<_ACEOF
33330/* end confdefs.h. */
33331
33332/* Override any gcc2 internal prototype to avoid an error. */
33333#ifdef __cplusplus
33334extern "C"
33335#endif
33336/* We use char because int might match the return type of a gcc2
33337 builtin and then its argument prototype would still apply. */
33338char wcslen ();
33339int
33340main ()
33341{
33342wcslen ();
33343 ;
33344 return 0;
33345}
33346_ACEOF
33347rm -f conftest.$ac_objext conftest$ac_exeext
33348if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33349 (eval $ac_link) 2>conftest.er1
a848cd7e 33350 ac_status=$?
ac1cb8d3
VS
33351 grep -v '^ *+' conftest.er1 >conftest.err
33352 rm -f conftest.er1
33353 cat conftest.err >&5
a848cd7e
SC
33354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33355 (exit $ac_status); } &&
5d7b7554 33356 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33358 (eval $ac_try) 2>&5
33359 ac_status=$?
33360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33361 (exit $ac_status); }; } &&
33362 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33364 (eval $ac_try) 2>&5
33365 ac_status=$?
33366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33367 (exit $ac_status); }; }; then
33368 ac_cv_lib_w_wcslen=yes
33369else
33370 echo "$as_me: failed program was:" >&5
33371sed 's/^/| /' conftest.$ac_ext >&5
33372
33373ac_cv_lib_w_wcslen=no
33374fi
ac1cb8d3
VS
33375rm -f conftest.err conftest.$ac_objext \
33376 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33377LIBS=$ac_check_lib_save_LIBS
33378fi
33379echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
33380echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
33381if test $ac_cv_lib_w_wcslen = yes; then
33382
33383 WCHAR_LINK=" -lw"
33384 WCSLEN_FOUND=1
33385
33386fi
33387
33388 fi
33389 fi
33390
33391 if test "$WCSLEN_FOUND" = 1; then
33392 cat >>confdefs.h <<\_ACEOF
33393#define HAVE_WCSLEN 1
33394_ACEOF
33395
33396 fi
33397
efdf6afe 33398 if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
c92ad099 33399 CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
473276a9
VS
33400 fi
33401
efdf6afe
VZ
33402 echo "$as_me:$LINENO: checking for mbstate_t" >&5
33403echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
33404if test "${ac_cv_type_mbstate_t+set}" = set; then
33405 echo $ECHO_N "(cached) $ECHO_C" >&6
33406else
33407 cat >conftest.$ac_ext <<_ACEOF
33408/* confdefs.h. */
33409_ACEOF
33410cat confdefs.h >>conftest.$ac_ext
33411cat >>conftest.$ac_ext <<_ACEOF
33412/* end confdefs.h. */
33413#include <wchar.h>
33414
33415int
33416main ()
33417{
33418if ((mbstate_t *) 0)
33419 return 0;
33420if (sizeof (mbstate_t))
33421 return 0;
33422 ;
33423 return 0;
33424}
33425_ACEOF
33426rm -f conftest.$ac_objext
33427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33428 (eval $ac_compile) 2>conftest.er1
33429 ac_status=$?
33430 grep -v '^ *+' conftest.er1 >conftest.err
33431 rm -f conftest.er1
33432 cat conftest.err >&5
33433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33434 (exit $ac_status); } &&
5d7b7554 33435 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
efdf6afe
VZ
33436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33437 (eval $ac_try) 2>&5
33438 ac_status=$?
33439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33440 (exit $ac_status); }; } &&
33441 { ac_try='test -s conftest.$ac_objext'
33442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33443 (eval $ac_try) 2>&5
33444 ac_status=$?
33445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33446 (exit $ac_status); }; }; then
33447 ac_cv_type_mbstate_t=yes
33448else
33449 echo "$as_me: failed program was:" >&5
33450sed 's/^/| /' conftest.$ac_ext >&5
33451
33452ac_cv_type_mbstate_t=no
33453fi
33454rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33455fi
33456echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
33457echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
33458if test $ac_cv_type_mbstate_t = yes; then
33459
33460cat >>confdefs.h <<_ACEOF
33461#define HAVE_MBSTATE_T 1
33462_ACEOF
33463
a848cd7e
SC
33464
33465for ac_func in wcsrtombs
33466do
33467as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33468echo "$as_me:$LINENO: checking for $ac_func" >&5
33469echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33470if eval "test \"\${$as_ac_var+set}\" = set"; then
33471 echo $ECHO_N "(cached) $ECHO_C" >&6
33472else
33473 cat >conftest.$ac_ext <<_ACEOF
33474/* confdefs.h. */
33475_ACEOF
33476cat confdefs.h >>conftest.$ac_ext
33477cat >>conftest.$ac_ext <<_ACEOF
33478/* end confdefs.h. */
ac1cb8d3
VS
33479/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33480 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33481#define $ac_func innocuous_$ac_func
33482
a848cd7e
SC
33483/* System header to define __stub macros and hopefully few prototypes,
33484 which can conflict with char $ac_func (); below.
33485 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33486 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33487
a848cd7e
SC
33488#ifdef __STDC__
33489# include <limits.h>
33490#else
33491# include <assert.h>
33492#endif
ac1cb8d3
VS
33493
33494#undef $ac_func
33495
a848cd7e
SC
33496/* Override any gcc2 internal prototype to avoid an error. */
33497#ifdef __cplusplus
33498extern "C"
33499{
33500#endif
33501/* We use char because int might match the return type of a gcc2
33502 builtin and then its argument prototype would still apply. */
33503char $ac_func ();
33504/* The GNU C library defines this for functions which it implements
33505 to always fail with ENOSYS. Some functions are actually named
33506 something starting with __ and the normal name is an alias. */
33507#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33508choke me
33509#else
33510char (*f) () = $ac_func;
33511#endif
33512#ifdef __cplusplus
33513}
33514#endif
33515
33516int
33517main ()
33518{
33519return f != $ac_func;
33520 ;
33521 return 0;
33522}
33523_ACEOF
33524rm -f conftest.$ac_objext conftest$ac_exeext
33525if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33526 (eval $ac_link) 2>conftest.er1
a848cd7e 33527 ac_status=$?
ac1cb8d3
VS
33528 grep -v '^ *+' conftest.er1 >conftest.err
33529 rm -f conftest.er1
33530 cat conftest.err >&5
a848cd7e
SC
33531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33532 (exit $ac_status); } &&
5d7b7554 33533 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33535 (eval $ac_try) 2>&5
33536 ac_status=$?
33537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33538 (exit $ac_status); }; } &&
33539 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33541 (eval $ac_try) 2>&5
33542 ac_status=$?
33543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33544 (exit $ac_status); }; }; then
33545 eval "$as_ac_var=yes"
33546else
33547 echo "$as_me: failed program was:" >&5
33548sed 's/^/| /' conftest.$ac_ext >&5
33549
33550eval "$as_ac_var=no"
33551fi
ac1cb8d3
VS
33552rm -f conftest.err conftest.$ac_objext \
33553 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33554fi
33555echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33556echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33557if test `eval echo '${'$as_ac_var'}'` = yes; then
33558 cat >>confdefs.h <<_ACEOF
33559#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33560_ACEOF
33561
33562fi
33563done
33564
efdf6afe
VZ
33565fi
33566
a848cd7e
SC
33567else
33568 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
33569echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
33570fi
33571
a848cd7e 33572
4a767dd5
VZ
33573
33574for ac_func in snprintf vsnprintf
a848cd7e
SC
33575do
33576as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33577echo "$as_me:$LINENO: checking for $ac_func" >&5
33578echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33579if eval "test \"\${$as_ac_var+set}\" = set"; then
33580 echo $ECHO_N "(cached) $ECHO_C" >&6
33581else
33582 cat >conftest.$ac_ext <<_ACEOF
33583/* confdefs.h. */
33584_ACEOF
33585cat confdefs.h >>conftest.$ac_ext
33586cat >>conftest.$ac_ext <<_ACEOF
33587/* end confdefs.h. */
ac1cb8d3
VS
33588/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33589 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33590#define $ac_func innocuous_$ac_func
33591
a848cd7e
SC
33592/* System header to define __stub macros and hopefully few prototypes,
33593 which can conflict with char $ac_func (); below.
33594 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33595 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33596
a848cd7e
SC
33597#ifdef __STDC__
33598# include <limits.h>
33599#else
33600# include <assert.h>
33601#endif
ac1cb8d3
VS
33602
33603#undef $ac_func
33604
a848cd7e
SC
33605/* Override any gcc2 internal prototype to avoid an error. */
33606#ifdef __cplusplus
33607extern "C"
33608{
33609#endif
33610/* We use char because int might match the return type of a gcc2
33611 builtin and then its argument prototype would still apply. */
33612char $ac_func ();
33613/* The GNU C library defines this for functions which it implements
33614 to always fail with ENOSYS. Some functions are actually named
33615 something starting with __ and the normal name is an alias. */
33616#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33617choke me
33618#else
33619char (*f) () = $ac_func;
33620#endif
33621#ifdef __cplusplus
33622}
33623#endif
33624
33625int
33626main ()
33627{
33628return f != $ac_func;
33629 ;
33630 return 0;
33631}
33632_ACEOF
33633rm -f conftest.$ac_objext conftest$ac_exeext
33634if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33635 (eval $ac_link) 2>conftest.er1
a848cd7e 33636 ac_status=$?
ac1cb8d3
VS
33637 grep -v '^ *+' conftest.er1 >conftest.err
33638 rm -f conftest.er1
33639 cat conftest.err >&5
a848cd7e
SC
33640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33641 (exit $ac_status); } &&
5d7b7554 33642 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33644 (eval $ac_try) 2>&5
33645 ac_status=$?
33646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33647 (exit $ac_status); }; } &&
33648 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
33654 eval "$as_ac_var=yes"
33655else
33656 echo "$as_me: failed program was:" >&5
33657sed 's/^/| /' conftest.$ac_ext >&5
33658
33659eval "$as_ac_var=no"
33660fi
ac1cb8d3
VS
33661rm -f conftest.err conftest.$ac_objext \
33662 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33663fi
33664echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33665echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33666if test `eval echo '${'$as_ac_var'}'` = yes; then
33667 cat >>confdefs.h <<_ACEOF
33668#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33669_ACEOF
33670
33671fi
33672done
33673
33674
33675if test "$ac_cv_func_vsnprintf" = "yes"; then
33676 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
33677echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
33678if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
33679 echo $ECHO_N "(cached) $ECHO_C" >&6
33680else
33681
efdf6afe 33682 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
33683/* confdefs.h. */
33684_ACEOF
33685cat confdefs.h >>conftest.$ac_ext
33686cat >>conftest.$ac_ext <<_ACEOF
33687/* end confdefs.h. */
33688
33689 #include <stdio.h>
33690 #include <stdarg.h>
efdf6afe
VZ
33691 #ifdef __MSL__
33692 #if __MSL__ >= 0x6000
33693 namespace std {}
33694 using namespace std;
33695 #endif
33696 #endif
a848cd7e
SC
33697
33698int
33699main ()
33700{
33701
33702 char *buf;
33703 va_list ap;
62fa8b3a 33704 vsnprintf(buf, 10u, "%s", ap);
c122b164
DE
33705
33706 ;
33707 return 0;
33708}
33709_ACEOF
33710rm -f conftest.$ac_objext
33711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33712 (eval $ac_compile) 2>conftest.er1
33713 ac_status=$?
33714 grep -v '^ *+' conftest.er1 >conftest.err
33715 rm -f conftest.er1
33716 cat conftest.err >&5
33717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33718 (exit $ac_status); } &&
5d7b7554 33719 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
c122b164
DE
33720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33721 (eval $ac_try) 2>&5
33722 ac_status=$?
33723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33724 (exit $ac_status); }; } &&
33725 { ac_try='test -s conftest.$ac_objext'
33726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33727 (eval $ac_try) 2>&5
33728 ac_status=$?
33729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33730 (exit $ac_status); }; }; then
33731 wx_cv_func_vsnprintf_decl=yes
33732else
33733 echo "$as_me: failed program was:" >&5
33734sed 's/^/| /' conftest.$ac_ext >&5
33735
a848cd7e
SC
33736wx_cv_func_vsnprintf_decl=no
33737
33738fi
ac1cb8d3 33739rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33740
33741
33742fi
33743echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
33744echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
33745
33746 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
33747 cat >>confdefs.h <<\_ACEOF
33748#define HAVE_VSNPRINTF_DECL 1
33749_ACEOF
33750
62fa8b3a
MW
33751
33752 echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
33753echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6
33754if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
33755 echo $ECHO_N "(cached) $ECHO_C" >&6
33756else
33757
33758 cat >conftest.$ac_ext <<_ACEOF
33759/* confdefs.h. */
33760_ACEOF
33761cat confdefs.h >>conftest.$ac_ext
33762cat >>conftest.$ac_ext <<_ACEOF
33763/* end confdefs.h. */
33764
33765 #include <stdio.h>
33766 #include <stdarg.h>
33767 #ifdef __MSL__
33768 #if __MSL__ >= 0x6000
33769 namespace std {}
33770 using namespace std;
33771 #endif
33772 #endif
33773
33774int
33775main ()
33776{
33777
33778 char *buf;
33779 va_list ap;
33780 const char *fmt = "%s";
33781 vsnprintf(buf, 10u, fmt, ap);
33782
33783 ;
33784 return 0;
33785}
33786_ACEOF
33787rm -f conftest.$ac_objext
33788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33789 (eval $ac_compile) 2>conftest.er1
33790 ac_status=$?
33791 grep -v '^ *+' conftest.er1 >conftest.err
33792 rm -f conftest.er1
33793 cat conftest.err >&5
33794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33795 (exit $ac_status); } &&
5d7b7554 33796 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
33797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33798 (eval $ac_try) 2>&5
33799 ac_status=$?
33800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33801 (exit $ac_status); }; } &&
33802 { ac_try='test -s conftest.$ac_objext'
33803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33804 (eval $ac_try) 2>&5
33805 ac_status=$?
33806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33807 (exit $ac_status); }; }; then
33808 wx_cv_func_broken_vsnprintf_decl=no
33809else
33810 echo "$as_me: failed program was:" >&5
33811sed 's/^/| /' conftest.$ac_ext >&5
33812
33813wx_cv_func_broken_vsnprintf_decl=yes
33814
33815fi
33816rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33817
33818
33819fi
33820echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
33821echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6
33822
33823 if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
33824 cat >>confdefs.h <<\_ACEOF
33825#define HAVE_BROKEN_VSNPRINTF_DECL 1
33826_ACEOF
33827
33828 fi
a848cd7e
SC
33829 fi
33830fi
33831
4a767dd5
VZ
33832if test "$ac_cv_func_snprintf" = "yes"; then
33833 echo "$as_me:$LINENO: checking for snprintf declaration" >&5
33834echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
33835if test "${wx_cv_func_snprintf_decl+set}" = set; then
33836 echo $ECHO_N "(cached) $ECHO_C" >&6
33837else
33838
33839 cat >conftest.$ac_ext <<_ACEOF
33840/* confdefs.h. */
33841_ACEOF
33842cat confdefs.h >>conftest.$ac_ext
33843cat >>conftest.$ac_ext <<_ACEOF
33844/* end confdefs.h. */
33845
33846 #include <stdio.h>
33847 #include <stdarg.h>
33848 #ifdef __MSL__
33849 #if __MSL__ >= 0x6000
33850 namespace std {}
33851 using namespace std;
33852 #endif
33853 #endif
33854
33855int
33856main ()
33857{
33858
33859 char *buf;
62fa8b3a 33860 snprintf(buf, 10u, "%s", "wx");
4a767dd5
VZ
33861
33862 ;
33863 return 0;
33864}
33865_ACEOF
33866rm -f conftest.$ac_objext
33867if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33868 (eval $ac_compile) 2>conftest.er1
33869 ac_status=$?
33870 grep -v '^ *+' conftest.er1 >conftest.err
33871 rm -f conftest.er1
33872 cat conftest.err >&5
33873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33874 (exit $ac_status); } &&
5d7b7554 33875 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4a767dd5
VZ
33876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33877 (eval $ac_try) 2>&5
33878 ac_status=$?
33879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33880 (exit $ac_status); }; } &&
33881 { ac_try='test -s conftest.$ac_objext'
33882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33883 (eval $ac_try) 2>&5
33884 ac_status=$?
33885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33886 (exit $ac_status); }; }; then
33887 wx_cv_func_snprintf_decl=yes
33888else
33889 echo "$as_me: failed program was:" >&5
33890sed 's/^/| /' conftest.$ac_ext >&5
33891
33892wx_cv_func_snprintf_decl=no
33893
33894fi
33895rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33896
33897
33898fi
33899echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
33900echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6
33901
33902 if test "$wx_cv_func_snprintf_decl" = "yes"; then
33903 cat >>confdefs.h <<\_ACEOF
33904#define HAVE_SNPRINTF_DECL 1
33905_ACEOF
33906
62fa8b3a
MW
33907
33908 echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5
33909echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6
33910if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then
33911 echo $ECHO_N "(cached) $ECHO_C" >&6
33912else
33913
33914 cat >conftest.$ac_ext <<_ACEOF
33915/* confdefs.h. */
33916_ACEOF
33917cat confdefs.h >>conftest.$ac_ext
33918cat >>conftest.$ac_ext <<_ACEOF
33919/* end confdefs.h. */
33920
33921 #include <stdio.h>
33922 #include <stdarg.h>
33923 #ifdef __MSL__
33924 #if __MSL__ >= 0x6000
33925 namespace std {}
33926 using namespace std;
33927 #endif
33928 #endif
33929
33930int
33931main ()
33932{
33933
33934 char *buf;
33935 const char *fmt = "%s";
33936 snprintf(buf, 10u, fmt, "wx");
33937
33938 ;
33939 return 0;
33940}
33941_ACEOF
33942rm -f conftest.$ac_objext
33943if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33944 (eval $ac_compile) 2>conftest.er1
33945 ac_status=$?
33946 grep -v '^ *+' conftest.er1 >conftest.err
33947 rm -f conftest.er1
33948 cat conftest.err >&5
33949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33950 (exit $ac_status); } &&
5d7b7554 33951 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
33952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33953 (eval $ac_try) 2>&5
33954 ac_status=$?
33955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33956 (exit $ac_status); }; } &&
33957 { ac_try='test -s conftest.$ac_objext'
33958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33959 (eval $ac_try) 2>&5
33960 ac_status=$?
33961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33962 (exit $ac_status); }; }; then
33963 wx_cv_func_broken_snprintf_decl=no
33964else
33965 echo "$as_me: failed program was:" >&5
33966sed 's/^/| /' conftest.$ac_ext >&5
33967
33968wx_cv_func_broken_snprintf_decl=yes
33969
33970fi
33971rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33972
33973
33974fi
33975echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5
33976echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6
33977
33978 if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then
33979 cat >>confdefs.h <<\_ACEOF
33980#define HAVE_BROKEN_SNPRINTF_DECL 1
33981_ACEOF
33982
33983 fi
4a767dd5
VZ
33984 fi
33985fi
33986
a848cd7e
SC
33987if test "$wxUSE_UNICODE" = yes; then
33988
33989
33990
fbe47c7b
VS
33991
33992
33993
33994for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
33995do
33996as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33997echo "$as_me:$LINENO: checking for $ac_func" >&5
33998echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33999if eval "test \"\${$as_ac_var+set}\" = set"; then
34000 echo $ECHO_N "(cached) $ECHO_C" >&6
34001else
34002 cat >conftest.$ac_ext <<_ACEOF
34003/* confdefs.h. */
34004_ACEOF
34005cat confdefs.h >>conftest.$ac_ext
34006cat >>conftest.$ac_ext <<_ACEOF
34007/* end confdefs.h. */
ac1cb8d3
VS
34008/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34009 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34010#define $ac_func innocuous_$ac_func
34011
a848cd7e
SC
34012/* System header to define __stub macros and hopefully few prototypes,
34013 which can conflict with char $ac_func (); below.
34014 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34015 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34016
a848cd7e
SC
34017#ifdef __STDC__
34018# include <limits.h>
34019#else
34020# include <assert.h>
34021#endif
ac1cb8d3
VS
34022
34023#undef $ac_func
34024
a848cd7e
SC
34025/* Override any gcc2 internal prototype to avoid an error. */
34026#ifdef __cplusplus
34027extern "C"
34028{
34029#endif
34030/* We use char because int might match the return type of a gcc2
34031 builtin and then its argument prototype would still apply. */
34032char $ac_func ();
34033/* The GNU C library defines this for functions which it implements
34034 to always fail with ENOSYS. Some functions are actually named
34035 something starting with __ and the normal name is an alias. */
34036#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34037choke me
34038#else
34039char (*f) () = $ac_func;
34040#endif
34041#ifdef __cplusplus
34042}
34043#endif
34044
34045int
34046main ()
34047{
34048return f != $ac_func;
34049 ;
34050 return 0;
34051}
34052_ACEOF
34053rm -f conftest.$ac_objext conftest$ac_exeext
34054if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34055 (eval $ac_link) 2>conftest.er1
a848cd7e 34056 ac_status=$?
ac1cb8d3
VS
34057 grep -v '^ *+' conftest.er1 >conftest.err
34058 rm -f conftest.er1
34059 cat conftest.err >&5
a848cd7e
SC
34060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34061 (exit $ac_status); } &&
5d7b7554 34062 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34064 (eval $ac_try) 2>&5
34065 ac_status=$?
34066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34067 (exit $ac_status); }; } &&
34068 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34070 (eval $ac_try) 2>&5
34071 ac_status=$?
34072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34073 (exit $ac_status); }; }; then
34074 eval "$as_ac_var=yes"
34075else
34076 echo "$as_me: failed program was:" >&5
34077sed 's/^/| /' conftest.$ac_ext >&5
34078
34079eval "$as_ac_var=no"
34080fi
ac1cb8d3
VS
34081rm -f conftest.err conftest.$ac_objext \
34082 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34083fi
34084echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34085echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34086if test `eval echo '${'$as_ac_var'}'` = yes; then
34087 cat >>confdefs.h <<_ACEOF
34088#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34089_ACEOF
34090
34091fi
34092done
34093
34094
34095 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
34096echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
34097 cat >conftest.$ac_ext <<_ACEOF
34098/* confdefs.h. */
34099_ACEOF
34100cat confdefs.h >>conftest.$ac_ext
34101cat >>conftest.$ac_ext <<_ACEOF
34102/* end confdefs.h. */
34103#include <wchar.h>
34104int
34105main ()
34106{
34107&_vsnwprintf;
34108 ;
34109 return 0;
34110}
34111_ACEOF
34112rm -f conftest.$ac_objext
34113if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34114 (eval $ac_compile) 2>conftest.er1
a848cd7e 34115 ac_status=$?
ac1cb8d3
VS
34116 grep -v '^ *+' conftest.er1 >conftest.err
34117 rm -f conftest.er1
34118 cat conftest.err >&5
a848cd7e
SC
34119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34120 (exit $ac_status); } &&
5d7b7554 34121 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34123 (eval $ac_try) 2>&5
34124 ac_status=$?
34125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34126 (exit $ac_status); }; } &&
34127 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34129 (eval $ac_try) 2>&5
34130 ac_status=$?
34131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34132 (exit $ac_status); }; }; then
34133 echo "$as_me:$LINENO: result: yes" >&5
34134echo "${ECHO_T}yes" >&6
34135 cat >>confdefs.h <<\_ACEOF
34136#define HAVE__VSNWPRINTF 1
34137_ACEOF
34138
34139else
34140 echo "$as_me: failed program was:" >&5
34141sed 's/^/| /' conftest.$ac_ext >&5
34142
34143echo "$as_me:$LINENO: result: no" >&5
34144echo "${ECHO_T}no" >&6
34145fi
ac1cb8d3 34146rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
34147fi
34148
6ebeb4c7
VZ
34149if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
34150
34151for ac_func in fnmatch
34152do
34153as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34154echo "$as_me:$LINENO: checking for $ac_func" >&5
34155echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34156if eval "test \"\${$as_ac_var+set}\" = set"; then
34157 echo $ECHO_N "(cached) $ECHO_C" >&6
34158else
34159 cat >conftest.$ac_ext <<_ACEOF
34160/* confdefs.h. */
34161_ACEOF
34162cat confdefs.h >>conftest.$ac_ext
34163cat >>conftest.$ac_ext <<_ACEOF
34164/* end confdefs.h. */
34165/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34166 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34167#define $ac_func innocuous_$ac_func
34168
34169/* System header to define __stub macros and hopefully few prototypes,
34170 which can conflict with char $ac_func (); below.
34171 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34172 <limits.h> exists even on freestanding compilers. */
34173
34174#ifdef __STDC__
34175# include <limits.h>
34176#else
34177# include <assert.h>
34178#endif
34179
34180#undef $ac_func
34181
34182/* Override any gcc2 internal prototype to avoid an error. */
34183#ifdef __cplusplus
34184extern "C"
34185{
34186#endif
34187/* We use char because int might match the return type of a gcc2
34188 builtin and then its argument prototype would still apply. */
34189char $ac_func ();
34190/* The GNU C library defines this for functions which it implements
34191 to always fail with ENOSYS. Some functions are actually named
34192 something starting with __ and the normal name is an alias. */
34193#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34194choke me
34195#else
34196char (*f) () = $ac_func;
34197#endif
34198#ifdef __cplusplus
34199}
34200#endif
34201
34202int
34203main ()
34204{
34205return f != $ac_func;
34206 ;
34207 return 0;
34208}
34209_ACEOF
34210rm -f conftest.$ac_objext conftest$ac_exeext
34211if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34212 (eval $ac_link) 2>conftest.er1
34213 ac_status=$?
34214 grep -v '^ *+' conftest.er1 >conftest.err
34215 rm -f conftest.er1
34216 cat conftest.err >&5
34217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34218 (exit $ac_status); } &&
5d7b7554 34219 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
34220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34221 (eval $ac_try) 2>&5
34222 ac_status=$?
34223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34224 (exit $ac_status); }; } &&
34225 { ac_try='test -s conftest$ac_exeext'
34226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34227 (eval $ac_try) 2>&5
34228 ac_status=$?
34229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34230 (exit $ac_status); }; }; then
34231 eval "$as_ac_var=yes"
34232else
34233 echo "$as_me: failed program was:" >&5
34234sed 's/^/| /' conftest.$ac_ext >&5
34235
34236eval "$as_ac_var=no"
34237fi
34238rm -f conftest.err conftest.$ac_objext \
34239 conftest$ac_exeext conftest.$ac_ext
34240fi
34241echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34242echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34243if test `eval echo '${'$as_ac_var'}'` = yes; then
34244 cat >>confdefs.h <<_ACEOF
34245#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34246_ACEOF
34247
34248fi
34249done
34250
34251fi
34252
34253if test "$wxUSE_FILE" = "yes"; then
34254
34255for ac_func in fsync
34256do
34257as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34258echo "$as_me:$LINENO: checking for $ac_func" >&5
34259echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34260if eval "test \"\${$as_ac_var+set}\" = set"; then
34261 echo $ECHO_N "(cached) $ECHO_C" >&6
34262else
34263 cat >conftest.$ac_ext <<_ACEOF
34264/* confdefs.h. */
34265_ACEOF
34266cat confdefs.h >>conftest.$ac_ext
34267cat >>conftest.$ac_ext <<_ACEOF
34268/* end confdefs.h. */
34269/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34270 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34271#define $ac_func innocuous_$ac_func
34272
34273/* System header to define __stub macros and hopefully few prototypes,
34274 which can conflict with char $ac_func (); below.
34275 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34276 <limits.h> exists even on freestanding compilers. */
34277
34278#ifdef __STDC__
34279# include <limits.h>
34280#else
34281# include <assert.h>
34282#endif
34283
34284#undef $ac_func
34285
34286/* Override any gcc2 internal prototype to avoid an error. */
34287#ifdef __cplusplus
34288extern "C"
34289{
34290#endif
34291/* We use char because int might match the return type of a gcc2
34292 builtin and then its argument prototype would still apply. */
34293char $ac_func ();
34294/* The GNU C library defines this for functions which it implements
34295 to always fail with ENOSYS. Some functions are actually named
34296 something starting with __ and the normal name is an alias. */
34297#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34298choke me
34299#else
34300char (*f) () = $ac_func;
34301#endif
34302#ifdef __cplusplus
34303}
34304#endif
34305
34306int
34307main ()
34308{
34309return f != $ac_func;
34310 ;
34311 return 0;
34312}
34313_ACEOF
34314rm -f conftest.$ac_objext conftest$ac_exeext
34315if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34316 (eval $ac_link) 2>conftest.er1
34317 ac_status=$?
34318 grep -v '^ *+' conftest.er1 >conftest.err
34319 rm -f conftest.er1
34320 cat conftest.err >&5
34321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34322 (exit $ac_status); } &&
5d7b7554 34323 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
34324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34325 (eval $ac_try) 2>&5
34326 ac_status=$?
34327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34328 (exit $ac_status); }; } &&
34329 { ac_try='test -s conftest$ac_exeext'
34330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34331 (eval $ac_try) 2>&5
34332 ac_status=$?
34333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34334 (exit $ac_status); }; }; then
34335 eval "$as_ac_var=yes"
34336else
34337 echo "$as_me: failed program was:" >&5
34338sed 's/^/| /' conftest.$ac_ext >&5
34339
34340eval "$as_ac_var=no"
34341fi
34342rm -f conftest.err conftest.$ac_objext \
34343 conftest$ac_exeext conftest.$ac_ext
34344fi
34345echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34346echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34347if test `eval echo '${'$as_ac_var'}'` = yes; then
34348 cat >>confdefs.h <<_ACEOF
34349#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34350_ACEOF
34351
34352fi
34353done
34354
34355fi
a848cd7e
SC
34356
34357
34358if test "$TOOLKIT" != "MSW"; then
34359
34360
a848cd7e
SC
34361
34362
34363
34364# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
34365if test "${with_libiconv_prefix+set}" = set; then
34366 withval="$with_libiconv_prefix"
34367
34368 for dir in `echo "$withval" | tr : ' '`; do
34369 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
34370 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
34371 done
34372
34373fi;
34374
34375 echo "$as_me:$LINENO: checking for iconv" >&5
34376echo $ECHO_N "checking for iconv... $ECHO_C" >&6
34377if test "${am_cv_func_iconv+set}" = set; then
34378 echo $ECHO_N "(cached) $ECHO_C" >&6
34379else
34380
34381 am_cv_func_iconv="no, consider installing GNU libiconv"
34382 am_cv_lib_iconv=no
34383 cat >conftest.$ac_ext <<_ACEOF
34384/* confdefs.h. */
34385_ACEOF
34386cat confdefs.h >>conftest.$ac_ext
34387cat >>conftest.$ac_ext <<_ACEOF
34388/* end confdefs.h. */
34389#include <stdlib.h>
34390#include <iconv.h>
34391int
34392main ()
34393{
34394iconv_t cd = iconv_open("","");
34395 iconv(cd,NULL,NULL,NULL,NULL);
34396 iconv_close(cd);
34397 ;
34398 return 0;
34399}
34400_ACEOF
34401rm -f conftest.$ac_objext conftest$ac_exeext
34402if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34403 (eval $ac_link) 2>conftest.er1
a848cd7e 34404 ac_status=$?
ac1cb8d3
VS
34405 grep -v '^ *+' conftest.er1 >conftest.err
34406 rm -f conftest.er1
34407 cat conftest.err >&5
a848cd7e
SC
34408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34409 (exit $ac_status); } &&
5d7b7554 34410 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34412 (eval $ac_try) 2>&5
34413 ac_status=$?
34414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34415 (exit $ac_status); }; } &&
34416 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34418 (eval $ac_try) 2>&5
34419 ac_status=$?
34420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34421 (exit $ac_status); }; }; then
34422 am_cv_func_iconv=yes
34423else
34424 echo "$as_me: failed program was:" >&5
34425sed 's/^/| /' conftest.$ac_ext >&5
34426
34427fi
ac1cb8d3
VS
34428rm -f conftest.err conftest.$ac_objext \
34429 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34430 if test "$am_cv_func_iconv" != yes; then
34431 am_save_LIBS="$LIBS"
34432 LIBS="$LIBS -liconv"
34433 cat >conftest.$ac_ext <<_ACEOF
34434/* confdefs.h. */
34435_ACEOF
34436cat confdefs.h >>conftest.$ac_ext
34437cat >>conftest.$ac_ext <<_ACEOF
34438/* end confdefs.h. */
34439#include <stdlib.h>
34440#include <iconv.h>
34441int
34442main ()
34443{
34444iconv_t cd = iconv_open("","");
34445 iconv(cd,NULL,NULL,NULL,NULL);
34446 iconv_close(cd);
34447 ;
34448 return 0;
34449}
34450_ACEOF
34451rm -f conftest.$ac_objext conftest$ac_exeext
34452if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34453 (eval $ac_link) 2>conftest.er1
a848cd7e 34454 ac_status=$?
ac1cb8d3
VS
34455 grep -v '^ *+' conftest.er1 >conftest.err
34456 rm -f conftest.er1
34457 cat conftest.err >&5
a848cd7e
SC
34458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34459 (exit $ac_status); } &&
5d7b7554 34460 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34462 (eval $ac_try) 2>&5
34463 ac_status=$?
34464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34465 (exit $ac_status); }; } &&
34466 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34468 (eval $ac_try) 2>&5
34469 ac_status=$?
34470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34471 (exit $ac_status); }; }; then
34472 am_cv_lib_iconv=yes
34473 am_cv_func_iconv=yes
34474else
34475 echo "$as_me: failed program was:" >&5
34476sed 's/^/| /' conftest.$ac_ext >&5
34477
34478fi
ac1cb8d3
VS
34479rm -f conftest.err conftest.$ac_objext \
34480 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34481 LIBS="$am_save_LIBS"
34482 fi
34483
34484fi
34485echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
34486echo "${ECHO_T}$am_cv_func_iconv" >&6
34487 if test "$am_cv_func_iconv" = yes; then
34488
34489cat >>confdefs.h <<\_ACEOF
34490#define HAVE_ICONV 1
34491_ACEOF
34492
34493 echo "$as_me:$LINENO: checking if iconv needs const" >&5
34494echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
34495if test "${wx_cv_func_iconv_const+set}" = set; then
34496 echo $ECHO_N "(cached) $ECHO_C" >&6
34497else
34498 cat >conftest.$ac_ext <<_ACEOF
34499/* confdefs.h. */
34500_ACEOF
34501cat confdefs.h >>conftest.$ac_ext
34502cat >>conftest.$ac_ext <<_ACEOF
34503/* end confdefs.h. */
34504
34505#include <stdlib.h>
34506#include <iconv.h>
34507extern
34508#ifdef __cplusplus
34509"C"
34510#endif
34511#if defined(__STDC__) || defined(__cplusplus)
34512size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
34513#else
34514size_t iconv();
34515#endif
34516
34517int
34518main ()
34519{
34520
34521 ;
34522 return 0;
34523}
34524_ACEOF
34525rm -f conftest.$ac_objext
34526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34527 (eval $ac_compile) 2>conftest.er1
a848cd7e 34528 ac_status=$?
ac1cb8d3
VS
34529 grep -v '^ *+' conftest.er1 >conftest.err
34530 rm -f conftest.er1
34531 cat conftest.err >&5
a848cd7e
SC
34532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34533 (exit $ac_status); } &&
5d7b7554 34534 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34536 (eval $ac_try) 2>&5
34537 ac_status=$?
34538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34539 (exit $ac_status); }; } &&
34540 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34542 (eval $ac_try) 2>&5
34543 ac_status=$?
34544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34545 (exit $ac_status); }; }; then
34546 wx_cv_func_iconv_const="no"
34547else
34548 echo "$as_me: failed program was:" >&5
34549sed 's/^/| /' conftest.$ac_ext >&5
34550
34551wx_cv_func_iconv_const="yes"
34552
34553fi
ac1cb8d3 34554rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34555
34556fi
34557echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
34558echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
34559
34560 iconv_const=
34561 if test "x$wx_cv_func_iconv_const" = "xyes"; then
34562 iconv_const="const"
34563 fi
34564
34565
34566cat >>confdefs.h <<_ACEOF
34567#define ICONV_CONST $iconv_const
34568_ACEOF
34569
34570 fi
34571 LIBICONV=
34572 if test "$am_cv_lib_iconv" = yes; then
34573 LIBICONV="-liconv"
34574 fi
34575
34576
34577LIBS="$LIBICONV $LIBS"
a848cd7e
SC
34578
34579if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
34580
34581for ac_func in sigaction
34582do
34583as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34584echo "$as_me:$LINENO: checking for $ac_func" >&5
34585echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34586if eval "test \"\${$as_ac_var+set}\" = set"; then
34587 echo $ECHO_N "(cached) $ECHO_C" >&6
34588else
34589 cat >conftest.$ac_ext <<_ACEOF
34590/* confdefs.h. */
34591_ACEOF
34592cat confdefs.h >>conftest.$ac_ext
34593cat >>conftest.$ac_ext <<_ACEOF
34594/* end confdefs.h. */
ac1cb8d3
VS
34595/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34596 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34597#define $ac_func innocuous_$ac_func
34598
a848cd7e
SC
34599/* System header to define __stub macros and hopefully few prototypes,
34600 which can conflict with char $ac_func (); below.
34601 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34602 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34603
a848cd7e
SC
34604#ifdef __STDC__
34605# include <limits.h>
34606#else
34607# include <assert.h>
34608#endif
ac1cb8d3
VS
34609
34610#undef $ac_func
34611
a848cd7e
SC
34612/* Override any gcc2 internal prototype to avoid an error. */
34613#ifdef __cplusplus
34614extern "C"
34615{
34616#endif
34617/* We use char because int might match the return type of a gcc2
34618 builtin and then its argument prototype would still apply. */
34619char $ac_func ();
34620/* The GNU C library defines this for functions which it implements
34621 to always fail with ENOSYS. Some functions are actually named
34622 something starting with __ and the normal name is an alias. */
34623#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34624choke me
34625#else
34626char (*f) () = $ac_func;
34627#endif
34628#ifdef __cplusplus
34629}
34630#endif
34631
34632int
34633main ()
34634{
34635return f != $ac_func;
34636 ;
34637 return 0;
34638}
34639_ACEOF
34640rm -f conftest.$ac_objext conftest$ac_exeext
34641if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34642 (eval $ac_link) 2>conftest.er1
a848cd7e 34643 ac_status=$?
ac1cb8d3
VS
34644 grep -v '^ *+' conftest.er1 >conftest.err
34645 rm -f conftest.er1
34646 cat conftest.err >&5
a848cd7e
SC
34647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34648 (exit $ac_status); } &&
5d7b7554 34649 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34651 (eval $ac_try) 2>&5
34652 ac_status=$?
34653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34654 (exit $ac_status); }; } &&
34655 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34657 (eval $ac_try) 2>&5
34658 ac_status=$?
34659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34660 (exit $ac_status); }; }; then
34661 eval "$as_ac_var=yes"
34662else
34663 echo "$as_me: failed program was:" >&5
34664sed 's/^/| /' conftest.$ac_ext >&5
34665
34666eval "$as_ac_var=no"
34667fi
ac1cb8d3
VS
34668rm -f conftest.err conftest.$ac_objext \
34669 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34670fi
34671echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34672echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34673if test `eval echo '${'$as_ac_var'}'` = yes; then
34674 cat >>confdefs.h <<_ACEOF
34675#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34676_ACEOF
34677
34678fi
34679done
34680
34681
34682 if test "$ac_cv_func_sigaction" = "no"; then
34683 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
34684echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
34685 wxUSE_ON_FATAL_EXCEPTION=no
34686 fi
34687
34688 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
a848cd7e
SC
34689 echo "$as_me:$LINENO: checking for sa_handler type" >&5
34690echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
34691if test "${wx_cv_type_sa_handler+set}" = set; then
34692 echo $ECHO_N "(cached) $ECHO_C" >&6
34693else
34694
34695 cat >conftest.$ac_ext <<_ACEOF
34696/* confdefs.h. */
34697_ACEOF
34698cat confdefs.h >>conftest.$ac_ext
34699cat >>conftest.$ac_ext <<_ACEOF
34700/* end confdefs.h. */
34701#include <signal.h>
34702int
34703main ()
34704{
34705
34706 extern void testSigHandler(int);
34707
34708 struct sigaction sa;
34709 sa.sa_handler = testSigHandler;
34710
34711 ;
34712 return 0;
34713}
34714_ACEOF
34715rm -f conftest.$ac_objext
34716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34717 (eval $ac_compile) 2>conftest.er1
a848cd7e 34718 ac_status=$?
ac1cb8d3
VS
34719 grep -v '^ *+' conftest.er1 >conftest.err
34720 rm -f conftest.er1
34721 cat conftest.err >&5
a848cd7e
SC
34722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34723 (exit $ac_status); } &&
5d7b7554 34724 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34726 (eval $ac_try) 2>&5
34727 ac_status=$?
34728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34729 (exit $ac_status); }; } &&
34730 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34732 (eval $ac_try) 2>&5
34733 ac_status=$?
34734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34735 (exit $ac_status); }; }; then
34736
34737 wx_cv_type_sa_handler=int
34738
34739else
34740 echo "$as_me: failed program was:" >&5
34741sed 's/^/| /' conftest.$ac_ext >&5
34742
34743
34744 wx_cv_type_sa_handler=void
34745
34746fi
ac1cb8d3 34747rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34748
34749fi
34750echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
34751echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
34752
a848cd7e
SC
34753 cat >>confdefs.h <<_ACEOF
34754#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
34755_ACEOF
34756
34757 fi
34758fi
34759
eaff0f0d 34760if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
eaff0f0d
VZ
34761 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
34762echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
34763if test "${wx_cv_func_backtrace+set}" = set; then
34764 echo $ECHO_N "(cached) $ECHO_C" >&6
34765else
34766
34767 cat >conftest.$ac_ext <<_ACEOF
34768/* confdefs.h. */
34769_ACEOF
34770cat confdefs.h >>conftest.$ac_ext
34771cat >>conftest.$ac_ext <<_ACEOF
34772/* end confdefs.h. */
34773#include <execinfo.h>
34774int
34775main ()
34776{
34777
34778 void *trace[1];
34779 char **messages;
34780
34781 backtrace(trace, 1);
34782 messages = backtrace_symbols(trace, 1);
34783
34784 ;
34785 return 0;
34786}
34787_ACEOF
34788rm -f conftest.$ac_objext
34789if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34790 (eval $ac_compile) 2>conftest.er1
34791 ac_status=$?
34792 grep -v '^ *+' conftest.er1 >conftest.err
34793 rm -f conftest.er1
34794 cat conftest.err >&5
34795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34796 (exit $ac_status); } &&
5d7b7554 34797 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
34798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34799 (eval $ac_try) 2>&5
34800 ac_status=$?
34801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34802 (exit $ac_status); }; } &&
34803 { ac_try='test -s conftest.$ac_objext'
34804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34805 (eval $ac_try) 2>&5
34806 ac_status=$?
34807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34808 (exit $ac_status); }; }; then
34809 wx_cv_func_backtrace=yes
34810else
34811 echo "$as_me: failed program was:" >&5
34812sed 's/^/| /' conftest.$ac_ext >&5
34813
34814wx_cv_func_backtrace=no
34815
34816fi
34817rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34818
34819
34820fi
34821echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
34822echo "${ECHO_T}$wx_cv_func_backtrace" >&6
34823
34824
34825 if test "$wx_cv_func_backtrace" = "no"; then
34826 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
34827echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
34828 wxUSE_STACKWALKER=no
34829 else
34830 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
34831echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
34832if test "${wx_cv_func_cxa_demangle+set}" = set; then
34833 echo $ECHO_N "(cached) $ECHO_C" >&6
34834else
34835
34836 cat >conftest.$ac_ext <<_ACEOF
34837/* confdefs.h. */
34838_ACEOF
34839cat confdefs.h >>conftest.$ac_ext
34840cat >>conftest.$ac_ext <<_ACEOF
34841/* end confdefs.h. */
34842#include <cxxabi.h>
34843int
34844main ()
34845{
34846
34847 int rc;
34848 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
34849
34850 ;
34851 return 0;
34852}
34853_ACEOF
dfe0c803
JS
34854rm -f conftest.$ac_objext conftest$ac_exeext
34855if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34856 (eval $ac_link) 2>conftest.er1
eaff0f0d
VZ
34857 ac_status=$?
34858 grep -v '^ *+' conftest.er1 >conftest.err
34859 rm -f conftest.er1
34860 cat conftest.err >&5
34861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34862 (exit $ac_status); } &&
5d7b7554 34863 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
34864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34865 (eval $ac_try) 2>&5
34866 ac_status=$?
34867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34868 (exit $ac_status); }; } &&
dfe0c803 34869 { ac_try='test -s conftest$ac_exeext'
eaff0f0d
VZ
34870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34871 (eval $ac_try) 2>&5
34872 ac_status=$?
34873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34874 (exit $ac_status); }; }; then
34875 wx_cv_func_cxa_demangle=yes
34876else
34877 echo "$as_me: failed program was:" >&5
34878sed 's/^/| /' conftest.$ac_ext >&5
34879
34880wx_cv_func_cxa_demangle=no
34881
34882fi
dfe0c803
JS
34883rm -f conftest.err conftest.$ac_objext \
34884 conftest$ac_exeext conftest.$ac_ext
eaff0f0d
VZ
34885
34886
34887fi
34888echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
34889echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
34890
34891 if test "$wx_cv_func_cxa_demangle" = "yes"; then
34892 cat >>confdefs.h <<\_ACEOF
34893#define HAVE_CXA_DEMANGLE 1
34894_ACEOF
34895
34896 fi
34897 fi
eaff0f0d
VZ
34898fi
34899
898beab1
DE
34900if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
34901 { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
34902echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
34903 wxUSE_STACKWALKER=no
34904fi
34905
34906
a848cd7e
SC
34907
34908
34909for ac_func in mkstemp mktemp
34910do
34911as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34912echo "$as_me:$LINENO: checking for $ac_func" >&5
34913echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34914if eval "test \"\${$as_ac_var+set}\" = set"; then
34915 echo $ECHO_N "(cached) $ECHO_C" >&6
34916else
34917 cat >conftest.$ac_ext <<_ACEOF
34918/* confdefs.h. */
34919_ACEOF
34920cat confdefs.h >>conftest.$ac_ext
34921cat >>conftest.$ac_ext <<_ACEOF
34922/* end confdefs.h. */
ac1cb8d3
VS
34923/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34924 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34925#define $ac_func innocuous_$ac_func
34926
a848cd7e
SC
34927/* System header to define __stub macros and hopefully few prototypes,
34928 which can conflict with char $ac_func (); below.
34929 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34930 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34931
a848cd7e
SC
34932#ifdef __STDC__
34933# include <limits.h>
34934#else
34935# include <assert.h>
34936#endif
ac1cb8d3
VS
34937
34938#undef $ac_func
34939
a848cd7e
SC
34940/* Override any gcc2 internal prototype to avoid an error. */
34941#ifdef __cplusplus
34942extern "C"
34943{
34944#endif
34945/* We use char because int might match the return type of a gcc2
34946 builtin and then its argument prototype would still apply. */
34947char $ac_func ();
34948/* The GNU C library defines this for functions which it implements
34949 to always fail with ENOSYS. Some functions are actually named
34950 something starting with __ and the normal name is an alias. */
34951#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34952choke me
34953#else
34954char (*f) () = $ac_func;
34955#endif
34956#ifdef __cplusplus
34957}
34958#endif
34959
34960int
34961main ()
34962{
34963return f != $ac_func;
34964 ;
34965 return 0;
34966}
34967_ACEOF
34968rm -f conftest.$ac_objext conftest$ac_exeext
34969if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34970 (eval $ac_link) 2>conftest.er1
a848cd7e 34971 ac_status=$?
ac1cb8d3
VS
34972 grep -v '^ *+' conftest.er1 >conftest.err
34973 rm -f conftest.er1
34974 cat conftest.err >&5
a848cd7e
SC
34975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34976 (exit $ac_status); } &&
5d7b7554 34977 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34979 (eval $ac_try) 2>&5
34980 ac_status=$?
34981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34982 (exit $ac_status); }; } &&
34983 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34985 (eval $ac_try) 2>&5
34986 ac_status=$?
34987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34988 (exit $ac_status); }; }; then
34989 eval "$as_ac_var=yes"
34990else
34991 echo "$as_me: failed program was:" >&5
34992sed 's/^/| /' conftest.$ac_ext >&5
34993
34994eval "$as_ac_var=no"
34995fi
ac1cb8d3
VS
34996rm -f conftest.err conftest.$ac_objext \
34997 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34998fi
34999echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35000echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35001if test `eval echo '${'$as_ac_var'}'` = yes; then
35002 cat >>confdefs.h <<_ACEOF
35003#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35004_ACEOF
35005 break
35006fi
35007done
35008
35009
35010echo "$as_me:$LINENO: checking for statfs" >&5
35011echo $ECHO_N "checking for statfs... $ECHO_C" >&6
35012if test "${wx_cv_func_statfs+set}" = set; then
35013 echo $ECHO_N "(cached) $ECHO_C" >&6
35014else
35015 cat >conftest.$ac_ext <<_ACEOF
35016/* confdefs.h. */
35017_ACEOF
35018cat confdefs.h >>conftest.$ac_ext
35019cat >>conftest.$ac_ext <<_ACEOF
35020/* end confdefs.h. */
35021
35022 #if defined(__BSD__)
84ae7ca4
VZ
35023 #include <sys/param.h>
35024 #include <sys/mount.h>
a848cd7e 35025 #else
84ae7ca4 35026 #include <sys/vfs.h>
a848cd7e
SC
35027 #endif
35028
35029int
35030main ()
35031{
35032
35033 long l;
35034 struct statfs fs;
35035 statfs("/", &fs);
35036 l = fs.f_bsize;
35037 l += fs.f_blocks;
35038 l += fs.f_bavail;
35039
35040 ;
35041 return 0;
35042}
35043_ACEOF
35044rm -f conftest.$ac_objext
35045if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35046 (eval $ac_compile) 2>conftest.er1
a848cd7e 35047 ac_status=$?
ac1cb8d3
VS
35048 grep -v '^ *+' conftest.er1 >conftest.err
35049 rm -f conftest.er1
35050 cat conftest.err >&5
a848cd7e
SC
35051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35052 (exit $ac_status); } &&
5d7b7554 35053 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35055 (eval $ac_try) 2>&5
35056 ac_status=$?
35057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35058 (exit $ac_status); }; } &&
35059 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35061 (eval $ac_try) 2>&5
35062 ac_status=$?
35063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35064 (exit $ac_status); }; }; then
84ae7ca4 35065 wx_cv_func_statfs=yes
a848cd7e
SC
35066else
35067 echo "$as_me: failed program was:" >&5
35068sed 's/^/| /' conftest.$ac_ext >&5
35069
84ae7ca4 35070wx_cv_func_statfs=no
a848cd7e
SC
35071
35072fi
ac1cb8d3 35073rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35074
35075fi
35076echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
35077echo "${ECHO_T}$wx_cv_func_statfs" >&6
35078
35079if test "$wx_cv_func_statfs" = "yes"; then
5d7b7554 35080 echo "$as_me:$LINENO: checking for statfs declaration" >&5
84ae7ca4
VZ
35081echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6
35082if test "${wx_cv_func_statfs_decl+set}" = set; then
35083 echo $ECHO_N "(cached) $ECHO_C" >&6
35084else
0683aca6
VZ
35085 cat >conftest.$ac_ext <<_ACEOF
35086/* confdefs.h. */
35087_ACEOF
35088cat confdefs.h >>conftest.$ac_ext
35089cat >>conftest.$ac_ext <<_ACEOF
35090/* end confdefs.h. */
84ae7ca4 35091
0683aca6
VZ
35092 #if defined(__BSD__)
35093 #include <sys/param.h>
35094 #include <sys/mount.h>
35095 #else
35096 #include <sys/vfs.h>
35097 #endif
35098
35099int
35100main ()
35101{
35102
35103 struct statfs fs;
35104 statfs("", &fs);
35105
35106 ;
35107 return 0;
35108}
35109_ACEOF
35110rm -f conftest.$ac_objext
35111if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35112 (eval $ac_compile) 2>conftest.er1
35113 ac_status=$?
35114 grep -v '^ *+' conftest.er1 >conftest.err
35115 rm -f conftest.er1
35116 cat conftest.err >&5
35117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35118 (exit $ac_status); } &&
5d7b7554 35119 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0683aca6
VZ
35120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35121 (eval $ac_try) 2>&5
35122 ac_status=$?
35123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35124 (exit $ac_status); }; } &&
35125 { ac_try='test -s conftest.$ac_objext'
35126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35127 (eval $ac_try) 2>&5
35128 ac_status=$?
35129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35130 (exit $ac_status); }; }; then
35131 wx_cv_func_statfs_decl=yes
35132else
35133 echo "$as_me: failed program was:" >&5
35134sed 's/^/| /' conftest.$ac_ext >&5
35135
35136wx_cv_func_statfs_decl=no
35137
35138fi
35139rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
84ae7ca4
VZ
35140
35141fi
35142echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
35143echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6
84ae7ca4
VZ
35144
35145 if test "$wx_cv_func_statfs_decl" = "yes"; then
35146 cat >>confdefs.h <<\_ACEOF
35147#define HAVE_STATFS_DECL 1
35148_ACEOF
35149
35150 fi
35151
a848cd7e
SC
35152 wx_cv_type_statvfs_t="struct statfs"
35153 cat >>confdefs.h <<\_ACEOF
35154#define HAVE_STATFS 1
35155_ACEOF
35156
35157else
35158 echo "$as_me:$LINENO: checking for statvfs" >&5
35159echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
35160if test "${wx_cv_func_statvfs+set}" = set; then
35161 echo $ECHO_N "(cached) $ECHO_C" >&6
35162else
35163 cat >conftest.$ac_ext <<_ACEOF
35164/* confdefs.h. */
35165_ACEOF
35166cat confdefs.h >>conftest.$ac_ext
35167cat >>conftest.$ac_ext <<_ACEOF
35168/* end confdefs.h. */
35169
35170 #include <stddef.h>
35171 #include <sys/statvfs.h>
35172
35173int
35174main ()
35175{
35176
35177 statvfs("/", NULL);
35178
35179 ;
35180 return 0;
35181}
35182_ACEOF
35183rm -f conftest.$ac_objext
35184if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35185 (eval $ac_compile) 2>conftest.er1
a848cd7e 35186 ac_status=$?
ac1cb8d3
VS
35187 grep -v '^ *+' conftest.er1 >conftest.err
35188 rm -f conftest.er1
35189 cat conftest.err >&5
a848cd7e
SC
35190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35191 (exit $ac_status); } &&
5d7b7554 35192 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35194 (eval $ac_try) 2>&5
35195 ac_status=$?
35196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35197 (exit $ac_status); }; } &&
35198 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35200 (eval $ac_try) 2>&5
35201 ac_status=$?
35202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35203 (exit $ac_status); }; }; then
35204 wx_cv_func_statvfs=yes
35205else
35206 echo "$as_me: failed program was:" >&5
35207sed 's/^/| /' conftest.$ac_ext >&5
35208
35209wx_cv_func_statvfs=no
35210
35211fi
ac1cb8d3 35212rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35213
35214fi
35215echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
35216echo "${ECHO_T}$wx_cv_func_statvfs" >&6
35217
35218 if test "$wx_cv_func_statvfs" = "yes"; then
5d7b7554 35219 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
a848cd7e
SC
35220echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
35221if test "${wx_cv_type_statvfs_t+set}" = set; then
35222 echo $ECHO_N "(cached) $ECHO_C" >&6
35223else
35224 cat >conftest.$ac_ext <<_ACEOF
35225/* confdefs.h. */
35226_ACEOF
35227cat confdefs.h >>conftest.$ac_ext
35228cat >>conftest.$ac_ext <<_ACEOF
35229/* end confdefs.h. */
35230
35231 #include <sys/statvfs.h>
35232
35233int
35234main ()
35235{
35236
35237 long l;
35238 statvfs_t fs;
35239 statvfs("/", &fs);
35240 l = fs.f_bsize;
35241 l += fs.f_blocks;
35242 l += fs.f_bavail;
35243
35244 ;
35245 return 0;
35246}
35247_ACEOF
35248rm -f conftest.$ac_objext
35249if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35250 (eval $ac_compile) 2>conftest.er1
a848cd7e 35251 ac_status=$?
ac1cb8d3
VS
35252 grep -v '^ *+' conftest.er1 >conftest.err
35253 rm -f conftest.er1
35254 cat conftest.err >&5
a848cd7e
SC
35255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35256 (exit $ac_status); } &&
5d7b7554 35257 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35259 (eval $ac_try) 2>&5
35260 ac_status=$?
35261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35262 (exit $ac_status); }; } &&
35263 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35265 (eval $ac_try) 2>&5
35266 ac_status=$?
35267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35268 (exit $ac_status); }; }; then
35269 wx_cv_type_statvfs_t=statvfs_t
35270else
35271 echo "$as_me: failed program was:" >&5
35272sed 's/^/| /' conftest.$ac_ext >&5
35273
35274
35275 cat >conftest.$ac_ext <<_ACEOF
35276/* confdefs.h. */
35277_ACEOF
35278cat confdefs.h >>conftest.$ac_ext
35279cat >>conftest.$ac_ext <<_ACEOF
35280/* end confdefs.h. */
35281
35282 #include <sys/statvfs.h>
35283
35284int
35285main ()
35286{
35287
35288 long l;
35289 struct statvfs fs;
35290 statvfs("/", &fs);
35291 l = fs.f_bsize;
35292 l += fs.f_blocks;
35293 l += fs.f_bavail;
35294
35295 ;
35296 return 0;
35297}
35298_ACEOF
35299rm -f conftest.$ac_objext
35300if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35301 (eval $ac_compile) 2>conftest.er1
a848cd7e 35302 ac_status=$?
ac1cb8d3
VS
35303 grep -v '^ *+' conftest.er1 >conftest.err
35304 rm -f conftest.er1
35305 cat conftest.err >&5
a848cd7e
SC
35306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35307 (exit $ac_status); } &&
5d7b7554 35308 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35310 (eval $ac_try) 2>&5
35311 ac_status=$?
35312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35313 (exit $ac_status); }; } &&
35314 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35316 (eval $ac_try) 2>&5
35317 ac_status=$?
35318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35319 (exit $ac_status); }; }; then
35320 wx_cv_type_statvfs_t="struct statvfs"
35321else
35322 echo "$as_me: failed program was:" >&5
35323sed 's/^/| /' conftest.$ac_ext >&5
35324
35325wx_cv_type_statvfs_t="unknown"
35326
35327fi
ac1cb8d3 35328rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35329
35330
35331fi
ac1cb8d3 35332rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35333
35334fi
35335echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
35336echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
35337
a848cd7e
SC
35338 if test "$wx_cv_type_statvfs_t" != "unknown"; then
35339 cat >>confdefs.h <<\_ACEOF
35340#define HAVE_STATVFS 1
35341_ACEOF
35342
35343 fi
35344 else
35345 wx_cv_type_statvfs_t="unknown"
35346 fi
35347fi
35348
35349if test "$wx_cv_type_statvfs_t" != "unknown"; then
35350 cat >>confdefs.h <<_ACEOF
35351#define WX_STATFS_T $wx_cv_type_statvfs_t
35352_ACEOF
35353
35354else
35355 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
35356echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
35357fi
35358
35359if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
35360
35361
35362for ac_func in fcntl flock
35363do
35364as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35365echo "$as_me:$LINENO: checking for $ac_func" >&5
35366echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35367if eval "test \"\${$as_ac_var+set}\" = set"; then
35368 echo $ECHO_N "(cached) $ECHO_C" >&6
35369else
35370 cat >conftest.$ac_ext <<_ACEOF
35371/* confdefs.h. */
35372_ACEOF
35373cat confdefs.h >>conftest.$ac_ext
35374cat >>conftest.$ac_ext <<_ACEOF
35375/* end confdefs.h. */
ac1cb8d3
VS
35376/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35377 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35378#define $ac_func innocuous_$ac_func
35379
a848cd7e
SC
35380/* System header to define __stub macros and hopefully few prototypes,
35381 which can conflict with char $ac_func (); below.
35382 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35383 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35384
a848cd7e
SC
35385#ifdef __STDC__
35386# include <limits.h>
35387#else
35388# include <assert.h>
35389#endif
ac1cb8d3
VS
35390
35391#undef $ac_func
35392
a848cd7e
SC
35393/* Override any gcc2 internal prototype to avoid an error. */
35394#ifdef __cplusplus
35395extern "C"
35396{
35397#endif
35398/* We use char because int might match the return type of a gcc2
35399 builtin and then its argument prototype would still apply. */
35400char $ac_func ();
35401/* The GNU C library defines this for functions which it implements
35402 to always fail with ENOSYS. Some functions are actually named
35403 something starting with __ and the normal name is an alias. */
35404#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35405choke me
35406#else
35407char (*f) () = $ac_func;
35408#endif
35409#ifdef __cplusplus
35410}
35411#endif
35412
35413int
35414main ()
35415{
35416return f != $ac_func;
35417 ;
35418 return 0;
35419}
35420_ACEOF
35421rm -f conftest.$ac_objext conftest$ac_exeext
35422if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35423 (eval $ac_link) 2>conftest.er1
a848cd7e 35424 ac_status=$?
ac1cb8d3
VS
35425 grep -v '^ *+' conftest.er1 >conftest.err
35426 rm -f conftest.er1
35427 cat conftest.err >&5
a848cd7e
SC
35428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35429 (exit $ac_status); } &&
5d7b7554 35430 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35432 (eval $ac_try) 2>&5
35433 ac_status=$?
35434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35435 (exit $ac_status); }; } &&
35436 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35438 (eval $ac_try) 2>&5
35439 ac_status=$?
35440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35441 (exit $ac_status); }; }; then
35442 eval "$as_ac_var=yes"
35443else
35444 echo "$as_me: failed program was:" >&5
35445sed 's/^/| /' conftest.$ac_ext >&5
35446
35447eval "$as_ac_var=no"
35448fi
ac1cb8d3
VS
35449rm -f conftest.err conftest.$ac_objext \
35450 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35451fi
35452echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35453echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35454if test `eval echo '${'$as_ac_var'}'` = yes; then
35455 cat >>confdefs.h <<_ACEOF
35456#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35457_ACEOF
35458 break
35459fi
35460done
35461
35462
35463 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
35464 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
35465echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
35466 wxUSE_SNGLINST_CHECKER=no
35467 fi
35468fi
35469
35470
35471for ac_func in timegm
35472do
35473as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35474echo "$as_me:$LINENO: checking for $ac_func" >&5
35475echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35476if eval "test \"\${$as_ac_var+set}\" = set"; then
35477 echo $ECHO_N "(cached) $ECHO_C" >&6
35478else
35479 cat >conftest.$ac_ext <<_ACEOF
35480/* confdefs.h. */
35481_ACEOF
35482cat confdefs.h >>conftest.$ac_ext
35483cat >>conftest.$ac_ext <<_ACEOF
35484/* end confdefs.h. */
ac1cb8d3
VS
35485/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35486 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35487#define $ac_func innocuous_$ac_func
35488
a848cd7e
SC
35489/* System header to define __stub macros and hopefully few prototypes,
35490 which can conflict with char $ac_func (); below.
35491 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35492 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35493
a848cd7e
SC
35494#ifdef __STDC__
35495# include <limits.h>
35496#else
35497# include <assert.h>
35498#endif
ac1cb8d3
VS
35499
35500#undef $ac_func
35501
a848cd7e
SC
35502/* Override any gcc2 internal prototype to avoid an error. */
35503#ifdef __cplusplus
35504extern "C"
35505{
35506#endif
35507/* We use char because int might match the return type of a gcc2
35508 builtin and then its argument prototype would still apply. */
35509char $ac_func ();
35510/* The GNU C library defines this for functions which it implements
35511 to always fail with ENOSYS. Some functions are actually named
35512 something starting with __ and the normal name is an alias. */
35513#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35514choke me
35515#else
35516char (*f) () = $ac_func;
35517#endif
35518#ifdef __cplusplus
35519}
35520#endif
35521
35522int
35523main ()
35524{
35525return f != $ac_func;
35526 ;
35527 return 0;
35528}
35529_ACEOF
35530rm -f conftest.$ac_objext conftest$ac_exeext
35531if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35532 (eval $ac_link) 2>conftest.er1
a848cd7e 35533 ac_status=$?
ac1cb8d3
VS
35534 grep -v '^ *+' conftest.er1 >conftest.err
35535 rm -f conftest.er1
35536 cat conftest.err >&5
a848cd7e
SC
35537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35538 (exit $ac_status); } &&
5d7b7554 35539 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35541 (eval $ac_try) 2>&5
35542 ac_status=$?
35543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35544 (exit $ac_status); }; } &&
35545 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35547 (eval $ac_try) 2>&5
35548 ac_status=$?
35549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35550 (exit $ac_status); }; }; then
35551 eval "$as_ac_var=yes"
35552else
35553 echo "$as_me: failed program was:" >&5
35554sed 's/^/| /' conftest.$ac_ext >&5
35555
35556eval "$as_ac_var=no"
35557fi
ac1cb8d3
VS
35558rm -f conftest.err conftest.$ac_objext \
35559 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35560fi
35561echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35562echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35563if test `eval echo '${'$as_ac_var'}'` = yes; then
35564 cat >>confdefs.h <<_ACEOF
35565#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35566_ACEOF
35567
35568fi
35569done
35570
35571
35572
35573
35574for ac_func in putenv setenv
35575do
35576as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35577echo "$as_me:$LINENO: checking for $ac_func" >&5
35578echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35579if eval "test \"\${$as_ac_var+set}\" = set"; then
35580 echo $ECHO_N "(cached) $ECHO_C" >&6
35581else
35582 cat >conftest.$ac_ext <<_ACEOF
35583/* confdefs.h. */
35584_ACEOF
35585cat confdefs.h >>conftest.$ac_ext
35586cat >>conftest.$ac_ext <<_ACEOF
35587/* end confdefs.h. */
ac1cb8d3
VS
35588/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35589 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35590#define $ac_func innocuous_$ac_func
35591
a848cd7e
SC
35592/* System header to define __stub macros and hopefully few prototypes,
35593 which can conflict with char $ac_func (); below.
35594 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35595 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35596
a848cd7e
SC
35597#ifdef __STDC__
35598# include <limits.h>
35599#else
35600# include <assert.h>
35601#endif
ac1cb8d3
VS
35602
35603#undef $ac_func
35604
a848cd7e
SC
35605/* Override any gcc2 internal prototype to avoid an error. */
35606#ifdef __cplusplus
35607extern "C"
35608{
35609#endif
35610/* We use char because int might match the return type of a gcc2
35611 builtin and then its argument prototype would still apply. */
35612char $ac_func ();
35613/* The GNU C library defines this for functions which it implements
35614 to always fail with ENOSYS. Some functions are actually named
35615 something starting with __ and the normal name is an alias. */
35616#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35617choke me
35618#else
35619char (*f) () = $ac_func;
35620#endif
35621#ifdef __cplusplus
35622}
35623#endif
35624
35625int
35626main ()
35627{
35628return f != $ac_func;
35629 ;
35630 return 0;
35631}
35632_ACEOF
35633rm -f conftest.$ac_objext conftest$ac_exeext
35634if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35635 (eval $ac_link) 2>conftest.er1
a848cd7e 35636 ac_status=$?
ac1cb8d3
VS
35637 grep -v '^ *+' conftest.er1 >conftest.err
35638 rm -f conftest.er1
35639 cat conftest.err >&5
a848cd7e
SC
35640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35641 (exit $ac_status); } &&
5d7b7554 35642 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35644 (eval $ac_try) 2>&5
35645 ac_status=$?
35646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35647 (exit $ac_status); }; } &&
35648 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35650 (eval $ac_try) 2>&5
35651 ac_status=$?
35652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35653 (exit $ac_status); }; }; then
35654 eval "$as_ac_var=yes"
35655else
35656 echo "$as_me: failed program was:" >&5
35657sed 's/^/| /' conftest.$ac_ext >&5
35658
35659eval "$as_ac_var=no"
35660fi
ac1cb8d3
VS
35661rm -f conftest.err conftest.$ac_objext \
35662 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35663fi
35664echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35665echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35666if test `eval echo '${'$as_ac_var'}'` = yes; then
35667 cat >>confdefs.h <<_ACEOF
35668#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35669_ACEOF
35670 break
35671fi
35672done
35673
35674
35675HAVE_SOME_SLEEP_FUNC=0
35676if test "$USE_BEOS" = 1; then
35677 cat >>confdefs.h <<\_ACEOF
35678#define HAVE_SLEEP 1
35679_ACEOF
35680
35681 HAVE_SOME_SLEEP_FUNC=1
35682fi
35683
35684if test "$USE_DARWIN" = 1; then
35685 cat >>confdefs.h <<\_ACEOF
35686#define HAVE_USLEEP 1
35687_ACEOF
35688
35689 HAVE_SOME_SLEEP_FUNC=1
35690fi
35691
35692if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
35693 POSIX4_LINK=
35694
35695for ac_func in nanosleep
35696do
35697as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35698echo "$as_me:$LINENO: checking for $ac_func" >&5
35699echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35700if eval "test \"\${$as_ac_var+set}\" = set"; then
35701 echo $ECHO_N "(cached) $ECHO_C" >&6
35702else
35703 cat >conftest.$ac_ext <<_ACEOF
35704/* confdefs.h. */
35705_ACEOF
35706cat confdefs.h >>conftest.$ac_ext
35707cat >>conftest.$ac_ext <<_ACEOF
35708/* end confdefs.h. */
ac1cb8d3
VS
35709/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35710 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35711#define $ac_func innocuous_$ac_func
35712
a848cd7e
SC
35713/* System header to define __stub macros and hopefully few prototypes,
35714 which can conflict with char $ac_func (); below.
35715 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35716 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35717
a848cd7e
SC
35718#ifdef __STDC__
35719# include <limits.h>
35720#else
35721# include <assert.h>
35722#endif
ac1cb8d3
VS
35723
35724#undef $ac_func
35725
a848cd7e
SC
35726/* Override any gcc2 internal prototype to avoid an error. */
35727#ifdef __cplusplus
35728extern "C"
35729{
35730#endif
35731/* We use char because int might match the return type of a gcc2
35732 builtin and then its argument prototype would still apply. */
35733char $ac_func ();
35734/* The GNU C library defines this for functions which it implements
35735 to always fail with ENOSYS. Some functions are actually named
35736 something starting with __ and the normal name is an alias. */
35737#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35738choke me
35739#else
35740char (*f) () = $ac_func;
35741#endif
35742#ifdef __cplusplus
35743}
35744#endif
35745
35746int
35747main ()
35748{
35749return f != $ac_func;
35750 ;
35751 return 0;
35752}
35753_ACEOF
35754rm -f conftest.$ac_objext conftest$ac_exeext
35755if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35756 (eval $ac_link) 2>conftest.er1
a848cd7e 35757 ac_status=$?
ac1cb8d3
VS
35758 grep -v '^ *+' conftest.er1 >conftest.err
35759 rm -f conftest.er1
35760 cat conftest.err >&5
a848cd7e
SC
35761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35762 (exit $ac_status); } &&
5d7b7554 35763 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35765 (eval $ac_try) 2>&5
35766 ac_status=$?
35767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35768 (exit $ac_status); }; } &&
35769 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35771 (eval $ac_try) 2>&5
35772 ac_status=$?
35773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35774 (exit $ac_status); }; }; then
35775 eval "$as_ac_var=yes"
35776else
35777 echo "$as_me: failed program was:" >&5
35778sed 's/^/| /' conftest.$ac_ext >&5
35779
35780eval "$as_ac_var=no"
35781fi
ac1cb8d3
VS
35782rm -f conftest.err conftest.$ac_objext \
35783 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35784fi
35785echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35786echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35787if test `eval echo '${'$as_ac_var'}'` = yes; then
35788 cat >>confdefs.h <<_ACEOF
35789#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35790_ACEOF
35791 cat >>confdefs.h <<\_ACEOF
35792#define HAVE_NANOSLEEP 1
35793_ACEOF
35794
35795else
35796
35797 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
35798echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
35799if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
35800 echo $ECHO_N "(cached) $ECHO_C" >&6
35801else
35802 ac_check_lib_save_LIBS=$LIBS
35803LIBS="-lposix4 $LIBS"
35804cat >conftest.$ac_ext <<_ACEOF
35805/* confdefs.h. */
35806_ACEOF
35807cat confdefs.h >>conftest.$ac_ext
35808cat >>conftest.$ac_ext <<_ACEOF
35809/* end confdefs.h. */
35810
35811/* Override any gcc2 internal prototype to avoid an error. */
35812#ifdef __cplusplus
35813extern "C"
35814#endif
35815/* We use char because int might match the return type of a gcc2
35816 builtin and then its argument prototype would still apply. */
35817char nanosleep ();
35818int
35819main ()
35820{
35821nanosleep ();
35822 ;
35823 return 0;
35824}
35825_ACEOF
35826rm -f conftest.$ac_objext conftest$ac_exeext
35827if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35828 (eval $ac_link) 2>conftest.er1
a848cd7e 35829 ac_status=$?
ac1cb8d3
VS
35830 grep -v '^ *+' conftest.er1 >conftest.err
35831 rm -f conftest.er1
35832 cat conftest.err >&5
a848cd7e
SC
35833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35834 (exit $ac_status); } &&
5d7b7554 35835 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35837 (eval $ac_try) 2>&5
35838 ac_status=$?
35839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35840 (exit $ac_status); }; } &&
35841 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35843 (eval $ac_try) 2>&5
35844 ac_status=$?
35845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35846 (exit $ac_status); }; }; then
35847 ac_cv_lib_posix4_nanosleep=yes
35848else
35849 echo "$as_me: failed program was:" >&5
35850sed 's/^/| /' conftest.$ac_ext >&5
35851
35852ac_cv_lib_posix4_nanosleep=no
35853fi
ac1cb8d3
VS
35854rm -f conftest.err conftest.$ac_objext \
35855 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35856LIBS=$ac_check_lib_save_LIBS
35857fi
35858echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
35859echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
35860if test $ac_cv_lib_posix4_nanosleep = yes; then
35861
35862 cat >>confdefs.h <<\_ACEOF
35863#define HAVE_NANOSLEEP 1
35864_ACEOF
35865
35866 POSIX4_LINK=" -lposix4"
35867
35868else
35869
35870
35871for ac_func in usleep
35872do
35873as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35874echo "$as_me:$LINENO: checking for $ac_func" >&5
35875echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35876if eval "test \"\${$as_ac_var+set}\" = set"; then
35877 echo $ECHO_N "(cached) $ECHO_C" >&6
35878else
35879 cat >conftest.$ac_ext <<_ACEOF
35880/* confdefs.h. */
35881_ACEOF
35882cat confdefs.h >>conftest.$ac_ext
35883cat >>conftest.$ac_ext <<_ACEOF
35884/* end confdefs.h. */
ac1cb8d3
VS
35885/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35886 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35887#define $ac_func innocuous_$ac_func
35888
a848cd7e
SC
35889/* System header to define __stub macros and hopefully few prototypes,
35890 which can conflict with char $ac_func (); below.
35891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35892 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35893
a848cd7e
SC
35894#ifdef __STDC__
35895# include <limits.h>
35896#else
35897# include <assert.h>
35898#endif
ac1cb8d3
VS
35899
35900#undef $ac_func
35901
a848cd7e
SC
35902/* Override any gcc2 internal prototype to avoid an error. */
35903#ifdef __cplusplus
35904extern "C"
35905{
35906#endif
35907/* We use char because int might match the return type of a gcc2
35908 builtin and then its argument prototype would still apply. */
35909char $ac_func ();
35910/* The GNU C library defines this for functions which it implements
35911 to always fail with ENOSYS. Some functions are actually named
35912 something starting with __ and the normal name is an alias. */
35913#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35914choke me
35915#else
35916char (*f) () = $ac_func;
35917#endif
35918#ifdef __cplusplus
35919}
35920#endif
35921
35922int
35923main ()
35924{
35925return f != $ac_func;
35926 ;
35927 return 0;
35928}
35929_ACEOF
35930rm -f conftest.$ac_objext conftest$ac_exeext
35931if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35932 (eval $ac_link) 2>conftest.er1
a848cd7e 35933 ac_status=$?
ac1cb8d3
VS
35934 grep -v '^ *+' conftest.er1 >conftest.err
35935 rm -f conftest.er1
35936 cat conftest.err >&5
a848cd7e
SC
35937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35938 (exit $ac_status); } &&
5d7b7554 35939 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35941 (eval $ac_try) 2>&5
35942 ac_status=$?
35943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35944 (exit $ac_status); }; } &&
35945 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35947 (eval $ac_try) 2>&5
35948 ac_status=$?
35949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35950 (exit $ac_status); }; }; then
35951 eval "$as_ac_var=yes"
35952else
35953 echo "$as_me: failed program was:" >&5
35954sed 's/^/| /' conftest.$ac_ext >&5
35955
35956eval "$as_ac_var=no"
35957fi
ac1cb8d3
VS
35958rm -f conftest.err conftest.$ac_objext \
35959 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35960fi
35961echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35962echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35963if test `eval echo '${'$as_ac_var'}'` = yes; then
35964 cat >>confdefs.h <<_ACEOF
35965#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35966_ACEOF
35967 cat >>confdefs.h <<\_ACEOF
35968#define HAVE_USLEEP 1
35969_ACEOF
35970
35971else
35972 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
35973echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
35974
35975fi
35976done
35977
35978
35979
35980fi
35981
35982
35983
35984fi
35985done
35986
35987fi
35988
35989
35990
35991for ac_func in uname gethostname
35992do
35993as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35994echo "$as_me:$LINENO: checking for $ac_func" >&5
35995echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35996if eval "test \"\${$as_ac_var+set}\" = set"; then
35997 echo $ECHO_N "(cached) $ECHO_C" >&6
35998else
35999 cat >conftest.$ac_ext <<_ACEOF
36000/* confdefs.h. */
36001_ACEOF
36002cat confdefs.h >>conftest.$ac_ext
36003cat >>conftest.$ac_ext <<_ACEOF
36004/* end confdefs.h. */
ac1cb8d3
VS
36005/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36006 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36007#define $ac_func innocuous_$ac_func
36008
a848cd7e
SC
36009/* System header to define __stub macros and hopefully few prototypes,
36010 which can conflict with char $ac_func (); below.
36011 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36012 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36013
a848cd7e
SC
36014#ifdef __STDC__
36015# include <limits.h>
36016#else
36017# include <assert.h>
36018#endif
ac1cb8d3
VS
36019
36020#undef $ac_func
36021
a848cd7e
SC
36022/* Override any gcc2 internal prototype to avoid an error. */
36023#ifdef __cplusplus
36024extern "C"
36025{
36026#endif
36027/* We use char because int might match the return type of a gcc2
36028 builtin and then its argument prototype would still apply. */
36029char $ac_func ();
36030/* The GNU C library defines this for functions which it implements
36031 to always fail with ENOSYS. Some functions are actually named
36032 something starting with __ and the normal name is an alias. */
36033#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36034choke me
36035#else
36036char (*f) () = $ac_func;
36037#endif
36038#ifdef __cplusplus
36039}
36040#endif
36041
36042int
36043main ()
36044{
36045return f != $ac_func;
36046 ;
36047 return 0;
36048}
36049_ACEOF
36050rm -f conftest.$ac_objext conftest$ac_exeext
36051if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36052 (eval $ac_link) 2>conftest.er1
a848cd7e 36053 ac_status=$?
ac1cb8d3
VS
36054 grep -v '^ *+' conftest.er1 >conftest.err
36055 rm -f conftest.er1
36056 cat conftest.err >&5
a848cd7e
SC
36057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36058 (exit $ac_status); } &&
5d7b7554 36059 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36061 (eval $ac_try) 2>&5
36062 ac_status=$?
36063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36064 (exit $ac_status); }; } &&
36065 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36067 (eval $ac_try) 2>&5
36068 ac_status=$?
36069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36070 (exit $ac_status); }; }; then
36071 eval "$as_ac_var=yes"
36072else
36073 echo "$as_me: failed program was:" >&5
36074sed 's/^/| /' conftest.$ac_ext >&5
36075
36076eval "$as_ac_var=no"
36077fi
ac1cb8d3
VS
36078rm -f conftest.err conftest.$ac_objext \
36079 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36080fi
36081echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36082echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36083if test `eval echo '${'$as_ac_var'}'` = yes; then
36084 cat >>confdefs.h <<_ACEOF
36085#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36086_ACEOF
36087 break
36088fi
36089done
36090
36091
a848cd7e
SC
36092
36093for ac_func in strtok_r
36094do
36095as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36096echo "$as_me:$LINENO: checking for $ac_func" >&5
36097echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36098if eval "test \"\${$as_ac_var+set}\" = set"; then
36099 echo $ECHO_N "(cached) $ECHO_C" >&6
36100else
36101 cat >conftest.$ac_ext <<_ACEOF
36102/* confdefs.h. */
36103_ACEOF
36104cat confdefs.h >>conftest.$ac_ext
36105cat >>conftest.$ac_ext <<_ACEOF
36106/* end confdefs.h. */
ac1cb8d3
VS
36107/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36108 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36109#define $ac_func innocuous_$ac_func
36110
a848cd7e
SC
36111/* System header to define __stub macros and hopefully few prototypes,
36112 which can conflict with char $ac_func (); below.
36113 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36114 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36115
a848cd7e
SC
36116#ifdef __STDC__
36117# include <limits.h>
36118#else
36119# include <assert.h>
36120#endif
ac1cb8d3
VS
36121
36122#undef $ac_func
36123
a848cd7e
SC
36124/* Override any gcc2 internal prototype to avoid an error. */
36125#ifdef __cplusplus
36126extern "C"
36127{
36128#endif
36129/* We use char because int might match the return type of a gcc2
36130 builtin and then its argument prototype would still apply. */
36131char $ac_func ();
36132/* The GNU C library defines this for functions which it implements
36133 to always fail with ENOSYS. Some functions are actually named
36134 something starting with __ and the normal name is an alias. */
36135#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36136choke me
36137#else
36138char (*f) () = $ac_func;
36139#endif
36140#ifdef __cplusplus
36141}
36142#endif
36143
36144int
36145main ()
36146{
36147return f != $ac_func;
36148 ;
36149 return 0;
36150}
36151_ACEOF
36152rm -f conftest.$ac_objext conftest$ac_exeext
36153if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36154 (eval $ac_link) 2>conftest.er1
a848cd7e 36155 ac_status=$?
ac1cb8d3
VS
36156 grep -v '^ *+' conftest.er1 >conftest.err
36157 rm -f conftest.er1
36158 cat conftest.err >&5
a848cd7e
SC
36159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36160 (exit $ac_status); } &&
5d7b7554 36161 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36163 (eval $ac_try) 2>&5
36164 ac_status=$?
36165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36166 (exit $ac_status); }; } &&
36167 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36169 (eval $ac_try) 2>&5
36170 ac_status=$?
36171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36172 (exit $ac_status); }; }; then
36173 eval "$as_ac_var=yes"
36174else
36175 echo "$as_me: failed program was:" >&5
36176sed 's/^/| /' conftest.$ac_ext >&5
36177
36178eval "$as_ac_var=no"
36179fi
ac1cb8d3
VS
36180rm -f conftest.err conftest.$ac_objext \
36181 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36182fi
36183echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36184echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36185if test `eval echo '${'$as_ac_var'}'` = yes; then
36186 cat >>confdefs.h <<_ACEOF
36187#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36188_ACEOF
36189
36190fi
36191done
36192
36193
a848cd7e
SC
36194INET_LINK=
36195
36196for ac_func in inet_addr
36197do
36198as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36199echo "$as_me:$LINENO: checking for $ac_func" >&5
36200echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36201if eval "test \"\${$as_ac_var+set}\" = set"; then
36202 echo $ECHO_N "(cached) $ECHO_C" >&6
36203else
36204 cat >conftest.$ac_ext <<_ACEOF
36205/* confdefs.h. */
36206_ACEOF
36207cat confdefs.h >>conftest.$ac_ext
36208cat >>conftest.$ac_ext <<_ACEOF
36209/* end confdefs.h. */
ac1cb8d3
VS
36210/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36211 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36212#define $ac_func innocuous_$ac_func
36213
a848cd7e
SC
36214/* System header to define __stub macros and hopefully few prototypes,
36215 which can conflict with char $ac_func (); below.
36216 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36217 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36218
a848cd7e
SC
36219#ifdef __STDC__
36220# include <limits.h>
36221#else
36222# include <assert.h>
36223#endif
ac1cb8d3
VS
36224
36225#undef $ac_func
36226
a848cd7e
SC
36227/* Override any gcc2 internal prototype to avoid an error. */
36228#ifdef __cplusplus
36229extern "C"
36230{
36231#endif
36232/* We use char because int might match the return type of a gcc2
36233 builtin and then its argument prototype would still apply. */
36234char $ac_func ();
36235/* The GNU C library defines this for functions which it implements
36236 to always fail with ENOSYS. Some functions are actually named
36237 something starting with __ and the normal name is an alias. */
36238#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36239choke me
36240#else
36241char (*f) () = $ac_func;
36242#endif
36243#ifdef __cplusplus
36244}
36245#endif
36246
36247int
36248main ()
36249{
36250return f != $ac_func;
36251 ;
36252 return 0;
36253}
36254_ACEOF
36255rm -f conftest.$ac_objext conftest$ac_exeext
36256if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36257 (eval $ac_link) 2>conftest.er1
a848cd7e 36258 ac_status=$?
ac1cb8d3
VS
36259 grep -v '^ *+' conftest.er1 >conftest.err
36260 rm -f conftest.er1
36261 cat conftest.err >&5
a848cd7e
SC
36262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36263 (exit $ac_status); } &&
5d7b7554 36264 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36266 (eval $ac_try) 2>&5
36267 ac_status=$?
36268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36269 (exit $ac_status); }; } &&
36270 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36272 (eval $ac_try) 2>&5
36273 ac_status=$?
36274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36275 (exit $ac_status); }; }; then
36276 eval "$as_ac_var=yes"
36277else
36278 echo "$as_me: failed program was:" >&5
36279sed 's/^/| /' conftest.$ac_ext >&5
36280
36281eval "$as_ac_var=no"
36282fi
ac1cb8d3
VS
36283rm -f conftest.err conftest.$ac_objext \
36284 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36285fi
36286echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36287echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36288if test `eval echo '${'$as_ac_var'}'` = yes; then
36289 cat >>confdefs.h <<_ACEOF
36290#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36291_ACEOF
36292 cat >>confdefs.h <<\_ACEOF
36293#define HAVE_INET_ADDR 1
36294_ACEOF
36295
36296else
36297
36298 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
36299echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
36300if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
36301 echo $ECHO_N "(cached) $ECHO_C" >&6
36302else
36303 ac_check_lib_save_LIBS=$LIBS
36304LIBS="-lnsl $LIBS"
36305cat >conftest.$ac_ext <<_ACEOF
36306/* confdefs.h. */
36307_ACEOF
36308cat confdefs.h >>conftest.$ac_ext
36309cat >>conftest.$ac_ext <<_ACEOF
36310/* end confdefs.h. */
36311
36312/* Override any gcc2 internal prototype to avoid an error. */
36313#ifdef __cplusplus
36314extern "C"
36315#endif
36316/* We use char because int might match the return type of a gcc2
36317 builtin and then its argument prototype would still apply. */
36318char inet_addr ();
36319int
36320main ()
36321{
36322inet_addr ();
36323 ;
36324 return 0;
36325}
36326_ACEOF
36327rm -f conftest.$ac_objext conftest$ac_exeext
36328if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36329 (eval $ac_link) 2>conftest.er1
a848cd7e 36330 ac_status=$?
ac1cb8d3
VS
36331 grep -v '^ *+' conftest.er1 >conftest.err
36332 rm -f conftest.er1
36333 cat conftest.err >&5
a848cd7e
SC
36334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36335 (exit $ac_status); } &&
5d7b7554 36336 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36338 (eval $ac_try) 2>&5
36339 ac_status=$?
36340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36341 (exit $ac_status); }; } &&
36342 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36344 (eval $ac_try) 2>&5
36345 ac_status=$?
36346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36347 (exit $ac_status); }; }; then
36348 ac_cv_lib_nsl_inet_addr=yes
36349else
36350 echo "$as_me: failed program was:" >&5
36351sed 's/^/| /' conftest.$ac_ext >&5
36352
36353ac_cv_lib_nsl_inet_addr=no
36354fi
ac1cb8d3
VS
36355rm -f conftest.err conftest.$ac_objext \
36356 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36357LIBS=$ac_check_lib_save_LIBS
36358fi
36359echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
36360echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
36361if test $ac_cv_lib_nsl_inet_addr = yes; then
36362 INET_LINK="nsl"
36363else
36364
36365 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
36366echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
36367if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
36368 echo $ECHO_N "(cached) $ECHO_C" >&6
36369else
36370 ac_check_lib_save_LIBS=$LIBS
36371LIBS="-lresolv $LIBS"
36372cat >conftest.$ac_ext <<_ACEOF
36373/* confdefs.h. */
36374_ACEOF
36375cat confdefs.h >>conftest.$ac_ext
36376cat >>conftest.$ac_ext <<_ACEOF
36377/* end confdefs.h. */
36378
36379/* Override any gcc2 internal prototype to avoid an error. */
36380#ifdef __cplusplus
36381extern "C"
36382#endif
36383/* We use char because int might match the return type of a gcc2
36384 builtin and then its argument prototype would still apply. */
36385char inet_addr ();
36386int
36387main ()
36388{
36389inet_addr ();
36390 ;
36391 return 0;
36392}
36393_ACEOF
36394rm -f conftest.$ac_objext conftest$ac_exeext
36395if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36396 (eval $ac_link) 2>conftest.er1
a848cd7e 36397 ac_status=$?
ac1cb8d3
VS
36398 grep -v '^ *+' conftest.er1 >conftest.err
36399 rm -f conftest.er1
36400 cat conftest.err >&5
a848cd7e
SC
36401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36402 (exit $ac_status); } &&
5d7b7554 36403 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36405 (eval $ac_try) 2>&5
36406 ac_status=$?
36407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36408 (exit $ac_status); }; } &&
36409 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36411 (eval $ac_try) 2>&5
36412 ac_status=$?
36413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36414 (exit $ac_status); }; }; then
36415 ac_cv_lib_resolv_inet_addr=yes
36416else
36417 echo "$as_me: failed program was:" >&5
36418sed 's/^/| /' conftest.$ac_ext >&5
36419
36420ac_cv_lib_resolv_inet_addr=no
36421fi
ac1cb8d3
VS
36422rm -f conftest.err conftest.$ac_objext \
36423 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36424LIBS=$ac_check_lib_save_LIBS
36425fi
36426echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
36427echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
36428if test $ac_cv_lib_resolv_inet_addr = yes; then
36429 INET_LINK="resolv"
36430else
36431
36432 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
36433echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
36434if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
36435 echo $ECHO_N "(cached) $ECHO_C" >&6
36436else
36437 ac_check_lib_save_LIBS=$LIBS
36438LIBS="-lsocket $LIBS"
36439cat >conftest.$ac_ext <<_ACEOF
36440/* confdefs.h. */
36441_ACEOF
36442cat confdefs.h >>conftest.$ac_ext
36443cat >>conftest.$ac_ext <<_ACEOF
36444/* end confdefs.h. */
36445
36446/* Override any gcc2 internal prototype to avoid an error. */
36447#ifdef __cplusplus
36448extern "C"
36449#endif
36450/* We use char because int might match the return type of a gcc2
36451 builtin and then its argument prototype would still apply. */
36452char inet_addr ();
36453int
36454main ()
36455{
36456inet_addr ();
36457 ;
36458 return 0;
36459}
36460_ACEOF
36461rm -f conftest.$ac_objext conftest$ac_exeext
36462if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36463 (eval $ac_link) 2>conftest.er1
a848cd7e 36464 ac_status=$?
ac1cb8d3
VS
36465 grep -v '^ *+' conftest.er1 >conftest.err
36466 rm -f conftest.er1
36467 cat conftest.err >&5
a848cd7e
SC
36468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36469 (exit $ac_status); } &&
5d7b7554 36470 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36472 (eval $ac_try) 2>&5
36473 ac_status=$?
36474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36475 (exit $ac_status); }; } &&
36476 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36478 (eval $ac_try) 2>&5
36479 ac_status=$?
36480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36481 (exit $ac_status); }; }; then
36482 ac_cv_lib_socket_inet_addr=yes
36483else
36484 echo "$as_me: failed program was:" >&5
36485sed 's/^/| /' conftest.$ac_ext >&5
36486
36487ac_cv_lib_socket_inet_addr=no
36488fi
ac1cb8d3
VS
36489rm -f conftest.err conftest.$ac_objext \
36490 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36491LIBS=$ac_check_lib_save_LIBS
36492fi
36493echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
36494echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
36495if test $ac_cv_lib_socket_inet_addr = yes; then
36496 INET_LINK="socket"
36497
36498fi
36499
36500
36501
36502fi
36503
36504
36505
36506fi
36507
36508
36509
36510fi
36511done
36512
36513
36514
36515for ac_func in inet_aton
36516do
36517as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36518echo "$as_me:$LINENO: checking for $ac_func" >&5
36519echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36520if eval "test \"\${$as_ac_var+set}\" = set"; then
36521 echo $ECHO_N "(cached) $ECHO_C" >&6
36522else
36523 cat >conftest.$ac_ext <<_ACEOF
36524/* confdefs.h. */
36525_ACEOF
36526cat confdefs.h >>conftest.$ac_ext
36527cat >>conftest.$ac_ext <<_ACEOF
36528/* end confdefs.h. */
ac1cb8d3
VS
36529/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36530 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36531#define $ac_func innocuous_$ac_func
36532
a848cd7e
SC
36533/* System header to define __stub macros and hopefully few prototypes,
36534 which can conflict with char $ac_func (); below.
36535 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36536 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36537
a848cd7e
SC
36538#ifdef __STDC__
36539# include <limits.h>
36540#else
36541# include <assert.h>
36542#endif
ac1cb8d3
VS
36543
36544#undef $ac_func
36545
a848cd7e
SC
36546/* Override any gcc2 internal prototype to avoid an error. */
36547#ifdef __cplusplus
36548extern "C"
36549{
36550#endif
36551/* We use char because int might match the return type of a gcc2
36552 builtin and then its argument prototype would still apply. */
36553char $ac_func ();
36554/* The GNU C library defines this for functions which it implements
36555 to always fail with ENOSYS. Some functions are actually named
36556 something starting with __ and the normal name is an alias. */
36557#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36558choke me
36559#else
36560char (*f) () = $ac_func;
36561#endif
36562#ifdef __cplusplus
36563}
36564#endif
36565
36566int
36567main ()
36568{
36569return f != $ac_func;
36570 ;
36571 return 0;
36572}
36573_ACEOF
36574rm -f conftest.$ac_objext conftest$ac_exeext
36575if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36576 (eval $ac_link) 2>conftest.er1
a848cd7e 36577 ac_status=$?
ac1cb8d3
VS
36578 grep -v '^ *+' conftest.er1 >conftest.err
36579 rm -f conftest.er1
36580 cat conftest.err >&5
a848cd7e
SC
36581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36582 (exit $ac_status); } &&
5d7b7554 36583 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36585 (eval $ac_try) 2>&5
36586 ac_status=$?
36587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36588 (exit $ac_status); }; } &&
36589 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36591 (eval $ac_try) 2>&5
36592 ac_status=$?
36593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36594 (exit $ac_status); }; }; then
36595 eval "$as_ac_var=yes"
36596else
36597 echo "$as_me: failed program was:" >&5
36598sed 's/^/| /' conftest.$ac_ext >&5
36599
36600eval "$as_ac_var=no"
36601fi
ac1cb8d3
VS
36602rm -f conftest.err conftest.$ac_objext \
36603 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36604fi
36605echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36606echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36607if test `eval echo '${'$as_ac_var'}'` = yes; then
36608 cat >>confdefs.h <<_ACEOF
36609#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36610_ACEOF
36611 cat >>confdefs.h <<\_ACEOF
36612#define HAVE_INET_ATON 1
36613_ACEOF
36614
36615else
36616
36617 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
36618echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
36619echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
36620if eval "test \"\${$as_ac_Lib+set}\" = set"; then
36621 echo $ECHO_N "(cached) $ECHO_C" >&6
36622else
36623 ac_check_lib_save_LIBS=$LIBS
36624LIBS="-l$INET_LINK $LIBS"
36625cat >conftest.$ac_ext <<_ACEOF
36626/* confdefs.h. */
36627_ACEOF
36628cat confdefs.h >>conftest.$ac_ext
36629cat >>conftest.$ac_ext <<_ACEOF
36630/* end confdefs.h. */
36631
36632/* Override any gcc2 internal prototype to avoid an error. */
36633#ifdef __cplusplus
36634extern "C"
36635#endif
36636/* We use char because int might match the return type of a gcc2
36637 builtin and then its argument prototype would still apply. */
36638char inet_aton ();
36639int
36640main ()
36641{
36642inet_aton ();
36643 ;
36644 return 0;
36645}
36646_ACEOF
36647rm -f conftest.$ac_objext conftest$ac_exeext
36648if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36649 (eval $ac_link) 2>conftest.er1
a848cd7e 36650 ac_status=$?
ac1cb8d3
VS
36651 grep -v '^ *+' conftest.er1 >conftest.err
36652 rm -f conftest.er1
36653 cat conftest.err >&5
a848cd7e
SC
36654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36655 (exit $ac_status); } &&
5d7b7554 36656 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36658 (eval $ac_try) 2>&5
36659 ac_status=$?
36660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36661 (exit $ac_status); }; } &&
36662 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36664 (eval $ac_try) 2>&5
36665 ac_status=$?
36666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36667 (exit $ac_status); }; }; then
36668 eval "$as_ac_Lib=yes"
36669else
36670 echo "$as_me: failed program was:" >&5
36671sed 's/^/| /' conftest.$ac_ext >&5
36672
36673eval "$as_ac_Lib=no"
36674fi
ac1cb8d3
VS
36675rm -f conftest.err conftest.$ac_objext \
36676 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36677LIBS=$ac_check_lib_save_LIBS
36678fi
36679echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
36680echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
36681if test `eval echo '${'$as_ac_Lib'}'` = yes; then
36682 cat >>confdefs.h <<\_ACEOF
36683#define HAVE_INET_ATON 1
36684_ACEOF
36685
36686fi
36687
36688
36689fi
36690done
36691
36692
36693if test "x$INET_LINK" != "x"; then
36694 cat >>confdefs.h <<\_ACEOF
36695#define HAVE_INET_ADDR 1
36696_ACEOF
36697
36698 INET_LINK=" -l$INET_LINK"
36699fi
36700
36701fi
36702
36703
36704
36705EXTRALIBS_ESD=
36706echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
36707echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
36708if test "${ac_cv_lib_esd_esd_close+set}" = set; then
36709 echo $ECHO_N "(cached) $ECHO_C" >&6
36710else
36711 ac_check_lib_save_LIBS=$LIBS
36712LIBS="-lesd $LIBS"
36713cat >conftest.$ac_ext <<_ACEOF
36714/* confdefs.h. */
36715_ACEOF
36716cat confdefs.h >>conftest.$ac_ext
36717cat >>conftest.$ac_ext <<_ACEOF
36718/* end confdefs.h. */
36719
36720/* Override any gcc2 internal prototype to avoid an error. */
36721#ifdef __cplusplus
36722extern "C"
36723#endif
36724/* We use char because int might match the return type of a gcc2
36725 builtin and then its argument prototype would still apply. */
36726char esd_close ();
36727int
36728main ()
36729{
36730esd_close ();
36731 ;
36732 return 0;
36733}
36734_ACEOF
36735rm -f conftest.$ac_objext conftest$ac_exeext
36736if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36737 (eval $ac_link) 2>conftest.er1
a848cd7e 36738 ac_status=$?
ac1cb8d3
VS
36739 grep -v '^ *+' conftest.er1 >conftest.err
36740 rm -f conftest.er1
36741 cat conftest.err >&5
a848cd7e
SC
36742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36743 (exit $ac_status); } &&
5d7b7554 36744 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36746 (eval $ac_try) 2>&5
36747 ac_status=$?
36748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36749 (exit $ac_status); }; } &&
36750 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36752 (eval $ac_try) 2>&5
36753 ac_status=$?
36754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36755 (exit $ac_status); }; }; then
36756 ac_cv_lib_esd_esd_close=yes
36757else
36758 echo "$as_me: failed program was:" >&5
36759sed 's/^/| /' conftest.$ac_ext >&5
36760
36761ac_cv_lib_esd_esd_close=no
36762fi
ac1cb8d3
VS
36763rm -f conftest.err conftest.$ac_objext \
36764 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36765LIBS=$ac_check_lib_save_LIBS
36766fi
36767echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
36768echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
36769if test $ac_cv_lib_esd_esd_close = yes; then
36770
36771
36772for ac_header in esd.h
36773do
36774as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36775if eval "test \"\${$as_ac_Header+set}\" = set"; then
36776 echo "$as_me:$LINENO: checking for $ac_header" >&5
36777echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36778if eval "test \"\${$as_ac_Header+set}\" = set"; then
36779 echo $ECHO_N "(cached) $ECHO_C" >&6
36780fi
36781echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36782echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36783else
36784 # Is the header compilable?
36785echo "$as_me:$LINENO: checking $ac_header usability" >&5
36786echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36787cat >conftest.$ac_ext <<_ACEOF
36788/* confdefs.h. */
36789_ACEOF
36790cat confdefs.h >>conftest.$ac_ext
36791cat >>conftest.$ac_ext <<_ACEOF
36792/* end confdefs.h. */
36793$ac_includes_default
36794#include <$ac_header>
36795_ACEOF
36796rm -f conftest.$ac_objext
36797if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36798 (eval $ac_compile) 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); } &&
5d7b7554 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_objext'
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 ac_header_compiler=yes
36818else
36819 echo "$as_me: failed program was:" >&5
36820sed 's/^/| /' conftest.$ac_ext >&5
36821
36822ac_header_compiler=no
36823fi
ac1cb8d3 36824rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36825echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36826echo "${ECHO_T}$ac_header_compiler" >&6
36827
36828# Is the header present?
36829echo "$as_me:$LINENO: checking $ac_header presence" >&5
36830echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36831cat >conftest.$ac_ext <<_ACEOF
36832/* confdefs.h. */
36833_ACEOF
36834cat confdefs.h >>conftest.$ac_ext
36835cat >>conftest.$ac_ext <<_ACEOF
36836/* end confdefs.h. */
36837#include <$ac_header>
36838_ACEOF
36839if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36840 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36841 ac_status=$?
36842 grep -v '^ *+' conftest.er1 >conftest.err
36843 rm -f conftest.er1
36844 cat conftest.err >&5
36845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36846 (exit $ac_status); } >/dev/null; then
36847 if test -s conftest.err; then
5d7b7554
VZ
36848 ac_cpp_err=$ac_cxx_preproc_warn_flag
36849 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
36850 else
36851 ac_cpp_err=
36852 fi
36853else
36854 ac_cpp_err=yes
36855fi
36856if test -z "$ac_cpp_err"; then
36857 ac_header_preproc=yes
36858else
36859 echo "$as_me: failed program was:" >&5
36860sed 's/^/| /' conftest.$ac_ext >&5
36861
36862 ac_header_preproc=no
36863fi
36864rm -f conftest.err conftest.$ac_ext
36865echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36866echo "${ECHO_T}$ac_header_preproc" >&6
36867
36868# So? What about this header?
5d7b7554 36869case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 36870 yes:no: )
a848cd7e
SC
36871 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36872echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
36873 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36874echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36875 ac_header_preproc=yes
a848cd7e 36876 ;;
ac1cb8d3 36877 no:yes:* )
a848cd7e
SC
36878 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36879echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
36880 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36881echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36882 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36883echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36884 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36885echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
36886 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36887echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
36888 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36889echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
36890 (
36891 cat <<\_ASBOX
ac1cb8d3
VS
36892## ----------------------------------------- ##
36893## Report this to wx-dev@lists.wxwidgets.org ##
36894## ----------------------------------------- ##
a848cd7e
SC
36895_ASBOX
36896 ) |
36897 sed "s/^/$as_me: WARNING: /" >&2
36898 ;;
36899esac
36900echo "$as_me:$LINENO: checking for $ac_header" >&5
36901echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36902if eval "test \"\${$as_ac_Header+set}\" = set"; then
36903 echo $ECHO_N "(cached) $ECHO_C" >&6
36904else
ac1cb8d3 36905 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36906fi
36907echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36908echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36909
36910fi
36911if test `eval echo '${'$as_ac_Header'}'` = yes; then
36912 cat >>confdefs.h <<_ACEOF
36913#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36914_ACEOF
36915
36916 EXTRALIBS_ESD="-lesd"
36917
36918fi
36919
36920done
36921
36922
36923fi
36924
36925
36926
36927echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
36928echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
36929cat >conftest.$ac_ext <<_ACEOF
36930/* confdefs.h. */
36931_ACEOF
36932cat confdefs.h >>conftest.$ac_ext
36933cat >>conftest.$ac_ext <<_ACEOF
36934/* end confdefs.h. */
36935#ifdef __linux__
36936 #include <linux/cdrom.h>
36937 #else
36938 /* For Solaris */
36939 #include <sys/cdio.h>
36940 #endif
36941
36942int
36943main ()
36944{
36945struct cdrom_tocentry entry, old_entry;
36946 ;
36947 return 0;
36948}
36949_ACEOF
36950rm -f conftest.$ac_objext
36951if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36952 (eval $ac_compile) 2>conftest.er1
a848cd7e 36953 ac_status=$?
ac1cb8d3
VS
36954 grep -v '^ *+' conftest.er1 >conftest.err
36955 rm -f conftest.er1
36956 cat conftest.err >&5
a848cd7e
SC
36957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36958 (exit $ac_status); } &&
5d7b7554 36959 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36961 (eval $ac_try) 2>&5
36962 ac_status=$?
36963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36964 (exit $ac_status); }; } &&
36965 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36967 (eval $ac_try) 2>&5
36968 ac_status=$?
36969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36970 (exit $ac_status); }; }; then
36971 echo "$as_me:$LINENO: result: yes" >&5
36972echo "${ECHO_T}yes" >&6
36973 cat >>confdefs.h <<\_ACEOF
36974#define HAVE_KNOWN_CDROM_INTERFACE 1
36975_ACEOF
36976
36977else
36978 echo "$as_me: failed program was:" >&5
36979sed 's/^/| /' conftest.$ac_ext >&5
36980
36981echo "$as_me:$LINENO: result: no" >&5
36982echo "${ECHO_T}no" >&6
36983fi
ac1cb8d3 36984rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36985
36986
36987cat >confcache <<\_ACEOF
36988# This file is a shell script that caches the results of configure
36989# tests run on this system so they can be shared between configure
36990# scripts and configure runs, see configure's option --config-cache.
36991# It is not useful on other systems. If it contains results you don't
36992# want to keep, you may remove or edit it.
36993#
36994# config.status only pays attention to the cache file if you give it
36995# the --recheck option to rerun configure.
36996#
36997# `ac_cv_env_foo' variables (set or unset) will be overridden when
36998# loading this file, other *unset* `ac_cv_foo' will be assigned the
36999# following values.
37000
37001_ACEOF
37002
37003# The following way of writing the cache mishandles newlines in values,
37004# but we know of no workaround that is simple, portable, and efficient.
37005# So, don't put newlines in cache variables' values.
37006# Ultrix sh set writes to stderr and can't be redirected directly,
37007# and sets the high bit in the cache file unless we assign to the vars.
37008{
37009 (set) 2>&1 |
37010 case `(ac_space=' '; set | grep ac_space) 2>&1` in
37011 *ac_space=\ *)
37012 # `set' does not quote correctly, so add quotes (double-quote
37013 # substitution turns \\\\ into \\, and sed turns \\ into \).
37014 sed -n \
ac1cb8d3
VS
37015 "s/'/'\\\\''/g;
37016 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
37017 ;;
37018 *)
37019 # `set' quotes correctly as required by POSIX, so do not add quotes.
37020 sed -n \
ac1cb8d3 37021 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
37022 ;;
37023 esac;
37024} |
37025 sed '
37026 t clear
37027 : clear
37028 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
37029 t end
37030 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
37031 : end' >>confcache
37032if diff $cache_file confcache >/dev/null 2>&1; then :; else
37033 if test -w $cache_file; then
37034 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
37035 cat confcache >$cache_file
37036 else
37037 echo "not updating unwritable cache $cache_file"
37038 fi
37039fi
37040rm -f confcache
37041
37042
a848cd7e
SC
37043if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
37044
37045
37046 THREADS_LINK=
e56f4f9e 37047 THREADS_CXXFLAGS=
a848cd7e
SC
37048
37049 if test "$wxUSE_THREADS" = "yes" ; then
37050 if test "$USE_BEOS" = 1; then
37051 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
37052echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
37053 wxUSE_THREADS="no"
37054 fi
37055 fi
37056
37057 if test "$wxUSE_THREADS" = "yes" ; then
37058
37059
37060 THREAD_OPTS="-pthread"
37061 case "${host}" in
37062 *-*-solaris2* | *-*-sunos4* )
37063 if test "x$GCC" = "xyes"; then
37064 THREAD_OPTS="-pthreads $THREAD_OPTS"
37065 else
37066 THREAD_OPTS="-mt $THREAD_OPTS"
37067 fi
37068 ;;
37069 *-*-freebsd*)
37070 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
37071 ;;
37072 *-*-darwin* | *-*-cygwin* )
37073 THREAD_OPTS=""
37074 ;;
37075 *-*-aix*)
37076 THREAD_OPTS="pthreads"
37077 ;;
37078 *-hp-hpux* )
00421666
MW
37079 if test "x$GCC" = "xyes"; then
37080 $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
37081 THREAD_OPTS=""
37082 else
0093c2fc 37083 THREAD_OPTS="-mt"
a848cd7e
SC
37084 fi
37085 ;;
37086
37087 *-*-irix* )
37088 if test "x$GCC" = "xyes"; then
37089 THREAD_OPTS=""
37090 fi
37091 ;;
37092
37093 *-*-*UnixWare*)
37094 if test "x$GCC" != "xyes"; then
37095 THREAD_OPTS="-Ethread"
37096 fi
37097 ;;
37098 esac
37099
37100 THREAD_OPTS="$THREAD_OPTS pthread none"
37101
37102 THREADS_OK=no
37103 for flag in $THREAD_OPTS; do
37104 case $flag in
37105 none)
37106 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
37107echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
37108 ;;
37109
37110 -*)
37111 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
37112echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
e56f4f9e 37113 THREADS_CXXFLAGS="$flag"
a848cd7e
SC
37114 ;;
37115
37116 *)
37117 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
37118echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
37119 THREADS_LINK="-l$flag"
37120 ;;
37121 esac
37122
37123 save_LIBS="$LIBS"
e56f4f9e 37124 save_CXXFLAGS="$CXXFLAGS"
a848cd7e 37125 LIBS="$THREADS_LINK $LIBS"
e56f4f9e 37126 CXXFLAGS="$THREADS_CXXFLAGS $CXXFLAGS"
a848cd7e
SC
37127
37128 cat >conftest.$ac_ext <<_ACEOF
37129/* confdefs.h. */
37130_ACEOF
37131cat confdefs.h >>conftest.$ac_ext
37132cat >>conftest.$ac_ext <<_ACEOF
37133/* end confdefs.h. */
37134#include <pthread.h>
37135int
37136main ()
37137{
37138pthread_create(0,0,0,0);
37139 ;
37140 return 0;
37141}
37142_ACEOF
37143rm -f conftest.$ac_objext conftest$ac_exeext
37144if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37145 (eval $ac_link) 2>conftest.er1
a848cd7e 37146 ac_status=$?
ac1cb8d3
VS
37147 grep -v '^ *+' conftest.er1 >conftest.err
37148 rm -f conftest.er1
37149 cat conftest.err >&5
a848cd7e
SC
37150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37151 (exit $ac_status); } &&
5d7b7554 37152 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37154 (eval $ac_try) 2>&5
37155 ac_status=$?
37156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37157 (exit $ac_status); }; } &&
37158 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37160 (eval $ac_try) 2>&5
37161 ac_status=$?
37162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37163 (exit $ac_status); }; }; then
37164 THREADS_OK=yes
37165else
37166 echo "$as_me: failed program was:" >&5
37167sed 's/^/| /' conftest.$ac_ext >&5
37168
37169fi
ac1cb8d3
VS
37170rm -f conftest.err conftest.$ac_objext \
37171 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37172
37173 LIBS="$save_LIBS"
e56f4f9e 37174 CXXFLAGS="$save_CXXFLAGS"
a848cd7e
SC
37175
37176 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
37177echo "${ECHO_T}$THREADS_OK" >&6
37178 if test "x$THREADS_OK" = "xyes"; then
37179 break;
37180 fi
37181
37182 THREADS_LINK=""
e56f4f9e 37183 THREADS_CXXFLAGS=""
a848cd7e
SC
37184 done
37185
37186 if test "x$THREADS_OK" != "xyes"; then
37187 wxUSE_THREADS=no
37188 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
37189echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
37190 else
e56f4f9e 37191 LDFLAGS="$THREADS_CXXFLAGS $LDFLAGS"
a848cd7e
SC
37192 LIBS="$THREADS_LINK $LIBS"
37193
37194 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
37195echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
37196 flag=no
37197 case "${host}" in
37198 *-aix*)
37199 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
37200 flag="-D_THREAD_SAFE"
37201 ;;
37202 *-freebsd*)
37203 flag="-D_THREAD_SAFE"
37204 ;;
37205 *-hp-hpux* )
37206 flag="-D_REENTRANT"
37207 if test "x$GCC" != "xyes"; then
37208 flag="$flag -D_RWSTD_MULTI_THREAD"
37209 fi
37210 ;;
37211 *solaris* | alpha*-osf*)
37212 flag="-D_REENTRANT"
37213 ;;
37214 esac
37215 echo "$as_me:$LINENO: result: ${flag}" >&5
37216echo "${ECHO_T}${flag}" >&6
37217 if test "x$flag" != xno; then
e56f4f9e 37218 THREADS_CXXFLAGS="$THREADS_CXXFLAGS $flag"
a848cd7e
SC
37219 fi
37220
e56f4f9e 37221 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS $THREADS_CXXFLAGS"
a848cd7e
SC
37222 fi
37223 fi
37224
37225 if test "$wxUSE_THREADS" = "yes" ; then
37226
37227for ac_func in thr_setconcurrency
37228do
37229as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37230echo "$as_me:$LINENO: checking for $ac_func" >&5
37231echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37232if eval "test \"\${$as_ac_var+set}\" = set"; then
37233 echo $ECHO_N "(cached) $ECHO_C" >&6
37234else
37235 cat >conftest.$ac_ext <<_ACEOF
37236/* confdefs.h. */
37237_ACEOF
37238cat confdefs.h >>conftest.$ac_ext
37239cat >>conftest.$ac_ext <<_ACEOF
37240/* end confdefs.h. */
ac1cb8d3
VS
37241/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37242 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37243#define $ac_func innocuous_$ac_func
37244
a848cd7e
SC
37245/* System header to define __stub macros and hopefully few prototypes,
37246 which can conflict with char $ac_func (); below.
37247 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37248 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37249
a848cd7e
SC
37250#ifdef __STDC__
37251# include <limits.h>
37252#else
37253# include <assert.h>
37254#endif
ac1cb8d3
VS
37255
37256#undef $ac_func
37257
a848cd7e
SC
37258/* Override any gcc2 internal prototype to avoid an error. */
37259#ifdef __cplusplus
37260extern "C"
37261{
37262#endif
37263/* We use char because int might match the return type of a gcc2
37264 builtin and then its argument prototype would still apply. */
37265char $ac_func ();
37266/* The GNU C library defines this for functions which it implements
37267 to always fail with ENOSYS. Some functions are actually named
37268 something starting with __ and the normal name is an alias. */
37269#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37270choke me
37271#else
37272char (*f) () = $ac_func;
37273#endif
37274#ifdef __cplusplus
37275}
37276#endif
37277
37278int
37279main ()
37280{
37281return f != $ac_func;
37282 ;
37283 return 0;
37284}
37285_ACEOF
37286rm -f conftest.$ac_objext conftest$ac_exeext
37287if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37288 (eval $ac_link) 2>conftest.er1
a848cd7e 37289 ac_status=$?
ac1cb8d3
VS
37290 grep -v '^ *+' conftest.er1 >conftest.err
37291 rm -f conftest.er1
37292 cat conftest.err >&5
a848cd7e
SC
37293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37294 (exit $ac_status); } &&
5d7b7554 37295 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37297 (eval $ac_try) 2>&5
37298 ac_status=$?
37299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37300 (exit $ac_status); }; } &&
37301 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37303 (eval $ac_try) 2>&5
37304 ac_status=$?
37305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37306 (exit $ac_status); }; }; then
37307 eval "$as_ac_var=yes"
37308else
37309 echo "$as_me: failed program was:" >&5
37310sed 's/^/| /' conftest.$ac_ext >&5
37311
37312eval "$as_ac_var=no"
37313fi
ac1cb8d3
VS
37314rm -f conftest.err conftest.$ac_objext \
37315 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37316fi
37317echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37318echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37319if test `eval echo '${'$as_ac_var'}'` = yes; then
37320 cat >>confdefs.h <<_ACEOF
37321#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37322_ACEOF
37323
37324fi
37325done
37326
37327
6ebeb4c7
VZ
37328 echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
37329echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
37330if test "${wx_cv_func_pthread_cleanup+set}" = set; then
37331 echo $ECHO_N "(cached) $ECHO_C" >&6
37332else
37333
37334 cat >conftest.$ac_ext <<_ACEOF
37335/* confdefs.h. */
37336_ACEOF
37337cat confdefs.h >>conftest.$ac_ext
37338cat >>conftest.$ac_ext <<_ACEOF
37339/* end confdefs.h. */
37340#include <pthread.h>
37341 void ThreadCleanupFunc(void *p);
37342
37343int
37344main ()
37345{
37346
37347 void *p;
37348 pthread_cleanup_push(ThreadCleanupFunc, p);
37349 pthread_cleanup_pop(0);
37350
37351 ;
37352 return 0;
37353}
37354_ACEOF
37355rm -f conftest.$ac_objext
37356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37357 (eval $ac_compile) 2>conftest.er1
37358 ac_status=$?
37359 grep -v '^ *+' conftest.er1 >conftest.err
37360 rm -f conftest.er1
37361 cat conftest.err >&5
37362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37363 (exit $ac_status); } &&
5d7b7554 37364 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
37365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37366 (eval $ac_try) 2>&5
37367 ac_status=$?
37368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37369 (exit $ac_status); }; } &&
37370 { ac_try='test -s conftest.$ac_objext'
37371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37372 (eval $ac_try) 2>&5
37373 ac_status=$?
37374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37375 (exit $ac_status); }; }; then
37376
37377 wx_cv_func_pthread_cleanup=yes
37378
37379else
37380 echo "$as_me: failed program was:" >&5
37381sed 's/^/| /' conftest.$ac_ext >&5
37382
37383
37384 wx_cv_func_pthread_cleanup=no
37385
37386
37387fi
37388rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37389
37390fi
37391echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
37392echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6
37393 if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
37394 cat >>confdefs.h <<\_ACEOF
37395#define wxHAVE_PTHREAD_CLEANUP 1
37396_ACEOF
37397
37398 fi
37399
a848cd7e
SC
37400
37401for ac_header in sched.h
37402do
37403as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37404if eval "test \"\${$as_ac_Header+set}\" = set"; then
37405 echo "$as_me:$LINENO: checking for $ac_header" >&5
37406echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37407if eval "test \"\${$as_ac_Header+set}\" = set"; then
37408 echo $ECHO_N "(cached) $ECHO_C" >&6
37409fi
37410echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37411echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37412else
37413 # Is the header compilable?
37414echo "$as_me:$LINENO: checking $ac_header usability" >&5
37415echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37416cat >conftest.$ac_ext <<_ACEOF
37417/* confdefs.h. */
37418_ACEOF
37419cat confdefs.h >>conftest.$ac_ext
37420cat >>conftest.$ac_ext <<_ACEOF
37421/* end confdefs.h. */
37422$ac_includes_default
37423#include <$ac_header>
37424_ACEOF
37425rm -f conftest.$ac_objext
37426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37427 (eval $ac_compile) 2>conftest.er1
a848cd7e 37428 ac_status=$?
ac1cb8d3
VS
37429 grep -v '^ *+' conftest.er1 >conftest.err
37430 rm -f conftest.er1
37431 cat conftest.err >&5
a848cd7e
SC
37432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37433 (exit $ac_status); } &&
5d7b7554 37434 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37436 (eval $ac_try) 2>&5
37437 ac_status=$?
37438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37439 (exit $ac_status); }; } &&
37440 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37442 (eval $ac_try) 2>&5
37443 ac_status=$?
37444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37445 (exit $ac_status); }; }; then
37446 ac_header_compiler=yes
37447else
37448 echo "$as_me: failed program was:" >&5
37449sed 's/^/| /' conftest.$ac_ext >&5
37450
37451ac_header_compiler=no
37452fi
ac1cb8d3 37453rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37454echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37455echo "${ECHO_T}$ac_header_compiler" >&6
37456
37457# Is the header present?
37458echo "$as_me:$LINENO: checking $ac_header presence" >&5
37459echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37460cat >conftest.$ac_ext <<_ACEOF
37461/* confdefs.h. */
37462_ACEOF
37463cat confdefs.h >>conftest.$ac_ext
37464cat >>conftest.$ac_ext <<_ACEOF
37465/* end confdefs.h. */
37466#include <$ac_header>
37467_ACEOF
37468if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37469 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37470 ac_status=$?
37471 grep -v '^ *+' conftest.er1 >conftest.err
37472 rm -f conftest.er1
37473 cat conftest.err >&5
37474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37475 (exit $ac_status); } >/dev/null; then
37476 if test -s conftest.err; then
5d7b7554
VZ
37477 ac_cpp_err=$ac_cxx_preproc_warn_flag
37478 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
37479 else
37480 ac_cpp_err=
37481 fi
37482else
37483 ac_cpp_err=yes
37484fi
37485if test -z "$ac_cpp_err"; then
37486 ac_header_preproc=yes
37487else
37488 echo "$as_me: failed program was:" >&5
37489sed 's/^/| /' conftest.$ac_ext >&5
37490
37491 ac_header_preproc=no
37492fi
37493rm -f conftest.err conftest.$ac_ext
37494echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37495echo "${ECHO_T}$ac_header_preproc" >&6
37496
37497# So? What about this header?
5d7b7554 37498case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 37499 yes:no: )
a848cd7e
SC
37500 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37501echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
37502 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37503echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37504 ac_header_preproc=yes
a848cd7e 37505 ;;
ac1cb8d3 37506 no:yes:* )
a848cd7e
SC
37507 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37508echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
37509 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37510echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37511 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37512echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37513 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37514echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
37515 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37516echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
37517 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37518echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
37519 (
37520 cat <<\_ASBOX
ac1cb8d3
VS
37521## ----------------------------------------- ##
37522## Report this to wx-dev@lists.wxwidgets.org ##
37523## ----------------------------------------- ##
a848cd7e
SC
37524_ASBOX
37525 ) |
37526 sed "s/^/$as_me: WARNING: /" >&2
37527 ;;
37528esac
37529echo "$as_me:$LINENO: checking for $ac_header" >&5
37530echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37531if eval "test \"\${$as_ac_Header+set}\" = set"; then
37532 echo $ECHO_N "(cached) $ECHO_C" >&6
37533else
ac1cb8d3 37534 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
37535fi
37536echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37537echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37538
37539fi
37540if test `eval echo '${'$as_ac_Header'}'` = yes; then
37541 cat >>confdefs.h <<_ACEOF
37542#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37543_ACEOF
37544
37545fi
37546
37547done
37548
37549 if test "$ac_cv_header_sched_h" = "yes"; then
37550 echo "$as_me:$LINENO: checking for sched_yield" >&5
37551echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
37552if test "${ac_cv_func_sched_yield+set}" = set; then
37553 echo $ECHO_N "(cached) $ECHO_C" >&6
37554else
37555 cat >conftest.$ac_ext <<_ACEOF
37556/* confdefs.h. */
37557_ACEOF
37558cat confdefs.h >>conftest.$ac_ext
37559cat >>conftest.$ac_ext <<_ACEOF
37560/* end confdefs.h. */
ac1cb8d3
VS
37561/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
37562 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37563#define sched_yield innocuous_sched_yield
37564
a848cd7e
SC
37565/* System header to define __stub macros and hopefully few prototypes,
37566 which can conflict with char sched_yield (); below.
37567 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37568 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37569
a848cd7e
SC
37570#ifdef __STDC__
37571# include <limits.h>
37572#else
37573# include <assert.h>
37574#endif
ac1cb8d3
VS
37575
37576#undef sched_yield
37577
a848cd7e
SC
37578/* Override any gcc2 internal prototype to avoid an error. */
37579#ifdef __cplusplus
37580extern "C"
37581{
37582#endif
37583/* We use char because int might match the return type of a gcc2
37584 builtin and then its argument prototype would still apply. */
37585char sched_yield ();
37586/* The GNU C library defines this for functions which it implements
37587 to always fail with ENOSYS. Some functions are actually named
37588 something starting with __ and the normal name is an alias. */
37589#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
37590choke me
37591#else
37592char (*f) () = sched_yield;
37593#endif
37594#ifdef __cplusplus
37595}
37596#endif
37597
37598int
37599main ()
37600{
37601return f != sched_yield;
37602 ;
37603 return 0;
37604}
37605_ACEOF
37606rm -f conftest.$ac_objext conftest$ac_exeext
37607if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37608 (eval $ac_link) 2>conftest.er1
a848cd7e 37609 ac_status=$?
ac1cb8d3
VS
37610 grep -v '^ *+' conftest.er1 >conftest.err
37611 rm -f conftest.er1
37612 cat conftest.err >&5
a848cd7e
SC
37613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37614 (exit $ac_status); } &&
5d7b7554 37615 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37617 (eval $ac_try) 2>&5
37618 ac_status=$?
37619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37620 (exit $ac_status); }; } &&
37621 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37623 (eval $ac_try) 2>&5
37624 ac_status=$?
37625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37626 (exit $ac_status); }; }; then
37627 ac_cv_func_sched_yield=yes
37628else
37629 echo "$as_me: failed program was:" >&5
37630sed 's/^/| /' conftest.$ac_ext >&5
37631
37632ac_cv_func_sched_yield=no
37633fi
ac1cb8d3
VS
37634rm -f conftest.err conftest.$ac_objext \
37635 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37636fi
37637echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
37638echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
37639if test $ac_cv_func_sched_yield = yes; then
37640 cat >>confdefs.h <<\_ACEOF
37641#define HAVE_SCHED_YIELD 1
37642_ACEOF
37643
37644else
37645
37646 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
37647echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
37648if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
37649 echo $ECHO_N "(cached) $ECHO_C" >&6
37650else
37651 ac_check_lib_save_LIBS=$LIBS
37652LIBS="-lposix4 $LIBS"
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
37660/* Override any gcc2 internal prototype to avoid an error. */
37661#ifdef __cplusplus
37662extern "C"
37663#endif
37664/* We use char because int might match the return type of a gcc2
37665 builtin and then its argument prototype would still apply. */
37666char sched_yield ();
37667int
37668main ()
37669{
37670sched_yield ();
37671 ;
37672 return 0;
37673}
37674_ACEOF
37675rm -f conftest.$ac_objext conftest$ac_exeext
37676if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37677 (eval $ac_link) 2>conftest.er1
a848cd7e 37678 ac_status=$?
ac1cb8d3
VS
37679 grep -v '^ *+' conftest.er1 >conftest.err
37680 rm -f conftest.er1
37681 cat conftest.err >&5
a848cd7e
SC
37682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37683 (exit $ac_status); } &&
5d7b7554 37684 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37686 (eval $ac_try) 2>&5
37687 ac_status=$?
37688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37689 (exit $ac_status); }; } &&
37690 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37692 (eval $ac_try) 2>&5
37693 ac_status=$?
37694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37695 (exit $ac_status); }; }; then
37696 ac_cv_lib_posix4_sched_yield=yes
37697else
37698 echo "$as_me: failed program was:" >&5
37699sed 's/^/| /' conftest.$ac_ext >&5
37700
37701ac_cv_lib_posix4_sched_yield=no
37702fi
ac1cb8d3
VS
37703rm -f conftest.err conftest.$ac_objext \
37704 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37705LIBS=$ac_check_lib_save_LIBS
37706fi
37707echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
37708echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
37709if test $ac_cv_lib_posix4_sched_yield = yes; then
37710 cat >>confdefs.h <<\_ACEOF
37711#define HAVE_SCHED_YIELD 1
37712_ACEOF
37713 POSIX4_LINK=" -lposix4"
37714else
37715 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
37716echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
37717
37718fi
37719
37720
37721
37722fi
37723
37724 fi
37725
37726 HAVE_PRIOR_FUNCS=0
37727 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
37728echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
37729if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
37730 echo $ECHO_N "(cached) $ECHO_C" >&6
37731else
37732 cat >conftest.$ac_ext <<_ACEOF
37733/* confdefs.h. */
37734_ACEOF
37735cat confdefs.h >>conftest.$ac_ext
37736cat >>conftest.$ac_ext <<_ACEOF
37737/* end confdefs.h. */
ac1cb8d3
VS
37738/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
37739 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37740#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
37741
a848cd7e
SC
37742/* System header to define __stub macros and hopefully few prototypes,
37743 which can conflict with char pthread_attr_getschedpolicy (); below.
37744 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37745 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37746
a848cd7e
SC
37747#ifdef __STDC__
37748# include <limits.h>
37749#else
37750# include <assert.h>
37751#endif
ac1cb8d3
VS
37752
37753#undef pthread_attr_getschedpolicy
37754
a848cd7e
SC
37755/* Override any gcc2 internal prototype to avoid an error. */
37756#ifdef __cplusplus
37757extern "C"
37758{
37759#endif
37760/* We use char because int might match the return type of a gcc2
37761 builtin and then its argument prototype would still apply. */
37762char pthread_attr_getschedpolicy ();
37763/* The GNU C library defines this for functions which it implements
37764 to always fail with ENOSYS. Some functions are actually named
37765 something starting with __ and the normal name is an alias. */
37766#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
37767choke me
37768#else
37769char (*f) () = pthread_attr_getschedpolicy;
37770#endif
37771#ifdef __cplusplus
37772}
37773#endif
37774
37775int
37776main ()
37777{
37778return f != pthread_attr_getschedpolicy;
37779 ;
37780 return 0;
37781}
37782_ACEOF
37783rm -f conftest.$ac_objext conftest$ac_exeext
37784if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37785 (eval $ac_link) 2>conftest.er1
a848cd7e 37786 ac_status=$?
ac1cb8d3
VS
37787 grep -v '^ *+' conftest.er1 >conftest.err
37788 rm -f conftest.er1
37789 cat conftest.err >&5
a848cd7e
SC
37790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37791 (exit $ac_status); } &&
5d7b7554 37792 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37794 (eval $ac_try) 2>&5
37795 ac_status=$?
37796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37797 (exit $ac_status); }; } &&
37798 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37800 (eval $ac_try) 2>&5
37801 ac_status=$?
37802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37803 (exit $ac_status); }; }; then
37804 ac_cv_func_pthread_attr_getschedpolicy=yes
37805else
37806 echo "$as_me: failed program was:" >&5
37807sed 's/^/| /' conftest.$ac_ext >&5
37808
37809ac_cv_func_pthread_attr_getschedpolicy=no
37810fi
ac1cb8d3
VS
37811rm -f conftest.err conftest.$ac_objext \
37812 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37813fi
37814echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
37815echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
37816if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
37817 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
37818echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
37819if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
37820 echo $ECHO_N "(cached) $ECHO_C" >&6
37821else
37822 cat >conftest.$ac_ext <<_ACEOF
37823/* confdefs.h. */
37824_ACEOF
37825cat confdefs.h >>conftest.$ac_ext
37826cat >>conftest.$ac_ext <<_ACEOF
37827/* end confdefs.h. */
ac1cb8d3
VS
37828/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
37829 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37830#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
37831
a848cd7e
SC
37832/* System header to define __stub macros and hopefully few prototypes,
37833 which can conflict with char pthread_attr_setschedparam (); below.
37834 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37835 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37836
a848cd7e
SC
37837#ifdef __STDC__
37838# include <limits.h>
37839#else
37840# include <assert.h>
37841#endif
ac1cb8d3
VS
37842
37843#undef pthread_attr_setschedparam
37844
a848cd7e
SC
37845/* Override any gcc2 internal prototype to avoid an error. */
37846#ifdef __cplusplus
37847extern "C"
37848{
37849#endif
37850/* We use char because int might match the return type of a gcc2
37851 builtin and then its argument prototype would still apply. */
37852char pthread_attr_setschedparam ();
37853/* The GNU C library defines this for functions which it implements
37854 to always fail with ENOSYS. Some functions are actually named
37855 something starting with __ and the normal name is an alias. */
37856#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
37857choke me
37858#else
37859char (*f) () = pthread_attr_setschedparam;
37860#endif
37861#ifdef __cplusplus
37862}
37863#endif
37864
37865int
37866main ()
37867{
37868return f != pthread_attr_setschedparam;
37869 ;
37870 return 0;
37871}
37872_ACEOF
37873rm -f conftest.$ac_objext conftest$ac_exeext
37874if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37875 (eval $ac_link) 2>conftest.er1
a848cd7e 37876 ac_status=$?
ac1cb8d3
VS
37877 grep -v '^ *+' conftest.er1 >conftest.err
37878 rm -f conftest.er1
37879 cat conftest.err >&5
a848cd7e
SC
37880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37881 (exit $ac_status); } &&
5d7b7554 37882 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37884 (eval $ac_try) 2>&5
37885 ac_status=$?
37886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37887 (exit $ac_status); }; } &&
37888 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37890 (eval $ac_try) 2>&5
37891 ac_status=$?
37892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37893 (exit $ac_status); }; }; then
37894 ac_cv_func_pthread_attr_setschedparam=yes
37895else
37896 echo "$as_me: failed program was:" >&5
37897sed 's/^/| /' conftest.$ac_ext >&5
37898
37899ac_cv_func_pthread_attr_setschedparam=no
37900fi
ac1cb8d3
VS
37901rm -f conftest.err conftest.$ac_objext \
37902 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37903fi
37904echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
37905echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
37906if test $ac_cv_func_pthread_attr_setschedparam = yes; then
37907 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
37908echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
37909if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
37910 echo $ECHO_N "(cached) $ECHO_C" >&6
37911else
37912 cat >conftest.$ac_ext <<_ACEOF
37913/* confdefs.h. */
37914_ACEOF
37915cat confdefs.h >>conftest.$ac_ext
37916cat >>conftest.$ac_ext <<_ACEOF
37917/* end confdefs.h. */
ac1cb8d3
VS
37918/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
37919 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37920#define sched_get_priority_max innocuous_sched_get_priority_max
37921
a848cd7e
SC
37922/* System header to define __stub macros and hopefully few prototypes,
37923 which can conflict with char sched_get_priority_max (); below.
37924 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37925 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37926
a848cd7e
SC
37927#ifdef __STDC__
37928# include <limits.h>
37929#else
37930# include <assert.h>
37931#endif
ac1cb8d3
VS
37932
37933#undef sched_get_priority_max
37934
a848cd7e
SC
37935/* Override any gcc2 internal prototype to avoid an error. */
37936#ifdef __cplusplus
37937extern "C"
37938{
37939#endif
37940/* We use char because int might match the return type of a gcc2
37941 builtin and then its argument prototype would still apply. */
37942char sched_get_priority_max ();
37943/* The GNU C library defines this for functions which it implements
37944 to always fail with ENOSYS. Some functions are actually named
37945 something starting with __ and the normal name is an alias. */
37946#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
37947choke me
37948#else
37949char (*f) () = sched_get_priority_max;
37950#endif
37951#ifdef __cplusplus
37952}
37953#endif
37954
37955int
37956main ()
37957{
37958return f != sched_get_priority_max;
37959 ;
37960 return 0;
37961}
37962_ACEOF
37963rm -f conftest.$ac_objext conftest$ac_exeext
37964if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37965 (eval $ac_link) 2>conftest.er1
a848cd7e 37966 ac_status=$?
ac1cb8d3
VS
37967 grep -v '^ *+' conftest.er1 >conftest.err
37968 rm -f conftest.er1
37969 cat conftest.err >&5
a848cd7e
SC
37970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37971 (exit $ac_status); } &&
5d7b7554 37972 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37974 (eval $ac_try) 2>&5
37975 ac_status=$?
37976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37977 (exit $ac_status); }; } &&
37978 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37980 (eval $ac_try) 2>&5
37981 ac_status=$?
37982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37983 (exit $ac_status); }; }; then
37984 ac_cv_func_sched_get_priority_max=yes
37985else
37986 echo "$as_me: failed program was:" >&5
37987sed 's/^/| /' conftest.$ac_ext >&5
37988
37989ac_cv_func_sched_get_priority_max=no
37990fi
ac1cb8d3
VS
37991rm -f conftest.err conftest.$ac_objext \
37992 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37993fi
37994echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
37995echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
37996if test $ac_cv_func_sched_get_priority_max = yes; then
37997 HAVE_PRIOR_FUNCS=1
37998else
37999 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
38000echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
38001if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
38002 echo $ECHO_N "(cached) $ECHO_C" >&6
38003else
38004 ac_check_lib_save_LIBS=$LIBS
38005LIBS="-lposix4 $LIBS"
38006cat >conftest.$ac_ext <<_ACEOF
38007/* confdefs.h. */
38008_ACEOF
38009cat confdefs.h >>conftest.$ac_ext
38010cat >>conftest.$ac_ext <<_ACEOF
38011/* end confdefs.h. */
38012
38013/* Override any gcc2 internal prototype to avoid an error. */
38014#ifdef __cplusplus
38015extern "C"
38016#endif
38017/* We use char because int might match the return type of a gcc2
38018 builtin and then its argument prototype would still apply. */
38019char sched_get_priority_max ();
38020int
38021main ()
38022{
38023sched_get_priority_max ();
38024 ;
38025 return 0;
38026}
38027_ACEOF
38028rm -f conftest.$ac_objext conftest$ac_exeext
38029if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38030 (eval $ac_link) 2>conftest.er1
a848cd7e 38031 ac_status=$?
ac1cb8d3
VS
38032 grep -v '^ *+' conftest.er1 >conftest.err
38033 rm -f conftest.er1
38034 cat conftest.err >&5
a848cd7e
SC
38035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38036 (exit $ac_status); } &&
5d7b7554 38037 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38039 (eval $ac_try) 2>&5
38040 ac_status=$?
38041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38042 (exit $ac_status); }; } &&
38043 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38045 (eval $ac_try) 2>&5
38046 ac_status=$?
38047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38048 (exit $ac_status); }; }; then
38049 ac_cv_lib_posix4_sched_get_priority_max=yes
38050else
38051 echo "$as_me: failed program was:" >&5
38052sed 's/^/| /' conftest.$ac_ext >&5
38053
38054ac_cv_lib_posix4_sched_get_priority_max=no
38055fi
ac1cb8d3
VS
38056rm -f conftest.err conftest.$ac_objext \
38057 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38058LIBS=$ac_check_lib_save_LIBS
38059fi
38060echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
38061echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
38062if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
38063
38064 HAVE_PRIOR_FUNCS=1
38065 POSIX4_LINK=" -lposix4"
38066
38067fi
38068
38069
38070fi
38071
38072
38073fi
38074
38075
38076fi
38077
38078
38079 if test "$HAVE_PRIOR_FUNCS" = 1; then
38080 cat >>confdefs.h <<\_ACEOF
38081#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
38082_ACEOF
38083
38084 else
38085 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
38086echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
38087 fi
38088
38089 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
38090echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
38091if test "${ac_cv_func_pthread_cancel+set}" = set; then
38092 echo $ECHO_N "(cached) $ECHO_C" >&6
38093else
38094 cat >conftest.$ac_ext <<_ACEOF
38095/* confdefs.h. */
38096_ACEOF
38097cat confdefs.h >>conftest.$ac_ext
38098cat >>conftest.$ac_ext <<_ACEOF
38099/* end confdefs.h. */
ac1cb8d3
VS
38100/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
38101 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38102#define pthread_cancel innocuous_pthread_cancel
38103
a848cd7e
SC
38104/* System header to define __stub macros and hopefully few prototypes,
38105 which can conflict with char pthread_cancel (); below.
38106 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38107 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38108
a848cd7e
SC
38109#ifdef __STDC__
38110# include <limits.h>
38111#else
38112# include <assert.h>
38113#endif
ac1cb8d3
VS
38114
38115#undef pthread_cancel
38116
a848cd7e
SC
38117/* Override any gcc2 internal prototype to avoid an error. */
38118#ifdef __cplusplus
38119extern "C"
38120{
38121#endif
38122/* We use char because int might match the return type of a gcc2
38123 builtin and then its argument prototype would still apply. */
38124char pthread_cancel ();
38125/* The GNU C library defines this for functions which it implements
38126 to always fail with ENOSYS. Some functions are actually named
38127 something starting with __ and the normal name is an alias. */
38128#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
38129choke me
38130#else
38131char (*f) () = pthread_cancel;
38132#endif
38133#ifdef __cplusplus
38134}
38135#endif
38136
38137int
38138main ()
38139{
38140return f != pthread_cancel;
38141 ;
38142 return 0;
38143}
38144_ACEOF
38145rm -f conftest.$ac_objext conftest$ac_exeext
38146if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38147 (eval $ac_link) 2>conftest.er1
a848cd7e 38148 ac_status=$?
ac1cb8d3
VS
38149 grep -v '^ *+' conftest.er1 >conftest.err
38150 rm -f conftest.er1
38151 cat conftest.err >&5
a848cd7e
SC
38152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38153 (exit $ac_status); } &&
5d7b7554 38154 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38156 (eval $ac_try) 2>&5
38157 ac_status=$?
38158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38159 (exit $ac_status); }; } &&
38160 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38162 (eval $ac_try) 2>&5
38163 ac_status=$?
38164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38165 (exit $ac_status); }; }; then
38166 ac_cv_func_pthread_cancel=yes
38167else
38168 echo "$as_me: failed program was:" >&5
38169sed 's/^/| /' conftest.$ac_ext >&5
38170
38171ac_cv_func_pthread_cancel=no
38172fi
ac1cb8d3
VS
38173rm -f conftest.err conftest.$ac_objext \
38174 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38175fi
38176echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
38177echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
38178if test $ac_cv_func_pthread_cancel = yes; then
38179 cat >>confdefs.h <<\_ACEOF
38180#define HAVE_PTHREAD_CANCEL 1
38181_ACEOF
38182
38183else
38184 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
38185echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
38186fi
38187
38188
abc736fd
MW
38189 echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
38190echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6
38191if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
38192 echo $ECHO_N "(cached) $ECHO_C" >&6
38193else
38194 cat >conftest.$ac_ext <<_ACEOF
38195/* confdefs.h. */
38196_ACEOF
38197cat confdefs.h >>conftest.$ac_ext
38198cat >>conftest.$ac_ext <<_ACEOF
38199/* end confdefs.h. */
38200/* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
38201 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38202#define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
38203
38204/* System header to define __stub macros and hopefully few prototypes,
38205 which can conflict with char pthread_attr_setstacksize (); below.
38206 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38207 <limits.h> exists even on freestanding compilers. */
38208
38209#ifdef __STDC__
38210# include <limits.h>
38211#else
38212# include <assert.h>
38213#endif
38214
38215#undef pthread_attr_setstacksize
38216
38217/* Override any gcc2 internal prototype to avoid an error. */
38218#ifdef __cplusplus
38219extern "C"
38220{
38221#endif
38222/* We use char because int might match the return type of a gcc2
38223 builtin and then its argument prototype would still apply. */
38224char pthread_attr_setstacksize ();
38225/* The GNU C library defines this for functions which it implements
38226 to always fail with ENOSYS. Some functions are actually named
38227 something starting with __ and the normal name is an alias. */
38228#if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize)
38229choke me
38230#else
38231char (*f) () = pthread_attr_setstacksize;
38232#endif
38233#ifdef __cplusplus
38234}
38235#endif
38236
38237int
38238main ()
38239{
38240return f != pthread_attr_setstacksize;
38241 ;
38242 return 0;
38243}
38244_ACEOF
38245rm -f conftest.$ac_objext conftest$ac_exeext
38246if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38247 (eval $ac_link) 2>conftest.er1
38248 ac_status=$?
38249 grep -v '^ *+' conftest.er1 >conftest.err
38250 rm -f conftest.er1
38251 cat conftest.err >&5
38252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38253 (exit $ac_status); } &&
5d7b7554 38254 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
abc736fd
MW
38255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38256 (eval $ac_try) 2>&5
38257 ac_status=$?
38258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38259 (exit $ac_status); }; } &&
38260 { ac_try='test -s conftest$ac_exeext'
38261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38262 (eval $ac_try) 2>&5
38263 ac_status=$?
38264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38265 (exit $ac_status); }; }; then
38266 ac_cv_func_pthread_attr_setstacksize=yes
38267else
38268 echo "$as_me: failed program was:" >&5
38269sed 's/^/| /' conftest.$ac_ext >&5
38270
38271ac_cv_func_pthread_attr_setstacksize=no
38272fi
38273rm -f conftest.err conftest.$ac_objext \
38274 conftest$ac_exeext conftest.$ac_ext
38275fi
38276echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
38277echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6
38278if test $ac_cv_func_pthread_attr_setstacksize = yes; then
38279 cat >>confdefs.h <<\_ACEOF
38280#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
38281_ACEOF
38282
38283fi
38284
a848cd7e
SC
38285
38286
38287 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
38288echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
38289if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
38290 echo $ECHO_N "(cached) $ECHO_C" >&6
38291else
38292
38293 cat >conftest.$ac_ext <<_ACEOF
38294/* confdefs.h. */
38295_ACEOF
38296cat confdefs.h >>conftest.$ac_ext
38297cat >>conftest.$ac_ext <<_ACEOF
38298/* end confdefs.h. */
38299#include <pthread.h>
38300int
38301main ()
38302{
38303
38304 pthread_mutexattr_t attr;
38305 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
38306
38307 ;
38308 return 0;
38309}
38310_ACEOF
38311rm -f conftest.$ac_objext
38312if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38313 (eval $ac_compile) 2>conftest.er1
a848cd7e 38314 ac_status=$?
ac1cb8d3
VS
38315 grep -v '^ *+' conftest.er1 >conftest.err
38316 rm -f conftest.er1
38317 cat conftest.err >&5
a848cd7e
SC
38318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38319 (exit $ac_status); } &&
5d7b7554 38320 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38322 (eval $ac_try) 2>&5
38323 ac_status=$?
38324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38325 (exit $ac_status); }; } &&
38326 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38328 (eval $ac_try) 2>&5
38329 ac_status=$?
38330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38331 (exit $ac_status); }; }; then
123dca7d 38332 wx_cv_type_pthread_mutexattr_t=yes
a848cd7e
SC
38333else
38334 echo "$as_me: failed program was:" >&5
38335sed 's/^/| /' conftest.$ac_ext >&5
38336
123dca7d 38337wx_cv_type_pthread_mutexattr_t=no
a848cd7e
SC
38338
38339fi
ac1cb8d3 38340rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38341
38342fi
38343echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
38344echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
38345
38346 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
38347 cat >>confdefs.h <<\_ACEOF
38348#define HAVE_PTHREAD_MUTEXATTR_T 1
38349_ACEOF
38350
123dca7d
VZ
38351
38352 echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
38353echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6
38354if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
38355 echo $ECHO_N "(cached) $ECHO_C" >&6
38356else
38357
38358 cat >conftest.$ac_ext <<_ACEOF
38359/* confdefs.h. */
38360_ACEOF
38361cat confdefs.h >>conftest.$ac_ext
38362cat >>conftest.$ac_ext <<_ACEOF
38363/* end confdefs.h. */
38364#include <pthread.h>
38365int
38366main ()
38367{
38368
38369 pthread_mutexattr_t attr;
38370 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
38371
38372 ;
38373 return 0;
38374}
38375_ACEOF
38376rm -f conftest.$ac_objext
38377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38378 (eval $ac_compile) 2>conftest.er1
38379 ac_status=$?
38380 grep -v '^ *+' conftest.er1 >conftest.err
38381 rm -f conftest.er1
38382 cat conftest.err >&5
38383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38384 (exit $ac_status); } &&
5d7b7554 38385 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
123dca7d
VZ
38386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38387 (eval $ac_try) 2>&5
38388 ac_status=$?
38389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38390 (exit $ac_status); }; } &&
38391 { ac_try='test -s conftest.$ac_objext'
38392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38393 (eval $ac_try) 2>&5
38394 ac_status=$?
38395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38396 (exit $ac_status); }; }; then
38397 wx_cv_func_pthread_mutexattr_settype_decl=yes
38398else
38399 echo "$as_me: failed program was:" >&5
38400sed 's/^/| /' conftest.$ac_ext >&5
38401
38402wx_cv_func_pthread_mutexattr_settype_decl=no
38403
38404fi
38405rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38406
38407fi
38408echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
38409echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6
38410 if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
38411 cat >>confdefs.h <<\_ACEOF
38412#define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
38413_ACEOF
38414
38415 fi
a848cd7e
SC
38416 else
38417 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
38418echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
38419if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
38420 echo $ECHO_N "(cached) $ECHO_C" >&6
38421else
38422
38423 cat >conftest.$ac_ext <<_ACEOF
38424/* confdefs.h. */
38425_ACEOF
38426cat confdefs.h >>conftest.$ac_ext
38427cat >>conftest.$ac_ext <<_ACEOF
38428/* end confdefs.h. */
38429#include <pthread.h>
38430int
38431main ()
38432{
38433
38434 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
38435
38436 ;
38437 return 0;
38438}
38439_ACEOF
38440rm -f conftest.$ac_objext
38441if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38442 (eval $ac_compile) 2>conftest.er1
a848cd7e 38443 ac_status=$?
ac1cb8d3
VS
38444 grep -v '^ *+' conftest.er1 >conftest.err
38445 rm -f conftest.er1
38446 cat conftest.err >&5
a848cd7e
SC
38447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38448 (exit $ac_status); } &&
5d7b7554 38449 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38451 (eval $ac_try) 2>&5
38452 ac_status=$?
38453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38454 (exit $ac_status); }; } &&
38455 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38457 (eval $ac_try) 2>&5
38458 ac_status=$?
38459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38460 (exit $ac_status); }; }; then
38461
38462 wx_cv_type_pthread_rec_mutex_init=yes
38463
38464else
38465 echo "$as_me: failed program was:" >&5
38466sed 's/^/| /' conftest.$ac_ext >&5
38467
38468
38469 wx_cv_type_pthread_rec_mutex_init=no
38470
38471
38472fi
ac1cb8d3 38473rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38474
38475fi
38476echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
38477echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
38478 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
38479 cat >>confdefs.h <<\_ACEOF
38480#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
38481_ACEOF
38482
38483 else
38484 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
38485echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
38486 fi
38487 fi
38488 fi
38489
38490else
38491 if test "$wxUSE_THREADS" = "yes" ; then
38492 case "${host}" in
38493 *-*-mingw32* )
38494 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
38495echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
38496if test "${wx_cv_cflags_mthread+set}" = set; then
38497 echo $ECHO_N "(cached) $ECHO_C" >&6
38498else
38499
e56f4f9e
VZ
38500 CXXFLAGS_OLD="$CXXFLAGS"
38501 CXXFLAGS="-mthreads $CXXFLAGS"
a848cd7e
SC
38502 cat >conftest.$ac_ext <<_ACEOF
38503/* confdefs.h. */
38504_ACEOF
38505cat confdefs.h >>conftest.$ac_ext
38506cat >>conftest.$ac_ext <<_ACEOF
38507/* end confdefs.h. */
38508
38509int
38510main ()
38511{
38512
38513 ;
38514 return 0;
38515}
38516_ACEOF
38517rm -f conftest.$ac_objext
38518if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38519 (eval $ac_compile) 2>conftest.er1
a848cd7e 38520 ac_status=$?
ac1cb8d3
VS
38521 grep -v '^ *+' conftest.er1 >conftest.err
38522 rm -f conftest.er1
38523 cat conftest.err >&5
a848cd7e
SC
38524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38525 (exit $ac_status); } &&
5d7b7554 38526 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38528 (eval $ac_try) 2>&5
38529 ac_status=$?
38530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38531 (exit $ac_status); }; } &&
38532 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38534 (eval $ac_try) 2>&5
38535 ac_status=$?
38536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38537 (exit $ac_status); }; }; then
38538 wx_cv_cflags_mthread=yes
38539else
38540 echo "$as_me: failed program was:" >&5
38541sed 's/^/| /' conftest.$ac_ext >&5
38542
38543wx_cv_cflags_mthread=no
38544
38545fi
ac1cb8d3 38546rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38547
38548
38549fi
38550echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
38551echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
38552
38553 if test "$wx_cv_cflags_mthread" = "yes"; then
e56f4f9e 38554 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -mthreads"
a848cd7e
SC
38555 LDFLAGS="$LDFLAGS -mthreads"
38556 else
e56f4f9e 38557 CXXFLAGS="$CXXFLAGS_OLD"
a848cd7e
SC
38558 fi
38559 ;;
38560 *-pc-os2*emx )
5ff751d6
VZ
38561 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
38562 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
a848cd7e
SC
38563 LDFLAGS="$LDFLAGS -Zmt"
38564 ;;
38565 esac
38566 fi
38567fi
38568
004ee6da
RL
38569echo "$as_me:$LINENO: checking for localtime_r" >&5
38570echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6
38571if test "${ac_cv_func_localtime_r+set}" = set; then
a848cd7e
SC
38572 echo $ECHO_N "(cached) $ECHO_C" >&6
38573else
38574 cat >conftest.$ac_ext <<_ACEOF
38575/* confdefs.h. */
38576_ACEOF
38577cat confdefs.h >>conftest.$ac_ext
38578cat >>conftest.$ac_ext <<_ACEOF
38579/* end confdefs.h. */
004ee6da 38580/* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
ac1cb8d3 38581 For example, HP-UX 11i <limits.h> declares gettimeofday. */
004ee6da 38582#define localtime_r innocuous_localtime_r
ac1cb8d3 38583
a848cd7e 38584/* System header to define __stub macros and hopefully few prototypes,
004ee6da 38585 which can conflict with char localtime_r (); below.
a848cd7e
SC
38586 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38587 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38588
a848cd7e
SC
38589#ifdef __STDC__
38590# include <limits.h>
38591#else
38592# include <assert.h>
38593#endif
ac1cb8d3 38594
004ee6da 38595#undef localtime_r
ac1cb8d3 38596
a848cd7e
SC
38597/* Override any gcc2 internal prototype to avoid an error. */
38598#ifdef __cplusplus
38599extern "C"
38600{
38601#endif
38602/* We use char because int might match the return type of a gcc2
38603 builtin and then its argument prototype would still apply. */
004ee6da 38604char localtime_r ();
a848cd7e
SC
38605/* The GNU C library defines this for functions which it implements
38606 to always fail with ENOSYS. Some functions are actually named
38607 something starting with __ and the normal name is an alias. */
004ee6da 38608#if defined (__stub_localtime_r) || defined (__stub___localtime_r)
a848cd7e
SC
38609choke me
38610#else
004ee6da 38611char (*f) () = localtime_r;
a848cd7e
SC
38612#endif
38613#ifdef __cplusplus
38614}
38615#endif
38616
38617int
38618main ()
38619{
004ee6da
RL
38620return f != localtime_r;
38621 ;
38622 return 0;
38623}
38624_ACEOF
38625rm -f conftest.$ac_objext conftest$ac_exeext
38626if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38627 (eval $ac_link) 2>conftest.er1
38628 ac_status=$?
38629 grep -v '^ *+' conftest.er1 >conftest.err
38630 rm -f conftest.er1
38631 cat conftest.err >&5
38632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38633 (exit $ac_status); } &&
5d7b7554 38634 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
38635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38636 (eval $ac_try) 2>&5
38637 ac_status=$?
38638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38639 (exit $ac_status); }; } &&
38640 { ac_try='test -s conftest$ac_exeext'
38641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38642 (eval $ac_try) 2>&5
38643 ac_status=$?
38644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38645 (exit $ac_status); }; }; then
38646 ac_cv_func_localtime_r=yes
38647else
38648 echo "$as_me: failed program was:" >&5
38649sed 's/^/| /' conftest.$ac_ext >&5
38650
38651ac_cv_func_localtime_r=no
38652fi
38653rm -f conftest.err conftest.$ac_objext \
38654 conftest$ac_exeext conftest.$ac_ext
38655fi
38656echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
38657echo "${ECHO_T}$ac_cv_func_localtime_r" >&6
38658if test $ac_cv_func_localtime_r = yes; then
38659 cat >>confdefs.h <<\_ACEOF
38660#define HAVE_LOCALTIME_R 1
38661_ACEOF
38662
38663fi
38664
38665echo "$as_me:$LINENO: checking for gmtime_r" >&5
38666echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6
38667if test "${ac_cv_func_gmtime_r+set}" = set; then
38668 echo $ECHO_N "(cached) $ECHO_C" >&6
38669else
38670 cat >conftest.$ac_ext <<_ACEOF
38671/* confdefs.h. */
38672_ACEOF
38673cat confdefs.h >>conftest.$ac_ext
38674cat >>conftest.$ac_ext <<_ACEOF
38675/* end confdefs.h. */
38676/* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
38677 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38678#define gmtime_r innocuous_gmtime_r
38679
38680/* System header to define __stub macros and hopefully few prototypes,
38681 which can conflict with char gmtime_r (); below.
38682 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38683 <limits.h> exists even on freestanding compilers. */
38684
38685#ifdef __STDC__
38686# include <limits.h>
38687#else
38688# include <assert.h>
38689#endif
38690
38691#undef gmtime_r
38692
38693/* Override any gcc2 internal prototype to avoid an error. */
38694#ifdef __cplusplus
38695extern "C"
38696{
38697#endif
38698/* We use char because int might match the return type of a gcc2
38699 builtin and then its argument prototype would still apply. */
38700char gmtime_r ();
38701/* The GNU C library defines this for functions which it implements
38702 to always fail with ENOSYS. Some functions are actually named
38703 something starting with __ and the normal name is an alias. */
38704#if defined (__stub_gmtime_r) || defined (__stub___gmtime_r)
38705choke me
38706#else
38707char (*f) () = gmtime_r;
38708#endif
38709#ifdef __cplusplus
38710}
38711#endif
38712
38713int
38714main ()
38715{
38716return f != gmtime_r;
38717 ;
38718 return 0;
38719}
38720_ACEOF
38721rm -f conftest.$ac_objext conftest$ac_exeext
38722if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38723 (eval $ac_link) 2>conftest.er1
38724 ac_status=$?
38725 grep -v '^ *+' conftest.er1 >conftest.err
38726 rm -f conftest.er1
38727 cat conftest.err >&5
38728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38729 (exit $ac_status); } &&
5d7b7554 38730 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
38731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38732 (eval $ac_try) 2>&5
38733 ac_status=$?
38734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38735 (exit $ac_status); }; } &&
38736 { ac_try='test -s conftest$ac_exeext'
38737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38738 (eval $ac_try) 2>&5
38739 ac_status=$?
38740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38741 (exit $ac_status); }; }; then
38742 ac_cv_func_gmtime_r=yes
38743else
38744 echo "$as_me: failed program was:" >&5
38745sed 's/^/| /' conftest.$ac_ext >&5
38746
38747ac_cv_func_gmtime_r=no
38748fi
38749rm -f conftest.err conftest.$ac_objext \
38750 conftest$ac_exeext conftest.$ac_ext
38751fi
38752echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
38753echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6
38754if test $ac_cv_func_gmtime_r = yes; then
38755 cat >>confdefs.h <<\_ACEOF
38756#define HAVE_GMTIME_R 1
38757_ACEOF
38758
38759fi
38760
38761echo "$as_me:$LINENO: checking for readdir_r" >&5
38762echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6
38763if test "${ac_cv_func_readdir_r+set}" = set; then
38764 echo $ECHO_N "(cached) $ECHO_C" >&6
38765else
38766 cat >conftest.$ac_ext <<_ACEOF
38767/* confdefs.h. */
38768_ACEOF
38769cat confdefs.h >>conftest.$ac_ext
38770cat >>conftest.$ac_ext <<_ACEOF
38771/* end confdefs.h. */
38772/* Define readdir_r to an innocuous variant, in case <limits.h> declares readdir_r.
38773 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38774#define readdir_r innocuous_readdir_r
38775
38776/* System header to define __stub macros and hopefully few prototypes,
38777 which can conflict with char readdir_r (); below.
38778 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38779 <limits.h> exists even on freestanding compilers. */
38780
38781#ifdef __STDC__
38782# include <limits.h>
38783#else
38784# include <assert.h>
38785#endif
38786
38787#undef readdir_r
38788
38789/* Override any gcc2 internal prototype to avoid an error. */
38790#ifdef __cplusplus
38791extern "C"
38792{
38793#endif
38794/* We use char because int might match the return type of a gcc2
38795 builtin and then its argument prototype would still apply. */
38796char readdir_r ();
38797/* The GNU C library defines this for functions which it implements
38798 to always fail with ENOSYS. Some functions are actually named
38799 something starting with __ and the normal name is an alias. */
38800#if defined (__stub_readdir_r) || defined (__stub___readdir_r)
38801choke me
38802#else
38803char (*f) () = readdir_r;
38804#endif
38805#ifdef __cplusplus
38806}
38807#endif
38808
38809int
38810main ()
38811{
38812return f != readdir_r;
38813 ;
38814 return 0;
38815}
38816_ACEOF
38817rm -f conftest.$ac_objext conftest$ac_exeext
38818if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38819 (eval $ac_link) 2>conftest.er1
38820 ac_status=$?
38821 grep -v '^ *+' conftest.er1 >conftest.err
38822 rm -f conftest.er1
38823 cat conftest.err >&5
38824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38825 (exit $ac_status); } &&
5d7b7554 38826 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
38827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38828 (eval $ac_try) 2>&5
38829 ac_status=$?
38830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38831 (exit $ac_status); }; } &&
38832 { ac_try='test -s conftest$ac_exeext'
38833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38834 (eval $ac_try) 2>&5
38835 ac_status=$?
38836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38837 (exit $ac_status); }; }; then
38838 ac_cv_func_readdir_r=yes
38839else
38840 echo "$as_me: failed program was:" >&5
38841sed 's/^/| /' conftest.$ac_ext >&5
38842
38843ac_cv_func_readdir_r=no
38844fi
38845rm -f conftest.err conftest.$ac_objext \
38846 conftest$ac_exeext conftest.$ac_ext
38847fi
38848echo "$as_me:$LINENO: result: $ac_cv_func_readdir_r" >&5
38849echo "${ECHO_T}$ac_cv_func_readdir_r" >&6
38850if test $ac_cv_func_readdir_r = yes; then
38851 cat >>confdefs.h <<\_ACEOF
38852#define HAVE_READDIR_R 1
38853_ACEOF
38854
38855fi
38856
004ee6da 38857
004ee6da
RL
38858
38859
38860 ac_ext=c
38861ac_cpp='$CPP $CPPFLAGS'
38862ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38863ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38864ac_compiler_gnu=$ac_cv_c_compiler_gnu
38865
38866 echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
38867echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6
38868
38869 if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
38870 echo $ECHO_N "(cached) $ECHO_C" >&6
38871else
38872
38873
38874################################################################
38875
38876ac_cv_func_which_gethostbyname_r=unknown
38877
38878#
38879# ONE ARGUMENT (sanity check)
38880#
38881
38882# This should fail, as there is no variant of gethostbyname_r() that takes
38883# a single argument. If it actually compiles, then we can assume that
38884# netdb.h is not declaring the function, and the compiler is thereby
38885# assuming an implicit prototype. In which case, we're out of luck.
38886#
38887cat >conftest.$ac_ext <<_ACEOF
38888/* confdefs.h. */
38889_ACEOF
38890cat confdefs.h >>conftest.$ac_ext
38891cat >>conftest.$ac_ext <<_ACEOF
38892/* end confdefs.h. */
38893#include <netdb.h>
38894int
38895main ()
38896{
38897
38898 char *name = "www.gnu.org";
38899 (void)gethostbyname_r(name) /* ; */
38900
38901 ;
38902 return 0;
38903}
38904_ACEOF
38905rm -f conftest.$ac_objext
38906if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38907 (eval $ac_compile) 2>conftest.er1
38908 ac_status=$?
38909 grep -v '^ *+' conftest.er1 >conftest.err
38910 rm -f conftest.er1
38911 cat conftest.err >&5
38912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38913 (exit $ac_status); } &&
5d7b7554 38914 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
38915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38916 (eval $ac_try) 2>&5
38917 ac_status=$?
38918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38919 (exit $ac_status); }; } &&
38920 { ac_try='test -s conftest.$ac_objext'
38921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38922 (eval $ac_try) 2>&5
38923 ac_status=$?
38924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38925 (exit $ac_status); }; }; then
38926 ac_cv_func_which_gethostbyname_r=no
38927else
38928 echo "$as_me: failed program was:" >&5
38929sed 's/^/| /' conftest.$ac_ext >&5
38930
38931fi
38932rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38933
38934#
38935# SIX ARGUMENTS
38936# (e.g. Linux)
38937#
38938
38939if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
38940
38941cat >conftest.$ac_ext <<_ACEOF
38942/* confdefs.h. */
38943_ACEOF
38944cat confdefs.h >>conftest.$ac_ext
38945cat >>conftest.$ac_ext <<_ACEOF
38946/* end confdefs.h. */
38947#include <netdb.h>
38948int
38949main ()
38950{
38951
38952 char *name = "www.gnu.org";
38953 struct hostent ret, *retp;
38954 char buf[1024];
38955 int buflen = 1024;
38956 int my_h_errno;
38957 (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
38958
38959 ;
38960 return 0;
38961}
38962_ACEOF
38963rm -f conftest.$ac_objext
38964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38965 (eval $ac_compile) 2>conftest.er1
38966 ac_status=$?
38967 grep -v '^ *+' conftest.er1 >conftest.err
38968 rm -f conftest.er1
38969 cat conftest.err >&5
38970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38971 (exit $ac_status); } &&
5d7b7554 38972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
38973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38974 (eval $ac_try) 2>&5
38975 ac_status=$?
38976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38977 (exit $ac_status); }; } &&
38978 { ac_try='test -s conftest.$ac_objext'
38979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38980 (eval $ac_try) 2>&5
38981 ac_status=$?
38982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38983 (exit $ac_status); }; }; then
38984 ac_cv_func_which_gethostbyname_r=six
38985else
38986 echo "$as_me: failed program was:" >&5
38987sed 's/^/| /' conftest.$ac_ext >&5
38988
38989fi
38990rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38991
38992fi
38993
38994#
38995# FIVE ARGUMENTS
38996# (e.g. Solaris)
38997#
38998
38999if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
39000
39001cat >conftest.$ac_ext <<_ACEOF
39002/* confdefs.h. */
39003_ACEOF
39004cat confdefs.h >>conftest.$ac_ext
39005cat >>conftest.$ac_ext <<_ACEOF
39006/* end confdefs.h. */
39007#include <netdb.h>
39008int
39009main ()
39010{
39011
39012 char *name = "www.gnu.org";
39013 struct hostent ret;
39014 char buf[1024];
39015 int buflen = 1024;
39016 int my_h_errno;
39017 (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
39018
39019 ;
39020 return 0;
39021}
39022_ACEOF
39023rm -f conftest.$ac_objext
39024if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39025 (eval $ac_compile) 2>conftest.er1
39026 ac_status=$?
39027 grep -v '^ *+' conftest.er1 >conftest.err
39028 rm -f conftest.er1
39029 cat conftest.err >&5
39030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39031 (exit $ac_status); } &&
5d7b7554 39032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39034 (eval $ac_try) 2>&5
39035 ac_status=$?
39036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39037 (exit $ac_status); }; } &&
39038 { ac_try='test -s conftest.$ac_objext'
39039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39040 (eval $ac_try) 2>&5
39041 ac_status=$?
39042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39043 (exit $ac_status); }; }; then
39044 ac_cv_func_which_gethostbyname_r=five
39045else
39046 echo "$as_me: failed program was:" >&5
39047sed 's/^/| /' conftest.$ac_ext >&5
39048
39049fi
39050rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39051
39052fi
39053
39054#
39055# THREE ARGUMENTS
39056# (e.g. AIX, HP-UX, Tru64)
39057#
39058
39059if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
39060
39061cat >conftest.$ac_ext <<_ACEOF
39062/* confdefs.h. */
39063_ACEOF
39064cat confdefs.h >>conftest.$ac_ext
39065cat >>conftest.$ac_ext <<_ACEOF
39066/* end confdefs.h. */
39067#include <netdb.h>
39068int
39069main ()
39070{
39071
39072 char *name = "www.gnu.org";
39073 struct hostent ret;
39074 struct hostent_data data;
39075 (void)gethostbyname_r(name, &ret, &data) /* ; */
39076
39077 ;
39078 return 0;
39079}
39080_ACEOF
39081rm -f conftest.$ac_objext
39082if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39083 (eval $ac_compile) 2>conftest.er1
39084 ac_status=$?
39085 grep -v '^ *+' conftest.er1 >conftest.err
39086 rm -f conftest.er1
39087 cat conftest.err >&5
39088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39089 (exit $ac_status); } &&
5d7b7554 39090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39092 (eval $ac_try) 2>&5
39093 ac_status=$?
39094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39095 (exit $ac_status); }; } &&
39096 { ac_try='test -s conftest.$ac_objext'
39097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39098 (eval $ac_try) 2>&5
39099 ac_status=$?
39100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39101 (exit $ac_status); }; }; then
39102 ac_cv_func_which_gethostbyname_r=three
39103else
39104 echo "$as_me: failed program was:" >&5
39105sed 's/^/| /' conftest.$ac_ext >&5
39106
39107fi
39108rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39109
39110fi
39111
39112################################################################
39113
39114
39115fi
39116
39117case "$ac_cv_func_which_gethostbyname_r" in
39118 three)
39119 echo "$as_me:$LINENO: result: three" >&5
39120echo "${ECHO_T}three" >&6
39121 cat >>confdefs.h <<\_ACEOF
39122#define HAVE_FUNC_GETHOSTBYNAME_R_3 1
39123_ACEOF
39124
39125 ;;
39126
39127 five)
39128 echo "$as_me:$LINENO: result: five" >&5
39129echo "${ECHO_T}five" >&6
39130 cat >>confdefs.h <<\_ACEOF
39131#define HAVE_FUNC_GETHOSTBYNAME_R_5 1
39132_ACEOF
39133
39134 ;;
39135
39136 six)
39137 echo "$as_me:$LINENO: result: six" >&5
39138echo "${ECHO_T}six" >&6
39139 cat >>confdefs.h <<\_ACEOF
39140#define HAVE_FUNC_GETHOSTBYNAME_R_6 1
39141_ACEOF
39142
39143 ;;
39144
39145 no)
39146 echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
39147echo "${ECHO_T}cannot find function declaration in netdb.h" >&6
39148 ;;
39149
39150 unknown)
39151 echo "$as_me:$LINENO: result: can't tell" >&5
39152echo "${ECHO_T}can't tell" >&6
39153 ;;
39154
39155 *)
39156 { { echo "$as_me:$LINENO: error: internal error" >&5
39157echo "$as_me: error: internal error" >&2;}
39158 { (exit 1); exit 1; }; }
39159 ;;
39160esac
39161
5ec3bc43
JS
39162ac_ext=cc
39163ac_cpp='$CXXCPP $CPPFLAGS'
39164ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39165ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39166ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
004ee6da
RL
39167
39168
39169
39170 if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
39171 "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
39172 echo "$as_me:$LINENO: checking for gethostbyname" >&5
39173echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
39174if test "${ac_cv_func_gethostbyname+set}" = set; then
39175 echo $ECHO_N "(cached) $ECHO_C" >&6
39176else
39177 cat >conftest.$ac_ext <<_ACEOF
39178/* confdefs.h. */
39179_ACEOF
39180cat confdefs.h >>conftest.$ac_ext
39181cat >>conftest.$ac_ext <<_ACEOF
39182/* end confdefs.h. */
39183/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
39184 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39185#define gethostbyname innocuous_gethostbyname
39186
39187/* System header to define __stub macros and hopefully few prototypes,
39188 which can conflict with char gethostbyname (); below.
39189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39190 <limits.h> exists even on freestanding compilers. */
39191
39192#ifdef __STDC__
39193# include <limits.h>
39194#else
39195# include <assert.h>
39196#endif
39197
39198#undef gethostbyname
39199
39200/* Override any gcc2 internal prototype to avoid an error. */
39201#ifdef __cplusplus
39202extern "C"
39203{
39204#endif
39205/* We use char because int might match the return type of a gcc2
39206 builtin and then its argument prototype would still apply. */
39207char gethostbyname ();
39208/* The GNU C library defines this for functions which it implements
39209 to always fail with ENOSYS. Some functions are actually named
39210 something starting with __ and the normal name is an alias. */
39211#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
39212choke me
39213#else
39214char (*f) () = gethostbyname;
39215#endif
39216#ifdef __cplusplus
39217}
39218#endif
39219
39220int
39221main ()
39222{
39223return f != gethostbyname;
39224 ;
39225 return 0;
39226}
39227_ACEOF
39228rm -f conftest.$ac_objext conftest$ac_exeext
39229if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39230 (eval $ac_link) 2>conftest.er1
39231 ac_status=$?
39232 grep -v '^ *+' conftest.er1 >conftest.err
39233 rm -f conftest.er1
39234 cat conftest.err >&5
39235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39236 (exit $ac_status); } &&
5d7b7554 39237 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39239 (eval $ac_try) 2>&5
39240 ac_status=$?
39241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39242 (exit $ac_status); }; } &&
39243 { ac_try='test -s conftest$ac_exeext'
39244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39245 (eval $ac_try) 2>&5
39246 ac_status=$?
39247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39248 (exit $ac_status); }; }; then
39249 ac_cv_func_gethostbyname=yes
39250else
39251 echo "$as_me: failed program was:" >&5
39252sed 's/^/| /' conftest.$ac_ext >&5
39253
39254ac_cv_func_gethostbyname=no
39255fi
39256rm -f conftest.err conftest.$ac_objext \
39257 conftest$ac_exeext conftest.$ac_ext
39258fi
39259echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
39260echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
39261if test $ac_cv_func_gethostbyname = yes; then
39262 cat >>confdefs.h <<\_ACEOF
39263#define HAVE_GETHOSTBYNAME 1
39264_ACEOF
39265
39266fi
39267
39268 fi
39269 echo "$as_me:$LINENO: checking for getservbyname_r" >&5
39270echo $ECHO_N "checking for getservbyname_r... $ECHO_C" >&6
004ee6da
RL
39271if test "${ac_cv_func_getservbyname_r+set}" = set; then
39272 echo $ECHO_N "(cached) $ECHO_C" >&6
39273else
39274 cat >conftest.$ac_ext <<_ACEOF
39275/* confdefs.h. */
39276_ACEOF
39277cat confdefs.h >>conftest.$ac_ext
39278cat >>conftest.$ac_ext <<_ACEOF
39279/* end confdefs.h. */
39280/* Define getservbyname_r to an innocuous variant, in case <limits.h> declares getservbyname_r.
39281 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39282#define getservbyname_r innocuous_getservbyname_r
39283
39284/* System header to define __stub macros and hopefully few prototypes,
39285 which can conflict with char getservbyname_r (); below.
39286 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39287 <limits.h> exists even on freestanding compilers. */
39288
39289#ifdef __STDC__
39290# include <limits.h>
39291#else
39292# include <assert.h>
39293#endif
39294
39295#undef getservbyname_r
39296
39297/* Override any gcc2 internal prototype to avoid an error. */
39298#ifdef __cplusplus
39299extern "C"
39300{
39301#endif
39302/* We use char because int might match the return type of a gcc2
39303 builtin and then its argument prototype would still apply. */
39304char getservbyname_r ();
39305/* The GNU C library defines this for functions which it implements
39306 to always fail with ENOSYS. Some functions are actually named
39307 something starting with __ and the normal name is an alias. */
39308#if defined (__stub_getservbyname_r) || defined (__stub___getservbyname_r)
39309choke me
39310#else
39311char (*f) () = getservbyname_r;
39312#endif
39313#ifdef __cplusplus
39314}
39315#endif
39316
39317int
39318main ()
39319{
39320return f != getservbyname_r;
39321 ;
39322 return 0;
39323}
39324_ACEOF
39325rm -f conftest.$ac_objext conftest$ac_exeext
39326if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39327 (eval $ac_link) 2>conftest.er1
39328 ac_status=$?
39329 grep -v '^ *+' conftest.er1 >conftest.err
39330 rm -f conftest.er1
39331 cat conftest.err >&5
39332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39333 (exit $ac_status); } &&
5d7b7554 39334 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39336 (eval $ac_try) 2>&5
39337 ac_status=$?
39338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39339 (exit $ac_status); }; } &&
39340 { ac_try='test -s conftest$ac_exeext'
39341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39342 (eval $ac_try) 2>&5
39343 ac_status=$?
39344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39345 (exit $ac_status); }; }; then
39346 ac_cv_func_getservbyname_r=yes
39347else
39348 echo "$as_me: failed program was:" >&5
39349sed 's/^/| /' conftest.$ac_ext >&5
39350
39351ac_cv_func_getservbyname_r=no
39352fi
39353rm -f conftest.err conftest.$ac_objext \
39354 conftest$ac_exeext conftest.$ac_ext
39355fi
39356echo "$as_me:$LINENO: result: $ac_cv_func_getservbyname_r" >&5
39357echo "${ECHO_T}$ac_cv_func_getservbyname_r" >&6
39358if test $ac_cv_func_getservbyname_r = yes; then
99879bbf 39359 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
39360/* confdefs.h. */
39361_ACEOF
39362cat confdefs.h >>conftest.$ac_ext
39363cat >>conftest.$ac_ext <<_ACEOF
39364/* end confdefs.h. */
99879bbf 39365#include <netdb.h>
004ee6da
RL
39366int
39367main ()
39368{
39369
99879bbf
MR
39370 char *name;
39371 char *proto;
39372 struct servent *se;
39373 struct servent_data data;
39374 (void) getservbyname_r(name, proto, se, &data);
004ee6da
RL
39375
39376 ;
39377 return 0;
39378}
39379_ACEOF
39380rm -f conftest.$ac_objext
39381if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39382 (eval $ac_compile) 2>conftest.er1
39383 ac_status=$?
39384 grep -v '^ *+' conftest.er1 >conftest.err
39385 rm -f conftest.er1
39386 cat conftest.err >&5
39387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39388 (exit $ac_status); } &&
5d7b7554 39389 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39391 (eval $ac_try) 2>&5
39392 ac_status=$?
39393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39394 (exit $ac_status); }; } &&
39395 { ac_try='test -s conftest.$ac_objext'
39396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39397 (eval $ac_try) 2>&5
39398 ac_status=$?
39399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39400 (exit $ac_status); }; }; then
39401 ac_cv_func_which_getservbyname_r=four
39402else
39403 echo "$as_me: failed program was:" >&5
39404sed 's/^/| /' conftest.$ac_ext >&5
39405
99879bbf 39406cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
39407/* confdefs.h. */
39408_ACEOF
39409cat confdefs.h >>conftest.$ac_ext
39410cat >>conftest.$ac_ext <<_ACEOF
39411/* end confdefs.h. */
99879bbf 39412#include <netdb.h>
004ee6da
RL
39413int
39414main ()
39415{
39416
99879bbf
MR
39417 char *name;
39418 char *proto;
39419 struct servent *se, *res;
39420 char buffer[2048];
39421 int buflen = 2048;
39422 (void) getservbyname_r(name, proto, se, buffer, buflen, &res);
004ee6da
RL
39423
39424 ;
39425 return 0;
39426}
39427_ACEOF
39428rm -f conftest.$ac_objext
39429if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39430 (eval $ac_compile) 2>conftest.er1
39431 ac_status=$?
39432 grep -v '^ *+' conftest.er1 >conftest.err
39433 rm -f conftest.er1
39434 cat conftest.err >&5
39435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39436 (exit $ac_status); } &&
5d7b7554 39437 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39439 (eval $ac_try) 2>&5
39440 ac_status=$?
39441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39442 (exit $ac_status); }; } &&
39443 { ac_try='test -s conftest.$ac_objext'
39444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39445 (eval $ac_try) 2>&5
39446 ac_status=$?
39447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39448 (exit $ac_status); }; }; then
39449 ac_cv_func_which_getservbyname_r=six
39450else
39451 echo "$as_me: failed program was:" >&5
39452sed 's/^/| /' conftest.$ac_ext >&5
39453
99879bbf 39454cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
39455/* confdefs.h. */
39456_ACEOF
39457cat confdefs.h >>conftest.$ac_ext
39458cat >>conftest.$ac_ext <<_ACEOF
39459/* end confdefs.h. */
99879bbf 39460#include <netdb.h>
004ee6da
RL
39461int
39462main ()
39463{
39464
99879bbf
MR
39465 char *name;
39466 char *proto;
39467 struct servent *se;
39468 char buffer[2048];
39469 int buflen = 2048;
39470 (void) getservbyname_r(name, proto, se, buffer, buflen)
004ee6da
RL
39471
39472 ;
39473 return 0;
39474}
39475_ACEOF
39476rm -f conftest.$ac_objext
39477if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39478 (eval $ac_compile) 2>conftest.er1
39479 ac_status=$?
39480 grep -v '^ *+' conftest.er1 >conftest.err
39481 rm -f conftest.er1
39482 cat conftest.err >&5
39483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39484 (exit $ac_status); } &&
5d7b7554 39485 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39487 (eval $ac_try) 2>&5
39488 ac_status=$?
39489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39490 (exit $ac_status); }; } &&
39491 { ac_try='test -s conftest.$ac_objext'
39492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39493 (eval $ac_try) 2>&5
39494 ac_status=$?
39495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39496 (exit $ac_status); }; }; then
39497 ac_cv_func_which_getservbyname_r=five
39498else
39499 echo "$as_me: failed program was:" >&5
39500sed 's/^/| /' conftest.$ac_ext >&5
39501
39502ac_cv_func_which_getservbyname_r=no
99879bbf 39503
004ee6da
RL
39504fi
39505rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39506
004ee6da
RL
39507fi
39508rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39509
004ee6da
RL
39510fi
39511rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
004ee6da
RL
39512else
39513 ac_cv_func_which_getservbyname_r=no
39514fi
39515
004ee6da
RL
39516
39517if test $ac_cv_func_which_getservbyname_r = six; then
39518 cat >>confdefs.h <<\_ACEOF
39519#define HAVE_FUNC_GETSERVBYNAME_R_6 1
39520_ACEOF
39521
39522elif test $ac_cv_func_which_getservbyname_r = five; then
39523 cat >>confdefs.h <<\_ACEOF
39524#define HAVE_FUNC_GETSERVBYNAME_R_5 1
39525_ACEOF
39526
39527elif test $ac_cv_func_which_getservbyname_r = four; then
39528 cat >>confdefs.h <<\_ACEOF
39529#define HAVE_FUNC_GETSERVBYNAME_R_4 1
39530_ACEOF
39531
004ee6da
RL
39532fi
39533
39534
39535 if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
39536 "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
39537
39538for ac_func in getservbyname
39539do
39540as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39541echo "$as_me:$LINENO: checking for $ac_func" >&5
39542echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39543if eval "test \"\${$as_ac_var+set}\" = set"; then
39544 echo $ECHO_N "(cached) $ECHO_C" >&6
39545else
39546 cat >conftest.$ac_ext <<_ACEOF
39547/* confdefs.h. */
39548_ACEOF
39549cat confdefs.h >>conftest.$ac_ext
39550cat >>conftest.$ac_ext <<_ACEOF
39551/* end confdefs.h. */
39552/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39553 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39554#define $ac_func innocuous_$ac_func
39555
39556/* System header to define __stub macros and hopefully few prototypes,
39557 which can conflict with char $ac_func (); below.
39558 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39559 <limits.h> exists even on freestanding compilers. */
39560
39561#ifdef __STDC__
39562# include <limits.h>
39563#else
39564# include <assert.h>
39565#endif
39566
39567#undef $ac_func
39568
39569/* Override any gcc2 internal prototype to avoid an error. */
39570#ifdef __cplusplus
39571extern "C"
39572{
39573#endif
39574/* We use char because int might match the return type of a gcc2
39575 builtin and then its argument prototype would still apply. */
39576char $ac_func ();
39577/* The GNU C library defines this for functions which it implements
39578 to always fail with ENOSYS. Some functions are actually named
39579 something starting with __ and the normal name is an alias. */
39580#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39581choke me
39582#else
39583char (*f) () = $ac_func;
39584#endif
39585#ifdef __cplusplus
39586}
39587#endif
39588
39589int
39590main ()
39591{
39592return f != $ac_func;
39593 ;
39594 return 0;
39595}
39596_ACEOF
39597rm -f conftest.$ac_objext conftest$ac_exeext
39598if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39599 (eval $ac_link) 2>conftest.er1
39600 ac_status=$?
39601 grep -v '^ *+' conftest.er1 >conftest.err
39602 rm -f conftest.er1
39603 cat conftest.err >&5
39604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39605 (exit $ac_status); } &&
5d7b7554 39606 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39608 (eval $ac_try) 2>&5
39609 ac_status=$?
39610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39611 (exit $ac_status); }; } &&
39612 { ac_try='test -s conftest$ac_exeext'
39613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39614 (eval $ac_try) 2>&5
39615 ac_status=$?
39616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39617 (exit $ac_status); }; }; then
39618 eval "$as_ac_var=yes"
39619else
39620 echo "$as_me: failed program was:" >&5
39621sed 's/^/| /' conftest.$ac_ext >&5
39622
39623eval "$as_ac_var=no"
39624fi
39625rm -f conftest.err conftest.$ac_objext \
39626 conftest$ac_exeext conftest.$ac_ext
39627fi
39628echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39629echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39630if test `eval echo '${'$as_ac_var'}'` = yes; then
39631 cat >>confdefs.h <<_ACEOF
39632#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39633_ACEOF
39634 cat >>confdefs.h <<\_ACEOF
39635#define HAVE_GETSERVBYNAME 1
39636_ACEOF
39637
39638fi
39639done
39640
39641 fi
39642
004ee6da
RL
39643if test "$wxUSE_THREADS" = "yes"; then
39644 cat >>confdefs.h <<\_ACEOF
39645#define wxUSE_THREADS 1
39646_ACEOF
39647
39648
39649 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
39650else
39651 if test "$ac_cv_func_strtok_r" = "yes"; then
39652 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
39653echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
39654 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
39655 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
39656 echo "$as_me:$LINENO: result: yes" >&5
39657echo "${ECHO_T}yes" >&6
39658 else
39659 echo "$as_me:$LINENO: result: no" >&5
39660echo "${ECHO_T}no" >&6
39661 fi
39662 fi
39663fi
39664
39665if test "$WXGTK20" = 1 ; then
39666 cat >>confdefs.h <<_ACEOF
39667#define __WXGTK20__ $WXGTK20
39668_ACEOF
39669
39670 WXGTK12=1
39671fi
39672
39673if test "$WXGTK12" = 1 ; then
39674 cat >>confdefs.h <<_ACEOF
39675#define __WXGTK12__ $WXGTK12
39676_ACEOF
39677
39678fi
39679
39680if test "$WXGTK127" = 1 ; then
39681 cat >>confdefs.h <<_ACEOF
39682#define __WXGTK127__ $WXGTK127
39683_ACEOF
39684
39685fi
39686
39687if test "$WXGPE" = 1 ; then
39688 cat >>confdefs.h <<_ACEOF
39689#define __WXGPE__ $WXGPE
39690_ACEOF
39691
39692fi
39693
39694DEBUG_CFLAGS=
39695if test "$wxUSE_DEBUG_INFO" = "yes" ; then
39696 DEBUG_CFLAGS="-g"
39697 wxUSE_OPTIMISE=no
39698fi
39699
39700if test "$wxUSE_DEBUG_GDB" = "yes" ; then
39701 wxUSE_DEBUG_INFO=yes
39702 if test "$GCC" = yes; then
39703 DEBUG_CFLAGS="-ggdb"
39704 fi
39705fi
39706
39707if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
39708 cat >>confdefs.h <<\_ACEOF
39709#define WXDEBUG 1
39710_ACEOF
39711
39712 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
39713else
39714 if test "$wxUSE_GTK" = 1 ; then
99879bbf
MR
39715 if test "x$wxGTK_VERSION" = "x1" ; then
39716 CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
39717 fi
004ee6da
RL
39718 fi
39719fi
39720
39721if test "$wxUSE_MEM_TRACING" = "yes" ; then
39722 cat >>confdefs.h <<\_ACEOF
39723#define wxUSE_MEMORY_TRACING 1
39724_ACEOF
39725
39726 cat >>confdefs.h <<\_ACEOF
39727#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
39728_ACEOF
39729
39730 cat >>confdefs.h <<\_ACEOF
39731#define wxUSE_DEBUG_NEW_ALWAYS 1
39732_ACEOF
39733
39734 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
39735fi
39736
39737if test "$wxUSE_DMALLOC" = "yes" ; then
39738 DMALLOC_LIBS="-ldmallocthcxx"
39739fi
39740
39741PROFILE_FLAGS=
39742if test "$wxUSE_PROFILE" = "yes" ; then
39743 PROFILE_FLAGS=" -pg"
39744fi
39745
39746if test "$GCC" = "yes" ; then
39747 if test "$wxUSE_NO_RTTI" = "yes" ; then
39748 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
39749 fi
39750 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
39751 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
39752 fi
39753 if test "$wxUSE_PERMISSIVE" = "yes" ; then
39754 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
39755 fi
39756
39757 case "${host}" in
39758 powerpc*-*-aix* )
39759 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
39760 ;;
39761 *-hppa* )
39762 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
39763 ;;
39764 esac
39765fi
39766
39767OPTIMISE_CFLAGS=
39768if test "$wxUSE_OPTIMISE" = "no" ; then
39769 if test "$GCC" = yes ; then
39770 OPTIMISE_CFLAGS="-O0"
39771 fi
39772else
39773 if test "$GCC" = yes ; then
e5efa97e
VZ
39774 case "${host}" in
39775 *-pc-os2_emx | *-pc-os2-emx )
39776 OPTIMISE_CFLAGS="-O2"
39777 ;;
39778 *)
39779 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
39780 ;;
39781 esac
004ee6da
RL
39782 else
39783 OPTIMISE_CFLAGS="-O"
39784 fi
39785fi
39786
39787
39788if test "x$WXWIN_COMPATIBILITY_2_4" = "xyes"; then
39789 cat >>confdefs.h <<\_ACEOF
39790#define WXWIN_COMPATIBILITY_2_4 1
39791_ACEOF
39792
39793
39794 WXWIN_COMPATIBILITY_2_6="yes"
39795fi
39796
39797if test "x$WXWIN_COMPATIBILITY_2_6" != "xno"; then
39798 cat >>confdefs.h <<\_ACEOF
39799#define WXWIN_COMPATIBILITY_2_6 1
39800_ACEOF
39801
39802fi
39803
39804
39805if test "$wxUSE_GUI" = "yes"; then
39806 cat >>confdefs.h <<\_ACEOF
39807#define wxUSE_GUI 1
39808_ACEOF
39809
39810
39811 fi
39812
39813
39814if test "$wxUSE_UNIX" = "yes"; then
39815 cat >>confdefs.h <<\_ACEOF
39816#define wxUSE_UNIX 1
39817_ACEOF
39818
39819fi
39820
39821
39822if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
39823
39824 HAVE_DL_FUNCS=0
39825 HAVE_SHL_FUNCS=0
39826 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
39827 if test "$USE_DARWIN" = 1; then
39828 HAVE_DL_FUNCS=1
39829 elif test "$USE_DOS" = 1; then
39830 HAVE_DL_FUNCS=0
39831 else
39832
39833for ac_func in dlopen
39834do
39835as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39836echo "$as_me:$LINENO: checking for $ac_func" >&5
39837echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39838if eval "test \"\${$as_ac_var+set}\" = set"; then
39839 echo $ECHO_N "(cached) $ECHO_C" >&6
39840else
39841 cat >conftest.$ac_ext <<_ACEOF
39842/* confdefs.h. */
39843_ACEOF
39844cat confdefs.h >>conftest.$ac_ext
39845cat >>conftest.$ac_ext <<_ACEOF
39846/* end confdefs.h. */
39847/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39848 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39849#define $ac_func innocuous_$ac_func
39850
39851/* System header to define __stub macros and hopefully few prototypes,
39852 which can conflict with char $ac_func (); below.
39853 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39854 <limits.h> exists even on freestanding compilers. */
39855
39856#ifdef __STDC__
39857# include <limits.h>
39858#else
39859# include <assert.h>
39860#endif
39861
39862#undef $ac_func
39863
39864/* Override any gcc2 internal prototype to avoid an error. */
39865#ifdef __cplusplus
39866extern "C"
39867{
39868#endif
39869/* We use char because int might match the return type of a gcc2
39870 builtin and then its argument prototype would still apply. */
39871char $ac_func ();
39872/* The GNU C library defines this for functions which it implements
39873 to always fail with ENOSYS. Some functions are actually named
39874 something starting with __ and the normal name is an alias. */
39875#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39876choke me
39877#else
39878char (*f) () = $ac_func;
39879#endif
39880#ifdef __cplusplus
39881}
39882#endif
39883
39884int
39885main ()
39886{
39887return f != $ac_func;
a848cd7e
SC
39888 ;
39889 return 0;
39890}
39891_ACEOF
39892rm -f conftest.$ac_objext conftest$ac_exeext
39893if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39894 (eval $ac_link) 2>conftest.er1
a848cd7e 39895 ac_status=$?
ac1cb8d3
VS
39896 grep -v '^ *+' conftest.er1 >conftest.err
39897 rm -f conftest.er1
39898 cat conftest.err >&5
a848cd7e
SC
39899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39900 (exit $ac_status); } &&
5d7b7554 39901 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39903 (eval $ac_try) 2>&5
39904 ac_status=$?
39905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39906 (exit $ac_status); }; } &&
39907 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39909 (eval $ac_try) 2>&5
39910 ac_status=$?
39911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39912 (exit $ac_status); }; }; then
39913 eval "$as_ac_var=yes"
39914else
39915 echo "$as_me: failed program was:" >&5
39916sed 's/^/| /' conftest.$ac_ext >&5
39917
39918eval "$as_ac_var=no"
39919fi
ac1cb8d3
VS
39920rm -f conftest.err conftest.$ac_objext \
39921 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39922fi
39923echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39924echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39925if test `eval echo '${'$as_ac_var'}'` = yes; then
39926 cat >>confdefs.h <<_ACEOF
39927#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39928_ACEOF
39929
39930 cat >>confdefs.h <<\_ACEOF
39931#define HAVE_DLOPEN 1
39932_ACEOF
39933
39934 HAVE_DL_FUNCS=1
39935
39936else
39937
39938 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
39939echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
39940if test "${ac_cv_lib_dl_dlopen+set}" = set; then
39941 echo $ECHO_N "(cached) $ECHO_C" >&6
39942else
39943 ac_check_lib_save_LIBS=$LIBS
39944LIBS="-ldl $LIBS"
39945cat >conftest.$ac_ext <<_ACEOF
39946/* confdefs.h. */
39947_ACEOF
39948cat confdefs.h >>conftest.$ac_ext
39949cat >>conftest.$ac_ext <<_ACEOF
39950/* end confdefs.h. */
39951
39952/* Override any gcc2 internal prototype to avoid an error. */
39953#ifdef __cplusplus
39954extern "C"
39955#endif
39956/* We use char because int might match the return type of a gcc2
39957 builtin and then its argument prototype would still apply. */
39958char dlopen ();
39959int
39960main ()
39961{
39962dlopen ();
39963 ;
39964 return 0;
39965}
39966_ACEOF
39967rm -f conftest.$ac_objext conftest$ac_exeext
39968if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39969 (eval $ac_link) 2>conftest.er1
a848cd7e 39970 ac_status=$?
ac1cb8d3
VS
39971 grep -v '^ *+' conftest.er1 >conftest.err
39972 rm -f conftest.er1
39973 cat conftest.err >&5
a848cd7e
SC
39974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39975 (exit $ac_status); } &&
5d7b7554 39976 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39978 (eval $ac_try) 2>&5
39979 ac_status=$?
39980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39981 (exit $ac_status); }; } &&
39982 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39984 (eval $ac_try) 2>&5
39985 ac_status=$?
39986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39987 (exit $ac_status); }; }; then
39988 ac_cv_lib_dl_dlopen=yes
39989else
39990 echo "$as_me: failed program was:" >&5
39991sed 's/^/| /' conftest.$ac_ext >&5
39992
39993ac_cv_lib_dl_dlopen=no
39994fi
ac1cb8d3
VS
39995rm -f conftest.err conftest.$ac_objext \
39996 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39997LIBS=$ac_check_lib_save_LIBS
39998fi
39999echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
40000echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
40001if test $ac_cv_lib_dl_dlopen = yes; then
40002
40003 cat >>confdefs.h <<\_ACEOF
40004#define HAVE_DLOPEN 1
40005_ACEOF
40006
40007 HAVE_DL_FUNCS=1
40008 DL_LINK=" -ldl$DL_LINK"
40009
40010else
40011
40012
40013for ac_func in shl_load
40014do
40015as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40016echo "$as_me:$LINENO: checking for $ac_func" >&5
40017echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40018if eval "test \"\${$as_ac_var+set}\" = set"; then
40019 echo $ECHO_N "(cached) $ECHO_C" >&6
40020else
40021 cat >conftest.$ac_ext <<_ACEOF
40022/* confdefs.h. */
40023_ACEOF
40024cat confdefs.h >>conftest.$ac_ext
40025cat >>conftest.$ac_ext <<_ACEOF
40026/* end confdefs.h. */
ac1cb8d3
VS
40027/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40028 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40029#define $ac_func innocuous_$ac_func
40030
a848cd7e
SC
40031/* System header to define __stub macros and hopefully few prototypes,
40032 which can conflict with char $ac_func (); below.
40033 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40034 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40035
a848cd7e
SC
40036#ifdef __STDC__
40037# include <limits.h>
40038#else
40039# include <assert.h>
40040#endif
ac1cb8d3
VS
40041
40042#undef $ac_func
40043
a848cd7e
SC
40044/* Override any gcc2 internal prototype to avoid an error. */
40045#ifdef __cplusplus
40046extern "C"
40047{
40048#endif
40049/* We use char because int might match the return type of a gcc2
40050 builtin and then its argument prototype would still apply. */
40051char $ac_func ();
40052/* The GNU C library defines this for functions which it implements
40053 to always fail with ENOSYS. Some functions are actually named
40054 something starting with __ and the normal name is an alias. */
40055#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40056choke me
40057#else
40058char (*f) () = $ac_func;
40059#endif
40060#ifdef __cplusplus
40061}
40062#endif
40063
40064int
40065main ()
40066{
40067return f != $ac_func;
40068 ;
40069 return 0;
40070}
40071_ACEOF
40072rm -f conftest.$ac_objext conftest$ac_exeext
40073if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40074 (eval $ac_link) 2>conftest.er1
a848cd7e 40075 ac_status=$?
ac1cb8d3
VS
40076 grep -v '^ *+' conftest.er1 >conftest.err
40077 rm -f conftest.er1
40078 cat conftest.err >&5
a848cd7e
SC
40079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40080 (exit $ac_status); } &&
5d7b7554 40081 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40083 (eval $ac_try) 2>&5
40084 ac_status=$?
40085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40086 (exit $ac_status); }; } &&
40087 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40089 (eval $ac_try) 2>&5
40090 ac_status=$?
40091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40092 (exit $ac_status); }; }; then
40093 eval "$as_ac_var=yes"
40094else
40095 echo "$as_me: failed program was:" >&5
40096sed 's/^/| /' conftest.$ac_ext >&5
40097
40098eval "$as_ac_var=no"
40099fi
ac1cb8d3
VS
40100rm -f conftest.err conftest.$ac_objext \
40101 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40102fi
40103echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40104echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40105if test `eval echo '${'$as_ac_var'}'` = yes; then
40106 cat >>confdefs.h <<_ACEOF
40107#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40108_ACEOF
40109
40110 cat >>confdefs.h <<\_ACEOF
40111#define HAVE_SHL_LOAD 1
40112_ACEOF
40113
40114 HAVE_SHL_FUNCS=1
40115
40116else
40117
40118 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
40119echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
40120if test "${ac_cv_lib_shl_load_dld+set}" = set; then
40121 echo $ECHO_N "(cached) $ECHO_C" >&6
40122else
40123 ac_check_lib_save_LIBS=$LIBS
40124LIBS="-lshl_load $LIBS"
40125cat >conftest.$ac_ext <<_ACEOF
40126/* confdefs.h. */
40127_ACEOF
40128cat confdefs.h >>conftest.$ac_ext
40129cat >>conftest.$ac_ext <<_ACEOF
40130/* end confdefs.h. */
40131
40132/* Override any gcc2 internal prototype to avoid an error. */
40133#ifdef __cplusplus
40134extern "C"
40135#endif
40136/* We use char because int might match the return type of a gcc2
40137 builtin and then its argument prototype would still apply. */
40138char dld ();
40139int
40140main ()
40141{
40142dld ();
40143 ;
40144 return 0;
40145}
40146_ACEOF
40147rm -f conftest.$ac_objext conftest$ac_exeext
40148if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40149 (eval $ac_link) 2>conftest.er1
a848cd7e 40150 ac_status=$?
ac1cb8d3
VS
40151 grep -v '^ *+' conftest.er1 >conftest.err
40152 rm -f conftest.er1
40153 cat conftest.err >&5
a848cd7e
SC
40154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40155 (exit $ac_status); } &&
5d7b7554 40156 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40158 (eval $ac_try) 2>&5
40159 ac_status=$?
40160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40161 (exit $ac_status); }; } &&
40162 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40164 (eval $ac_try) 2>&5
40165 ac_status=$?
40166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40167 (exit $ac_status); }; }; then
40168 ac_cv_lib_shl_load_dld=yes
40169else
40170 echo "$as_me: failed program was:" >&5
40171sed 's/^/| /' conftest.$ac_ext >&5
40172
40173ac_cv_lib_shl_load_dld=no
40174fi
ac1cb8d3
VS
40175rm -f conftest.err conftest.$ac_objext \
40176 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40177LIBS=$ac_check_lib_save_LIBS
40178fi
40179echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
40180echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
40181if test $ac_cv_lib_shl_load_dld = yes; then
40182
40183 HAVE_SHL_FUNCS=1
40184 DL_LINK=" -ldld$DL_LINK"
40185
40186fi
40187
40188
40189fi
40190done
40191
40192
40193fi
40194
40195
40196fi
40197done
40198
40199
40200 if test "$HAVE_DL_FUNCS" = 1; then
40201
40202for ac_func in dlerror
40203do
40204as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40205echo "$as_me:$LINENO: checking for $ac_func" >&5
40206echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40207if eval "test \"\${$as_ac_var+set}\" = set"; then
40208 echo $ECHO_N "(cached) $ECHO_C" >&6
40209else
40210 cat >conftest.$ac_ext <<_ACEOF
40211/* confdefs.h. */
40212_ACEOF
40213cat confdefs.h >>conftest.$ac_ext
40214cat >>conftest.$ac_ext <<_ACEOF
40215/* end confdefs.h. */
ac1cb8d3
VS
40216/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40217 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40218#define $ac_func innocuous_$ac_func
40219
a848cd7e
SC
40220/* System header to define __stub macros and hopefully few prototypes,
40221 which can conflict with char $ac_func (); below.
40222 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40223 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40224
a848cd7e
SC
40225#ifdef __STDC__
40226# include <limits.h>
40227#else
40228# include <assert.h>
40229#endif
ac1cb8d3
VS
40230
40231#undef $ac_func
40232
a848cd7e
SC
40233/* Override any gcc2 internal prototype to avoid an error. */
40234#ifdef __cplusplus
40235extern "C"
40236{
40237#endif
40238/* We use char because int might match the return type of a gcc2
40239 builtin and then its argument prototype would still apply. */
40240char $ac_func ();
40241/* The GNU C library defines this for functions which it implements
40242 to always fail with ENOSYS. Some functions are actually named
40243 something starting with __ and the normal name is an alias. */
40244#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40245choke me
40246#else
40247char (*f) () = $ac_func;
40248#endif
40249#ifdef __cplusplus
40250}
40251#endif
40252
40253int
40254main ()
40255{
40256return f != $ac_func;
40257 ;
40258 return 0;
40259}
40260_ACEOF
40261rm -f conftest.$ac_objext conftest$ac_exeext
40262if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40263 (eval $ac_link) 2>conftest.er1
a848cd7e 40264 ac_status=$?
ac1cb8d3
VS
40265 grep -v '^ *+' conftest.er1 >conftest.err
40266 rm -f conftest.er1
40267 cat conftest.err >&5
a848cd7e
SC
40268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40269 (exit $ac_status); } &&
5d7b7554 40270 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40272 (eval $ac_try) 2>&5
40273 ac_status=$?
40274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40275 (exit $ac_status); }; } &&
40276 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40278 (eval $ac_try) 2>&5
40279 ac_status=$?
40280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40281 (exit $ac_status); }; }; then
40282 eval "$as_ac_var=yes"
40283else
40284 echo "$as_me: failed program was:" >&5
40285sed 's/^/| /' conftest.$ac_ext >&5
40286
40287eval "$as_ac_var=no"
40288fi
ac1cb8d3
VS
40289rm -f conftest.err conftest.$ac_objext \
40290 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40291fi
40292echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40293echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40294if test `eval echo '${'$as_ac_var'}'` = yes; then
40295 cat >>confdefs.h <<_ACEOF
40296#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40297_ACEOF
40298 cat >>confdefs.h <<\_ACEOF
40299#define HAVE_DLERROR 1
40300_ACEOF
40301
40302else
40303
40304 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
40305echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
40306if test "${ac_cv_lib_dl_dlerror+set}" = set; then
40307 echo $ECHO_N "(cached) $ECHO_C" >&6
40308else
40309 ac_check_lib_save_LIBS=$LIBS
40310LIBS="-ldl $LIBS"
40311cat >conftest.$ac_ext <<_ACEOF
40312/* confdefs.h. */
40313_ACEOF
40314cat confdefs.h >>conftest.$ac_ext
40315cat >>conftest.$ac_ext <<_ACEOF
40316/* end confdefs.h. */
40317
40318/* Override any gcc2 internal prototype to avoid an error. */
40319#ifdef __cplusplus
40320extern "C"
40321#endif
40322/* We use char because int might match the return type of a gcc2
40323 builtin and then its argument prototype would still apply. */
40324char dlerror ();
40325int
40326main ()
40327{
40328dlerror ();
40329 ;
40330 return 0;
40331}
40332_ACEOF
40333rm -f conftest.$ac_objext conftest$ac_exeext
40334if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40335 (eval $ac_link) 2>conftest.er1
a848cd7e 40336 ac_status=$?
ac1cb8d3
VS
40337 grep -v '^ *+' conftest.er1 >conftest.err
40338 rm -f conftest.er1
40339 cat conftest.err >&5
a848cd7e
SC
40340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40341 (exit $ac_status); } &&
5d7b7554 40342 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40344 (eval $ac_try) 2>&5
40345 ac_status=$?
40346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40347 (exit $ac_status); }; } &&
40348 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40350 (eval $ac_try) 2>&5
40351 ac_status=$?
40352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40353 (exit $ac_status); }; }; then
40354 ac_cv_lib_dl_dlerror=yes
40355else
40356 echo "$as_me: failed program was:" >&5
40357sed 's/^/| /' conftest.$ac_ext >&5
40358
40359ac_cv_lib_dl_dlerror=no
40360fi
ac1cb8d3
VS
40361rm -f conftest.err conftest.$ac_objext \
40362 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40363LIBS=$ac_check_lib_save_LIBS
40364fi
40365echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
40366echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
40367if test $ac_cv_lib_dl_dlerror = yes; then
40368 cat >>confdefs.h <<\_ACEOF
40369#define HAVE_DLERROR 1
40370_ACEOF
40371
40372fi
40373
40374
40375
40376fi
40377done
40378
40379 fi
40380 fi
40381
40382 if test "$HAVE_DL_FUNCS" = 0; then
40383 if test "$HAVE_SHL_FUNCS" = 0; then
47a7e797 40384 if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
a848cd7e
SC
40385 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
40386echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
40387 wxUSE_DYNAMIC_LOADER=no
40388 wxUSE_DYNLIB_CLASS=no
40389 else
40390 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
40391echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
40392 fi
40393 fi
40394 fi
40395 fi
40396fi
40397
40398if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
40399 cat >>confdefs.h <<\_ACEOF
40400#define wxUSE_DYNAMIC_LOADER 1
40401_ACEOF
40402
40403fi
40404if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
40405 cat >>confdefs.h <<\_ACEOF
40406#define wxUSE_DYNLIB_CLASS 1
40407_ACEOF
40408
40409fi
40410
40411
40412
40413if test "$wxUSE_PLUGINS" = "yes" ; then
40414 if test "$wxUSE_SHARED" = "no" ; then
40415 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
40416echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
40417 wxUSE_PLUGINS=no
40418 fi
40419 if test "$wxUSE_MONOLITHIC" = "yes" ; then
40420 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
40421echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
40422 wxUSE_PLUGINS=no
40423 fi
40424 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
40425 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
40426echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
40427 wxUSE_PLUGINS=no
40428 fi
40429 if test "$wxUSE_PLUGINS" = "yes" ; then
40430 cat >>confdefs.h <<\_ACEOF
40431#define wxUSE_PLUGINS 1
40432_ACEOF
40433
40434 fi
40435fi
40436
40437
40438if test "$wxUSE_STL" = "yes"; then
40439 cat >>confdefs.h <<\_ACEOF
40440#define wxUSE_STL 1
40441_ACEOF
40442
40443fi
40444
40445if test "$wxUSE_APPLE_IEEE" = "yes"; then
40446 cat >>confdefs.h <<\_ACEOF
40447#define wxUSE_APPLE_IEEE 1
40448_ACEOF
40449
40450fi
40451
40452if test "$wxUSE_TIMER" = "yes"; then
40453 cat >>confdefs.h <<\_ACEOF
40454#define wxUSE_TIMER 1
40455_ACEOF
40456
40457fi
40458
9c112555 40459if test "$USE_UNIX" = "1" ; then
d12aef51
VZ
40460 echo "$as_me:$LINENO: checking for ioctl() in sys/soundcard.h" >&5
40461echo $ECHO_N "checking for ioctl() in sys/soundcard.h... $ECHO_C" >&6
40462if test "${ac_cv_header_sys_soundcard+set}" = set; then
a848cd7e 40463 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 40464else
d12aef51
VZ
40465
40466 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
40467/* confdefs.h. */
40468_ACEOF
40469cat confdefs.h >>conftest.$ac_ext
40470cat >>conftest.$ac_ext <<_ACEOF
40471/* end confdefs.h. */
d12aef51
VZ
40472
40473 #include <sys/soundcard.h>
40474
40475int
40476main ()
40477{
40478
40479 ioctl(0, SNDCTL_DSP_SYNC, 0);
40480
40481 ;
40482 return 0;
40483}
a848cd7e 40484_ACEOF
d12aef51
VZ
40485rm -f conftest.$ac_objext conftest$ac_exeext
40486if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40487 (eval $ac_link) 2>conftest.er1
a848cd7e 40488 ac_status=$?
ac1cb8d3
VS
40489 grep -v '^ *+' conftest.er1 >conftest.err
40490 rm -f conftest.er1
40491 cat conftest.err >&5
a848cd7e
SC
40492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40493 (exit $ac_status); } &&
5d7b7554 40494 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40496 (eval $ac_try) 2>&5
40497 ac_status=$?
40498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40499 (exit $ac_status); }; } &&
d12aef51 40500 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40502 (eval $ac_try) 2>&5
40503 ac_status=$?
40504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40505 (exit $ac_status); }; }; then
d12aef51 40506 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
40507else
40508 echo "$as_me: failed program was:" >&5
40509sed 's/^/| /' conftest.$ac_ext >&5
40510
a848cd7e 40511
d12aef51
VZ
40512 saveLibs="$LIBS"
40513 LIBS="$saveLibs -lossaudio"
40514 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
40515/* confdefs.h. */
40516_ACEOF
40517cat confdefs.h >>conftest.$ac_ext
40518cat >>conftest.$ac_ext <<_ACEOF
40519/* end confdefs.h. */
d12aef51
VZ
40520
40521 #include <sys/soundcard.h>
40522
40523int
40524main ()
40525{
40526
40527 ioctl(0, SNDCTL_DSP_SYNC, 0);
40528
40529 ;
40530 return 0;
40531}
a848cd7e 40532_ACEOF
d12aef51
VZ
40533rm -f conftest.$ac_objext conftest$ac_exeext
40534if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40535 (eval $ac_link) 2>conftest.er1
a848cd7e
SC
40536 ac_status=$?
40537 grep -v '^ *+' conftest.er1 >conftest.err
40538 rm -f conftest.er1
40539 cat conftest.err >&5
40540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12aef51 40541 (exit $ac_status); } &&
5d7b7554 40542 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
40543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40544 (eval $ac_try) 2>&5
40545 ac_status=$?
40546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40547 (exit $ac_status); }; } &&
40548 { ac_try='test -s conftest$ac_exeext'
40549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40550 (eval $ac_try) 2>&5
40551 ac_status=$?
40552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40553 (exit $ac_status); }; }; then
40554 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
40555else
40556 echo "$as_me: failed program was:" >&5
40557sed 's/^/| /' conftest.$ac_ext >&5
40558
a848cd7e 40559
d12aef51
VZ
40560 LIBS="$saveLibs"
40561 ac_cv_header_sys_soundcard=no
40562
40563
a848cd7e 40564fi
d12aef51
VZ
40565rm -f conftest.err conftest.$ac_objext \
40566 conftest$ac_exeext conftest.$ac_ext
40567
a848cd7e
SC
40568
40569fi
d12aef51
VZ
40570rm -f conftest.err conftest.$ac_objext \
40571 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40572
40573fi
d12aef51
VZ
40574echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
40575echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6
a848cd7e 40576
d12aef51
VZ
40577 if test "$ac_cv_header_sys_soundcard" = "yes"; then
40578 cat >>confdefs.h <<\_ACEOF
40579#define HAVE_SYS_SOUNDCARD_H 1
40580_ACEOF
a848cd7e 40581
d12aef51
VZ
40582 else
40583 DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia"
40584 fi
9c112555
MW
40585fi
40586WITH_PLUGIN_SDL=0
40587if test "$wxUSE_SOUND" = "yes"; then
40588 if test "$USE_UNIX" = "1" ; then
a848cd7e
SC
40589 if test "$wxUSE_LIBSDL" != "no"; then
40590
40591# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
40592if test "${with_sdl_prefix+set}" = set; then
40593 withval="$with_sdl_prefix"
40594 sdl_prefix="$withval"
40595else
40596 sdl_prefix=""
40597fi;
40598
40599# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
40600if test "${with_sdl_exec_prefix+set}" = set; then
40601 withval="$with_sdl_exec_prefix"
40602 sdl_exec_prefix="$withval"
40603else
40604 sdl_exec_prefix=""
40605fi;
40606# Check whether --enable-sdltest or --disable-sdltest was given.
40607if test "${enable_sdltest+set}" = set; then
40608 enableval="$enable_sdltest"
40609
40610else
40611 enable_sdltest=yes
40612fi;
40613
40614 if test x$sdl_exec_prefix != x ; then
40615 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
40616 if test x${SDL_CONFIG+set} != xset ; then
40617 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
40618 fi
40619 fi
40620 if test x$sdl_prefix != x ; then
40621 sdl_args="$sdl_args --prefix=$sdl_prefix"
40622 if test x${SDL_CONFIG+set} != xset ; then
40623 SDL_CONFIG=$sdl_prefix/bin/sdl-config
40624 fi
40625 fi
40626
40627
40628 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
40629 # Extract the first word of "sdl-config", so it can be a program name with args.
40630set dummy sdl-config; ac_word=$2
40631echo "$as_me:$LINENO: checking for $ac_word" >&5
40632echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40633if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
40634 echo $ECHO_N "(cached) $ECHO_C" >&6
40635else
40636 case $SDL_CONFIG in
40637 [\\/]* | ?:[\\/]*)
40638 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
40639 ;;
40640 *)
40641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40642for as_dir in $PATH
40643do
40644 IFS=$as_save_IFS
40645 test -z "$as_dir" && as_dir=.
40646 for ac_exec_ext in '' $ac_executable_extensions; do
40647 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40648 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
40649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40650 break 2
40651 fi
40652done
40653done
40654
40655 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
40656 ;;
40657esac
40658fi
40659SDL_CONFIG=$ac_cv_path_SDL_CONFIG
40660
40661if test -n "$SDL_CONFIG"; then
40662 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
40663echo "${ECHO_T}$SDL_CONFIG" >&6
40664else
40665 echo "$as_me:$LINENO: result: no" >&5
40666echo "${ECHO_T}no" >&6
40667fi
40668
40669 min_sdl_version=1.2.0
40670 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
40671echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
40672 no_sdl=""
40673 if test "$SDL_CONFIG" = "no" ; then
40674 no_sdl=yes
40675 else
40676 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
40677 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
40678
40679 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
40680 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
40681 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
40682 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
40683 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
40684 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
40685 if test "x$enable_sdltest" = "xyes" ; then
40686 ac_save_CFLAGS="$CFLAGS"
94acd38e 40687 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
40688 ac_save_LIBS="$LIBS"
40689 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 40690 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
40691 LIBS="$LIBS $SDL_LIBS"
40692 rm -f conf.sdltest
40693 if test "$cross_compiling" = yes; then
40694 echo $ac_n "cross compiling; assumed OK... $ac_c"
40695else
40696 cat >conftest.$ac_ext <<_ACEOF
40697/* confdefs.h. */
40698_ACEOF
40699cat confdefs.h >>conftest.$ac_ext
40700cat >>conftest.$ac_ext <<_ACEOF
40701/* end confdefs.h. */
40702
40703#include <stdio.h>
40704#include <stdlib.h>
40705#include <string.h>
40706#include "SDL.h"
40707
40708char*
40709my_strdup (char *str)
40710{
40711 char *new_str;
40712
40713 if (str)
40714 {
40715 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
40716 strcpy (new_str, str);
40717 }
40718 else
40719 new_str = NULL;
40720
40721 return new_str;
40722}
40723
40724int main (int argc, char *argv[])
40725{
40726 int major, minor, micro;
40727 char *tmp_version;
40728
40729 /* This hangs on some systems (?)
40730 system ("touch conf.sdltest");
40731 */
40732 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
40733
40734 /* HP/UX 9 (%@#!) writes to sscanf strings */
40735 tmp_version = my_strdup("$min_sdl_version");
40736 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
40737 printf("%s, bad version string\n", "$min_sdl_version");
40738 exit(1);
40739 }
40740
40741 if (($sdl_major_version > major) ||
40742 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
40743 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
40744 {
40745 return 0;
40746 }
40747 else
40748 {
40749 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
40750 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
40751 printf("*** best to upgrade to the required version.\n");
40752 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
40753 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
40754 printf("*** config.cache before re-running configure\n");
40755 return 1;
40756 }
40757}
40758
40759
40760_ACEOF
40761rm -f conftest$ac_exeext
40762if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40763 (eval $ac_link) 2>&5
40764 ac_status=$?
40765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40766 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40768 (eval $ac_try) 2>&5
40769 ac_status=$?
40770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40771 (exit $ac_status); }; }; then
40772 :
40773else
40774 echo "$as_me: program exited with status $ac_status" >&5
40775echo "$as_me: failed program was:" >&5
40776sed 's/^/| /' conftest.$ac_ext >&5
40777
40778( exit $ac_status )
40779no_sdl=yes
40780fi
ac1cb8d3 40781rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40782fi
40783 CFLAGS="$ac_save_CFLAGS"
94acd38e 40784 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
40785 LIBS="$ac_save_LIBS"
40786 fi
40787 fi
40788 if test "x$no_sdl" = x ; then
40789 echo "$as_me:$LINENO: result: yes" >&5
40790echo "${ECHO_T}yes" >&6
40791
40792 EXTRALIBS_SDL="$SDL_LIBS"
c92ad099 40793 CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
a848cd7e
SC
40794 cat >>confdefs.h <<\_ACEOF
40795#define wxUSE_LIBSDL 1
40796_ACEOF
40797
40798
40799 else
40800 echo "$as_me:$LINENO: result: no" >&5
40801echo "${ECHO_T}no" >&6
40802 if test "$SDL_CONFIG" = "no" ; then
40803 echo "*** The sdl-config script installed by SDL could not be found"
40804 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
40805 echo "*** your path, or set the SDL_CONFIG environment variable to the"
40806 echo "*** full path to sdl-config."
40807 else
40808 if test -f conf.sdltest ; then
40809 :
40810 else
40811 echo "*** Could not run SDL test program, checking why..."
40812 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 40813 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
40814 LIBS="$LIBS $SDL_LIBS"
40815 cat >conftest.$ac_ext <<_ACEOF
40816/* confdefs.h. */
40817_ACEOF
40818cat confdefs.h >>conftest.$ac_ext
40819cat >>conftest.$ac_ext <<_ACEOF
40820/* end confdefs.h. */
40821
40822#include <stdio.h>
40823#include "SDL.h"
40824
40825int main(int argc, char *argv[])
40826{ return 0; }
40827#undef main
40828#define main K_and_R_C_main
40829
40830int
40831main ()
40832{
40833 return 0;
40834 ;
40835 return 0;
40836}
40837_ACEOF
40838rm -f conftest.$ac_objext conftest$ac_exeext
40839if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40840 (eval $ac_link) 2>conftest.er1
a848cd7e 40841 ac_status=$?
ac1cb8d3
VS
40842 grep -v '^ *+' conftest.er1 >conftest.err
40843 rm -f conftest.er1
40844 cat conftest.err >&5
a848cd7e
SC
40845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40846 (exit $ac_status); } &&
5d7b7554 40847 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40849 (eval $ac_try) 2>&5
40850 ac_status=$?
40851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40852 (exit $ac_status); }; } &&
40853 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40855 (eval $ac_try) 2>&5
40856 ac_status=$?
40857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40858 (exit $ac_status); }; }; then
40859 echo "*** The test program compiled, but did not run. This usually means"
40860 echo "*** that the run-time linker is not finding SDL or finding the wrong"
40861 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
40862 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
40863 echo "*** to the installed location Also, make sure you have run ldconfig if that"
40864 echo "*** is required on your system"
40865 echo "***"
40866 echo "*** If you have an old version installed, it is best to remove it, although"
40867 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
40868else
40869 echo "$as_me: failed program was:" >&5
40870sed 's/^/| /' conftest.$ac_ext >&5
40871
40872 echo "*** The test program failed to compile or link. See the file config.log for the"
40873 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
40874 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
40875 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
40876fi
ac1cb8d3
VS
40877rm -f conftest.err conftest.$ac_objext \
40878 conftest$ac_exeext conftest.$ac_ext
a848cd7e 40879 CFLAGS="$ac_save_CFLAGS"
94acd38e 40880 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
40881 LIBS="$ac_save_LIBS"
40882 fi
40883 fi
40884 SDL_CFLAGS=""
40885 SDL_LIBS=""
40886 wxUSE_LIBSDL="no"
40887 fi
40888
40889
40890 rm -f conf.sdltest
40891
40892 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
40893 WITH_PLUGIN_SDL=1
40894 fi
40895 fi
40896 fi
40897
40898 cat >>confdefs.h <<\_ACEOF
40899#define wxUSE_SOUND 1
40900_ACEOF
40901
40902 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
40903fi
40904
d1c38808
VZ
40905if test "$WXGTK20" = 1; then
40906 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
40907 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
40908
40909
40910 succeeded=no
40911
40912 if test -z "$PKG_CONFIG"; then
40913 # Extract the first word of "pkg-config", so it can be a program name with args.
40914set dummy pkg-config; ac_word=$2
40915echo "$as_me:$LINENO: checking for $ac_word" >&5
40916echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40917if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
40918 echo $ECHO_N "(cached) $ECHO_C" >&6
40919else
40920 case $PKG_CONFIG in
40921 [\\/]* | ?:[\\/]*)
40922 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
40923 ;;
40924 *)
40925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40926for as_dir in $PATH
40927do
40928 IFS=$as_save_IFS
40929 test -z "$as_dir" && as_dir=.
40930 for ac_exec_ext in '' $ac_executable_extensions; do
40931 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40932 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
40933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40934 break 2
40935 fi
40936done
40937done
40938
40939 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
40940 ;;
40941esac
40942fi
40943PKG_CONFIG=$ac_cv_path_PKG_CONFIG
40944
40945if test -n "$PKG_CONFIG"; then
40946 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
40947echo "${ECHO_T}$PKG_CONFIG" >&6
40948else
40949 echo "$as_me:$LINENO: result: no" >&5
40950echo "${ECHO_T}no" >&6
40951fi
40952
40953 fi
40954
40955 if test "$PKG_CONFIG" = "no" ; then
40956 echo "*** The pkg-config script could not be found. Make sure it is"
40957 echo "*** in your path, or set the PKG_CONFIG environment variable"
40958 echo "*** to the full path to pkg-config."
40959 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
40960 else
40961 PKG_CONFIG_MIN_VERSION=0.9.0
40962 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
ffa762ff
VS
40963 echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5
40964echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6
d1c38808 40965
ffa762ff 40966 if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then
d1c38808
VZ
40967 echo "$as_me:$LINENO: result: yes" >&5
40968echo "${ECHO_T}yes" >&6
40969 succeeded=yes
40970
40971 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
40972echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
ffa762ff 40973 LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
40974 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
40975echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
40976
40977 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
40978echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
ffa762ff 40979 LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
40980 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
40981echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
40982 else
40983 LIBGNOMEPRINTUI_CFLAGS=""
40984 LIBGNOMEPRINTUI_LIBS=""
40985 ## If we have a custom action on failure, don't print errors, but
40986 ## do set a variable so people can do so.
ffa762ff 40987 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
40988
40989 fi
40990
40991
40992
40993 else
40994 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
40995 echo "*** See http://www.freedesktop.org/software/pkgconfig"
40996 fi
40997 fi
40998
40999 if test $succeeded = yes; then
41000
c92ad099 41001 CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
d1c38808
VZ
41002 cat >>confdefs.h <<\_ACEOF
41003#define wxUSE_LIBGNOMEPRINT 1
41004_ACEOF
41005
41006
41007 else
41008
41009 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
41010echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
41011 wxUSE_LIBGNOMEPRINT="no"
41012
41013
41014 fi
41015
41016 fi
41017 fi
41018fi
41019
2b850ae1
RR
41020if test "$WXGTK20" = 1; then
41021 if test "$wxUSE_MIMETYPE" = "yes" ; then
41022 if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
41023
41024
41025 succeeded=no
41026
41027 if test -z "$PKG_CONFIG"; then
41028 # Extract the first word of "pkg-config", so it can be a program name with args.
41029set dummy pkg-config; ac_word=$2
41030echo "$as_me:$LINENO: checking for $ac_word" >&5
41031echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41032if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
41033 echo $ECHO_N "(cached) $ECHO_C" >&6
41034else
41035 case $PKG_CONFIG in
41036 [\\/]* | ?:[\\/]*)
41037 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
41038 ;;
41039 *)
41040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41041for as_dir in $PATH
41042do
41043 IFS=$as_save_IFS
41044 test -z "$as_dir" && as_dir=.
41045 for ac_exec_ext in '' $ac_executable_extensions; do
41046 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41047 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41049 break 2
41050 fi
41051done
41052done
41053
41054 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
41055 ;;
41056esac
41057fi
41058PKG_CONFIG=$ac_cv_path_PKG_CONFIG
41059
41060if test -n "$PKG_CONFIG"; then
41061 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
41062echo "${ECHO_T}$PKG_CONFIG" >&6
41063else
41064 echo "$as_me:$LINENO: result: no" >&5
41065echo "${ECHO_T}no" >&6
41066fi
41067
41068 fi
41069
41070 if test "$PKG_CONFIG" = "no" ; then
41071 echo "*** The pkg-config script could not be found. Make sure it is"
41072 echo "*** in your path, or set the PKG_CONFIG environment variable"
41073 echo "*** to the full path to pkg-config."
41074 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
41075 else
41076 PKG_CONFIG_MIN_VERSION=0.9.0
41077 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
41078 echo "$as_me:$LINENO: checking for gnome-vfs-2.0 >= 2.0" >&5
41079echo $ECHO_N "checking for gnome-vfs-2.0 >= 2.0... $ECHO_C" >&6
41080
41081 if $PKG_CONFIG --exists "gnome-vfs-2.0 >= 2.0" ; then
41082 echo "$as_me:$LINENO: result: yes" >&5
41083echo "${ECHO_T}yes" >&6
41084 succeeded=yes
41085
41086 echo "$as_me:$LINENO: checking GNOMEVFS_CFLAGS" >&5
41087echo $ECHO_N "checking GNOMEVFS_CFLAGS... $ECHO_C" >&6
41088 GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0"`
41089 echo "$as_me:$LINENO: result: $GNOMEVFS_CFLAGS" >&5
41090echo "${ECHO_T}$GNOMEVFS_CFLAGS" >&6
41091
41092 echo "$as_me:$LINENO: checking GNOMEVFS_LIBS" >&5
41093echo $ECHO_N "checking GNOMEVFS_LIBS... $ECHO_C" >&6
41094 GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0"`
41095 echo "$as_me:$LINENO: result: $GNOMEVFS_LIBS" >&5
41096echo "${ECHO_T}$GNOMEVFS_LIBS" >&6
41097 else
41098 GNOMEVFS_CFLAGS=""
41099 GNOMEVFS_LIBS=""
41100 ## If we have a custom action on failure, don't print errors, but
41101 ## do set a variable so people can do so.
41102 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
41103
41104 fi
41105
41106
41107
41108 else
41109 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
41110 echo "*** See http://www.freedesktop.org/software/pkgconfig"
41111 fi
41112 fi
41113
41114 if test $succeeded = yes; then
41115
41116 CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
41117 cat >>confdefs.h <<\_ACEOF
41118#define wxUSE_LIBGNOMEVFS 1
41119_ACEOF
41120
41121
41122 else
41123
41124 { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
41125echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
41126 wxUSE_LIBGNOMEVFS="no"
41127
41128
41129 fi
41130
41131 fi
41132 fi
41133fi
41134
3565d135
RR
41135if test "$WXGTK20" = 1; then
41136 if test "$wxUSE_LIBHILDON" = "yes" ; then
41137
41138 succeeded=no
41139
41140 if test -z "$PKG_CONFIG"; then
41141 # Extract the first word of "pkg-config", so it can be a program name with args.
41142set dummy pkg-config; ac_word=$2
41143echo "$as_me:$LINENO: checking for $ac_word" >&5
41144echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41145if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
41146 echo $ECHO_N "(cached) $ECHO_C" >&6
41147else
41148 case $PKG_CONFIG in
41149 [\\/]* | ?:[\\/]*)
41150 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
41151 ;;
41152 *)
41153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41154for as_dir in $PATH
41155do
41156 IFS=$as_save_IFS
41157 test -z "$as_dir" && as_dir=.
41158 for ac_exec_ext in '' $ac_executable_extensions; do
41159 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41160 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41162 break 2
41163 fi
41164done
41165done
41166
41167 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
41168 ;;
41169esac
41170fi
41171PKG_CONFIG=$ac_cv_path_PKG_CONFIG
41172
41173if test -n "$PKG_CONFIG"; then
41174 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
41175echo "${ECHO_T}$PKG_CONFIG" >&6
41176else
41177 echo "$as_me:$LINENO: result: no" >&5
41178echo "${ECHO_T}no" >&6
41179fi
41180
41181 fi
41182
41183 if test "$PKG_CONFIG" = "no" ; then
41184 echo "*** The pkg-config script could not be found. Make sure it is"
41185 echo "*** in your path, or set the PKG_CONFIG environment variable"
41186 echo "*** to the full path to pkg-config."
41187 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
41188 else
41189 PKG_CONFIG_MIN_VERSION=0.9.0
41190 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
41191 echo "$as_me:$LINENO: checking for hildon-lgpl >= 0.9" >&5
41192echo $ECHO_N "checking for hildon-lgpl >= 0.9... $ECHO_C" >&6
41193
41194 if $PKG_CONFIG --exists "hildon-lgpl >= 0.9" ; then
41195 echo "$as_me:$LINENO: result: yes" >&5
41196echo "${ECHO_T}yes" >&6
41197 succeeded=yes
41198
41199 echo "$as_me:$LINENO: checking HILDON_CFLAGS" >&5
41200echo $ECHO_N "checking HILDON_CFLAGS... $ECHO_C" >&6
41201 HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9"`
41202 echo "$as_me:$LINENO: result: $HILDON_CFLAGS" >&5
41203echo "${ECHO_T}$HILDON_CFLAGS" >&6
41204
41205 echo "$as_me:$LINENO: checking HILDON_LIBS" >&5
41206echo $ECHO_N "checking HILDON_LIBS... $ECHO_C" >&6
41207 HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9"`
41208 echo "$as_me:$LINENO: result: $HILDON_LIBS" >&5
41209echo "${ECHO_T}$HILDON_LIBS" >&6
41210 else
41211 HILDON_CFLAGS=""
41212 HILDON_LIBS=""
41213 ## If we have a custom action on failure, don't print errors, but
41214 ## do set a variable so people can do so.
41215 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
41216
41217 fi
41218
41219
41220
41221 else
41222 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
41223 echo "*** See http://www.freedesktop.org/software/pkgconfig"
41224 fi
41225 fi
41226
41227 if test $succeeded = yes; then
41228
41229 EXTRALIBS_HILDON="$HILDON_LIBS"
41230 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
41231 cat >>confdefs.h <<\_ACEOF
41232#define wxUSE_LIBHILDON 1
41233_ACEOF
41234
41235
41236 else
41237
41238 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
41239echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
41240 wxUSE_LIBHILDON="no"
41241
41242
41243 fi
41244
41245 fi
41246fi
d1c38808 41247
a848cd7e
SC
41248if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
41249 cat >>confdefs.h <<\_ACEOF
41250#define wxUSE_CMDLINE_PARSER 1
41251_ACEOF
41252
41253fi
41254
41255if test "$wxUSE_STOPWATCH" = "yes"; then
41256 cat >>confdefs.h <<\_ACEOF
41257#define wxUSE_STOPWATCH 1
41258_ACEOF
41259
41260fi
41261
41262if test "$wxUSE_DATETIME" = "yes"; then
41263 cat >>confdefs.h <<\_ACEOF
41264#define wxUSE_DATETIME 1
41265_ACEOF
41266
41267fi
41268
41269if test "$wxUSE_FILE" = "yes"; then
41270 cat >>confdefs.h <<\_ACEOF
41271#define wxUSE_FILE 1
41272_ACEOF
41273
41274fi
41275
41276if test "$wxUSE_FFILE" = "yes"; then
41277 cat >>confdefs.h <<\_ACEOF
41278#define wxUSE_FFILE 1
41279_ACEOF
41280
41281fi
41282
41283if test "$wxUSE_FILESYSTEM" = "yes"; then
41284 cat >>confdefs.h <<\_ACEOF
41285#define wxUSE_FILESYSTEM 1
41286_ACEOF
41287
41288fi
41289
41290if test "$wxUSE_FS_ZIP" = "yes"; then
41291 cat >>confdefs.h <<\_ACEOF
41292#define wxUSE_FS_ZIP 1
41293_ACEOF
41294
41295fi
41296
9e8e867f 41297if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
a848cd7e 41298 cat >>confdefs.h <<\_ACEOF
9e8e867f 41299#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
41300_ACEOF
41301
41302fi
41303
41304if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 41305 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
41306 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
41307echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
41308 elif test "$wxUSE_ZLIB" = "no"; then
41309 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
41310echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
41311 else
41312 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
41313#define wxUSE_ZIPSTREAM 1
41314_ACEOF
41315
81f90336 41316 fi
a848cd7e
SC
41317fi
41318
a848cd7e 41319if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18228ab4
MW
41320 if test "$USE_UNIX" != 1; then
41321 { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
41322echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
41323 wxUSE_ON_FATAL_EXCEPTION=no
41324 else
41325 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
41326#define wxUSE_ON_FATAL_EXCEPTION 1
41327_ACEOF
41328
18228ab4 41329 fi
a848cd7e
SC
41330fi
41331
eaff0f0d
VZ
41332if test "$wxUSE_STACKWALKER" = "yes"; then
41333 cat >>confdefs.h <<\_ACEOF
41334#define wxUSE_STACKWALKER 1
41335_ACEOF
41336
41337fi
41338
36b6448c 41339if test "$wxUSE_DEBUGREPORT" = "yes"; then
18228ab4
MW
41340 if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
41341 { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
41342echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
dfe0c803
JS
41343 wxUSE_DEBUGREPORT=no
41344 else
41345 cat >>confdefs.h <<\_ACEOF
36b6448c
VZ
41346#define wxUSE_DEBUGREPORT 1
41347_ACEOF
41348
21dfc162
MW
41349 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
41350 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
41351 fi
dfe0c803 41352 fi
36b6448c
VZ
41353fi
41354
a848cd7e
SC
41355if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
41356 cat >>confdefs.h <<\_ACEOF
41357#define wxUSE_SNGLINST_CHECKER 1
41358_ACEOF
41359
41360fi
41361
41362if test "$wxUSE_BUSYINFO" = "yes"; then
41363 cat >>confdefs.h <<\_ACEOF
41364#define wxUSE_BUSYINFO 1
41365_ACEOF
41366
41367fi
41368
41369if test "$wxUSE_STD_IOSTREAM" = "yes"; then
41370 cat >>confdefs.h <<\_ACEOF
41371#define wxUSE_STD_IOSTREAM 1
41372_ACEOF
41373
41374fi
41375
59746b65
MW
41376if test "$wxUSE_STD_STRING" = "yes"; then
41377 cat >>confdefs.h <<\_ACEOF
41378#define wxUSE_STD_STRING 1
41379_ACEOF
41380
41381fi
41382
07158944
VZ
41383if test "$wxUSE_STDPATHS" = "yes"; then
41384 cat >>confdefs.h <<\_ACEOF
41385#define wxUSE_STDPATHS 1
41386_ACEOF
41387
41388fi
41389
a848cd7e
SC
41390if test "$wxUSE_TEXTBUFFER" = "yes"; then
41391 cat >>confdefs.h <<\_ACEOF
41392#define wxUSE_TEXTBUFFER 1
41393_ACEOF
41394
41395fi
41396
41397if test "$wxUSE_TEXTFILE" = "yes"; then
41398 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
41399 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
41400echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
41401 else
41402 cat >>confdefs.h <<\_ACEOF
41403#define wxUSE_TEXTFILE 1
41404_ACEOF
41405
41406 fi
41407fi
41408
41409if test "$wxUSE_CONFIG" = "yes" ; then
41410 if test "$wxUSE_TEXTFILE" != "yes"; then
41411 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
41412echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
41413 else
41414 cat >>confdefs.h <<\_ACEOF
41415#define wxUSE_CONFIG 1
89be85c2
VS
41416_ACEOF
41417
41418 cat >>confdefs.h <<\_ACEOF
41419#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
41420_ACEOF
41421
41422 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
41423 fi
41424fi
41425
41426if test "$wxUSE_INTL" = "yes" ; then
41427 if test "$wxUSE_FILE" != "yes"; then
41428 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
41429echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
41430 else
41431 cat >>confdefs.h <<\_ACEOF
41432#define wxUSE_INTL 1
41433_ACEOF
41434
41435 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
41436 GUIDIST="$GUIDIST INTL_DIST"
41437 fi
41438fi
41439
41440if test "$wxUSE_LOG" = "yes"; then
41441 cat >>confdefs.h <<\_ACEOF
41442#define wxUSE_LOG 1
41443_ACEOF
41444
41445
41446 if test "$wxUSE_LOGGUI" = "yes"; then
41447 cat >>confdefs.h <<\_ACEOF
41448#define wxUSE_LOGGUI 1
41449_ACEOF
41450
41451 fi
41452
41453 if test "$wxUSE_LOGWINDOW" = "yes"; then
41454 cat >>confdefs.h <<\_ACEOF
41455#define wxUSE_LOGWINDOW 1
41456_ACEOF
41457
41458 fi
41459
41460 if test "$wxUSE_LOGDIALOG" = "yes"; then
41461 cat >>confdefs.h <<\_ACEOF
41462#define wxUSE_LOG_DIALOG 1
41463_ACEOF
41464
41465 fi
0b78747f
MW
41466
41467 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
a848cd7e
SC
41468fi
41469
41470if test "$wxUSE_LONGLONG" = "yes"; then
41471 cat >>confdefs.h <<\_ACEOF
41472#define wxUSE_LONGLONG 1
41473_ACEOF
41474
41475fi
41476
41477if test "$wxUSE_GEOMETRY" = "yes"; then
41478 cat >>confdefs.h <<\_ACEOF
41479#define wxUSE_GEOMETRY 1
41480_ACEOF
41481
41482fi
41483
a848cd7e
SC
41484if test "$wxUSE_STREAMS" = "yes" ; then
41485 cat >>confdefs.h <<\_ACEOF
41486#define wxUSE_STREAMS 1
41487_ACEOF
41488
41489fi
41490
41491
41492if test "$wxUSE_DATETIME" = "yes"; then
41493
41494for ac_func in strptime
41495do
41496as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41497echo "$as_me:$LINENO: checking for $ac_func" >&5
41498echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41499if eval "test \"\${$as_ac_var+set}\" = set"; then
41500 echo $ECHO_N "(cached) $ECHO_C" >&6
41501else
41502 cat >conftest.$ac_ext <<_ACEOF
41503/* confdefs.h. */
41504_ACEOF
41505cat confdefs.h >>conftest.$ac_ext
41506cat >>conftest.$ac_ext <<_ACEOF
41507/* end confdefs.h. */
ac1cb8d3
VS
41508/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41509 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41510#define $ac_func innocuous_$ac_func
41511
a848cd7e
SC
41512/* System header to define __stub macros and hopefully few prototypes,
41513 which can conflict with char $ac_func (); below.
41514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41515 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41516
a848cd7e
SC
41517#ifdef __STDC__
41518# include <limits.h>
41519#else
41520# include <assert.h>
41521#endif
ac1cb8d3
VS
41522
41523#undef $ac_func
41524
a848cd7e
SC
41525/* Override any gcc2 internal prototype to avoid an error. */
41526#ifdef __cplusplus
41527extern "C"
41528{
41529#endif
41530/* We use char because int might match the return type of a gcc2
41531 builtin and then its argument prototype would still apply. */
41532char $ac_func ();
41533/* The GNU C library defines this for functions which it implements
41534 to always fail with ENOSYS. Some functions are actually named
41535 something starting with __ and the normal name is an alias. */
41536#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41537choke me
41538#else
41539char (*f) () = $ac_func;
41540#endif
41541#ifdef __cplusplus
41542}
41543#endif
41544
41545int
41546main ()
41547{
41548return f != $ac_func;
41549 ;
41550 return 0;
41551}
41552_ACEOF
41553rm -f conftest.$ac_objext conftest$ac_exeext
41554if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41555 (eval $ac_link) 2>conftest.er1
a848cd7e 41556 ac_status=$?
ac1cb8d3
VS
41557 grep -v '^ *+' conftest.er1 >conftest.err
41558 rm -f conftest.er1
41559 cat conftest.err >&5
a848cd7e
SC
41560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41561 (exit $ac_status); } &&
5d7b7554 41562 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41564 (eval $ac_try) 2>&5
41565 ac_status=$?
41566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41567 (exit $ac_status); }; } &&
41568 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41570 (eval $ac_try) 2>&5
41571 ac_status=$?
41572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41573 (exit $ac_status); }; }; then
41574 eval "$as_ac_var=yes"
41575else
41576 echo "$as_me: failed program was:" >&5
41577sed 's/^/| /' conftest.$ac_ext >&5
41578
41579eval "$as_ac_var=no"
41580fi
ac1cb8d3
VS
41581rm -f conftest.err conftest.$ac_objext \
41582 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41583fi
41584echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41585echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41586if test `eval echo '${'$as_ac_var'}'` = yes; then
41587 cat >>confdefs.h <<_ACEOF
41588#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41589_ACEOF
41590
41591fi
41592done
41593
f536f005
VZ
41594 if test "$ac_cv_func_strptime" = "yes"; then
41595 echo "$as_me:$LINENO: checking for strptime declaration" >&5
41596echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6
41597if test "${wx_cv_func_strptime_decl+set}" = set; then
41598 echo $ECHO_N "(cached) $ECHO_C" >&6
41599else
41600
f536f005
VZ
41601 cat >conftest.$ac_ext <<_ACEOF
41602/* confdefs.h. */
41603_ACEOF
41604cat confdefs.h >>conftest.$ac_ext
41605cat >>conftest.$ac_ext <<_ACEOF
41606/* end confdefs.h. */
41607
41608 #include <time.h>
41609
41610int
41611main ()
41612{
41613
41614 struct tm t;
41615 strptime("foo", "bar", &t);
41616
41617 ;
41618 return 0;
41619}
41620_ACEOF
41621rm -f conftest.$ac_objext
41622if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41623 (eval $ac_compile) 2>conftest.er1
41624 ac_status=$?
41625 grep -v '^ *+' conftest.er1 >conftest.err
41626 rm -f conftest.er1
41627 cat conftest.err >&5
41628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41629 (exit $ac_status); } &&
5d7b7554 41630 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f536f005
VZ
41631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41632 (eval $ac_try) 2>&5
41633 ac_status=$?
41634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41635 (exit $ac_status); }; } &&
41636 { ac_try='test -s conftest.$ac_objext'
41637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41638 (eval $ac_try) 2>&5
41639 ac_status=$?
41640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41641 (exit $ac_status); }; }; then
41642 wx_cv_func_strptime_decl=yes
41643else
41644 echo "$as_me: failed program was:" >&5
41645sed 's/^/| /' conftest.$ac_ext >&5
41646
41647wx_cv_func_strptime_decl=no
41648
41649fi
41650rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f536f005
VZ
41651
41652
41653fi
41654echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
41655echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6
41656 fi
41657 if test "$wx_cv_func_strptime_decl" = "yes"; then
41658 cat >>confdefs.h <<\_ACEOF
41659#define HAVE_STRPTIME_DECL 1
41660_ACEOF
41661
41662 fi
a848cd7e
SC
41663
41664 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
41665echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
41666if test "${wx_cv_var_timezone+set}" = set; then
41667 echo $ECHO_N "(cached) $ECHO_C" >&6
41668else
41669
41670 cat >conftest.$ac_ext <<_ACEOF
41671/* confdefs.h. */
41672_ACEOF
41673cat confdefs.h >>conftest.$ac_ext
41674cat >>conftest.$ac_ext <<_ACEOF
41675/* end confdefs.h. */
41676
41677 #include <time.h>
41678
41679int
41680main ()
41681{
41682
41683 int tz;
41684 tz = timezone;
41685
41686 ;
41687 return 0;
41688}
41689_ACEOF
41690rm -f conftest.$ac_objext
41691if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41692 (eval $ac_compile) 2>conftest.er1
a848cd7e 41693 ac_status=$?
ac1cb8d3
VS
41694 grep -v '^ *+' conftest.er1 >conftest.err
41695 rm -f conftest.er1
41696 cat conftest.err >&5
a848cd7e
SC
41697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41698 (exit $ac_status); } &&
5d7b7554 41699 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41701 (eval $ac_try) 2>&5
41702 ac_status=$?
41703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41704 (exit $ac_status); }; } &&
41705 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41707 (eval $ac_try) 2>&5
41708 ac_status=$?
41709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41710 (exit $ac_status); }; }; then
41711
41712 wx_cv_var_timezone=timezone
41713
41714else
41715 echo "$as_me: failed program was:" >&5
41716sed 's/^/| /' conftest.$ac_ext >&5
41717
41718
41719 cat >conftest.$ac_ext <<_ACEOF
41720/* confdefs.h. */
41721_ACEOF
41722cat confdefs.h >>conftest.$ac_ext
41723cat >>conftest.$ac_ext <<_ACEOF
41724/* end confdefs.h. */
41725
41726 #include <time.h>
41727
41728int
41729main ()
41730{
41731
41732 int tz;
41733 tz = _timezone;
41734
41735 ;
41736 return 0;
41737}
41738_ACEOF
41739rm -f conftest.$ac_objext
41740if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41741 (eval $ac_compile) 2>conftest.er1
a848cd7e 41742 ac_status=$?
ac1cb8d3
VS
41743 grep -v '^ *+' conftest.er1 >conftest.err
41744 rm -f conftest.er1
41745 cat conftest.err >&5
a848cd7e
SC
41746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41747 (exit $ac_status); } &&
5d7b7554 41748 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41750 (eval $ac_try) 2>&5
41751 ac_status=$?
41752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41753 (exit $ac_status); }; } &&
41754 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41756 (eval $ac_try) 2>&5
41757 ac_status=$?
41758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41759 (exit $ac_status); }; }; then
41760
41761 wx_cv_var_timezone=_timezone
41762
41763else
41764 echo "$as_me: failed program was:" >&5
41765sed 's/^/| /' conftest.$ac_ext >&5
41766
41767
41768 cat >conftest.$ac_ext <<_ACEOF
41769/* confdefs.h. */
41770_ACEOF
41771cat confdefs.h >>conftest.$ac_ext
41772cat >>conftest.$ac_ext <<_ACEOF
41773/* end confdefs.h. */
41774
41775 #include <time.h>
41776
41777int
41778main ()
41779{
41780
41781 int tz;
41782 tz = __timezone;
41783
41784 ;
41785 return 0;
41786}
41787_ACEOF
41788rm -f conftest.$ac_objext
41789if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41790 (eval $ac_compile) 2>conftest.er1
a848cd7e 41791 ac_status=$?
ac1cb8d3
VS
41792 grep -v '^ *+' conftest.er1 >conftest.err
41793 rm -f conftest.er1
41794 cat conftest.err >&5
a848cd7e
SC
41795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41796 (exit $ac_status); } &&
5d7b7554 41797 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41799 (eval $ac_try) 2>&5
41800 ac_status=$?
41801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41802 (exit $ac_status); }; } &&
41803 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41805 (eval $ac_try) 2>&5
41806 ac_status=$?
41807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41808 (exit $ac_status); }; }; then
41809
41810 wx_cv_var_timezone=__timezone
41811
41812else
41813 echo "$as_me: failed program was:" >&5
41814sed 's/^/| /' conftest.$ac_ext >&5
41815
41816
41817 if test "$USE_DOS" = 0 ; then
41818 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
41819echo "$as_me: WARNING: no timezone variable" >&2;}
41820 fi
41821
41822
41823fi
ac1cb8d3 41824rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41825
41826
41827fi
ac1cb8d3 41828rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41829
41830
41831fi
ac1cb8d3 41832rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41833
41834
41835fi
41836echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
41837echo "${ECHO_T}$wx_cv_var_timezone" >&6
41838
41839 if test "x$wx_cv_var_timezone" != x ; then
41840 cat >>confdefs.h <<_ACEOF
41841#define WX_TIMEZONE $wx_cv_var_timezone
41842_ACEOF
41843
41844 fi
41845
41846
41847for ac_func in localtime
41848do
41849as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41850echo "$as_me:$LINENO: checking for $ac_func" >&5
41851echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41852if eval "test \"\${$as_ac_var+set}\" = set"; then
41853 echo $ECHO_N "(cached) $ECHO_C" >&6
41854else
41855 cat >conftest.$ac_ext <<_ACEOF
41856/* confdefs.h. */
41857_ACEOF
41858cat confdefs.h >>conftest.$ac_ext
41859cat >>conftest.$ac_ext <<_ACEOF
41860/* end confdefs.h. */
ac1cb8d3
VS
41861/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41862 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41863#define $ac_func innocuous_$ac_func
41864
a848cd7e
SC
41865/* System header to define __stub macros and hopefully few prototypes,
41866 which can conflict with char $ac_func (); below.
41867 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41868 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41869
a848cd7e
SC
41870#ifdef __STDC__
41871# include <limits.h>
41872#else
41873# include <assert.h>
41874#endif
ac1cb8d3
VS
41875
41876#undef $ac_func
41877
a848cd7e
SC
41878/* Override any gcc2 internal prototype to avoid an error. */
41879#ifdef __cplusplus
41880extern "C"
41881{
41882#endif
41883/* We use char because int might match the return type of a gcc2
41884 builtin and then its argument prototype would still apply. */
41885char $ac_func ();
41886/* The GNU C library defines this for functions which it implements
41887 to always fail with ENOSYS. Some functions are actually named
41888 something starting with __ and the normal name is an alias. */
41889#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41890choke me
41891#else
41892char (*f) () = $ac_func;
41893#endif
41894#ifdef __cplusplus
41895}
41896#endif
41897
41898int
41899main ()
41900{
41901return f != $ac_func;
41902 ;
41903 return 0;
41904}
41905_ACEOF
41906rm -f conftest.$ac_objext conftest$ac_exeext
41907if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41908 (eval $ac_link) 2>conftest.er1
a848cd7e 41909 ac_status=$?
ac1cb8d3
VS
41910 grep -v '^ *+' conftest.er1 >conftest.err
41911 rm -f conftest.er1
41912 cat conftest.err >&5
a848cd7e
SC
41913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41914 (exit $ac_status); } &&
5d7b7554 41915 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41917 (eval $ac_try) 2>&5
41918 ac_status=$?
41919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41920 (exit $ac_status); }; } &&
41921 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41923 (eval $ac_try) 2>&5
41924 ac_status=$?
41925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41926 (exit $ac_status); }; }; then
41927 eval "$as_ac_var=yes"
41928else
41929 echo "$as_me: failed program was:" >&5
41930sed 's/^/| /' conftest.$ac_ext >&5
41931
41932eval "$as_ac_var=no"
41933fi
ac1cb8d3
VS
41934rm -f conftest.err conftest.$ac_objext \
41935 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41936fi
41937echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41938echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41939if test `eval echo '${'$as_ac_var'}'` = yes; then
41940 cat >>confdefs.h <<_ACEOF
41941#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41942_ACEOF
41943
41944fi
41945done
41946
41947
41948 if test "$ac_cv_func_localtime" = "yes"; then
41949 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
41950echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
41951if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
41952 echo $ECHO_N "(cached) $ECHO_C" >&6
41953else
41954
41955 cat >conftest.$ac_ext <<_ACEOF
41956/* confdefs.h. */
41957_ACEOF
41958cat confdefs.h >>conftest.$ac_ext
41959cat >>conftest.$ac_ext <<_ACEOF
41960/* end confdefs.h. */
41961
41962 #include <time.h>
41963
41964int
41965main ()
41966{
41967
41968 struct tm tm;
41969 tm.tm_gmtoff++;
41970
41971 ;
41972 return 0;
41973}
41974_ACEOF
41975rm -f conftest.$ac_objext
41976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41977 (eval $ac_compile) 2>conftest.er1
a848cd7e 41978 ac_status=$?
ac1cb8d3
VS
41979 grep -v '^ *+' conftest.er1 >conftest.err
41980 rm -f conftest.er1
41981 cat conftest.err >&5
a848cd7e
SC
41982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41983 (exit $ac_status); } &&
5d7b7554 41984 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41986 (eval $ac_try) 2>&5
41987 ac_status=$?
41988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41989 (exit $ac_status); }; } &&
41990 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41992 (eval $ac_try) 2>&5
41993 ac_status=$?
41994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41995 (exit $ac_status); }; }; then
41996
41997 wx_cv_struct_tm_has_gmtoff=yes
41998
41999else
42000 echo "$as_me: failed program was:" >&5
42001sed 's/^/| /' conftest.$ac_ext >&5
42002
42003wx_cv_struct_tm_has_gmtoff=no
42004
42005fi
ac1cb8d3 42006rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42007
42008fi
42009echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
42010echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
42011 fi
42012
42013 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
42014 cat >>confdefs.h <<\_ACEOF
42015#define WX_GMTOFF_IN_TM 1
42016_ACEOF
42017
42018 fi
42019
42020
42021
42022for ac_func in gettimeofday ftime
42023do
42024as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42025echo "$as_me:$LINENO: checking for $ac_func" >&5
42026echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42027if eval "test \"\${$as_ac_var+set}\" = set"; then
42028 echo $ECHO_N "(cached) $ECHO_C" >&6
42029else
42030 cat >conftest.$ac_ext <<_ACEOF
42031/* confdefs.h. */
42032_ACEOF
42033cat confdefs.h >>conftest.$ac_ext
42034cat >>conftest.$ac_ext <<_ACEOF
42035/* end confdefs.h. */
ac1cb8d3
VS
42036/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42037 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42038#define $ac_func innocuous_$ac_func
42039
a848cd7e
SC
42040/* System header to define __stub macros and hopefully few prototypes,
42041 which can conflict with char $ac_func (); below.
42042 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42043 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42044
a848cd7e
SC
42045#ifdef __STDC__
42046# include <limits.h>
42047#else
42048# include <assert.h>
42049#endif
ac1cb8d3
VS
42050
42051#undef $ac_func
42052
a848cd7e
SC
42053/* Override any gcc2 internal prototype to avoid an error. */
42054#ifdef __cplusplus
42055extern "C"
42056{
42057#endif
42058/* We use char because int might match the return type of a gcc2
42059 builtin and then its argument prototype would still apply. */
42060char $ac_func ();
42061/* The GNU C library defines this for functions which it implements
42062 to always fail with ENOSYS. Some functions are actually named
42063 something starting with __ and the normal name is an alias. */
42064#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42065choke me
42066#else
42067char (*f) () = $ac_func;
42068#endif
42069#ifdef __cplusplus
42070}
42071#endif
42072
42073int
42074main ()
42075{
42076return f != $ac_func;
42077 ;
42078 return 0;
42079}
42080_ACEOF
42081rm -f conftest.$ac_objext conftest$ac_exeext
42082if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42083 (eval $ac_link) 2>conftest.er1
a848cd7e 42084 ac_status=$?
ac1cb8d3
VS
42085 grep -v '^ *+' conftest.er1 >conftest.err
42086 rm -f conftest.er1
42087 cat conftest.err >&5
a848cd7e
SC
42088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42089 (exit $ac_status); } &&
5d7b7554 42090 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42092 (eval $ac_try) 2>&5
42093 ac_status=$?
42094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42095 (exit $ac_status); }; } &&
42096 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42098 (eval $ac_try) 2>&5
42099 ac_status=$?
42100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42101 (exit $ac_status); }; }; then
42102 eval "$as_ac_var=yes"
42103else
42104 echo "$as_me: failed program was:" >&5
42105sed 's/^/| /' conftest.$ac_ext >&5
42106
42107eval "$as_ac_var=no"
42108fi
ac1cb8d3
VS
42109rm -f conftest.err conftest.$ac_objext \
42110 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42111fi
42112echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42113echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42114if test `eval echo '${'$as_ac_var'}'` = yes; then
42115 cat >>confdefs.h <<_ACEOF
42116#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42117_ACEOF
42118 break
42119fi
42120done
42121
42122
42123 if test "$ac_cv_func_gettimeofday" = "yes"; then
42124 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
42125echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
42126if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
42127 echo $ECHO_N "(cached) $ECHO_C" >&6
42128else
42129
5d7b7554 42130 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
42131/* confdefs.h. */
42132_ACEOF
42133cat confdefs.h >>conftest.$ac_ext
42134cat >>conftest.$ac_ext <<_ACEOF
42135/* end confdefs.h. */
42136
42137 #include <sys/time.h>
42138 #include <unistd.h>
42139
42140int
42141main ()
42142{
42143
42144 struct timeval tv;
42145 gettimeofday(&tv, NULL);
42146
42147 ;
42148 return 0;
42149}
42150_ACEOF
42151rm -f conftest.$ac_objext
42152if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42153 (eval $ac_compile) 2>conftest.er1
a848cd7e 42154 ac_status=$?
ac1cb8d3
VS
42155 grep -v '^ *+' conftest.er1 >conftest.err
42156 rm -f conftest.er1
42157 cat conftest.err >&5
a848cd7e
SC
42158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42159 (exit $ac_status); } &&
5d7b7554 42160 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42162 (eval $ac_try) 2>&5
42163 ac_status=$?
42164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42165 (exit $ac_status); }; } &&
42166 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42168 (eval $ac_try) 2>&5
42169 ac_status=$?
42170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42171 (exit $ac_status); }; }; then
42172 wx_cv_func_gettimeofday_has_2_args=yes
42173else
42174 echo "$as_me: failed program was:" >&5
42175sed 's/^/| /' conftest.$ac_ext >&5
42176
42177cat >conftest.$ac_ext <<_ACEOF
42178/* confdefs.h. */
42179_ACEOF
42180cat confdefs.h >>conftest.$ac_ext
42181cat >>conftest.$ac_ext <<_ACEOF
42182/* end confdefs.h. */
42183
42184 #include <sys/time.h>
42185 #include <unistd.h>
42186
42187int
42188main ()
42189{
42190
42191 struct timeval tv;
42192 gettimeofday(&tv);
42193
42194 ;
42195 return 0;
42196}
42197_ACEOF
42198rm -f conftest.$ac_objext
42199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42200 (eval $ac_compile) 2>conftest.er1
a848cd7e 42201 ac_status=$?
ac1cb8d3
VS
42202 grep -v '^ *+' conftest.er1 >conftest.err
42203 rm -f conftest.er1
42204 cat conftest.err >&5
a848cd7e
SC
42205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42206 (exit $ac_status); } &&
5d7b7554 42207 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42209 (eval $ac_try) 2>&5
42210 ac_status=$?
42211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42212 (exit $ac_status); }; } &&
42213 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42215 (eval $ac_try) 2>&5
42216 ac_status=$?
42217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42218 (exit $ac_status); }; }; then
42219 wx_cv_func_gettimeofday_has_2_args=no
42220else
42221 echo "$as_me: failed program was:" >&5
42222sed 's/^/| /' conftest.$ac_ext >&5
42223
42224
42225 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
42226echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
42227 wx_cv_func_gettimeofday_has_2_args=unknown
42228
42229
42230fi
ac1cb8d3 42231rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42232
42233fi
ac1cb8d3 42234rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42235
42236fi
42237echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
42238echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
42239
42240 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
42241 cat >>confdefs.h <<\_ACEOF
42242#define WX_GETTIMEOFDAY_NO_TZ 1
42243_ACEOF
42244
42245 fi
42246 fi
42247
42248 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
42249fi
42250
42251
42252if test "$wxUSE_SOCKETS" = "yes"; then
42253 if test "$wxUSE_MGL" = "1"; then
42254 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
42255echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
42256 wxUSE_SOCKETS="no"
42257 fi
42258fi
42259
42260if test "$wxUSE_SOCKETS" = "yes"; then
42261 if test "$TOOLKIT" != "MSW"; then
42262 echo "$as_me:$LINENO: checking for socket" >&5
42263echo $ECHO_N "checking for socket... $ECHO_C" >&6
42264if test "${ac_cv_func_socket+set}" = set; then
42265 echo $ECHO_N "(cached) $ECHO_C" >&6
42266else
42267 cat >conftest.$ac_ext <<_ACEOF
42268/* confdefs.h. */
42269_ACEOF
42270cat confdefs.h >>conftest.$ac_ext
42271cat >>conftest.$ac_ext <<_ACEOF
42272/* end confdefs.h. */
ac1cb8d3
VS
42273/* Define socket to an innocuous variant, in case <limits.h> declares socket.
42274 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42275#define socket innocuous_socket
42276
a848cd7e
SC
42277/* System header to define __stub macros and hopefully few prototypes,
42278 which can conflict with char socket (); below.
42279 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42280 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42281
a848cd7e
SC
42282#ifdef __STDC__
42283# include <limits.h>
42284#else
42285# include <assert.h>
42286#endif
ac1cb8d3
VS
42287
42288#undef socket
42289
a848cd7e
SC
42290/* Override any gcc2 internal prototype to avoid an error. */
42291#ifdef __cplusplus
42292extern "C"
42293{
42294#endif
42295/* We use char because int might match the return type of a gcc2
42296 builtin and then its argument prototype would still apply. */
42297char socket ();
42298/* The GNU C library defines this for functions which it implements
42299 to always fail with ENOSYS. Some functions are actually named
42300 something starting with __ and the normal name is an alias. */
42301#if defined (__stub_socket) || defined (__stub___socket)
42302choke me
42303#else
42304char (*f) () = socket;
42305#endif
42306#ifdef __cplusplus
42307}
42308#endif
42309
42310int
42311main ()
42312{
42313return f != socket;
42314 ;
42315 return 0;
42316}
42317_ACEOF
42318rm -f conftest.$ac_objext conftest$ac_exeext
42319if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42320 (eval $ac_link) 2>conftest.er1
a848cd7e 42321 ac_status=$?
ac1cb8d3
VS
42322 grep -v '^ *+' conftest.er1 >conftest.err
42323 rm -f conftest.er1
42324 cat conftest.err >&5
a848cd7e
SC
42325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42326 (exit $ac_status); } &&
5d7b7554 42327 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42329 (eval $ac_try) 2>&5
42330 ac_status=$?
42331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42332 (exit $ac_status); }; } &&
42333 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42335 (eval $ac_try) 2>&5
42336 ac_status=$?
42337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42338 (exit $ac_status); }; }; then
42339 ac_cv_func_socket=yes
42340else
42341 echo "$as_me: failed program was:" >&5
42342sed 's/^/| /' conftest.$ac_ext >&5
42343
42344ac_cv_func_socket=no
42345fi
ac1cb8d3
VS
42346rm -f conftest.err conftest.$ac_objext \
42347 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42348fi
42349echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
42350echo "${ECHO_T}$ac_cv_func_socket" >&6
42351if test $ac_cv_func_socket = yes; then
42352 :
42353else
42354
42355 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
42356echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
42357if test "${ac_cv_lib_socket_socket+set}" = set; then
42358 echo $ECHO_N "(cached) $ECHO_C" >&6
42359else
42360 ac_check_lib_save_LIBS=$LIBS
42361LIBS="-lsocket $LIBS"
42362cat >conftest.$ac_ext <<_ACEOF
42363/* confdefs.h. */
42364_ACEOF
42365cat confdefs.h >>conftest.$ac_ext
42366cat >>conftest.$ac_ext <<_ACEOF
42367/* end confdefs.h. */
42368
42369/* Override any gcc2 internal prototype to avoid an error. */
42370#ifdef __cplusplus
42371extern "C"
42372#endif
42373/* We use char because int might match the return type of a gcc2
42374 builtin and then its argument prototype would still apply. */
42375char socket ();
42376int
42377main ()
42378{
42379socket ();
42380 ;
42381 return 0;
42382}
42383_ACEOF
42384rm -f conftest.$ac_objext conftest$ac_exeext
42385if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42386 (eval $ac_link) 2>conftest.er1
a848cd7e 42387 ac_status=$?
ac1cb8d3
VS
42388 grep -v '^ *+' conftest.er1 >conftest.err
42389 rm -f conftest.er1
42390 cat conftest.err >&5
a848cd7e
SC
42391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42392 (exit $ac_status); } &&
5d7b7554 42393 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42395 (eval $ac_try) 2>&5
42396 ac_status=$?
42397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42398 (exit $ac_status); }; } &&
42399 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42401 (eval $ac_try) 2>&5
42402 ac_status=$?
42403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42404 (exit $ac_status); }; }; then
42405 ac_cv_lib_socket_socket=yes
42406else
42407 echo "$as_me: failed program was:" >&5
42408sed 's/^/| /' conftest.$ac_ext >&5
42409
42410ac_cv_lib_socket_socket=no
42411fi
ac1cb8d3
VS
42412rm -f conftest.err conftest.$ac_objext \
42413 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42414LIBS=$ac_check_lib_save_LIBS
42415fi
42416echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
42417echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
42418if test $ac_cv_lib_socket_socket = yes; then
42419 if test "$INET_LINK" != " -lsocket"; then
42420 INET_LINK="$INET_LINK -lsocket"
42421 fi
42422else
42423
42424 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
42425echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
42426 wxUSE_SOCKETS=no
42427
42428
42429fi
42430
42431
42432
42433fi
42434
42435 fi
42436fi
42437
42438if test "$wxUSE_SOCKETS" = "yes" ; then
42439 if test "$TOOLKIT" != "MSW"; then
5d7b7554 42440 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
42441echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
42442if test "${wx_cv_type_getsockname3+set}" = set; then
42443 echo $ECHO_N "(cached) $ECHO_C" >&6
42444else
42445
42446 cat >conftest.$ac_ext <<_ACEOF
42447/* confdefs.h. */
42448_ACEOF
42449cat confdefs.h >>conftest.$ac_ext
42450cat >>conftest.$ac_ext <<_ACEOF
42451/* end confdefs.h. */
42452
42453 #include <sys/types.h>
42454 #include <sys/socket.h>
42455
42456int
42457main ()
42458{
42459
42460 socklen_t len;
42461 getsockname(0, 0, &len);
42462
42463 ;
42464 return 0;
42465}
42466_ACEOF
42467rm -f conftest.$ac_objext
42468if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42469 (eval $ac_compile) 2>conftest.er1
a848cd7e 42470 ac_status=$?
ac1cb8d3
VS
42471 grep -v '^ *+' conftest.er1 >conftest.err
42472 rm -f conftest.er1
42473 cat conftest.err >&5
a848cd7e
SC
42474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42475 (exit $ac_status); } &&
5d7b7554 42476 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42478 (eval $ac_try) 2>&5
42479 ac_status=$?
42480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42481 (exit $ac_status); }; } &&
42482 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42484 (eval $ac_try) 2>&5
42485 ac_status=$?
42486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42487 (exit $ac_status); }; }; then
42488 wx_cv_type_getsockname3=socklen_t
42489else
42490 echo "$as_me: failed program was:" >&5
42491sed 's/^/| /' conftest.$ac_ext >&5
42492
42493
6459a506 42494 CXXFLAGS_OLD="$CXXFLAGS"
a848cd7e 42495 if test "$GCC" = yes ; then
c92ad099 42496 CXXFLAGS="-Werror $CXXFLAGS"
a848cd7e
SC
42497 fi
42498
42499 cat >conftest.$ac_ext <<_ACEOF
42500/* confdefs.h. */
42501_ACEOF
42502cat confdefs.h >>conftest.$ac_ext
42503cat >>conftest.$ac_ext <<_ACEOF
42504/* end confdefs.h. */
42505
42506 #include <sys/types.h>
42507 #include <sys/socket.h>
42508
42509int
42510main ()
42511{
42512
42513 size_t len;
42514 getsockname(0, 0, &len);
42515
42516 ;
42517 return 0;
42518}
42519_ACEOF
42520rm -f conftest.$ac_objext
42521if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42522 (eval $ac_compile) 2>conftest.er1
a848cd7e 42523 ac_status=$?
ac1cb8d3
VS
42524 grep -v '^ *+' conftest.er1 >conftest.err
42525 rm -f conftest.er1
42526 cat conftest.err >&5
a848cd7e
SC
42527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42528 (exit $ac_status); } &&
5d7b7554 42529 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42531 (eval $ac_try) 2>&5
42532 ac_status=$?
42533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42534 (exit $ac_status); }; } &&
42535 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
42541 wx_cv_type_getsockname3=size_t
42542else
42543 echo "$as_me: failed program was:" >&5
42544sed 's/^/| /' conftest.$ac_ext >&5
42545
42546cat >conftest.$ac_ext <<_ACEOF
42547/* confdefs.h. */
42548_ACEOF
42549cat confdefs.h >>conftest.$ac_ext
42550cat >>conftest.$ac_ext <<_ACEOF
42551/* end confdefs.h. */
42552
42553 #include <sys/types.h>
42554 #include <sys/socket.h>
42555
42556int
42557main ()
42558{
42559
42560 int len;
42561 getsockname(0, 0, &len);
42562
42563 ;
42564 return 0;
42565}
42566_ACEOF
42567rm -f conftest.$ac_objext
42568if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42569 (eval $ac_compile) 2>conftest.er1
a848cd7e 42570 ac_status=$?
ac1cb8d3
VS
42571 grep -v '^ *+' conftest.er1 >conftest.err
42572 rm -f conftest.er1
42573 cat conftest.err >&5
a848cd7e
SC
42574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42575 (exit $ac_status); } &&
5d7b7554 42576 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42578 (eval $ac_try) 2>&5
42579 ac_status=$?
42580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42581 (exit $ac_status); }; } &&
42582 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42584 (eval $ac_try) 2>&5
42585 ac_status=$?
42586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42587 (exit $ac_status); }; }; then
42588 wx_cv_type_getsockname3=int
42589else
42590 echo "$as_me: failed program was:" >&5
42591sed 's/^/| /' conftest.$ac_ext >&5
42592
42593wx_cv_type_getsockname3=unknown
42594
42595fi
ac1cb8d3 42596rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42597
42598fi
ac1cb8d3 42599rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 42600
6459a506 42601 CXXFLAGS="$CXXFLAGS_OLD"
a848cd7e
SC
42602
42603
42604fi
ac1cb8d3 42605rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42606
42607fi
42608echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
42609echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
42610
42611 if test "$wx_cv_type_getsockname3" = "unknown"; then
42612 wxUSE_SOCKETS=no
42613 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
42614echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
42615 else
42616 cat >>confdefs.h <<_ACEOF
9e03e02d 42617#define WX_SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
42618_ACEOF
42619
42620 fi
42621 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
42622echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
42623if test "${wx_cv_type_getsockopt5+set}" = set; then
42624 echo $ECHO_N "(cached) $ECHO_C" >&6
42625else
42626
42627 cat >conftest.$ac_ext <<_ACEOF
42628/* confdefs.h. */
42629_ACEOF
42630cat confdefs.h >>conftest.$ac_ext
42631cat >>conftest.$ac_ext <<_ACEOF
42632/* end confdefs.h. */
42633
42634 #include <sys/types.h>
42635 #include <sys/socket.h>
42636
42637int
42638main ()
42639{
42640
42641 socklen_t len;
42642 getsockopt(0, 0, 0, 0, &len);
42643
42644 ;
42645 return 0;
42646}
42647_ACEOF
42648rm -f conftest.$ac_objext
42649if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42650 (eval $ac_compile) 2>conftest.er1
42651 ac_status=$?
42652 grep -v '^ *+' conftest.er1 >conftest.err
42653 rm -f conftest.er1
42654 cat conftest.err >&5
42655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42656 (exit $ac_status); } &&
5d7b7554 42657 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
42658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42659 (eval $ac_try) 2>&5
42660 ac_status=$?
42661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42662 (exit $ac_status); }; } &&
42663 { ac_try='test -s conftest.$ac_objext'
42664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42665 (eval $ac_try) 2>&5
42666 ac_status=$?
42667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42668 (exit $ac_status); }; }; then
42669 wx_cv_type_getsockopt5=socklen_t
42670else
42671 echo "$as_me: failed program was:" >&5
42672sed 's/^/| /' conftest.$ac_ext >&5
42673
42674
6459a506 42675 CXXFLAGS_OLD="$CXXFLAGS"
5b674b9d 42676 if test "$GCC" = yes ; then
c92ad099 42677 CXXFLAGS="-Werror $CXXFLAGS"
5b674b9d
DE
42678 fi
42679
42680 cat >conftest.$ac_ext <<_ACEOF
42681/* confdefs.h. */
42682_ACEOF
42683cat confdefs.h >>conftest.$ac_ext
42684cat >>conftest.$ac_ext <<_ACEOF
42685/* end confdefs.h. */
42686
42687 #include <sys/types.h>
42688 #include <sys/socket.h>
42689
42690int
42691main ()
42692{
42693
42694 size_t len;
42695 getsockopt(0, 0, 0, 0, &len);
42696
42697 ;
42698 return 0;
42699}
42700_ACEOF
42701rm -f conftest.$ac_objext
42702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42703 (eval $ac_compile) 2>conftest.er1
42704 ac_status=$?
42705 grep -v '^ *+' conftest.er1 >conftest.err
42706 rm -f conftest.er1
42707 cat conftest.err >&5
42708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42709 (exit $ac_status); } &&
5d7b7554 42710 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
42711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42712 (eval $ac_try) 2>&5
42713 ac_status=$?
42714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42715 (exit $ac_status); }; } &&
42716 { ac_try='test -s conftest.$ac_objext'
42717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42718 (eval $ac_try) 2>&5
42719 ac_status=$?
42720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42721 (exit $ac_status); }; }; then
42722 wx_cv_type_getsockopt5=size_t
42723else
42724 echo "$as_me: failed program was:" >&5
42725sed 's/^/| /' conftest.$ac_ext >&5
42726
42727cat >conftest.$ac_ext <<_ACEOF
42728/* confdefs.h. */
42729_ACEOF
42730cat confdefs.h >>conftest.$ac_ext
42731cat >>conftest.$ac_ext <<_ACEOF
42732/* end confdefs.h. */
42733
42734 #include <sys/types.h>
42735 #include <sys/socket.h>
42736
42737int
42738main ()
42739{
42740
42741 int len;
42742 getsockopt(0, 0, 0, 0, &len);
42743
42744 ;
42745 return 0;
42746}
42747_ACEOF
42748rm -f conftest.$ac_objext
42749if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42750 (eval $ac_compile) 2>conftest.er1
42751 ac_status=$?
42752 grep -v '^ *+' conftest.er1 >conftest.err
42753 rm -f conftest.er1
42754 cat conftest.err >&5
42755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42756 (exit $ac_status); } &&
5d7b7554 42757 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
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); }; } &&
42763 { ac_try='test -s conftest.$ac_objext'
42764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42765 (eval $ac_try) 2>&5
42766 ac_status=$?
42767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42768 (exit $ac_status); }; }; then
42769 wx_cv_type_getsockopt5=int
42770else
42771 echo "$as_me: failed program was:" >&5
42772sed 's/^/| /' conftest.$ac_ext >&5
42773
42774wx_cv_type_getsockopt5=unknown
42775
42776fi
42777rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42778
42779fi
42780rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42781
6459a506 42782 CXXFLAGS="$CXXFLAGS_OLD"
5b674b9d
DE
42783
42784
42785fi
42786rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42787
42788fi
42789echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
42790echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
42791
42792 if test "$wx_cv_type_getsockopt5" = "unknown"; then
42793 wxUSE_SOCKETS=no
42794 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
42795echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
42796 else
42797 cat >>confdefs.h <<_ACEOF
42798#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
42799_ACEOF
42800
42801 fi
42802 fi
42803fi
42804
42805if test "$wxUSE_SOCKETS" = "yes" ; then
42806 cat >>confdefs.h <<\_ACEOF
42807#define wxUSE_SOCKETS 1
42808_ACEOF
42809
42810 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
42811fi
42812
42813if test "$wxUSE_PROTOCOL" = "yes"; then
42814 if test "$wxUSE_SOCKETS" != "yes"; then
42815 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
42816echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
42817 wxUSE_PROTOCOL=no
42818 fi
42819fi
42820
42821if test "$wxUSE_PROTOCOL" = "yes"; then
42822 cat >>confdefs.h <<\_ACEOF
42823#define wxUSE_PROTOCOL 1
42824_ACEOF
42825
42826
42827 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
42828 cat >>confdefs.h <<\_ACEOF
42829#define wxUSE_PROTOCOL_HTTP 1
42830_ACEOF
42831
42832 fi
42833 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
42834 cat >>confdefs.h <<\_ACEOF
42835#define wxUSE_PROTOCOL_FTP 1
42836_ACEOF
42837
42838 fi
42839 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
42840 cat >>confdefs.h <<\_ACEOF
42841#define wxUSE_PROTOCOL_FILE 1
42842_ACEOF
42843
42844 fi
42845else
42846 if test "$wxUSE_FS_INET" = "yes"; then
42847 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
42848echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
42849 wxUSE_FS_INET="no"
42850 fi
42851fi
42852
42853if test "$wxUSE_URL" = "yes"; then
42854 if test "$wxUSE_PROTOCOL" != "yes"; then
42855 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
42856echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
42857 wxUSE_URL=no
42858 fi
42859 if test "$wxUSE_URL" = "yes"; then
42860 cat >>confdefs.h <<\_ACEOF
42861#define wxUSE_URL 1
42862_ACEOF
42863
42864 fi
42865fi
42866
42867if test "$wxUSE_FS_INET" = "yes"; then
42868 cat >>confdefs.h <<\_ACEOF
42869#define wxUSE_FS_INET 1
42870_ACEOF
42871
42872fi
42873
42874
ee45c548
MW
42875if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
42876 wxUSE_JOYSTICK=no
42877
42878 if test "$TOOLKIT" = "MSW"; then
42879 wxUSE_JOYSTICK=yes
42880
42881 elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
42882 if test "$USE_DARWIN" = 1; then
42883 echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
42884echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6
ee45c548
MW
42885 cat >conftest.$ac_ext <<_ACEOF
42886/* confdefs.h. */
42887_ACEOF
42888cat confdefs.h >>conftest.$ac_ext
42889cat >>conftest.$ac_ext <<_ACEOF
42890/* end confdefs.h. */
42891 #include <IOKit/hid/IOHIDLib.h>
42892int
42893main ()
42894{
42895 IOHIDQueueInterface *qi = NULL;
42896 IOHIDCallbackFunction cb = NULL;
42897 qi->setEventCallout(NULL, cb, NULL, NULL);
42898 ;
42899 return 0;
42900}
42901_ACEOF
42902rm -f conftest.$ac_objext
42903if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42904 (eval $ac_compile) 2>conftest.er1
42905 ac_status=$?
42906 grep -v '^ *+' conftest.er1 >conftest.err
42907 rm -f conftest.er1
42908 cat conftest.err >&5
42909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42910 (exit $ac_status); } &&
5d7b7554 42911 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ee45c548
MW
42912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42913 (eval $ac_try) 2>&5
42914 ac_status=$?
42915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42916 (exit $ac_status); }; } &&
42917 { ac_try='test -s conftest.$ac_objext'
42918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42919 (eval $ac_try) 2>&5
42920 ac_status=$?
42921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42922 (exit $ac_status); }; }; then
42923 wxUSE_JOYSTICK=yes
a848cd7e 42924
ee45c548
MW
42925else
42926 echo "$as_me: failed program was:" >&5
42927sed 's/^/| /' conftest.$ac_ext >&5
42928
42929fi
42930rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ee45c548
MW
42931 echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
42932echo "${ECHO_T}$wxUSE_JOYSTICK" >&6
42933 fi
42934
42935 else
a848cd7e
SC
42936
42937for ac_header in linux/joystick.h
42938do
42939as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
42940if eval "test \"\${$as_ac_Header+set}\" = set"; then
42941 echo "$as_me:$LINENO: checking for $ac_header" >&5
42942echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
42943if eval "test \"\${$as_ac_Header+set}\" = set"; then
42944 echo $ECHO_N "(cached) $ECHO_C" >&6
42945fi
42946echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
42947echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
42948else
42949 # Is the header compilable?
42950echo "$as_me:$LINENO: checking $ac_header usability" >&5
42951echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
42952cat >conftest.$ac_ext <<_ACEOF
42953/* confdefs.h. */
42954_ACEOF
42955cat confdefs.h >>conftest.$ac_ext
42956cat >>conftest.$ac_ext <<_ACEOF
42957/* end confdefs.h. */
42958$ac_includes_default
42959#include <$ac_header>
42960_ACEOF
42961rm -f conftest.$ac_objext
42962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42963 (eval $ac_compile) 2>conftest.er1
a848cd7e 42964 ac_status=$?
ac1cb8d3
VS
42965 grep -v '^ *+' conftest.er1 >conftest.err
42966 rm -f conftest.er1
42967 cat conftest.err >&5
a848cd7e
SC
42968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42969 (exit $ac_status); } &&
5d7b7554 42970 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42972 (eval $ac_try) 2>&5
42973 ac_status=$?
42974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42975 (exit $ac_status); }; } &&
42976 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42978 (eval $ac_try) 2>&5
42979 ac_status=$?
42980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42981 (exit $ac_status); }; }; then
42982 ac_header_compiler=yes
42983else
42984 echo "$as_me: failed program was:" >&5
42985sed 's/^/| /' conftest.$ac_ext >&5
42986
42987ac_header_compiler=no
42988fi
ac1cb8d3 42989rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42990echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42991echo "${ECHO_T}$ac_header_compiler" >&6
42992
42993# Is the header present?
42994echo "$as_me:$LINENO: checking $ac_header presence" >&5
42995echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
42996cat >conftest.$ac_ext <<_ACEOF
42997/* confdefs.h. */
42998_ACEOF
42999cat confdefs.h >>conftest.$ac_ext
43000cat >>conftest.$ac_ext <<_ACEOF
43001/* end confdefs.h. */
43002#include <$ac_header>
43003_ACEOF
43004if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43005 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43006 ac_status=$?
43007 grep -v '^ *+' conftest.er1 >conftest.err
43008 rm -f conftest.er1
43009 cat conftest.err >&5
43010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43011 (exit $ac_status); } >/dev/null; then
43012 if test -s conftest.err; then
5d7b7554
VZ
43013 ac_cpp_err=$ac_cxx_preproc_warn_flag
43014 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
43015 else
43016 ac_cpp_err=
43017 fi
43018else
43019 ac_cpp_err=yes
43020fi
43021if test -z "$ac_cpp_err"; then
43022 ac_header_preproc=yes
43023else
43024 echo "$as_me: failed program was:" >&5
43025sed 's/^/| /' conftest.$ac_ext >&5
43026
43027 ac_header_preproc=no
43028fi
43029rm -f conftest.err conftest.$ac_ext
43030echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43031echo "${ECHO_T}$ac_header_preproc" >&6
43032
43033# So? What about this header?
5d7b7554 43034case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 43035 yes:no: )
a848cd7e
SC
43036 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43037echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
43038 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43039echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43040 ac_header_preproc=yes
a848cd7e 43041 ;;
ac1cb8d3 43042 no:yes:* )
a848cd7e
SC
43043 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43044echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
43045 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
43046echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
43047 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43048echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43049 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
43050echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
43051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43052echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
43053 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43054echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
43055 (
43056 cat <<\_ASBOX
ac1cb8d3
VS
43057## ----------------------------------------- ##
43058## Report this to wx-dev@lists.wxwidgets.org ##
43059## ----------------------------------------- ##
a848cd7e
SC
43060_ASBOX
43061 ) |
43062 sed "s/^/$as_me: WARNING: /" >&2
43063 ;;
43064esac
43065echo "$as_me:$LINENO: checking for $ac_header" >&5
43066echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43067if eval "test \"\${$as_ac_Header+set}\" = set"; then
43068 echo $ECHO_N "(cached) $ECHO_C" >&6
43069else
ac1cb8d3 43070 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
43071fi
43072echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43073echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43074
43075fi
43076if test `eval echo '${'$as_ac_Header'}'` = yes; then
43077 cat >>confdefs.h <<_ACEOF
43078#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43079_ACEOF
ee45c548 43080 wxUSE_JOYSTICK=yes
a848cd7e
SC
43081fi
43082
43083done
43084
ee45c548 43085 fi
4cb1d3da 43086
ee45c548
MW
43087 if test "$wxUSE_JOYSTICK" = "yes"; then
43088 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
43089#define wxUSE_JOYSTICK 1
43090_ACEOF
43091
ee45c548
MW
43092 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
43093 else
43094 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
43095echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
a848cd7e
SC
43096 fi
43097fi
43098
43099
43100
43101if test "$wxUSE_FONTMAP" = "yes" ; then
43102 cat >>confdefs.h <<\_ACEOF
43103#define wxUSE_FONTMAP 1
43104_ACEOF
43105
43106fi
43107
43108if test "$wxUSE_UNICODE" = "yes" ; then
43109 cat >>confdefs.h <<\_ACEOF
43110#define wxUSE_UNICODE 1
43111_ACEOF
43112
43113
43114 if test "$USE_WIN32" != 1; then
43115 wxUSE_UNICODE_MSLU=no
43116 fi
43117
43118 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
43119 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
43120echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
43121if test "${ac_cv_lib_unicows_main+set}" = set; then
43122 echo $ECHO_N "(cached) $ECHO_C" >&6
43123else
43124 ac_check_lib_save_LIBS=$LIBS
43125LIBS="-lunicows $LIBS"
43126cat >conftest.$ac_ext <<_ACEOF
43127/* confdefs.h. */
43128_ACEOF
43129cat confdefs.h >>conftest.$ac_ext
43130cat >>conftest.$ac_ext <<_ACEOF
43131/* end confdefs.h. */
43132
43133
43134int
43135main ()
43136{
43137main ();
43138 ;
43139 return 0;
43140}
43141_ACEOF
43142rm -f conftest.$ac_objext conftest$ac_exeext
43143if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43144 (eval $ac_link) 2>conftest.er1
a848cd7e 43145 ac_status=$?
ac1cb8d3
VS
43146 grep -v '^ *+' conftest.er1 >conftest.err
43147 rm -f conftest.er1
43148 cat conftest.err >&5
a848cd7e
SC
43149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43150 (exit $ac_status); } &&
5d7b7554 43151 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43153 (eval $ac_try) 2>&5
43154 ac_status=$?
43155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43156 (exit $ac_status); }; } &&
43157 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43159 (eval $ac_try) 2>&5
43160 ac_status=$?
43161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43162 (exit $ac_status); }; }; then
43163 ac_cv_lib_unicows_main=yes
43164else
43165 echo "$as_me: failed program was:" >&5
43166sed 's/^/| /' conftest.$ac_ext >&5
43167
43168ac_cv_lib_unicows_main=no
43169fi
ac1cb8d3
VS
43170rm -f conftest.err conftest.$ac_objext \
43171 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43172LIBS=$ac_check_lib_save_LIBS
43173fi
43174echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
43175echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
43176if test $ac_cv_lib_unicows_main = yes; then
43177
43178 cat >>confdefs.h <<\_ACEOF
43179#define wxUSE_UNICODE_MSLU 1
43180_ACEOF
43181
43182
43183else
43184
43185 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
43186 Applications will only run on Windows NT/2000/XP!" >&5
43187echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
43188 Applications will only run on Windows NT/2000/XP!" >&2;}
43189 wxUSE_UNICODE_MSLU=no
43190
43191fi
43192
43193 fi
43194fi
43195
43196if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
43197 cat >>confdefs.h <<\_ACEOF
43198#define wxUSE_EXPERIMENTAL_PRINTF 1
43199_ACEOF
43200
43201fi
43202
43203
43204if test "$wxUSE_POSTSCRIPT" = "yes" ; then
43205 cat >>confdefs.h <<\_ACEOF
43206#define wxUSE_POSTSCRIPT 1
43207_ACEOF
43208
43209fi
43210
43211cat >>confdefs.h <<\_ACEOF
43212#define wxUSE_AFM_FOR_POSTSCRIPT 1
43213_ACEOF
43214
43215
43216cat >>confdefs.h <<\_ACEOF
43217#define wxUSE_NORMALIZED_PS_FONTS 1
43218_ACEOF
43219
43220
43221
43222if test "$wxUSE_CONSTRAINTS" = "yes"; then
43223 cat >>confdefs.h <<\_ACEOF
43224#define wxUSE_CONSTRAINTS 1
43225_ACEOF
43226
43227 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
43228fi
43229
8a7b1113
VZ
43230if test "$wxUSE_MDI" = "yes"; then
43231 cat >>confdefs.h <<\_ACEOF
43232#define wxUSE_MDI 1
43233_ACEOF
43234
43235
43236 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
43237 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
43238#define wxUSE_MDI_ARCHITECTURE 1
43239_ACEOF
43240
8a7b1113
VZ
43241 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
43242 fi
a848cd7e
SC
43243fi
43244
43245if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
43246 cat >>confdefs.h <<\_ACEOF
43247#define wxUSE_DOC_VIEW_ARCHITECTURE 1
43248_ACEOF
43249
43250 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
43251 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
43252 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
43253 fi
43254fi
43255
43256if test "$wxUSE_HELP" = "yes"; then
43257 cat >>confdefs.h <<\_ACEOF
43258#define wxUSE_HELP 1
43259_ACEOF
43260
43261 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
43262
43263 if test "$wxUSE_MSW" = 1; then
43264 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
43265 cat >>confdefs.h <<\_ACEOF
43266#define wxUSE_MS_HTML_HELP 1
43267_ACEOF
43268
43269 fi
43270 fi
43271
43272 if test "$wxUSE_WXHTML_HELP" = "yes"; then
43273 if test "$wxUSE_HTML" = "yes"; then
43274 cat >>confdefs.h <<\_ACEOF
43275#define wxUSE_WXHTML_HELP 1
43276_ACEOF
43277
43278 else
43279 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
43280echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
43281 wxUSE_WXHTML_HELP=no
43282 fi
43283 fi
43284fi
43285
43286if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
43287 if test "$wxUSE_CONSTRAINTS" != "yes"; then
43288 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
43289echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
43290 else
43291 cat >>confdefs.h <<\_ACEOF
43292#define wxUSE_PRINTING_ARCHITECTURE 1
43293_ACEOF
43294
43295 fi
43296 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
43297fi
43298
43299if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
43300 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
43301echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
43302 { (exit 1); exit 1; }; }
43303fi
43304
43305
efdf6afe
VZ
43306if test "$wxUSE_METAFILE" = "yes"; then
43307 if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
43308 { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
43309echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
43310 wxUSE_METAFILE=no
43311 fi
43312fi
43313
43314
a848cd7e
SC
43315if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
43316 -o "$wxUSE_CLIPBOARD" = "yes" \
43317 -o "$wxUSE_OLE" = "yes" \
43318 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
43319
43320for ac_header in ole2.h
43321do
43322as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43323if eval "test \"\${$as_ac_Header+set}\" = set"; then
43324 echo "$as_me:$LINENO: checking for $ac_header" >&5
43325echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43326if eval "test \"\${$as_ac_Header+set}\" = set"; then
43327 echo $ECHO_N "(cached) $ECHO_C" >&6
43328fi
43329echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43330echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43331else
43332 # Is the header compilable?
43333echo "$as_me:$LINENO: checking $ac_header usability" >&5
43334echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43335cat >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$ac_includes_default
43342#include <$ac_header>
43343_ACEOF
43344rm -f conftest.$ac_objext
43345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43346 (eval $ac_compile) 2>conftest.er1
a848cd7e 43347 ac_status=$?
ac1cb8d3
VS
43348 grep -v '^ *+' conftest.er1 >conftest.err
43349 rm -f conftest.er1
43350 cat conftest.err >&5
a848cd7e
SC
43351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43352 (exit $ac_status); } &&
5d7b7554 43353 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43355 (eval $ac_try) 2>&5
43356 ac_status=$?
43357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43358 (exit $ac_status); }; } &&
43359 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43361 (eval $ac_try) 2>&5
43362 ac_status=$?
43363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43364 (exit $ac_status); }; }; then
43365 ac_header_compiler=yes
43366else
43367 echo "$as_me: failed program was:" >&5
43368sed 's/^/| /' conftest.$ac_ext >&5
43369
43370ac_header_compiler=no
43371fi
ac1cb8d3 43372rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43373echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43374echo "${ECHO_T}$ac_header_compiler" >&6
43375
43376# Is the header present?
43377echo "$as_me:$LINENO: checking $ac_header presence" >&5
43378echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43379cat >conftest.$ac_ext <<_ACEOF
43380/* confdefs.h. */
43381_ACEOF
43382cat confdefs.h >>conftest.$ac_ext
43383cat >>conftest.$ac_ext <<_ACEOF
43384/* end confdefs.h. */
43385#include <$ac_header>
43386_ACEOF
43387if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43388 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43389 ac_status=$?
43390 grep -v '^ *+' conftest.er1 >conftest.err
43391 rm -f conftest.er1
43392 cat conftest.err >&5
43393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43394 (exit $ac_status); } >/dev/null; then
43395 if test -s conftest.err; then
5d7b7554
VZ
43396 ac_cpp_err=$ac_cxx_preproc_warn_flag
43397 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
43398 else
43399 ac_cpp_err=
43400 fi
43401else
43402 ac_cpp_err=yes
43403fi
43404if test -z "$ac_cpp_err"; then
43405 ac_header_preproc=yes
43406else
43407 echo "$as_me: failed program was:" >&5
43408sed 's/^/| /' conftest.$ac_ext >&5
43409
43410 ac_header_preproc=no
43411fi
43412rm -f conftest.err conftest.$ac_ext
43413echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43414echo "${ECHO_T}$ac_header_preproc" >&6
43415
43416# So? What about this header?
5d7b7554 43417case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 43418 yes:no: )
a848cd7e
SC
43419 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43420echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
43421 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43422echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43423 ac_header_preproc=yes
a848cd7e 43424 ;;
ac1cb8d3 43425 no:yes:* )
a848cd7e
SC
43426 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43427echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
43428 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
43429echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
43430 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43431echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43432 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
43433echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
43434 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43435echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
43436 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43437echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
43438 (
43439 cat <<\_ASBOX
ac1cb8d3
VS
43440## ----------------------------------------- ##
43441## Report this to wx-dev@lists.wxwidgets.org ##
43442## ----------------------------------------- ##
a848cd7e
SC
43443_ASBOX
43444 ) |
43445 sed "s/^/$as_me: WARNING: /" >&2
43446 ;;
43447esac
43448echo "$as_me:$LINENO: checking for $ac_header" >&5
43449echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43450if eval "test \"\${$as_ac_Header+set}\" = set"; then
43451 echo $ECHO_N "(cached) $ECHO_C" >&6
43452else
ac1cb8d3 43453 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
43454fi
43455echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43456echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43457
43458fi
43459if test `eval echo '${'$as_ac_Header'}'` = yes; then
43460 cat >>confdefs.h <<_ACEOF
43461#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43462_ACEOF
43463
43464fi
43465
43466done
43467
43468
43469 if test "$ac_cv_header_ole2_h" = "yes" ; then
43470 if test "$GCC" = yes ; then
a848cd7e
SC
43471 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
43472echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
43473 cat >conftest.$ac_ext <<_ACEOF
43474/* confdefs.h. */
43475_ACEOF
43476cat confdefs.h >>conftest.$ac_ext
43477cat >>conftest.$ac_ext <<_ACEOF
43478/* end confdefs.h. */
43479#include <windows.h>
43480 #include <ole2.h>
43481int
43482main ()
43483{
43484
43485 ;
43486 return 0;
43487}
43488_ACEOF
43489rm -f conftest.$ac_objext
43490if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43491 (eval $ac_compile) 2>conftest.er1
a848cd7e 43492 ac_status=$?
ac1cb8d3
VS
43493 grep -v '^ *+' conftest.er1 >conftest.err
43494 rm -f conftest.er1
43495 cat conftest.err >&5
a848cd7e
SC
43496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43497 (exit $ac_status); } &&
5d7b7554 43498 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43500 (eval $ac_try) 2>&5
43501 ac_status=$?
43502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43503 (exit $ac_status); }; } &&
43504 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43506 (eval $ac_try) 2>&5
43507 ac_status=$?
43508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43509 (exit $ac_status); }; }; then
43510 echo "$as_me:$LINENO: result: no" >&5
43511echo "${ECHO_T}no" >&6
43512else
43513 echo "$as_me: failed program was:" >&5
43514sed 's/^/| /' conftest.$ac_ext >&5
43515
43516echo "$as_me:$LINENO: result: yes" >&5
43517echo "${ECHO_T}yes" >&6
5ff751d6 43518 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
a848cd7e 43519fi
ac1cb8d3 43520rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43521 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
43522 if test "$wxUSE_OLE" = "yes" ; then
43523 cat >>confdefs.h <<\_ACEOF
43524#define wxUSE_OLE 1
43525_ACEOF
43526
0b78747f 43527 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
a848cd7e
SC
43528 fi
43529 fi
43530
43531 if test "$wxUSE_DATAOBJ" = "yes" ; then
43532 cat >>confdefs.h <<\_ACEOF
43533#define wxUSE_DATAOBJ 1
43534_ACEOF
43535
43536 fi
43537 else
43538 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
43539echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
43540
43541 wxUSE_CLIPBOARD=no
43542 wxUSE_DRAG_AND_DROP=no
43543 wxUSE_DATAOBJ=no
43544 wxUSE_OLE=no
43545 fi
43546
43547 if test "$wxUSE_METAFILE" = "yes"; then
43548 cat >>confdefs.h <<\_ACEOF
43549#define wxUSE_METAFILE 1
43550_ACEOF
43551
43552
43553 cat >>confdefs.h <<\_ACEOF
43554#define wxUSE_ENH_METAFILE 1
43555_ACEOF
43556
43557 fi
43558fi
43559
43560if test "$wxUSE_IPC" = "yes"; then
0b78747f 43561 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
77ffb593
JS
43562 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
43563echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
0b78747f 43564 wxUSE_IPC=no
a848cd7e
SC
43565 fi
43566
0b78747f
MW
43567 if test "$wxUSE_IPC" = "yes"; then
43568 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
43569#define wxUSE_IPC 1
43570_ACEOF
43571
0b78747f
MW
43572 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
43573 fi
a848cd7e
SC
43574fi
43575
eb730a0c 43576if test "$wxUSE_DATAOBJ" = "yes"; then
2113bc77
MW
43577 if test "$wxUSE_MGL" = 1; then
43578 { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5
43579echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;}
43580 wxUSE_DATAOBJ=no
43581 else
43582 cat >>confdefs.h <<\_ACEOF
eb730a0c
JS
43583#define wxUSE_DATAOBJ 1
43584_ACEOF
43585
2113bc77 43586 fi
eb730a0c
JS
43587else
43588 { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
43589echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
43590 wxUSE_CLIPBOARD=no
43591 wxUSE_DRAG_AND_DROP=no
43592fi
43593
a848cd7e
SC
43594if test "$wxUSE_CLIPBOARD" = "yes"; then
43595 if test "$wxUSE_MGL" = 1; then
43596 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
43597echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
43598 wxUSE_CLIPBOARD=no
43599 fi
43600
43601 if test "$wxUSE_CLIPBOARD" = "yes"; then
43602 cat >>confdefs.h <<\_ACEOF
43603#define wxUSE_CLIPBOARD 1
43604_ACEOF
43605
a848cd7e
SC
43606 fi
43607fi
43608
43609if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
43610 if test "$wxUSE_GTK" = 1; then
43611 if test "$WXGTK12" != 1; then
43612 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
43613echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
43614 wxUSE_DRAG_AND_DROP=no
43615 fi
43616 fi
43617
43618 if test "$wxUSE_MOTIF" = 1; then
43619 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
43620echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
43621 wxUSE_DRAG_AND_DROP=no
43622 fi
43623
43624 if test "$wxUSE_X11" = 1; then
43625 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
43626echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
43627 wxUSE_DRAG_AND_DROP=no
43628 fi
43629
43630 if test "$wxUSE_MGL" = 1; then
43631 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
43632echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
43633 wxUSE_DRAG_AND_DROP=no
43634 fi
43635
43636 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
43637 cat >>confdefs.h <<\_ACEOF
43638#define wxUSE_DRAG_AND_DROP 1
43639_ACEOF
43640
43641 fi
43642
43643fi
43644
43645if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
43646 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
43647fi
43648
43649if test "$wxUSE_SPLINES" = "yes" ; then
43650 cat >>confdefs.h <<\_ACEOF
43651#define wxUSE_SPLINES 1
43652_ACEOF
43653
43654fi
43655
fbe2ca43
SN
43656if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
43657 cat >>confdefs.h <<\_ACEOF
43658#define wxUSE_MOUSEWHEEL 1
43659_ACEOF
43660
43661fi
43662
a848cd7e
SC
43663
43664USES_CONTROLS=0
43665if test "$wxUSE_CONTROLS" = "yes"; then
43666 USES_CONTROLS=1
43667fi
43668
43669if test "$wxUSE_ACCEL" = "yes"; then
43670 cat >>confdefs.h <<\_ACEOF
43671#define wxUSE_ACCEL 1
43672_ACEOF
43673
43674 USES_CONTROLS=1
43675fi
43676
43677if test "$wxUSE_BUTTON" = "yes"; then
43678 cat >>confdefs.h <<\_ACEOF
43679#define wxUSE_BUTTON 1
43680_ACEOF
43681
43682 USES_CONTROLS=1
43683fi
43684
43685if test "$wxUSE_BMPBUTTON" = "yes"; then
43686 cat >>confdefs.h <<\_ACEOF
43687#define wxUSE_BMPBUTTON 1
43688_ACEOF
43689
43690 USES_CONTROLS=1
43691fi
43692
43693if test "$wxUSE_CALCTRL" = "yes"; then
43694 cat >>confdefs.h <<\_ACEOF
43695#define wxUSE_CALENDARCTRL 1
43696_ACEOF
43697
43698 USES_CONTROLS=1
43699 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
43700fi
43701
43702if test "$wxUSE_CARET" = "yes"; then
43703 cat >>confdefs.h <<\_ACEOF
43704#define wxUSE_CARET 1
43705_ACEOF
43706
43707 USES_CONTROLS=1
43708 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
43709fi
43710
43711if test "$wxUSE_COMBOBOX" = "yes"; then
43712 cat >>confdefs.h <<\_ACEOF
43713#define wxUSE_COMBOBOX 1
43714_ACEOF
43715
43716 USES_CONTROLS=1
43717fi
43718
a57d600f 43719if test "$wxUSE_COMBOCTRL" = "yes"; then
642bcba9 43720 cat >>confdefs.h <<\_ACEOF
a57d600f 43721#define wxUSE_COMBOCTRL 1
642bcba9
VZ
43722_ACEOF
43723
43724 USES_CONTROLS=1
43725fi
43726
a848cd7e
SC
43727if test "$wxUSE_CHOICE" = "yes"; then
43728 cat >>confdefs.h <<\_ACEOF
43729#define wxUSE_CHOICE 1
43730_ACEOF
43731
43732 USES_CONTROLS=1
43733fi
43734
92bbdbcd
WS
43735if test "$wxUSE_CHOICEBOOK" = "yes"; then
43736 cat >>confdefs.h <<\_ACEOF
43737#define wxUSE_CHOICEBOOK 1
43738_ACEOF
43739
43740 USES_CONTROLS=1
43741fi
43742
a848cd7e
SC
43743if test "$wxUSE_CHECKBOX" = "yes"; then
43744 cat >>confdefs.h <<\_ACEOF
43745#define wxUSE_CHECKBOX 1
43746_ACEOF
43747
43748 USES_CONTROLS=1
43749fi
43750
43751if test "$wxUSE_CHECKLST" = "yes"; then
43752 cat >>confdefs.h <<\_ACEOF
43753#define wxUSE_CHECKLISTBOX 1
43754_ACEOF
43755
43756 USES_CONTROLS=1
43757 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
43758fi
43759
da98e9be
VZ
43760if test "$wxUSE_DATEPICKCTRL" = "yes"; then
43761 cat >>confdefs.h <<\_ACEOF
43762#define wxUSE_DATEPICKCTRL 1
43763_ACEOF
43764
43765 USES_CONTROLS=1
43766fi
43767
a848cd7e
SC
43768if test "$wxUSE_DISPLAY" = "yes"; then
43769 cat >>confdefs.h <<\_ACEOF
43770#define wxUSE_DISPLAY 1
43771_ACEOF
43772
0b78747f 43773 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
a848cd7e
SC
43774fi
43775
43776if test "$wxUSE_GAUGE" = "yes"; then
43777 cat >>confdefs.h <<\_ACEOF
43778#define wxUSE_GAUGE 1
43779_ACEOF
43780
43781 USES_CONTROLS=1
43782fi
43783
43784if test "$wxUSE_GRID" = "yes"; then
43785 cat >>confdefs.h <<\_ACEOF
43786#define wxUSE_GRID 1
43787_ACEOF
43788
43789 USES_CONTROLS=1
43790 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
43791fi
43792
20e34ecc
RR
43793if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
43794 cat >>confdefs.h <<\_ACEOF
43795#define wxUSE_DATAVIEWCTRL 1
43796_ACEOF
43797
43798 USES_CONTROLS=1
43799 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
43800fi
43801
a848cd7e
SC
43802if test "$wxUSE_IMAGLIST" = "yes"; then
43803 cat >>confdefs.h <<\_ACEOF
43804#define wxUSE_IMAGLIST 1
43805_ACEOF
43806
43807fi
43808
43809if test "$wxUSE_LISTBOOK" = "yes"; then
43810 cat >>confdefs.h <<\_ACEOF
43811#define wxUSE_LISTBOOK 1
43812_ACEOF
43813
43814 USES_CONTROLS=1
43815fi
43816
43817if test "$wxUSE_LISTBOX" = "yes"; then
43818 cat >>confdefs.h <<\_ACEOF
43819#define wxUSE_LISTBOX 1
43820_ACEOF
43821
43822 USES_CONTROLS=1
0b78747f 43823 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
a848cd7e
SC
43824fi
43825
43826if test "$wxUSE_LISTCTRL" = "yes"; then
43827 if test "$wxUSE_IMAGLIST" = "yes"; then
43828 cat >>confdefs.h <<\_ACEOF
43829#define wxUSE_LISTCTRL 1
43830_ACEOF
43831
43832 USES_CONTROLS=1
43833 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
43834 else
43835 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
43836echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
43837 fi
43838fi
43839
43840if test "$wxUSE_NOTEBOOK" = "yes"; then
43841 cat >>confdefs.h <<\_ACEOF
43842#define wxUSE_NOTEBOOK 1
43843_ACEOF
43844
43845 USES_CONTROLS=1
43846 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
43847fi
43848
a57d600f 43849if test "$wxUSE_ODCOMBOBOX" = "yes"; then
642bcba9 43850 cat >>confdefs.h <<\_ACEOF
a57d600f 43851#define wxUSE_ODCOMBOBOX 1
642bcba9
VZ
43852_ACEOF
43853
43854 USES_CONTROLS=1
43855 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
43856fi
43857
a848cd7e
SC
43858
43859if test "$wxUSE_RADIOBOX" = "yes"; then
43860 cat >>confdefs.h <<\_ACEOF
43861#define wxUSE_RADIOBOX 1
43862_ACEOF
43863
43864 USES_CONTROLS=1
43865fi
43866
43867if test "$wxUSE_RADIOBTN" = "yes"; then
43868 cat >>confdefs.h <<\_ACEOF
43869#define wxUSE_RADIOBTN 1
43870_ACEOF
43871
43872 USES_CONTROLS=1
43873fi
43874
43875if test "$wxUSE_SASH" = "yes"; then
43876 cat >>confdefs.h <<\_ACEOF
43877#define wxUSE_SASH 1
43878_ACEOF
43879
43880 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
43881fi
43882
43883if test "$wxUSE_SCROLLBAR" = "yes"; then
43884 cat >>confdefs.h <<\_ACEOF
43885#define wxUSE_SCROLLBAR 1
43886_ACEOF
43887
43888 USES_CONTROLS=1
43889 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
43890fi
43891
43892if test "$wxUSE_SLIDER" = "yes"; then
43893 cat >>confdefs.h <<\_ACEOF
43894#define wxUSE_SLIDER 1
43895_ACEOF
43896
43897 USES_CONTROLS=1
43898fi
43899
43900if test "$wxUSE_SPINBTN" = "yes"; then
43901 cat >>confdefs.h <<\_ACEOF
43902#define wxUSE_SPINBTN 1
43903_ACEOF
43904
43905 USES_CONTROLS=1
43906fi
43907
43908if test "$wxUSE_SPINCTRL" = "yes"; then
43909 cat >>confdefs.h <<\_ACEOF
43910#define wxUSE_SPINCTRL 1
43911_ACEOF
43912
43913 USES_CONTROLS=1
43914fi
43915
43916if test "$wxUSE_SPLITTER" = "yes"; then
43917 cat >>confdefs.h <<\_ACEOF
43918#define wxUSE_SPLITTER 1
43919_ACEOF
43920
43921 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
43922fi
43923
43924if test "$wxUSE_STATBMP" = "yes"; then
43925 cat >>confdefs.h <<\_ACEOF
43926#define wxUSE_STATBMP 1
43927_ACEOF
43928
43929 USES_CONTROLS=1
43930fi
43931
43932if test "$wxUSE_STATBOX" = "yes"; then
43933 cat >>confdefs.h <<\_ACEOF
43934#define wxUSE_STATBOX 1
43935_ACEOF
43936
43937 USES_CONTROLS=1
43938fi
43939
43940if test "$wxUSE_STATTEXT" = "yes"; then
43941 cat >>confdefs.h <<\_ACEOF
43942#define wxUSE_STATTEXT 1
43943_ACEOF
43944
43945 USES_CONTROLS=1
43946fi
43947
43948if test "$wxUSE_STATLINE" = "yes"; then
43949 cat >>confdefs.h <<\_ACEOF
43950#define wxUSE_STATLINE 1
43951_ACEOF
43952
43953 USES_CONTROLS=1
43954fi
43955
43956if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
43957 cat >>confdefs.h <<\_ACEOF
43958#define wxUSE_NATIVE_STATUSBAR 1
43959_ACEOF
43960
a848cd7e
SC
43961 cat >>confdefs.h <<\_ACEOF
43962#define wxUSE_STATUSBAR 1
43963_ACEOF
43964
43965 USES_CONTROLS=1
43966
43967 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
43968fi
43969
f10e38c4 43970if test "$wxUSE_TAB_DIALOG" = "yes"; then
a848cd7e
SC
43971 cat >>confdefs.h <<\_ACEOF
43972#define wxUSE_TAB_DIALOG 1
43973_ACEOF
43974
a848cd7e
SC
43975fi
43976
43977if test "$wxUSE_TEXTCTRL" = "yes"; then
43978 cat >>confdefs.h <<\_ACEOF
43979#define wxUSE_TEXTCTRL 1
43980_ACEOF
43981
43982 USES_CONTROLS=1
43983 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
43984fi
43985
43986if test "$wxUSE_TOGGLEBTN" = "yes"; then
43987 if test "$wxUSE_COCOA" = 1 ; then
43988 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
43989echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
43990 wxUSE_TOGGLEBTN=no
43991 fi
43992 if test "$wxUSE_UNIVERSAL" = "yes"; then
43993 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
43994echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
43995 wxUSE_TOGGLEBTN=no
43996 fi
43997
43998 if test "$wxUSE_TOGGLEBTN" = "yes"; then
43999 cat >>confdefs.h <<\_ACEOF
44000#define wxUSE_TOGGLEBTN 1
44001_ACEOF
44002
44003 USES_CONTROLS=1
44004 fi
44005fi
44006
44007if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
44008 cat >>confdefs.h <<\_ACEOF
44009#define wxUSE_TOOLBAR_SIMPLE 1
44010_ACEOF
44011
44012 wxUSE_TOOLBAR="yes"
44013 USES_CONTROLS=1
44014fi
44015
44016if test "$wxUSE_TOOLBAR" = "yes"; then
44017 cat >>confdefs.h <<\_ACEOF
44018#define wxUSE_TOOLBAR 1
44019_ACEOF
44020
44021 USES_CONTROLS=1
44022
44023 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
44024 wxUSE_TOOLBAR_NATIVE="yes"
44025 fi
44026
44027 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
44028 cat >>confdefs.h <<\_ACEOF
44029#define wxUSE_TOOLBAR_NATIVE 1
44030_ACEOF
44031
44032 USES_CONTROLS=1
44033 fi
44034
44035 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
44036fi
44037
44038if test "$wxUSE_TOOLTIPS" = "yes"; then
44039 if test "$wxUSE_MOTIF" = 1; then
44040 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
44041echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
44042 else
44043 if test "$wxUSE_UNIVERSAL" = "yes"; then
44044 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
44045echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
44046 else
44047 cat >>confdefs.h <<\_ACEOF
44048#define wxUSE_TOOLTIPS 1
44049_ACEOF
44050
44051 fi
44052 fi
44053fi
44054
0093c2fc
VZ
44055if test "$wxUSE_TREEBOOK" = "yes"; then
44056 cat >>confdefs.h <<\_ACEOF
44057#define wxUSE_TREEBOOK 1
44058_ACEOF
44059
44060 USES_CONTROLS=1
44061fi
44062
5ec3bc43
JS
44063if test "$wxUSE_TOOLBOOK" = "yes"; then
44064 cat >>confdefs.h <<\_ACEOF
44065#define wxUSE_TOOLBOOK 1
44066_ACEOF
44067
44068 USES_CONTROLS=1
44069fi
44070
a848cd7e
SC
44071if test "$wxUSE_TREECTRL" = "yes"; then
44072 if test "$wxUSE_IMAGLIST" = "yes"; then
44073 cat >>confdefs.h <<\_ACEOF
44074#define wxUSE_TREECTRL 1
44075_ACEOF
44076
44077 USES_CONTROLS=1
44078 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
44079 else
44080 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
44081echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
44082 fi
44083fi
44084
44085if test "$wxUSE_POPUPWIN" = "yes"; then
44086 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
44087 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
44088echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
44089 else
44090 if test "$wxUSE_PM" = 1; then
44091 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
44092echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
44093 else
44094 cat >>confdefs.h <<\_ACEOF
44095#define wxUSE_POPUPWIN 1
44096_ACEOF
44097
0b78747f 44098 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
a848cd7e
SC
44099
44100 USES_CONTROLS=1
44101 fi
44102 fi
44103fi
44104
0dcd06dd 44105if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
44106 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
44107 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
44108echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
44109 else
44110 cat >>confdefs.h <<\_ACEOF
44111#define wxUSE_DIALUP_MANAGER 1
44112_ACEOF
44113
44114 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
44115 fi
44116fi
44117
a848cd7e
SC
44118if test "$wxUSE_TIPWINDOW" = "yes"; then
44119 if test "$wxUSE_PM" = 1; then
44120 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
44121echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
44122 else
44123 cat >>confdefs.h <<\_ACEOF
44124#define wxUSE_TIPWINDOW 1
44125_ACEOF
44126
44127 fi
44128fi
44129
44130if test "$USES_CONTROLS" = 1; then
44131 cat >>confdefs.h <<\_ACEOF
44132#define wxUSE_CONTROLS 1
44133_ACEOF
44134
44135fi
44136
44137
44138if test "$wxUSE_ACCESSIBILITY" = "yes"; then
44139 cat >>confdefs.h <<\_ACEOF
44140#define wxUSE_ACCESSIBILITY 1
44141_ACEOF
44142
44143 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
44144fi
44145
38b4a946
VZ
44146if test "$wxUSE_DC_CACHEING" = "yes"; then
44147 cat >>confdefs.h <<\_ACEOF
44148#define wxUSE_DC_CACHEING 1
44149_ACEOF
44150
44151fi
44152
a848cd7e
SC
44153if test "$wxUSE_DRAGIMAGE" = "yes"; then
44154 cat >>confdefs.h <<\_ACEOF
44155#define wxUSE_DRAGIMAGE 1
44156_ACEOF
44157
44158 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
44159fi
44160
44161if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
44162 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
44163 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
44164echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
44165 else
44166 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
44167#define wxUSE_EXCEPTIONS 1
44168_ACEOF
44169
07bea8f0
VS
44170 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
44171 fi
a848cd7e
SC
44172fi
44173
44174USE_HTML=0
44175if test "$wxUSE_HTML" = "yes"; then
44176 cat >>confdefs.h <<\_ACEOF
44177#define wxUSE_HTML 1
44178_ACEOF
44179
44180 USE_HTML=1
44181 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
44182 if test "$wxUSE_MAC" = 1; then
44183 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
44184 fi
a848cd7e 44185fi
646b6ec1 44186if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 44187 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0 44188 old_CPPFLAGS="$CPPFLAGS"
c92ad099 44189 CPPFLAGS="-x objective-c++ $CPPFLAGS"
07bea8f0
VS
44190 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
44191echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
44192if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
44193 echo $ECHO_N "(cached) $ECHO_C" >&6
44194else
44195 cat >conftest.$ac_ext <<_ACEOF
44196/* confdefs.h. */
44197_ACEOF
44198cat confdefs.h >>conftest.$ac_ext
44199cat >>conftest.$ac_ext <<_ACEOF
44200/* end confdefs.h. */
44201#include <Carbon/Carbon.h>
44202
44203#include <WebKit/HIWebView.h>
44204_ACEOF
44205rm -f conftest.$ac_objext
44206if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44207 (eval $ac_compile) 2>conftest.er1
44208 ac_status=$?
44209 grep -v '^ *+' conftest.er1 >conftest.err
44210 rm -f conftest.er1
44211 cat conftest.err >&5
44212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44213 (exit $ac_status); } &&
5d7b7554 44214 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
07bea8f0
VS
44215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44216 (eval $ac_try) 2>&5
44217 ac_status=$?
44218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44219 (exit $ac_status); }; } &&
44220 { ac_try='test -s conftest.$ac_objext'
44221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44222 (eval $ac_try) 2>&5
44223 ac_status=$?
44224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44225 (exit $ac_status); }; }; then
44226 ac_cv_header_WebKit_HIWebView_h=yes
44227else
44228 echo "$as_me: failed program was:" >&5
44229sed 's/^/| /' conftest.$ac_ext >&5
44230
44231ac_cv_header_WebKit_HIWebView_h=no
44232fi
44233rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44234fi
44235echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
44236echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
44237if test $ac_cv_header_WebKit_HIWebView_h = yes; then
44238
44239 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
44240#define wxUSE_WEBKIT 1
44241_ACEOF
44242
07bea8f0
VS
44243 WEBKIT_LINK="-framework WebKit"
44244
44245else
44246
44247 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
44248echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
44249 wxUSE_WEBKIT=no
44250
646b6ec1
VS
44251fi
44252
07bea8f0
VS
44253
44254 CPPFLAGS="$old_CPPFLAGS"
44255 elif test "$wxUSE_COCOA" = 1; then
44256 cat >>confdefs.h <<\_ACEOF
44257#define wxUSE_WEBKIT 1
44258_ACEOF
44259
44260 else
44261 wxUSE_WEBKIT=no
44262 fi
44263fi
44264
9a8f0513
VS
44265USE_XRC=0
44266if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
44267 if test "$wxUSE_XML" != "yes"; then
44268 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
44269echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
44270 wxUSE_XRC=no
44271 else
44272 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
44273#define wxUSE_XRC 1
44274_ACEOF
44275
d2ebf0b7
VS
44276 USE_XRC=1
44277 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
44278 fi
9a8f0513 44279fi
07bea8f0 44280
a848cd7e
SC
44281if test "$wxUSE_MENUS" = "yes"; then
44282 cat >>confdefs.h <<\_ACEOF
44283#define wxUSE_MENUS 1
44284_ACEOF
44285
44286 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
44287fi
44288
44289if test "$wxUSE_METAFILE" = "yes"; then
44290 cat >>confdefs.h <<\_ACEOF
44291#define wxUSE_METAFILE 1
44292_ACEOF
44293
44294fi
44295
44296if test "$wxUSE_MIMETYPE" = "yes"; then
44297 cat >>confdefs.h <<\_ACEOF
44298#define wxUSE_MIMETYPE 1
44299_ACEOF
44300
44301fi
44302
44303if test "$wxUSE_MINIFRAME" = "yes"; then
44304 cat >>confdefs.h <<\_ACEOF
44305#define wxUSE_MINIFRAME 1
44306_ACEOF
44307
44308 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
44309fi
44310
44311if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
44312 cat >>confdefs.h <<\_ACEOF
44313#define wxUSE_SYSTEM_OPTIONS 1
44314_ACEOF
44315
44316 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 44317 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
44318 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
44319 fi
44320fi
44321
44322
44323if test "$wxUSE_VALIDATORS" = "yes"; then
44324 cat >>confdefs.h <<\_ACEOF
44325#define wxUSE_VALIDATORS 1
44326_ACEOF
44327
44328 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
44329fi
44330
44331if test "$wxUSE_PALETTE" = "yes" ; then
44332 cat >>confdefs.h <<\_ACEOF
44333#define wxUSE_PALETTE 1
44334_ACEOF
44335
44336fi
44337
44338if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
44339 LIBS=" -lunicows $LIBS"
44340fi
44341
91dea314
MW
44342USE_RICHTEXT=0
44343if test "$wxUSE_RICHTEXT" = "yes"; then
44344 cat >>confdefs.h <<\_ACEOF
44345#define wxUSE_RICHTEXT 1
44346_ACEOF
44347
44348 USE_RICHTEXT=1
44349 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
44350fi
44351
a848cd7e
SC
44352
44353if test "$wxUSE_IMAGE" = "yes" ; then
44354 cat >>confdefs.h <<\_ACEOF
44355#define wxUSE_IMAGE 1
44356_ACEOF
44357
44358
44359 if test "$wxUSE_GIF" = "yes" ; then
44360 cat >>confdefs.h <<\_ACEOF
44361#define wxUSE_GIF 1
44362_ACEOF
44363
44364 fi
44365
44366 if test "$wxUSE_PCX" = "yes" ; then
44367 cat >>confdefs.h <<\_ACEOF
44368#define wxUSE_PCX 1
44369_ACEOF
44370
44371 fi
44372
44373 if test "$wxUSE_IFF" = "yes" ; then
44374 cat >>confdefs.h <<\_ACEOF
44375#define wxUSE_IFF 1
44376_ACEOF
44377
44378 fi
44379
44380 if test "$wxUSE_PNM" = "yes" ; then
44381 cat >>confdefs.h <<\_ACEOF
44382#define wxUSE_PNM 1
44383_ACEOF
44384
44385 fi
44386
44387 if test "$wxUSE_XPM" = "yes" ; then
44388 cat >>confdefs.h <<\_ACEOF
44389#define wxUSE_XPM 1
44390_ACEOF
44391
44392 fi
44393
44394 if test "$wxUSE_ICO_CUR" = "yes" ; then
44395 cat >>confdefs.h <<\_ACEOF
44396#define wxUSE_ICO_CUR 1
44397_ACEOF
44398
44399 fi
44400fi
44401
44402
44403if test "$wxUSE_CHOICEDLG" = "yes"; then
44404 cat >>confdefs.h <<\_ACEOF
44405#define wxUSE_CHOICEDLG 1
44406_ACEOF
44407
44408fi
44409
44410if test "$wxUSE_COLOURDLG" = "yes"; then
44411 cat >>confdefs.h <<\_ACEOF
44412#define wxUSE_COLOURDLG 1
44413_ACEOF
44414
44415fi
44416
44417if test "$wxUSE_FILEDLG" = "yes"; then
44418 cat >>confdefs.h <<\_ACEOF
44419#define wxUSE_FILEDLG 1
44420_ACEOF
44421
44422fi
44423
44424if test "$wxUSE_FINDREPLDLG" = "yes"; then
44425 cat >>confdefs.h <<\_ACEOF
44426#define wxUSE_FINDREPLDLG 1
44427_ACEOF
44428
44429fi
44430
44431if test "$wxUSE_FONTDLG" = "yes"; then
44432 cat >>confdefs.h <<\_ACEOF
44433#define wxUSE_FONTDLG 1
44434_ACEOF
44435
44436fi
44437
44438if test "$wxUSE_DIRDLG" = "yes"; then
44439 if test "$wxUSE_TREECTRL" != "yes"; then
44440 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
44441echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
44442 else
44443 cat >>confdefs.h <<\_ACEOF
44444#define wxUSE_DIRDLG 1
44445_ACEOF
44446
44447 fi
44448fi
44449
44450if test "$wxUSE_MSGDLG" = "yes"; then
44451 cat >>confdefs.h <<\_ACEOF
44452#define wxUSE_MSGDLG 1
44453_ACEOF
44454
44455fi
44456
44457if test "$wxUSE_NUMBERDLG" = "yes"; then
44458 cat >>confdefs.h <<\_ACEOF
44459#define wxUSE_NUMBERDLG 1
44460_ACEOF
44461
44462fi
44463
44464if test "$wxUSE_PROGRESSDLG" = "yes"; then
44465 if test "$wxUSE_CONSTRAINTS" != "yes"; then
44466 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
44467echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
44468 else
44469 cat >>confdefs.h <<\_ACEOF
44470#define wxUSE_PROGRESSDLG 1
44471_ACEOF
44472
44473 fi
44474fi
44475
44476if test "$wxUSE_SPLASH" = "yes"; then
44477 cat >>confdefs.h <<\_ACEOF
44478#define wxUSE_SPLASH 1
44479_ACEOF
44480
2057db16 44481 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
44482fi
44483
44484if test "$wxUSE_STARTUP_TIPS" = "yes"; then
44485 if test "$wxUSE_CONSTRAINTS" != "yes"; then
44486 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
44487echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
44488 else
44489 cat >>confdefs.h <<\_ACEOF
44490#define wxUSE_STARTUP_TIPS 1
44491_ACEOF
44492
44493 fi
44494fi
44495
44496if test "$wxUSE_TEXTDLG" = "yes"; then
44497 cat >>confdefs.h <<\_ACEOF
44498#define wxUSE_TEXTDLG 1
44499_ACEOF
44500
44501fi
44502
44503if test "$wxUSE_WIZARDDLG" = "yes"; then
44504 cat >>confdefs.h <<\_ACEOF
44505#define wxUSE_WIZARDDLG 1
44506_ACEOF
44507
44508 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
44509fi
44510
44511
f10e38c4
VZ
44512USE_MEDIA=0
44513
ce756cb0 44514if test "$wxUSE_MEDIACTRL" = "yes"; then
ce756cb0
RN
44515 if test "$wxUSE_GTK" = 1; then
44516 wxUSE_GSTREAMER="yes"
44517
f10e38c4
VZ
44518 GST_VERSION_MAJOR=0
44519 GST_VERSION_MINOR=10
44520 GST_VERSION_RELEASE=0
44521 GSTREAMER_REQ=$GST_VERSION_MAJOR.$GST_VERSION_MINOR.$GST_VERSION_RELEASE
44522 GST_MAJORMINOR=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
44523
44524 if test "$wxUSE_GSTREAMER8" = "no"; then
ce756cb0 44525
dae87f93 44526 succeeded=no
ce756cb0 44527
dae87f93
RN
44528 if test -z "$PKG_CONFIG"; then
44529 # Extract the first word of "pkg-config", so it can be a program name with args.
44530set dummy pkg-config; ac_word=$2
44531echo "$as_me:$LINENO: checking for $ac_word" >&5
44532echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44533if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
44534 echo $ECHO_N "(cached) $ECHO_C" >&6
44535else
44536 case $PKG_CONFIG in
44537 [\\/]* | ?:[\\/]*)
44538 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
44539 ;;
44540 *)
44541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44542for as_dir in $PATH
44543do
44544 IFS=$as_save_IFS
44545 test -z "$as_dir" && as_dir=.
44546 for ac_exec_ext in '' $ac_executable_extensions; do
44547 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44548 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
44549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44550 break 2
44551 fi
44552done
44553done
44554
44555 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
44556 ;;
44557esac
44558fi
44559PKG_CONFIG=$ac_cv_path_PKG_CONFIG
44560
44561if test -n "$PKG_CONFIG"; then
44562 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
44563echo "${ECHO_T}$PKG_CONFIG" >&6
44564else
44565 echo "$as_me:$LINENO: result: no" >&5
44566echo "${ECHO_T}no" >&6
44567fi
44568
44569 fi
44570
44571 if test "$PKG_CONFIG" = "no" ; then
44572 echo "*** The pkg-config script could not be found. Make sure it is"
44573 echo "*** in your path, or set the PKG_CONFIG environment variable"
44574 echo "*** to the full path to pkg-config."
44575 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
44576 else
44577 PKG_CONFIG_MIN_VERSION=0.9.0
44578 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
f10e38c4
VZ
44579 echo "$as_me:$LINENO: checking for gstreamer-$GST_MAJORMINOR
44580 gstreamer-plugins-base-$GST_MAJORMINOR
44581 gconf-2.0" >&5
44582echo $ECHO_N "checking for gstreamer-$GST_MAJORMINOR
44583 gstreamer-plugins-base-$GST_MAJORMINOR
44584 gconf-2.0... $ECHO_C" >&6
44585
44586 if $PKG_CONFIG --exists "gstreamer-$GST_MAJORMINOR
44587 gstreamer-plugins-base-$GST_MAJORMINOR
44588 gconf-2.0" ; then
dae87f93 44589 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 44590echo "${ECHO_T}yes" >&6
dae87f93 44591 succeeded=yes
ce756cb0 44592
f10e38c4
VZ
44593 echo "$as_me:$LINENO: checking GST_CFLAGS" >&5
44594echo $ECHO_N "checking GST_CFLAGS... $ECHO_C" >&6
44595 GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_MAJORMINOR
44596 gstreamer-plugins-base-$GST_MAJORMINOR
44597 gconf-2.0"`
44598 echo "$as_me:$LINENO: result: $GST_CFLAGS" >&5
44599echo "${ECHO_T}$GST_CFLAGS" >&6
44600
44601 echo "$as_me:$LINENO: checking GST_LIBS" >&5
44602echo $ECHO_N "checking GST_LIBS... $ECHO_C" >&6
44603 GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_MAJORMINOR
44604 gstreamer-plugins-base-$GST_MAJORMINOR
44605 gconf-2.0"`
44606 echo "$as_me:$LINENO: result: $GST_LIBS" >&5
44607echo "${ECHO_T}$GST_LIBS" >&6
dae87f93 44608 else
f10e38c4
VZ
44609 GST_CFLAGS=""
44610 GST_LIBS=""
dae87f93
RN
44611 ## If we have a custom action on failure, don't print errors, but
44612 ## do set a variable so people can do so.
f10e38c4
VZ
44613 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_MAJORMINOR
44614 gstreamer-plugins-base-$GST_MAJORMINOR
44615 gconf-2.0"`
ce756cb0 44616
dae87f93
RN
44617 fi
44618
44619
44620
44621 else
44622 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
44623 echo "*** See http://www.freedesktop.org/software/pkgconfig"
44624 fi
44625 fi
44626
44627 if test $succeeded = yes; then
44628
f10e38c4
VZ
44629 CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
44630 LIBS="$LIBS $GST_LIBS -lgstinterfaces-$GST_MAJORMINOR"
ce756cb0 44631
ce756cb0 44632 else
dae87f93 44633
f10e38c4 44634 GST_VERSION_MINOR=8
dae87f93
RN
44635
44636 fi
44637
f10e38c4
VZ
44638 else
44639 GST_VERSION_MINOR=8
44640 fi
dae87f93 44641
f10e38c4
VZ
44642 GSTREAMER_REQ=$GST_VERSION_MAJOR.$GST_VERSION_MINOR.$GST_VERSION_RELEASE
44643 GST_MAJORMINOR=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
dae87f93 44644
f10e38c4 44645 if test x$GST_VERSION_MINOR = x8; then
dae87f93 44646
f10e38c4 44647 succeeded=no
dae87f93 44648
f10e38c4
VZ
44649 if test -z "$PKG_CONFIG"; then
44650 # Extract the first word of "pkg-config", so it can be a program name with args.
44651set dummy pkg-config; ac_word=$2
dae87f93
RN
44652echo "$as_me:$LINENO: checking for $ac_word" >&5
44653echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
f10e38c4 44654if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
dae87f93
RN
44655 echo $ECHO_N "(cached) $ECHO_C" >&6
44656else
f10e38c4
VZ
44657 case $PKG_CONFIG in
44658 [\\/]* | ?:[\\/]*)
44659 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
44660 ;;
44661 *)
44662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
dae87f93
RN
44663for as_dir in $PATH
44664do
44665 IFS=$as_save_IFS
44666 test -z "$as_dir" && as_dir=.
44667 for ac_exec_ext in '' $ac_executable_extensions; do
44668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
f10e38c4 44669 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
dae87f93
RN
44670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44671 break 2
ce756cb0 44672 fi
dae87f93
RN
44673done
44674done
44675
f10e38c4
VZ
44676 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
44677 ;;
44678esac
dae87f93 44679fi
f10e38c4
VZ
44680PKG_CONFIG=$ac_cv_path_PKG_CONFIG
44681
44682if test -n "$PKG_CONFIG"; then
44683 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
44684echo "${ECHO_T}$PKG_CONFIG" >&6
dae87f93
RN
44685else
44686 echo "$as_me:$LINENO: result: no" >&5
44687echo "${ECHO_T}no" >&6
44688fi
44689
f10e38c4 44690 fi
ce756cb0 44691
f10e38c4
VZ
44692 if test "$PKG_CONFIG" = "no" ; then
44693 echo "*** The pkg-config script could not be found. Make sure it is"
44694 echo "*** in your path, or set the PKG_CONFIG environment variable"
44695 echo "*** to the full path to pkg-config."
44696 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
44697 else
44698 PKG_CONFIG_MIN_VERSION=0.9.0
44699 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
44700 echo "$as_me:$LINENO: checking for gstreamer-$GST_MAJORMINOR
44701 gstreamer-interfaces-$GST_MAJORMINOR
44702 gstreamer-gconf-$GST_MAJORMINOR" >&5
44703echo $ECHO_N "checking for gstreamer-$GST_MAJORMINOR
44704 gstreamer-interfaces-$GST_MAJORMINOR
44705 gstreamer-gconf-$GST_MAJORMINOR... $ECHO_C" >&6
44706
44707 if $PKG_CONFIG --exists "gstreamer-$GST_MAJORMINOR
44708 gstreamer-interfaces-$GST_MAJORMINOR
44709 gstreamer-gconf-$GST_MAJORMINOR" ; then
44710 echo "$as_me:$LINENO: result: yes" >&5
44711echo "${ECHO_T}yes" >&6
44712 succeeded=yes
dae87f93 44713
f10e38c4
VZ
44714 echo "$as_me:$LINENO: checking GST_CFLAGS" >&5
44715echo $ECHO_N "checking GST_CFLAGS... $ECHO_C" >&6
44716 GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_MAJORMINOR
44717 gstreamer-interfaces-$GST_MAJORMINOR
44718 gstreamer-gconf-$GST_MAJORMINOR"`
44719 echo "$as_me:$LINENO: result: $GST_CFLAGS" >&5
44720echo "${ECHO_T}$GST_CFLAGS" >&6
44721
44722 echo "$as_me:$LINENO: checking GST_LIBS" >&5
44723echo $ECHO_N "checking GST_LIBS... $ECHO_C" >&6
44724 GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_MAJORMINOR
44725 gstreamer-interfaces-$GST_MAJORMINOR
44726 gstreamer-gconf-$GST_MAJORMINOR"`
44727 echo "$as_me:$LINENO: result: $GST_LIBS" >&5
44728echo "${ECHO_T}$GST_LIBS" >&6
44729 else
44730 GST_CFLAGS=""
44731 GST_LIBS=""
44732 ## If we have a custom action on failure, don't print errors, but
44733 ## do set a variable so people can do so.
44734 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_MAJORMINOR
44735 gstreamer-interfaces-$GST_MAJORMINOR
44736 gstreamer-gconf-$GST_MAJORMINOR"`
dae87f93 44737
dae87f93
RN
44738 fi
44739
44740
ce756cb0 44741
f10e38c4
VZ
44742 else
44743 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
44744 echo "*** See http://www.freedesktop.org/software/pkgconfig"
44745 fi
44746 fi
ce756cb0 44747
f10e38c4 44748 if test $succeeded = yes; then
dae87f93 44749
f10e38c4
VZ
44750 CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
44751 LIBS="$LIBS $GST_LIBS"
dae87f93 44752
f10e38c4 44753 else
ce756cb0 44754
f10e38c4
VZ
44755 { echo "$as_me:$LINENO: WARNING: Proper GStreamer .8/.10 installation not found" >&5
44756echo "$as_me: WARNING: Proper GStreamer .8/.10 installation not found" >&2;}
44757 wxUSE_GSTREAMER="no"
ce756cb0 44758
f10e38c4 44759 fi
ce756cb0 44760
dae87f93 44761 fi
ce756cb0 44762
f10e38c4 44763
dae87f93
RN
44764 if test "$wxUSE_GSTREAMER" = "yes"; then
44765 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
44766#define wxUSE_GSTREAMER 1
44767_ACEOF
44768
dae87f93
RN
44769 echo "$as_me:$LINENO: result: GStreamer detection successful" >&5
44770echo "${ECHO_T}GStreamer detection successful" >&6
ce756cb0
RN
44771 fi
44772 fi
f10e38c4 44773 USE_MEDIA=1
ce756cb0
RN
44774 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
44775 cat >>confdefs.h <<\_ACEOF
44776#define wxUSE_MEDIACTRL 1
44777_ACEOF
44778
44779fi
44780
44781
a848cd7e
SC
44782if test "$cross_compiling" = "yes"; then
44783 OSINFO="\"$host\""
44784else
44785 OSINFO=`uname -s -r -m`
44786 OSINFO="\"$OSINFO\""
44787fi
44788
44789cat >>confdefs.h <<_ACEOF
44790#define WXWIN_OS_DESCRIPTION $OSINFO
44791_ACEOF
44792
44793
44794
44795if test "x$prefix" != "xNONE"; then
44796 wxPREFIX=$prefix
44797else
44798 wxPREFIX=$ac_default_prefix
44799fi
44800
44801cat >>confdefs.h <<_ACEOF
44802#define wxINSTALL_PREFIX "$wxPREFIX"
44803_ACEOF
44804
44805
a848cd7e
SC
44806
44807
44808CORE_BASE_LIBS="net base"
44809CORE_GUI_LIBS="adv core"
44810
44811if test "$wxUSE_XML" = "yes" ; then
44812 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
44813fi
44814if test "$wxUSE_ODBC" != "no" ; then
44815 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
44816 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
44817fi
44818if test "$wxUSE_HTML" = "yes" ; then
44819 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
44820fi
61639efb
VZ
44821if test "$wxUSE_DEBUGREPORT" = "yes" ; then
44822 CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
44823fi
9a8f0513
VS
44824if test "$wxUSE_XRC" = "yes" ; then
44825 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
44826fi
a848cd7e
SC
44827
44828if test "$wxUSE_GUI" != "yes"; then
44829 CORE_GUI_LIBS=""
44830fi
44831
44832
44833
44834
44835
5d7b7554
VZ
44836ac_ext=c
44837ac_cpp='$CPP $CPPFLAGS'
44838ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44839ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44840ac_compiler_gnu=$ac_cv_c_compiler_gnu
44841
a848cd7e
SC
44842
44843
a848cd7e 44844if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 44845 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
44846 if test "$USE_DARWIN" = 1; then
44847 LDFLAGS="$LDFLAGS -framework QuickTime"
44848 else
44849 LDFLAGS="$LDFLAGS -lQuickTimeLib"
44850 fi
07bea8f0 44851 fi
5dcf30a0 44852 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
44853 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
44854 else
44855 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 44856 fi
a848cd7e
SC
44857fi
44858if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 44859 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
44860 if test "$wxUSE_MEDIACTRL" = "yes"; then
44861 LDFLAGS="$LDFLAGS -framework QuickTime"
44862 fi
a848cd7e 44863fi
19b27e78
MW
44864if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
44865 LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
44866fi
a848cd7e 44867
a848cd7e
SC
44868LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
44869
a848cd7e
SC
44870if test "$wxUSE_GUI" = "yes"; then
44871
44872
8bce5cda
MW
44873 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
44874 dynamic erase event exec font image minimal mobile \
44875 mobile/wxedit mobile/styles propsize render \
9e39d889 44876 rotate shaped vscroll widgets"
a848cd7e
SC
44877
44878 if test "$wxUSE_MONOLITHIC" != "yes"; then
44879 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
44880 fi
0b78747f 44881 if test "$TOOLKIT" = "MSW"; then
8bce5cda
MW
44882 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
44883 if test "$wxUSE_UNIVERSAL" != "yes"; then
44884 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
44885 fi
44886 fi
44887 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
44888 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
0b78747f 44889 fi
a848cd7e
SC
44890else
44891 SAMPLES_SUBDIRS="console"
44892fi
44893
44894
48f625bc 44895if test "x$INTELCC" = "xyes" ; then
17a1ebd1
VZ
44896 CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
44897elif test "$GCC" = yes ; then
44898 CWARNINGS="-Wall -Wundef"
44899fi
44900
48f625bc 44901if test "x$INTELCXX" = "xyes" ; then
7f47faf4 44902 CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
17a1ebd1
VZ
44903elif test "$GXX" = yes ; then
44904 CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy"
6ebeb4c7 44905fi
a848cd7e 44906
a848cd7e 44907
5ff751d6
VZ
44908WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
44909WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
44910
44911
c92ad099 44912CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
bc6ee4ae 44913 -I\\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
c92ad099
VZ
44914 -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
44915 $CPPFLAGS `
5ff751d6 44916
8aeeb05c 44917C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
c92ad099 44918CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
9cbac6d1 44919CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $CXXWARNINGS $C_AND_CXX_FLAGS $CXXFLAGS `
5ff751d6
VZ
44920
44921WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
44922
a848cd7e 44923
95986553
DE
44924if test "x$MWCC" = "xyes"; then
44925
44926 CC="$CC -cwd source -I-"
44927 CXX="$CXX -cwd source -I-"
44928fi
44929
a848cd7e 44930
0c3c69fc 44931LIBS=`echo $LIBS`
a848cd7e
SC
44932EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
44933EXTRALIBS_XML="$EXPAT_LINK"
44934EXTRALIBS_HTML="$MSPACK_LINK"
44935EXTRALIBS_ODBC="$ODBC_LINK"
44936if test "$wxUSE_GUI" = "yes"; then
2b850ae1 44937 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
44938fi
44939if test "$wxUSE_OPENGL" = "yes"; then
44940 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
44941fi
44942
8aeeb05c 44943LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
a848cd7e 44944
5ff751d6 44945WXCONFIG_LIBS="$LIBS"
a848cd7e
SC
44946
44947if test "$wxUSE_REGEX" = "builtin" ; then
74802184 44948 wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
a848cd7e
SC
44949fi
44950if test "$wxUSE_EXPAT" = "builtin" ; then
74802184 44951 wxconfig_3rdparty="expat $wxconfig_3rdparty"
a848cd7e
SC
44952fi
44953if test "$wxUSE_ODBC" = "builtin" ; then
74802184 44954 wxconfig_3rdparty="odbc $wxconfig_3rdparty"
a848cd7e
SC
44955fi
44956if test "$wxUSE_LIBTIFF" = "builtin" ; then
74802184 44957 wxconfig_3rdparty="tiff $wxconfig_3rdparty"
a848cd7e
SC
44958fi
44959if test "$wxUSE_LIBJPEG" = "builtin" ; then
74802184 44960 wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
a848cd7e
SC
44961fi
44962if test "$wxUSE_LIBPNG" = "builtin" ; then
74802184 44963 wxconfig_3rdparty="png $wxconfig_3rdparty"
a848cd7e
SC
44964fi
44965if test "$wxUSE_ZLIB" = "builtin" ; then
74802184 44966 wxconfig_3rdparty="zlib $wxconfig_3rdparty"
a848cd7e
SC
44967fi
44968
44969for i in $wxconfig_3rdparty ; do
5ff751d6 44970 WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
a848cd7e
SC
44971done
44972
44973
44974if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
44975 WXUNIV=1
44976else
44977 WXUNIV=0
44978fi
44979
44980
44981
44982
44983
44984
44985
44986
44987
44988if test $wxUSE_MONOLITHIC = "yes" ; then
44989 MONOLITHIC=1
44990else
44991 MONOLITHIC=0
44992fi
44993
44994if test $wxUSE_PLUGINS = "yes" ; then
44995 USE_PLUGINS=1
44996else
44997 USE_PLUGINS=0
44998fi
44999
45000if test $wxUSE_ODBC != "no" ; then
45001 USE_ODBC=1
45002else
45003 USE_ODBC=0
45004fi
45005
16358932
VZ
45006if test "$wxUSE_DEBUGREPORT" = "yes" ; then
45007 USE_QA=1
45008else
45009 USE_QA=0
45010fi
45011
a848cd7e
SC
45012if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
45013 OFFICIAL_BUILD=1
45014else
45015 OFFICIAL_BUILD=0
45016fi
45017
45018
45019
45020
45021
45022
45023
45024
45025
45026
45027
45028
45029
45030
45031
45032
45033
45034
45035
ceec2216 45036
d1c38808 45037
3565d135 45038
2b850ae1 45039
a848cd7e
SC
45040
45041
45042TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
45043
45044
45045
45046
45047
45048
45049
45050
4d4ff94c
VZ
45051case "$TOOLKIT" in
45052 GTK)
45053 TOOLKIT_USER="GTK+"
45054 if test "$WXGTK20" = 1; then
45055 TOOLKIT_USER="$TOOLKIT_USER 2"
45056 fi
9a8f0513 45057 ;;
4d4ff94c
VZ
45058
45059 *)
45060 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 45061 ;;
4d4ff94c 45062esac
a848cd7e 45063
fb00f58d
JS
45064if test "$wxUSE_WINE" = "yes"; then
45065 BAKEFILE_FORCE_PLATFORM=win32
45066fi
45067
7afc46ab
KO
45068if test "$wxUSE_MAC" = 1 ; then
45069 if test "$wxUSE_UNIVERSAL_BINARY" = "yes" ; then
45070 CXXFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 $CXXFLAGS"
45071 CFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 $CFLAGS"
45072 LDFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 $LDFLAGS"
45073 bk_use_pch=no
45074 fi
45075 # TODO: where do we add "-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk" for libtool (static builds only)?
45076 # The makefile currently uses AR and RANLIB, which libtool apparently supercedes.
45077 # TODO: how can we avoid a hardwired reference to the SDK, above? (Someone used -lSystemStubs to avoid it)
45078fi
45079
9a8f0513 45080
1e9e8aba
DE
45081
45082
a848cd7e 45083 if test "x$BAKEFILE_HOST" = "x"; then
f10e38c4
VZ
45084 if test "x${host}" = "x" ; then
45085 { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
45086echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
45087 { (exit 1); exit 1; }; }
45088 fi
45089
a848cd7e
SC
45090 BAKEFILE_HOST="${host}"
45091 fi
45092
45093 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
45094
45095 if test -n "$ac_tool_prefix"; then
45096 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
45097set dummy ${ac_tool_prefix}ranlib; ac_word=$2
45098echo "$as_me:$LINENO: checking for $ac_word" >&5
45099echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45100if test "${ac_cv_prog_RANLIB+set}" = set; then
45101 echo $ECHO_N "(cached) $ECHO_C" >&6
45102else
45103 if test -n "$RANLIB"; then
45104 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
45105else
45106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45107for as_dir in $PATH
45108do
45109 IFS=$as_save_IFS
45110 test -z "$as_dir" && as_dir=.
45111 for ac_exec_ext in '' $ac_executable_extensions; do
45112 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45113 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
45114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45115 break 2
45116 fi
45117done
45118done
45119
45120fi
45121fi
45122RANLIB=$ac_cv_prog_RANLIB
45123if test -n "$RANLIB"; then
45124 echo "$as_me:$LINENO: result: $RANLIB" >&5
45125echo "${ECHO_T}$RANLIB" >&6
45126else
45127 echo "$as_me:$LINENO: result: no" >&5
45128echo "${ECHO_T}no" >&6
45129fi
45130
45131fi
45132if test -z "$ac_cv_prog_RANLIB"; then
45133 ac_ct_RANLIB=$RANLIB
45134 # Extract the first word of "ranlib", so it can be a program name with args.
45135set dummy ranlib; ac_word=$2
45136echo "$as_me:$LINENO: checking for $ac_word" >&5
45137echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45138if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
45139 echo $ECHO_N "(cached) $ECHO_C" >&6
45140else
45141 if test -n "$ac_ct_RANLIB"; then
45142 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
45143else
45144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45145for as_dir in $PATH
45146do
45147 IFS=$as_save_IFS
45148 test -z "$as_dir" && as_dir=.
45149 for ac_exec_ext in '' $ac_executable_extensions; do
45150 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45151 ac_cv_prog_ac_ct_RANLIB="ranlib"
45152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45153 break 2
45154 fi
45155done
45156done
45157
45158 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
45159fi
45160fi
45161ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
45162if test -n "$ac_ct_RANLIB"; then
45163 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
45164echo "${ECHO_T}$ac_ct_RANLIB" >&6
45165else
45166 echo "$as_me:$LINENO: result: no" >&5
45167echo "${ECHO_T}no" >&6
45168fi
45169
45170 RANLIB=$ac_ct_RANLIB
45171else
45172 RANLIB="$ac_cv_prog_RANLIB"
45173fi
45174
45175 # Find a good install program. We prefer a C program (faster),
45176# so one script is as good as another. But avoid the broken or
45177# incompatible versions:
45178# SysV /etc/install, /usr/sbin/install
45179# SunOS /usr/etc/install
45180# IRIX /sbin/install
45181# AIX /bin/install
45182# AmigaOS /C/install, which installs bootblocks on floppy discs
45183# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
45184# AFS /usr/afsws/bin/install, which mishandles nonexistent args
45185# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 45186# OS/2's system install, which has a completely different semantic
a848cd7e
SC
45187# ./install, which can be erroneously created by make from ./install.sh.
45188echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
45189echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
45190if test -z "$INSTALL"; then
45191if test "${ac_cv_path_install+set}" = set; then
45192 echo $ECHO_N "(cached) $ECHO_C" >&6
45193else
45194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45195for as_dir in $PATH
45196do
45197 IFS=$as_save_IFS
45198 test -z "$as_dir" && as_dir=.
45199 # Account for people who put trailing slashes in PATH elements.
45200case $as_dir/ in
45201 ./ | .// | /cC/* | \
45202 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 45203 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
45204 /usr/ucb/* ) ;;
45205 *)
45206 # OSF1 and SCO ODT 3.0 have their own names for install.
45207 # Don't use installbsd from OSF since it installs stuff as root
45208 # by default.
45209 for ac_prog in ginstall scoinst install; do
45210 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
45211 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
45212 if test $ac_prog = install &&
45213 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
45214 # AIX install. It has an incompatible calling convention.
45215 :
45216 elif test $ac_prog = install &&
45217 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
45218 # program-specific install script used by HP pwplus--don't use.
45219 :
45220 else
45221 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
45222 break 3
45223 fi
45224 fi
a848cd7e
SC
45225 done
45226 done
45227 ;;
45228esac
45229done
45230
45231
45232fi
45233 if test "${ac_cv_path_install+set}" = set; then
45234 INSTALL=$ac_cv_path_install
45235 else
45236 # As a last resort, use the slow shell script. We don't cache a
45237 # path for INSTALL within a source directory, because that will
45238 # break other packages using the cache if that directory is
45239 # removed, or if the path is relative.
45240 INSTALL=$ac_install_sh
45241 fi
45242fi
45243echo "$as_me:$LINENO: result: $INSTALL" >&5
45244echo "${ECHO_T}$INSTALL" >&6
45245
45246# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
45247# It thinks the first close brace ends the variable substitution.
45248test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
45249
45250test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
45251
45252test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
45253
45254 echo "$as_me:$LINENO: checking whether ln -s works" >&5
45255echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
45256LN_S=$as_ln_s
45257if test "$LN_S" = "ln -s"; then
45258 echo "$as_me:$LINENO: result: yes" >&5
45259echo "${ECHO_T}yes" >&6
45260else
45261 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
45262echo "${ECHO_T}no, using $LN_S" >&6
45263fi
45264
45265
45266 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
45267echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 45268set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
45269if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
45270 echo $ECHO_N "(cached) $ECHO_C" >&6
45271else
45272 cat >conftest.make <<\_ACEOF
45273all:
45274 @echo 'ac_maketemp="$(MAKE)"'
45275_ACEOF
45276# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
45277eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
45278if test -n "$ac_maketemp"; then
45279 eval ac_cv_prog_make_${ac_make}_set=yes
45280else
45281 eval ac_cv_prog_make_${ac_make}_set=no
45282fi
45283rm -f conftest.make
45284fi
45285if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
45286 echo "$as_me:$LINENO: result: yes" >&5
45287echo "${ECHO_T}yes" >&6
45288 SET_MAKE=
45289else
45290 echo "$as_me:$LINENO: result: no" >&5
45291echo "${ECHO_T}no" >&6
45292 SET_MAKE="MAKE=${MAKE-make}"
45293fi
45294
45295
45296
45297 if test -n "$ac_tool_prefix"; then
45298 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
45299set dummy ${ac_tool_prefix}ar; ac_word=$2
45300echo "$as_me:$LINENO: checking for $ac_word" >&5
45301echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45302if test "${ac_cv_prog_AR+set}" = set; then
45303 echo $ECHO_N "(cached) $ECHO_C" >&6
45304else
45305 if test -n "$AR"; then
45306 ac_cv_prog_AR="$AR" # Let the user override the test.
45307else
45308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45309for as_dir in $PATH
45310do
45311 IFS=$as_save_IFS
45312 test -z "$as_dir" && as_dir=.
45313 for ac_exec_ext in '' $ac_executable_extensions; do
45314 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45315 ac_cv_prog_AR="${ac_tool_prefix}ar"
45316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45317 break 2
45318 fi
45319done
45320done
45321
45322fi
45323fi
45324AR=$ac_cv_prog_AR
45325if test -n "$AR"; then
45326 echo "$as_me:$LINENO: result: $AR" >&5
45327echo "${ECHO_T}$AR" >&6
45328else
45329 echo "$as_me:$LINENO: result: no" >&5
45330echo "${ECHO_T}no" >&6
45331fi
45332
45333fi
45334if test -z "$ac_cv_prog_AR"; then
45335 ac_ct_AR=$AR
45336 # Extract the first word of "ar", so it can be a program name with args.
45337set dummy ar; ac_word=$2
45338echo "$as_me:$LINENO: checking for $ac_word" >&5
45339echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45340if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
45341 echo $ECHO_N "(cached) $ECHO_C" >&6
45342else
45343 if test -n "$ac_ct_AR"; then
45344 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
45345else
45346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45347for as_dir in $PATH
45348do
45349 IFS=$as_save_IFS
45350 test -z "$as_dir" && as_dir=.
45351 for ac_exec_ext in '' $ac_executable_extensions; do
45352 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45353 ac_cv_prog_ac_ct_AR="ar"
45354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45355 break 2
45356 fi
45357done
45358done
45359
45360 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
45361fi
45362fi
45363ac_ct_AR=$ac_cv_prog_ac_ct_AR
45364if test -n "$ac_ct_AR"; then
45365 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
45366echo "${ECHO_T}$ac_ct_AR" >&6
45367else
45368 echo "$as_me:$LINENO: result: no" >&5
45369echo "${ECHO_T}no" >&6
45370fi
45371
45372 AR=$ac_ct_AR
45373else
45374 AR="$ac_cv_prog_AR"
45375fi
45376
45377 if test -n "$ac_tool_prefix"; then
45378 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
45379set dummy ${ac_tool_prefix}strip; ac_word=$2
45380echo "$as_me:$LINENO: checking for $ac_word" >&5
45381echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45382if test "${ac_cv_prog_STRIP+set}" = set; then
45383 echo $ECHO_N "(cached) $ECHO_C" >&6
45384else
45385 if test -n "$STRIP"; then
45386 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
45387else
45388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45389for as_dir in $PATH
45390do
45391 IFS=$as_save_IFS
45392 test -z "$as_dir" && as_dir=.
45393 for ac_exec_ext in '' $ac_executable_extensions; do
45394 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45395 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
45396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45397 break 2
45398 fi
45399done
45400done
45401
45402fi
45403fi
45404STRIP=$ac_cv_prog_STRIP
45405if test -n "$STRIP"; then
45406 echo "$as_me:$LINENO: result: $STRIP" >&5
45407echo "${ECHO_T}$STRIP" >&6
45408else
45409 echo "$as_me:$LINENO: result: no" >&5
45410echo "${ECHO_T}no" >&6
45411fi
45412
45413fi
45414if test -z "$ac_cv_prog_STRIP"; then
45415 ac_ct_STRIP=$STRIP
45416 # Extract the first word of "strip", so it can be a program name with args.
45417set dummy strip; ac_word=$2
45418echo "$as_me:$LINENO: checking for $ac_word" >&5
45419echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45420if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
45421 echo $ECHO_N "(cached) $ECHO_C" >&6
45422else
45423 if test -n "$ac_ct_STRIP"; then
45424 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
45425else
45426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45427for as_dir in $PATH
45428do
45429 IFS=$as_save_IFS
45430 test -z "$as_dir" && as_dir=.
45431 for ac_exec_ext in '' $ac_executable_extensions; do
45432 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45433 ac_cv_prog_ac_ct_STRIP="strip"
45434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45435 break 2
45436 fi
45437done
45438done
45439
45440 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
45441fi
45442fi
45443ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
45444if test -n "$ac_ct_STRIP"; then
45445 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
45446echo "${ECHO_T}$ac_ct_STRIP" >&6
45447else
45448 echo "$as_me:$LINENO: result: no" >&5
45449echo "${ECHO_T}no" >&6
45450fi
45451
45452 STRIP=$ac_ct_STRIP
45453else
45454 STRIP="$ac_cv_prog_STRIP"
45455fi
45456
45457 if test -n "$ac_tool_prefix"; then
45458 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
45459set dummy ${ac_tool_prefix}nm; ac_word=$2
45460echo "$as_me:$LINENO: checking for $ac_word" >&5
45461echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45462if test "${ac_cv_prog_NM+set}" = set; then
45463 echo $ECHO_N "(cached) $ECHO_C" >&6
45464else
45465 if test -n "$NM"; then
45466 ac_cv_prog_NM="$NM" # Let the user override the test.
45467else
45468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45469for as_dir in $PATH
45470do
45471 IFS=$as_save_IFS
45472 test -z "$as_dir" && as_dir=.
45473 for ac_exec_ext in '' $ac_executable_extensions; do
45474 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45475 ac_cv_prog_NM="${ac_tool_prefix}nm"
45476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45477 break 2
45478 fi
45479done
45480done
45481
45482fi
45483fi
45484NM=$ac_cv_prog_NM
45485if test -n "$NM"; then
45486 echo "$as_me:$LINENO: result: $NM" >&5
45487echo "${ECHO_T}$NM" >&6
45488else
45489 echo "$as_me:$LINENO: result: no" >&5
45490echo "${ECHO_T}no" >&6
45491fi
45492
45493fi
45494if test -z "$ac_cv_prog_NM"; then
45495 ac_ct_NM=$NM
45496 # Extract the first word of "nm", so it can be a program name with args.
45497set dummy nm; ac_word=$2
45498echo "$as_me:$LINENO: checking for $ac_word" >&5
45499echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45500if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
45501 echo $ECHO_N "(cached) $ECHO_C" >&6
45502else
45503 if test -n "$ac_ct_NM"; then
45504 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
45505else
45506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45507for as_dir in $PATH
45508do
45509 IFS=$as_save_IFS
45510 test -z "$as_dir" && as_dir=.
45511 for ac_exec_ext in '' $ac_executable_extensions; do
45512 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45513 ac_cv_prog_ac_ct_NM="nm"
45514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45515 break 2
45516 fi
45517done
45518done
45519
45520 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
45521fi
45522fi
45523ac_ct_NM=$ac_cv_prog_ac_ct_NM
45524if test -n "$ac_ct_NM"; then
45525 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
45526echo "${ECHO_T}$ac_ct_NM" >&6
45527else
45528 echo "$as_me:$LINENO: result: no" >&5
45529echo "${ECHO_T}no" >&6
45530fi
45531
45532 NM=$ac_ct_NM
45533else
45534 NM="$ac_cv_prog_NM"
45535fi
45536
45537
45538 case ${BAKEFILE_HOST} in
45539 *-hp-hpux* )
1e9e8aba 45540 INSTALL_DIR="mkdir -p"
a848cd7e
SC
45541 ;;
45542 *) INSTALL_DIR="$INSTALL -d"
45543 ;;
45544 esac
45545
45546
45547 LDFLAGS_GUI=
45548 case ${BAKEFILE_HOST} in
45549 *-*-cygwin* | *-*-mingw32* )
45550 LDFLAGS_GUI="-mwindows"
45551 esac
45552
45553
45554 fi
45555
45556 echo "$as_me:$LINENO: checking if make is GNU make" >&5
45557echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
45558if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
45559 echo $ECHO_N "(cached) $ECHO_C" >&6
45560else
45561
45562 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
45563 egrep -s GNU > /dev/null); then
45564 bakefile_cv_prog_makeisgnu="yes"
45565 else
45566 bakefile_cv_prog_makeisgnu="no"
45567 fi
45568
45569fi
45570echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
45571echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
45572
45573 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
45574 IF_GNU_MAKE=""
45575 else
45576 IF_GNU_MAKE="#"
45577 fi
45578
45579
45580
45581 PLATFORM_UNIX=0
45582 PLATFORM_WIN32=0
45583 PLATFORM_MSDOS=0
45584 PLATFORM_MAC=0
1e9e8aba 45585 PLATFORM_MACOS=0
a848cd7e
SC
45586 PLATFORM_MACOSX=0
45587 PLATFORM_OS2=0
1e9e8aba 45588 PLATFORM_BEOS=0
a848cd7e
SC
45589
45590 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
45591 case "${BAKEFILE_HOST}" in
810b94f0 45592 *-*-mingw32* )
a848cd7e
SC
45593 PLATFORM_WIN32=1
45594 ;;
45595 *-pc-msdosdjgpp )
45596 PLATFORM_MSDOS=1
45597 ;;
45598 *-pc-os2_emx | *-pc-os2-emx )
45599 PLATFORM_OS2=1
45600 ;;
47bd5406 45601 *-*-darwin* )
a848cd7e
SC
45602 PLATFORM_MAC=1
45603 PLATFORM_MACOSX=1
45604 ;;
1e9e8aba
DE
45605 *-*-beos* )
45606 PLATFORM_BEOS=1
45607 ;;
45608 powerpc-apple-macos* )
45609 PLATFORM_MAC=1
45610 PLATFORM_MACOS=1
45611 ;;
a848cd7e
SC
45612 * )
45613 PLATFORM_UNIX=1
45614 ;;
45615 esac
45616 else
45617 case "$BAKEFILE_FORCE_PLATFORM" in
45618 win32 )
45619 PLATFORM_WIN32=1
45620 ;;
45621 msdos )
45622 PLATFORM_MSDOS=1
45623 ;;
45624 os2 )
45625 PLATFORM_OS2=1
45626 ;;
45627 darwin )
45628 PLATFORM_MAC=1
45629 PLATFORM_MACOSX=1
45630 ;;
45631 unix )
45632 PLATFORM_UNIX=1
45633 ;;
1e9e8aba
DE
45634 beos )
45635 PLATFORM_BEOS=1
45636 ;;
a848cd7e
SC
45637 * )
45638 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
45639echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
45640 { (exit 1); exit 1; }; }
45641 ;;
45642 esac
45643 fi
45644
45645
45646
45647
45648
45649
45650
45651
45652
1e9e8aba
DE
45653
45654
a848cd7e
SC
45655 # Check whether --enable-omf or --disable-omf was given.
45656if test "${enable_omf+set}" = set; then
45657 enableval="$enable_omf"
45658 bk_os2_use_omf="$enableval"
45659fi;
45660
45661 case "${BAKEFILE_HOST}" in
45662 *-*-darwin* )
47bd5406
VZ
45663 if test "x$GCC" = "xyes"; then
45664 CFLAGS="$CFLAGS -fno-common"
45665 CXXFLAGS="$CXXFLAGS -fno-common"
45666 fi
45667 if test "x$XLCC" = "xyes"; then
45668 CFLAGS="$CFLAGS -qnocommon"
45669 CXXFLAGS="$CXXFLAGS -qnocommon"
45670 fi
a848cd7e
SC
45671 ;;
45672
45673 *-pc-os2_emx | *-pc-os2-emx )
45674 if test "x$bk_os2_use_omf" = "xyes" ; then
45675 AR=emxomfar
45676 RANLIB=:
45677 LDFLAGS="-Zomf $LDFLAGS"
45678 CFLAGS="-Zomf $CFLAGS"
45679 CXXFLAGS="-Zomf $CXXFLAGS"
45680 OS2_LIBEXT="lib"
45681 else
45682 OS2_LIBEXT="a"
45683 fi
45684 ;;
1e9e8aba
DE
45685
45686 i*86-*-beos* )
45687 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
45688 ;;
a848cd7e
SC
45689 esac
45690
45691
45692 SO_SUFFIX="so"
45693 SO_SUFFIX_MODULE="so"
45694 EXEEXT=""
45695 LIBPREFIX="lib"
45696 LIBEXT=".a"
45697 DLLPREFIX="lib"
45698 DLLPREFIX_MODULE=""
45699 DLLIMP_SUFFIX=""
810b94f0 45700 dlldir="$libdir"
a848cd7e
SC
45701
45702 case "${BAKEFILE_HOST}" in
45703 *-hp-hpux* )
45704 SO_SUFFIX="sl"
45705 SO_SUFFIX_MODULE="sl"
45706 ;;
45707 *-*-aix* )
45708 SO_SUFFIX="a"
45709 SO_SUFFIX_MODULE="a"
45710 ;;
810b94f0
MW
45711 *-*-cygwin* )
45712 SO_SUFFIX="dll"
45713 SO_SUFFIX_MODULE="dll"
45714 DLLIMP_SUFFIX="dll.a"
45715 EXEEXT=".exe"
45716 DLLPREFIX="cyg"
45717 dlldir="$bindir"
45718 ;;
45719 *-*-mingw32* )
a848cd7e
SC
45720 SO_SUFFIX="dll"
45721 SO_SUFFIX_MODULE="dll"
45722 DLLIMP_SUFFIX="dll.a"
45723 EXEEXT=".exe"
45724 DLLPREFIX=""
810b94f0 45725 dlldir="$bindir"
a848cd7e
SC
45726 ;;
45727 *-pc-msdosdjgpp )
45728 EXEEXT=".exe"
45729 DLLPREFIX=""
810b94f0 45730 dlldir="$bindir"
a848cd7e
SC
45731 ;;
45732 *-pc-os2_emx | *-pc-os2-emx )
45733 SO_SUFFIX="dll"
45734 SO_SUFFIX_MODULE="dll"
45735 DLLIMP_SUFFIX=$OS2_LIBEXT
45736 EXEEXT=".exe"
45737 DLLPREFIX=""
45738 LIBPREFIX=""
45739 LIBEXT=".$OS2_LIBEXT"
810b94f0 45740 dlldir="$bindir"
a848cd7e 45741 ;;
47bd5406 45742 *-*-darwin* )
a848cd7e
SC
45743 SO_SUFFIX="dylib"
45744 SO_SUFFIX_MODULE="bundle"
45745 ;;
45746 esac
45747
45748 if test "x$DLLIMP_SUFFIX" = "x" ; then
45749 DLLIMP_SUFFIX="$SO_SUFFIX"
45750 fi
45751
45752
45753
45754
45755
45756
45757
45758
45759
45760
45761
810b94f0 45762
1e9e8aba
DE
45763 PIC_FLAG=""
45764 if test "x$GCC" = "xyes"; then
a848cd7e
SC
45765 PIC_FLAG="-fPIC"
45766 fi
45767
1e9e8aba
DE
45768 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
45769 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
810b94f0 45770 WINDOWS_IMPLIB=0
1e9e8aba 45771
a848cd7e
SC
45772 case "${BAKEFILE_HOST}" in
45773 *-hp-hpux* )
1e9e8aba 45774 if test "x$GCC" != "xyes"; then
a848cd7e
SC
45775 LDFLAGS="$LDFLAGS -L/usr/lib"
45776
45777 SHARED_LD_CC="${CC} -b -o"
45778 SHARED_LD_CXX="${CXX} -b -o"
45779 PIC_FLAG="+Z"
45780 fi
45781 ;;
45782
45783 *-*-linux* )
45784 if test "x$GCC" != "xyes"; then
45785 echo "$as_me:$LINENO: checking for Intel compiler" >&5
45786echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
45787if test "${bakefile_cv_prog_icc+set}" = set; then
45788 echo $ECHO_N "(cached) $ECHO_C" >&6
45789else
45790
45791 cat >conftest.$ac_ext <<_ACEOF
45792/* confdefs.h. */
45793_ACEOF
45794cat confdefs.h >>conftest.$ac_ext
45795cat >>conftest.$ac_ext <<_ACEOF
45796/* end confdefs.h. */
45797
45798int
45799main ()
45800{
45801
45802 #ifndef __INTEL_COMPILER
e5efa97e 45803 This is not ICC
a848cd7e
SC
45804 #endif
45805
45806 ;
45807 return 0;
45808}
45809_ACEOF
45810rm -f conftest.$ac_objext
45811if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 45812 (eval $ac_compile) 2>conftest.er1
a848cd7e 45813 ac_status=$?
ac1cb8d3
VS
45814 grep -v '^ *+' conftest.er1 >conftest.err
45815 rm -f conftest.er1
45816 cat conftest.err >&5
a848cd7e
SC
45817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45818 (exit $ac_status); } &&
5d7b7554 45819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
45820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45821 (eval $ac_try) 2>&5
45822 ac_status=$?
45823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45824 (exit $ac_status); }; } &&
45825 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
45826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45827 (eval $ac_try) 2>&5
45828 ac_status=$?
45829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45830 (exit $ac_status); }; }; then
45831 bakefile_cv_prog_icc=yes
45832else
45833 echo "$as_me: failed program was:" >&5
45834sed 's/^/| /' conftest.$ac_ext >&5
45835
45836bakefile_cv_prog_icc=no
45837
45838fi
ac1cb8d3 45839rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
45840
45841fi
45842echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
45843echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
45844 if test "$bakefile_cv_prog_icc" = "yes"; then
45845 PIC_FLAG="-KPIC"
45846 fi
45847 fi
45848 ;;
45849
45850 *-*-solaris2* )
45851 if test "x$GCC" != xyes ; then
45852 SHARED_LD_CC="${CC} -G -o"
45853 SHARED_LD_CXX="${CXX} -G -o"
45854 PIC_FLAG="-KPIC"
45855 fi
45856 ;;
45857
45858 *-*-darwin* )
45859
473276a9
VS
45860D='$'
45861cat <<EOF >shared-ld-sh
a848cd7e
SC
45862#!/bin/sh
45863#-----------------------------------------------------------------------------
45864#-- Name: distrib/mac/shared-ld-sh
45865#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
45866#-- Author: Gilles Depeyrot
45867#-- Copyright: (c) 2002 Gilles Depeyrot
45868#-- Licence: any use permitted
45869#-----------------------------------------------------------------------------
45870
45871verbose=0
45872args=""
45873objects=""
45874linking_flag="-dynamiclib"
810b94f0 45875ldargs="-r -keep_private_externs -nostdlib"
a848cd7e 45876
473276a9
VS
45877while test ${D}# -gt 0; do
45878 case ${D}1 in
a848cd7e
SC
45879
45880 -v)
45881 verbose=1
45882 ;;
45883
45884 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
45885 # collect these options and values
473276a9 45886 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
45887 shift
45888 ;;
45889
810b94f0
MW
45890 -s|-Wl,*)
45891 # collect these load args
45892 ldargs="${D}{ldargs} ${D}1"
2113bc77 45893 ;;
810b94f0
MW
45894
45895 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
a848cd7e 45896 # collect these options
473276a9 45897 args="${D}{args} ${D}1"
a848cd7e
SC
45898 ;;
45899
45900 -dynamiclib|-bundle)
473276a9 45901 linking_flag="${D}1"
a848cd7e
SC
45902 ;;
45903
45904 -*)
473276a9 45905 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
45906 exit 1
45907 ;;
45908
45909 *.o | *.a | *.dylib)
45910 # collect object files
473276a9 45911 objects="${D}{objects} ${D}1"
a848cd7e
SC
45912 ;;
45913
45914 *)
473276a9 45915 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
45916 exit 1
45917 ;;
45918
45919 esac
45920 shift
45921done
45922
810b94f0
MW
45923status=0
45924
a848cd7e
SC
45925#
45926# Link one module containing all the others
45927#
473276a9 45928if test ${D}{verbose} = 1; then
810b94f0 45929 echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
a848cd7e 45930fi
810b94f0 45931c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
473276a9 45932status=${D}?
a848cd7e
SC
45933
45934#
810b94f0
MW
45935# Link the shared library from the single module created, but only if the
45936# previous command didn't fail:
a848cd7e 45937#
810b94f0
MW
45938if test ${D}{status} = 0; then
45939 if test ${D}{verbose} = 1; then
45940 echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
45941 fi
45942 c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
45943 status=${D}?
a848cd7e
SC
45944fi
45945
45946#
45947# Remove intermediate module
45948#
473276a9 45949rm -f master.${D}${D}.o
a848cd7e 45950
810b94f0 45951exit ${D}status
a848cd7e 45952EOF
473276a9 45953
583d6b4b
VZ
45954 chmod +x shared-ld-sh
45955
45956 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
45957 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
45958
45959
45960 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
45961echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
45962if test "${bakefile_cv_gcc31+set}" = set; then
45963 echo $ECHO_N "(cached) $ECHO_C" >&6
45964else
45965
45966 cat >conftest.$ac_ext <<_ACEOF
45967/* confdefs.h. */
45968_ACEOF
45969cat confdefs.h >>conftest.$ac_ext
45970cat >>conftest.$ac_ext <<_ACEOF
45971/* end confdefs.h. */
45972
45973int
45974main ()
45975{
45976
45977 #if (__GNUC__ < 3) || \
45978 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
e5efa97e 45979 This is old gcc
583d6b4b 45980 #endif
a848cd7e 45981
583d6b4b
VZ
45982 ;
45983 return 0;
45984}
45985_ACEOF
45986rm -f conftest.$ac_objext
45987if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45988 (eval $ac_compile) 2>conftest.er1
45989 ac_status=$?
45990 grep -v '^ *+' conftest.er1 >conftest.err
45991 rm -f conftest.er1
45992 cat conftest.err >&5
45993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45994 (exit $ac_status); } &&
5d7b7554 45995 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
583d6b4b
VZ
45996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45997 (eval $ac_try) 2>&5
45998 ac_status=$?
45999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46000 (exit $ac_status); }; } &&
46001 { ac_try='test -s conftest.$ac_objext'
46002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46003 (eval $ac_try) 2>&5
46004 ac_status=$?
46005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46006 (exit $ac_status); }; }; then
46007
46008 bakefile_cv_gcc31=yes
46009
46010else
46011 echo "$as_me: failed program was:" >&5
46012sed 's/^/| /' conftest.$ac_ext >&5
46013
46014
46015 bakefile_cv_gcc31=no
46016
46017
46018fi
46019rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46020
46021fi
46022echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
46023echo "${ECHO_T}$bakefile_cv_gcc31" >&6
46024 if test "$bakefile_cv_gcc31" = "no"; then
a848cd7e 46025 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
a848cd7e 46026 SHARED_LD_CXX="$SHARED_LD_CC"
a848cd7e
SC
46027 else
46028 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e 46029 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e
SC
46030 fi
46031
47bd5406
VZ
46032 if test "x$GCC" == "xyes"; then
46033 PIC_FLAG="-dynamic -fPIC"
46034 fi
46035 if test "x$XLCC" = "xyes"; then
46036 PIC_FLAG="-dynamic -DPIC"
46037 fi
a848cd7e
SC
46038 ;;
46039
46040 *-*-aix* )
f6b50c59 46041 if test "x$GCC" = "xyes"; then
583d6b4b 46042 PIC_FLAG=""
f6b50c59 46043
583d6b4b
VZ
46044 case "${BAKEFILE_HOST}" in
46045 *-*-aix5* )
46046 LD_EXPFULL="-Wl,-bexpfull"
46047 ;;
46048 esac
f6b50c59 46049
583d6b4b
VZ
46050 SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
46051 SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
46052 else
46053 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
a848cd7e
SC
46054set dummy makeC++SharedLib; ac_word=$2
46055echo "$as_me:$LINENO: checking for $ac_word" >&5
46056echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46057if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
46058 echo $ECHO_N "(cached) $ECHO_C" >&6
46059else
46060 if test -n "$AIX_CXX_LD"; then
46061 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
46062else
46063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46064for as_dir in $PATH
46065do
46066 IFS=$as_save_IFS
46067 test -z "$as_dir" && as_dir=.
46068 for ac_exec_ext in '' $ac_executable_extensions; do
46069 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46070 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
46071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46072 break 2
46073 fi
46074done
46075done
46076
46077 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
46078fi
46079fi
46080AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
46081if test -n "$AIX_CXX_LD"; then
46082 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
46083echo "${ECHO_T}$AIX_CXX_LD" >&6
46084else
46085 echo "$as_me:$LINENO: result: no" >&5
46086echo "${ECHO_T}no" >&6
46087fi
46088
f6b50c59 46089 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
a848cd7e
SC
46090 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
46091 fi
46092 ;;
46093
46094 *-*-beos* )
1e9e8aba
DE
46095 SHARED_LD_CC="${LD} -nostart -o"
46096 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
46097 ;;
46098
46099 *-*-irix* )
46100 if test "x$GCC" != "xyes"; then
46101 PIC_FLAG="-KPIC"
46102 fi
46103 ;;
46104
46105 *-*-cygwin* | *-*-mingw32* )
46106 PIC_FLAG=""
1e9e8aba
DE
46107 SHARED_LD_CC="\$(CC) -shared -o"
46108 SHARED_LD_CXX="\$(CXX) -shared -o"
810b94f0 46109 WINDOWS_IMPLIB=1
a848cd7e
SC
46110 ;;
46111
46112 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
46113 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
46114 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 46115 PIC_FLAG=""
473276a9
VS
46116
46117D='$'
46118cat <<EOF >dllar.sh
46119#!/bin/sh
46120#
46121# dllar - a tool to build both a .dll and an .a file
46122# from a set of object (.o) files for EMX/OS2.
46123#
46124# Written by Andrew Zabolotny, bit@freya.etu.ru
46125# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
46126#
46127# This script will accept a set of files on the command line.
46128# All the public symbols from the .o files will be exported into
46129# a .DEF file, then linker will be run (through gcc) against them to
46130# build a shared library consisting of all given .o files. All libraries
46131# (.a) will be first decompressed into component .o files then act as
46132# described above. You can optionally give a description (-d "description")
46133# which will be put into .DLL. To see the list of accepted options (as well
46134# as command-line format) simply run this program without options. The .DLL
46135# is built to be imported by name (there is no guarantee that new versions
46136# of the library you build will have same ordinals for same symbols).
46137#
46138# dllar is free software; you can redistribute it and/or modify
46139# it under the terms of the GNU General Public License as published by
46140# the Free Software Foundation; either version 2, or (at your option)
46141# any later version.
46142#
46143# dllar is distributed in the hope that it will be useful,
46144# but WITHOUT ANY WARRANTY; without even the implied warranty of
46145# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
46146# GNU General Public License for more details.
46147#
46148# You should have received a copy of the GNU General Public License
46149# along with dllar; see the file COPYING. If not, write to the Free
46150# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
46151# 02111-1307, USA.
46152
46153# To successfuly run this program you will need:
46154# - Current drive should have LFN support (HPFS, ext2, network, etc)
46155# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
46156# - gcc
46157# (used to build the .dll)
46158# - emxexp
46159# (used to create .def file from .o files)
46160# - emximp
46161# (used to create .a file from .def file)
46162# - GNU text utilites (cat, sort, uniq)
46163# used to process emxexp output
46164# - GNU file utilities (mv, rm)
46165# - GNU sed
46166# - lxlite (optional, see flag below)
46167# (used for general .dll cleanup)
46168#
46169
46170flag_USE_LXLITE=1;
46171
46172#
46173# helper functions
46174# basnam, variant of basename, which does _not_ remove the path, _iff_
46175# second argument (suffix to remove) is given
46176basnam(){
46177 case ${D}# in
46178 1)
1e9e8aba 46179 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
46180 ;;
46181 2)
46182 echo ${D}1 | sed 's/'${D}2'${D}//'
46183 ;;
46184 *)
46185 echo "error in basnam ${D}*"
46186 exit 8
46187 ;;
46188 esac
46189}
46190
46191# Cleanup temporary files and output
46192CleanUp() {
46193 cd ${D}curDir
46194 for i in ${D}inputFiles ; do
46195 case ${D}i in
46196 *!)
46197 rm -rf \`basnam ${D}i !\`
46198 ;;
46199 *)
46200 ;;
46201 esac
46202 done
46203
46204 # Kill result in case of failure as there is just to many stupid make/nmake
46205 # things out there which doesn't do this.
1e9e8aba 46206 if [ ${D}# -eq 0 ]; then
473276a9
VS
46207 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
46208 fi
46209}
46210
46211# Print usage and exit script with rc=1.
46212PrintHelp() {
b1d22ded
DE
46213 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
46214 echo ' [-name-mangler-script script.sh]'
46215 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
46216 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
46217 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 46218 echo ' [*.o] [*.a]'
473276a9
VS
46219 echo '*> "output_file" should have no extension.'
46220 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
46221 echo ' The import library name is derived from this and is set to "name".a,'
46222 echo ' unless overridden by -import'
46223 echo '*> "importlib_name" should have no extension.'
46224 echo ' If it has the .o, or .a extension, it is automatically removed.'
46225 echo ' This name is used as the import library name and may be longer and'
46226 echo ' more descriptive than the DLL name which has to follow the old '
46227 echo ' 8.3 convention of FAT.'
b1d22ded
DE
46228 echo '*> "script.sh may be given to override the output_file name by a'
46229 echo ' different name. It is mainly useful if the regular make process'
46230 echo ' of some package does not take into account OS/2 restriction of'
46231 echo ' DLL name lengths. It takes the importlib name as input and is'
46232 echo ' supposed to procude a shorter name as output. The script should'
46233 echo ' expect to get importlib_name without extension and should produce'
46234 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
46235 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
46236 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
46237 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
46238 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
46239 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
46240 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
46241 echo ' If the last character of a symbol is "*", all symbols beginning'
46242 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 46243 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 46244 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 46245 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 46246 echo ' C runtime DLLs.'
b1d22ded 46247 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
46248 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
46249 echo ' unchanged to GCC at the end of command line.'
46250 echo '*> If you create a DLL from a library and you do not specify -o,'
46251 echo ' the basename for DLL and import library will be set to library name,'
46252 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
46253 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
46254 echo ' library will be renamed into gcc_s.a.'
46255 echo '--------'
46256 echo 'Example:'
46257 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
46258 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
46259 CleanUp
46260 exit 1
46261}
46262
46263# Execute a command.
46264# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
46265# @Uses Whatever CleanUp() uses.
46266doCommand() {
46267 echo "${D}*"
46268 eval ${D}*
46269 rcCmd=${D}?
46270
1e9e8aba 46271 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
46272 echo "command failed, exit code="${D}rcCmd
46273 CleanUp
46274 exit ${D}rcCmd
46275 fi
46276}
46277
46278# main routine
46279# setup globals
46280cmdLine=${D}*
46281outFile=""
46282outimpFile=""
46283inputFiles=""
b1d22ded 46284renameScript=""
473276a9
VS
46285description=""
46286CC=gcc.exe
46287CFLAGS="-s -Zcrtdll"
46288EXTRA_CFLAGS=""
46289EXPORT_BY_ORDINALS=0
46290exclude_symbols=""
46291library_flags=""
46292curDir=\`pwd\`
46293curDirS=curDir
46294case ${D}curDirS in
46295*/)
46296 ;;
46297*)
46298 curDirS=${D}{curDirS}"/"
46299 ;;
46300esac
46301# Parse commandline
46302libsToLink=0
b1d22ded 46303omfLinking=0
1e9e8aba 46304while [ ${D}1 ]; do
473276a9
VS
46305 case ${D}1 in
46306 -ord*)
46307 EXPORT_BY_ORDINALS=1;
46308 ;;
46309 -o*)
46310 shift
46311 outFile=${D}1
46312 ;;
46313 -i*)
46314 shift
46315 outimpFile=${D}1
46316 ;;
b1d22ded
DE
46317 -name-mangler-script)
46318 shift
46319 renameScript=${D}1
46320 ;;
473276a9
VS
46321 -d*)
46322 shift
46323 description=${D}1
46324 ;;
46325 -f*)
46326 shift
46327 CFLAGS=${D}1
46328 ;;
46329 -c*)
46330 shift
46331 CC=${D}1
46332 ;;
46333 -h*)
46334 PrintHelp
46335 ;;
46336 -ex*)
46337 shift
46338 exclude_symbols=${D}{exclude_symbols}${D}1" "
46339 ;;
46340 -libf*)
46341 shift
46342 library_flags=${D}{library_flags}${D}1" "
46343 ;;
46344 -nocrt*)
46345 CFLAGS="-s"
46346 ;;
46347 -nolxl*)
46348 flag_USE_LXLITE=0
46349 ;;
46350 -* | /*)
46351 case ${D}1 in
46352 -L* | -l*)
46353 libsToLink=1
46354 ;;
b1d22ded
DE
46355 -Zomf)
46356 omfLinking=1
46357 ;;
473276a9
VS
46358 *)
46359 ;;
46360 esac
46361 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
46362 ;;
b1d22ded
DE
46363 *.dll)
46364 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
46365 if [ ${D}omfLinking -eq 1 ]; then
46366 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
46367 else
46368 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
46369 fi
46370 ;;
473276a9
VS
46371 *)
46372 found=0;
1e9e8aba 46373 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
46374 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
46375 else
46376 for file in ${D}1 ; do
1e9e8aba 46377 if [ -f ${D}file ]; then
473276a9
VS
46378 inputFiles="${D}{inputFiles} ${D}file"
46379 found=1
46380 fi
46381 done
1e9e8aba 46382 if [ ${D}found -eq 0 ]; then
473276a9
VS
46383 echo "ERROR: No file(s) found: "${D}1
46384 exit 8
46385 fi
46386 fi
46387 ;;
46388 esac
46389 shift
46390done # iterate cmdline words
46391
46392#
1e9e8aba 46393if [ -z "${D}inputFiles" ]; then
473276a9
VS
46394 echo "dllar: no input files"
46395 PrintHelp
46396fi
46397
46398# Now extract all .o files from .a files
46399newInputFiles=""
46400for file in ${D}inputFiles ; do
46401 case ${D}file in
46402 *.a | *.lib)
46403 case ${D}file in
46404 *.a)
46405 suffix=".a"
46406 AR="ar"
46407 ;;
46408 *.lib)
46409 suffix=".lib"
46410 AR="emxomfar"
46411 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
46412 ;;
46413 *)
46414 ;;
46415 esac
46416 dirname=\`basnam ${D}file ${D}suffix\`"_%"
46417 mkdir ${D}dirname
1e9e8aba 46418 if [ ${D}? -ne 0 ]; then
473276a9
VS
46419 echo "Failed to create subdirectory ./${D}dirname"
46420 CleanUp
46421 exit 8;
46422 fi
46423 # Append '!' to indicate archive
46424 newInputFiles="${D}newInputFiles ${D}{dirname}!"
46425 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
46426 cd ${D}curDir
46427 found=0;
46428 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 46429 if [ -f ${D}subfile ]; then
473276a9 46430 found=1
1e9e8aba 46431 if [ -s ${D}subfile ]; then
473276a9
VS
46432 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
46433 newInputFiles="${D}newInputFiles ${D}subfile"
46434 fi
46435 fi
46436 done
1e9e8aba
DE
46437 if [ ${D}found -eq 0 ]; then
46438 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
46439 fi
46440 ;;
46441 *)
46442 newInputFiles="${D}{newInputFiles} ${D}file"
46443 ;;
46444 esac
46445done
46446inputFiles="${D}newInputFiles"
46447
46448# Output filename(s).
46449do_backup=0;
1e9e8aba 46450if [ -z ${D}outFile ]; then
473276a9
VS
46451 do_backup=1;
46452 set outFile ${D}inputFiles; outFile=${D}2
46453fi
46454
46455# If it is an archive, remove the '!' and the '_%' suffixes
46456case ${D}outFile in
46457*_%!)
46458 outFile=\`basnam ${D}outFile _%!\`
46459 ;;
46460*)
46461 ;;
46462esac
46463case ${D}outFile in
46464*.dll)
46465 outFile=\`basnam ${D}outFile .dll\`
46466 ;;
46467*.DLL)
46468 outFile=\`basnam ${D}outFile .DLL\`
46469 ;;
46470*.o)
46471 outFile=\`basnam ${D}outFile .o\`
46472 ;;
46473*.obj)
46474 outFile=\`basnam ${D}outFile .obj\`
46475 ;;
46476*.a)
46477 outFile=\`basnam ${D}outFile .a\`
46478 ;;
46479*.lib)
46480 outFile=\`basnam ${D}outFile .lib\`
46481 ;;
46482*)
46483 ;;
46484esac
46485case ${D}outimpFile in
46486*.a)
46487 outimpFile=\`basnam ${D}outimpFile .a\`
46488 ;;
46489*.lib)
46490 outimpFile=\`basnam ${D}outimpFile .lib\`
46491 ;;
46492*)
46493 ;;
46494esac
1e9e8aba 46495if [ -z ${D}outimpFile ]; then
473276a9
VS
46496 outimpFile=${D}outFile
46497fi
46498defFile="${D}{outFile}.def"
46499arcFile="${D}{outimpFile}.a"
46500arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
46501
46502#create ${D}dllFile as something matching 8.3 restrictions,
46503if [ -z ${D}renameScript ] ; then
46504 dllFile="${D}outFile"
46505else
46506 dllFile=\`${D}renameScript ${D}outimpFile\`
46507fi
473276a9 46508
1e9e8aba
DE
46509if [ ${D}do_backup -ne 0 ] ; then
46510 if [ -f ${D}arcFile ] ; then
473276a9
VS
46511 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
46512 fi
1e9e8aba 46513 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
46514 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
46515 fi
46516fi
46517
46518# Extract public symbols from all the object files.
46519tmpdefFile=${D}{defFile}_%
46520rm -f ${D}tmpdefFile
46521for file in ${D}inputFiles ; do
46522 case ${D}file in
46523 *!)
46524 ;;
46525 *)
46526 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
46527 ;;
46528 esac
46529done
46530
46531# Create the def file.
46532rm -f ${D}defFile
46533echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
46534dllFile="${D}{dllFile}.dll"
46535if [ ! -z ${D}description ]; then
1e9e8aba 46536 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
46537fi
46538echo "EXPORTS" >> ${D}defFile
46539
46540doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
46541grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
46542
46543# Checks if the export is ok or not.
46544for word in ${D}exclude_symbols; do
46545 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
46546 mv ${D}{tmpdefFile}% ${D}tmpdefFile
46547done
46548
46549
1e9e8aba
DE
46550if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
46551 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
46552 sed '
46553 N
46554 : loop
1e9e8aba 46555 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
46556 t loop
46557 ' > ${D}{tmpdefFile}%
46558 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
46559else
46560 rm -f ${D}{tmpdefFile}%
46561fi
46562cat ${D}tmpdefFile >> ${D}defFile
46563rm -f ${D}tmpdefFile
46564
46565# Do linking, create implib, and apply lxlite.
46566gccCmdl="";
46567for file in ${D}inputFiles ; do
46568 case ${D}file in
46569 *!)
46570 ;;
46571 *)
46572 gccCmdl="${D}gccCmdl ${D}file"
46573 ;;
46574 esac
46575done
46576doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
46577touch "${D}{outFile}.dll"
46578
46579doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 46580if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 46581 add_flags="";
1e9e8aba 46582 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
46583 add_flags="-ynd"
46584 fi
46585 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
46586fi
46587doCommand "emxomf -s -l ${D}arcFile"
46588
46589# Successful exit.
46590CleanUp 1
46591exit 0
46592EOF
46593
46594 chmod +x dllar.sh
a848cd7e
SC
46595 ;;
46596
1e9e8aba 46597 powerpc-apple-macos* | \
0ad5d837 46598 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
a848cd7e
SC
46599 *-*-sunos4* | \
46600 *-*-osf* | \
46601 *-*-dgux5* | \
47a7e797
MW
46602 *-*-sysv5* | \
46603 *-pc-msdosdjgpp )
a848cd7e
SC
46604 ;;
46605
46606 *)
46607 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
46608echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
46609 { (exit 1); exit 1; }; }
46610 esac
46611
2057db16
VS
46612 if test "x$PIC_FLAG" != "x" ; then
46613 PIC_FLAG="$PIC_FLAG -DPIC"
46614 fi
46615
a848cd7e
SC
46616 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
46617 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
46618 fi
46619 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
46620 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
46621 fi
46622
46623
46624
46625
46626
46627
46628
46629
810b94f0 46630
a848cd7e
SC
46631 USE_SOVERSION=0
46632 USE_SOVERLINUX=0
46633 USE_SOVERSOLARIS=0
810b94f0 46634 USE_SOVERCYGWIN=0
a848cd7e
SC
46635 USE_SOSYMLINKS=0
46636 USE_MACVERSION=0
46637 SONAME_FLAG=
46638
46639 case "${BAKEFILE_HOST}" in
0ad5d837 46640 *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
5f652d0d
VS
46641 SONAME_FLAG="-Wl,-soname,"
46642 USE_SOVERSION=1
46643 USE_SOVERLINUX=1
46644 USE_SOSYMLINKS=1
46645 ;;
46646
a848cd7e
SC
46647 *-*-solaris2* )
46648 SONAME_FLAG="-h "
46649 USE_SOVERSION=1
46650 USE_SOVERSOLARIS=1
46651 USE_SOSYMLINKS=1
46652 ;;
46653
46654 *-*-darwin* )
46655 USE_MACVERSION=1
46656 USE_SOVERSION=1
46657 USE_SOSYMLINKS=1
46658 ;;
810b94f0
MW
46659
46660 *-*-cygwin* )
46661 USE_SOVERSION=1
46662 USE_SOVERCYGWIN=1
46663 ;;
a848cd7e
SC
46664 esac
46665
46666
46667
46668
46669
46670
46671
46672
46673
810b94f0 46674
f10e38c4
VZ
46675 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
46676if test "${enable_dependency_tracking+set}" = set; then
46677 enableval="$enable_dependency_tracking"
46678 bk_use_trackdeps="$enableval"
46679fi;
46680
a848cd7e
SC
46681 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
46682echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
a848cd7e 46683
f10e38c4
VZ
46684 if test "x$bk_use_trackdeps" = "xno" ; then
46685 DEPS_TRACKING=0
46686 echo "$as_me:$LINENO: result: disabled" >&5
46687echo "${ECHO_T}disabled" >&6
46688 else
46689 DEPS_TRACKING=1
46690
46691 if test "x$GCC" = "xyes"; then
46692 DEPSMODE=gcc
46693 case "${BAKEFILE_HOST}" in
46694 *-*-darwin* )
46695 DEPSFLAG="-no-cpp-precomp -MMD"
46696 ;;
46697 * )
46698 DEPSFLAG="-MMD"
46699 ;;
46700 esac
46701 echo "$as_me:$LINENO: result: gcc" >&5
a848cd7e 46702echo "${ECHO_T}gcc" >&6
f10e38c4
VZ
46703 elif test "x$MWCC" = "xyes"; then
46704 DEPSMODE=mwcc
46705 DEPSFLAG="-MM"
46706 echo "$as_me:$LINENO: result: mwcc" >&5
b1d22ded 46707echo "${ECHO_T}mwcc" >&6
f10e38c4
VZ
46708 elif test "x$SUNCC" = "xyes"; then
46709 DEPSMODE=unixcc
46710 DEPSFLAG="-xM1"
46711 echo "$as_me:$LINENO: result: Sun cc" >&5
0ad5d837 46712echo "${ECHO_T}Sun cc" >&6
f10e38c4
VZ
46713 elif test "x$SGICC" = "xyes"; then
46714 DEPSMODE=unixcc
46715 DEPSFLAG="-M"
46716 echo "$as_me:$LINENO: result: SGI cc" >&5
0ad5d837 46717echo "${ECHO_T}SGI cc" >&6
f10e38c4
VZ
46718 elif test "x$HPCC" = "xyes"; then
46719 DEPSMODE=unixcc
46720 DEPSFLAG="+make"
46721 echo "$as_me:$LINENO: result: HP cc" >&5
3006edc0 46722echo "${ECHO_T}HP cc" >&6
f10e38c4
VZ
46723 elif test "x$COMPAQCC" = "xyes"; then
46724 DEPSMODE=gcc
46725 DEPSFLAG="-MD"
46726 echo "$as_me:$LINENO: result: Compaq cc" >&5
a1aa0349 46727echo "${ECHO_T}Compaq cc" >&6
f10e38c4
VZ
46728 else
46729 DEPS_TRACKING=0
46730 echo "$as_me:$LINENO: result: none" >&5
a848cd7e 46731echo "${ECHO_T}none" >&6
f10e38c4 46732 fi
a848cd7e 46733
f10e38c4 46734 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
46735
46736D='$'
46737cat <<EOF >bk-deps
a848cd7e
SC
46738#!/bin/sh
46739
46740# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
46741# script. It is used to track C/C++ files dependencies in portable way.
46742#
46743# Permission is given to use this file in any way.
46744
473276a9 46745DEPSMODE=${DEPSMODE}
a848cd7e 46746DEPSDIR=.deps
0ad5d837 46747DEPSFLAG="${DEPSFLAG}"
a848cd7e 46748
473276a9 46749mkdir -p ${D}DEPSDIR
a848cd7e 46750
473276a9 46751if test ${D}DEPSMODE = gcc ; then
0ad5d837 46752 ${D}* ${D}{DEPSFLAG}
473276a9
VS
46753 status=${D}?
46754 if test ${D}{status} != 0 ; then
46755 exit ${D}{status}
a848cd7e
SC
46756 fi
46757 # move created file to the location we want it in:
473276a9
VS
46758 while test ${D}# -gt 0; do
46759 case "${D}1" in
a848cd7e
SC
46760 -o )
46761 shift
473276a9 46762 objfile=${D}1
a848cd7e
SC
46763 ;;
46764 -* )
46765 ;;
46766 * )
473276a9 46767 srcfile=${D}1
a848cd7e
SC
46768 ;;
46769 esac
46770 shift
46771 done
1e9e8aba
DE
46772 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
46773 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
46774 if test -f ${D}depfile ; then
46775 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
46776 rm -f ${D}depfile
a848cd7e 46777 else
a1aa0349 46778 # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
1e9e8aba 46779 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
a1aa0349
VZ
46780 if test ! -f ${D}depfile ; then
46781 # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
46782 depfile="${D}objfile.d"
46783 fi
473276a9
VS
46784 if test -f ${D}depfile ; then
46785 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
46786 rm -f ${D}depfile
a848cd7e
SC
46787 fi
46788 fi
46789 exit 0
81f90336 46790elif test ${D}DEPSMODE = mwcc ; then
f6b50c59 46791 ${D}* || exit ${D}?
81f90336
MW
46792 # Run mwcc again with -MM and redirect into the dep file we want
46793 # NOTE: We can't use shift here because we need ${D}* to be valid
46794 prevarg=
46795 for arg in ${D}* ; do
46796 if test "${D}prevarg" = "-o"; then
46797 objfile=${D}arg
46798 else
46799 case "${D}arg" in
46800 -* )
46801 ;;
46802 * )
46803 srcfile=${D}arg
46804 ;;
46805 esac
46806 fi
46807 prevarg="${D}arg"
46808 done
0ad5d837 46809 ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
81f90336 46810 exit 0
0ad5d837 46811elif test ${D}DEPSMODE = unixcc; then
f6b50c59 46812 ${D}* || exit ${D}?
a9e5b1f0
MW
46813 # Run compiler again with deps flag and redirect into the dep file.
46814 # It doesn't work if the '-o FILE' option is used, but without it the
46815 # dependency file will contain the wrong name for the object. So it is
46816 # removed from the command line, and the dep file is fixed with sed.
46817 cmd=""
46818 while test ${D}# -gt 0; do
46819 case "${D}1" in
46820 -o )
46821 shift
46822 objfile=${D}1
46823 ;;
46824 * )
46825 eval arg${D}#=\\${D}1
46826 cmd="${D}cmd \\${D}arg${D}#"
46827 ;;
46828 esac
46829 shift
46830 done
0ad5d837 46831 eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
a9e5b1f0 46832 exit 0
a848cd7e 46833else
473276a9
VS
46834 ${D}*
46835 exit ${D}?
a848cd7e
SC
46836fi
46837EOF
473276a9 46838
f10e38c4
VZ
46839 chmod +x bk-deps
46840 fi
a848cd7e
SC
46841 fi
46842
46843
46844
46845
a848cd7e
SC
46846 case ${BAKEFILE_HOST} in
46847 *-*-cygwin* | *-*-mingw32* )
8ced02f6
DE
46848 if test -n "$ac_tool_prefix"; then
46849 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
46850set dummy ${ac_tool_prefix}windres; ac_word=$2
46851echo "$as_me:$LINENO: checking for $ac_word" >&5
46852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46853if test "${ac_cv_prog_WINDRES+set}" = set; then
46854 echo $ECHO_N "(cached) $ECHO_C" >&6
46855else
46856 if test -n "$WINDRES"; then
46857 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
46858else
46859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46860for as_dir in $PATH
46861do
46862 IFS=$as_save_IFS
46863 test -z "$as_dir" && as_dir=.
46864 for ac_exec_ext in '' $ac_executable_extensions; do
46865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46866 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
46867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46868 break 2
46869 fi
46870done
46871done
46872
46873fi
46874fi
46875WINDRES=$ac_cv_prog_WINDRES
46876if test -n "$WINDRES"; then
46877 echo "$as_me:$LINENO: result: $WINDRES" >&5
46878echo "${ECHO_T}$WINDRES" >&6
46879else
46880 echo "$as_me:$LINENO: result: no" >&5
46881echo "${ECHO_T}no" >&6
46882fi
46883
46884fi
46885if test -z "$ac_cv_prog_WINDRES"; then
46886 ac_ct_WINDRES=$WINDRES
46887 # Extract the first word of "windres", so it can be a program name with args.
a848cd7e
SC
46888set dummy windres; ac_word=$2
46889echo "$as_me:$LINENO: checking for $ac_word" >&5
46890echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 46891if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
a848cd7e
SC
46892 echo $ECHO_N "(cached) $ECHO_C" >&6
46893else
8ced02f6
DE
46894 if test -n "$ac_ct_WINDRES"; then
46895 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
a848cd7e
SC
46896else
46897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46898for as_dir in $PATH
46899do
46900 IFS=$as_save_IFS
46901 test -z "$as_dir" && as_dir=.
46902 for ac_exec_ext in '' $ac_executable_extensions; do
46903 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 46904 ac_cv_prog_ac_ct_WINDRES="windres"
a848cd7e
SC
46905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46906 break 2
46907 fi
46908done
46909done
46910
a848cd7e
SC
46911fi
46912fi
8ced02f6
DE
46913ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
46914if test -n "$ac_ct_WINDRES"; then
46915 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
46916echo "${ECHO_T}$ac_ct_WINDRES" >&6
a848cd7e
SC
46917else
46918 echo "$as_me:$LINENO: result: no" >&5
46919echo "${ECHO_T}no" >&6
46920fi
46921
8ced02f6
DE
46922 WINDRES=$ac_ct_WINDRES
46923else
46924 WINDRES="$ac_cv_prog_WINDRES"
46925fi
46926
a848cd7e
SC
46927 ;;
46928
1e9e8aba 46929 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
46930 # Extract the first word of "Rez", so it can be a program name with args.
46931set dummy Rez; ac_word=$2
46932echo "$as_me:$LINENO: checking for $ac_word" >&5
46933echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 46934if test "${ac_cv_prog_REZ+set}" = set; then
a848cd7e
SC
46935 echo $ECHO_N "(cached) $ECHO_C" >&6
46936else
8ced02f6
DE
46937 if test -n "$REZ"; then
46938 ac_cv_prog_REZ="$REZ" # Let the user override the test.
a848cd7e
SC
46939else
46940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46941for as_dir in $PATH
46942do
46943 IFS=$as_save_IFS
46944 test -z "$as_dir" && as_dir=.
46945 for ac_exec_ext in '' $ac_executable_extensions; do
46946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 46947 ac_cv_prog_REZ="Rez"
a848cd7e
SC
46948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46949 break 2
46950 fi
46951done
46952done
46953
8ced02f6 46954 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
a848cd7e
SC
46955fi
46956fi
8ced02f6
DE
46957REZ=$ac_cv_prog_REZ
46958if test -n "$REZ"; then
46959 echo "$as_me:$LINENO: result: $REZ" >&5
46960echo "${ECHO_T}$REZ" >&6
a848cd7e
SC
46961else
46962 echo "$as_me:$LINENO: result: no" >&5
46963echo "${ECHO_T}no" >&6
46964fi
46965
46966 # Extract the first word of "SetFile", so it can be a program name with args.
46967set dummy SetFile; ac_word=$2
46968echo "$as_me:$LINENO: checking for $ac_word" >&5
46969echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46970if test "${ac_cv_prog_SETFILE+set}" = set; then
46971 echo $ECHO_N "(cached) $ECHO_C" >&6
46972else
46973 if test -n "$SETFILE"; then
46974 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
46975else
46976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46977for as_dir in $PATH
46978do
46979 IFS=$as_save_IFS
46980 test -z "$as_dir" && as_dir=.
46981 for ac_exec_ext in '' $ac_executable_extensions; do
46982 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46983 ac_cv_prog_SETFILE="SetFile"
46984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46985 break 2
46986 fi
46987done
46988done
46989
46990 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
46991fi
46992fi
46993SETFILE=$ac_cv_prog_SETFILE
46994if test -n "$SETFILE"; then
46995 echo "$as_me:$LINENO: result: $SETFILE" >&5
46996echo "${ECHO_T}$SETFILE" >&6
46997else
46998 echo "$as_me:$LINENO: result: no" >&5
46999echo "${ECHO_T}no" >&6
47000fi
47001
47002 ;;
47003 esac
47004
47005
47006
47007
47008
8ced02f6 47009
f10e38c4 47010 BAKEFILE_BAKEFILE_M4_VERSION="0.2.0"
a848cd7e 47011
dcc1b6ad 47012
f10e38c4 47013BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.0"
a848cd7e 47014
646b6ec1 47015
74b84332 47016
a848cd7e
SC
47017 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
47018if test "${enable_precomp_headers+set}" = set; then
47019 enableval="$enable_precomp_headers"
47020 bk_use_pch="$enableval"
47021fi;
47022
47023 GCC_PCH=0
f10e38c4
VZ
47024 ICC_PCH=0
47025 USE_PCH=0
a848cd7e 47026
5c60e845
MW
47027 case ${BAKEFILE_HOST} in
47028 *-*-cygwin* )
47029 bk_use_pch="no"
47030 ;;
47031 esac
47032
a848cd7e
SC
47033 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
47034 if test "x$GCC" = "xyes"; then
47035 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
47036echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
47037 cat >conftest.$ac_ext <<_ACEOF
47038/* confdefs.h. */
47039_ACEOF
47040cat confdefs.h >>conftest.$ac_ext
47041cat >>conftest.$ac_ext <<_ACEOF
47042/* end confdefs.h. */
47043
47044int
47045main ()
47046{
47047
47048 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
e5efa97e 47049 There is no PCH support
a848cd7e
SC
47050 #endif
47051 #if (__GNUC__ < 3)
e5efa97e 47052 There is no PCH support
a848cd7e
SC
47053 #endif
47054 #if (__GNUC__ == 3) && \
47055 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
f10e38c4
VZ
47056 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
47057 ( defined(__INTEL_COMPILER) )
e5efa97e 47058 There is no PCH support
a848cd7e
SC
47059 #endif
47060
47061 ;
47062 return 0;
47063}
47064_ACEOF
47065rm -f conftest.$ac_objext
47066if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 47067 (eval $ac_compile) 2>conftest.er1
a848cd7e 47068 ac_status=$?
ac1cb8d3
VS
47069 grep -v '^ *+' conftest.er1 >conftest.err
47070 rm -f conftest.er1
47071 cat conftest.err >&5
a848cd7e
SC
47072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47073 (exit $ac_status); } &&
5d7b7554 47074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
47075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47076 (eval $ac_try) 2>&5
47077 ac_status=$?
47078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47079 (exit $ac_status); }; } &&
47080 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
47081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47082 (eval $ac_try) 2>&5
47083 ac_status=$?
47084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47085 (exit $ac_status); }; }; then
47086
47087 echo "$as_me:$LINENO: result: yes" >&5
47088echo "${ECHO_T}yes" >&6
a848cd7e
SC
47089 GCC_PCH=1
47090
47091else
47092 echo "$as_me: failed program was:" >&5
47093sed 's/^/| /' conftest.$ac_ext >&5
47094
47095
f10e38c4
VZ
47096 cat >conftest.$ac_ext <<_ACEOF
47097/* confdefs.h. */
47098_ACEOF
47099cat confdefs.h >>conftest.$ac_ext
47100cat >>conftest.$ac_ext <<_ACEOF
47101/* end confdefs.h. */
47102
47103int
47104main ()
47105{
47106
47107 #if !defined(__INTEL_COMPILER) || \
47108 (__INTEL_COMPILER < 800)
e5efa97e 47109 There is no PCH support
f10e38c4
VZ
47110 #endif
47111
47112 ;
47113 return 0;
47114}
47115_ACEOF
47116rm -f conftest.$ac_objext
47117if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47118 (eval $ac_compile) 2>conftest.er1
47119 ac_status=$?
47120 grep -v '^ *+' conftest.er1 >conftest.err
47121 rm -f conftest.er1
47122 cat conftest.err >&5
47123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47124 (exit $ac_status); } &&
5d7b7554 47125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
f10e38c4
VZ
47126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47127 (eval $ac_try) 2>&5
47128 ac_status=$?
47129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47130 (exit $ac_status); }; } &&
47131 { ac_try='test -s conftest.$ac_objext'
47132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47133 (eval $ac_try) 2>&5
47134 ac_status=$?
47135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47136 (exit $ac_status); }; }; then
47137
47138 echo "$as_me:$LINENO: result: yes" >&5
47139echo "${ECHO_T}yes" >&6
47140 ICC_PCH=1
47141
47142else
47143 echo "$as_me: failed program was:" >&5
47144sed 's/^/| /' conftest.$ac_ext >&5
47145
47146
47147 echo "$as_me:$LINENO: result: no" >&5
a848cd7e
SC
47148echo "${ECHO_T}no" >&6
47149
47150fi
ac1cb8d3 47151rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f10e38c4
VZ
47152
47153fi
47154rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47155 if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
47156 USE_PCH=1
1e9e8aba
DE
47157
47158D='$'
47159cat <<EOF >bk-make-pch
a848cd7e
SC
47160#!/bin/sh
47161
47162# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
47163# script. It is used to generated precompiled headers.
47164#
47165# Permission is given to use this file in any way.
47166
1e9e8aba
DE
47167outfile="${D}{1}"
47168header="${D}{2}"
a848cd7e
SC
47169shift
47170shift
47171
f10e38c4
VZ
47172compiler=""
47173headerfile=""
47174
1e9e8aba 47175while test ${D}{#} -gt 0; do
f10e38c4 47176 add_to_cmdline=1
1e9e8aba 47177 case "${D}{1}" in
a848cd7e 47178 -I* )
1e9e8aba
DE
47179 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
47180 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
47181 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
47182 fi
47183 ;;
f10e38c4
VZ
47184 -use-pch|-use_pch )
47185 shift
47186 add_to_cmdline=0
47187 ;;
a848cd7e 47188 esac
f10e38c4
VZ
47189 if test ${D}add_to_cmdline = 1 ; then
47190 compiler="${D}{compiler} ${D}{1}"
47191 fi
a848cd7e
SC
47192 shift
47193done
47194
1e9e8aba 47195if test "x${D}{headerfile}" = "x" ; then
f10e38c4 47196 echo "error: can't find header ${D}{header} in include paths" >&2
a848cd7e 47197else
1e9e8aba
DE
47198 if test -f ${D}{outfile} ; then
47199 rm -f ${D}{outfile}
a848cd7e 47200 else
1e9e8aba 47201 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 47202 fi
1e9e8aba 47203 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e 47204 mkdir -p .deps
f10e38c4
VZ
47205 if test "x${GCC_PCH}" = "x1" ; then
47206 # can do this because gcc is >= 3.4:
47207 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
47208 elif test "x${ICC_PCH}" = "x1" ; then
47209 filename=pch_gen-${D}${D}
47210 file=${D}{filename}.c
47211 dfile=${D}{filename}.d
47212 cat > ${D}file <<EOT
47213#include "${D}header"
47214EOT
47215 # using -MF icc complains about differing command lines in creation/use
47216 ${D}compiler -c -create_pch ${D}outfile -MMD ${D}file && \\
47217 sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
47218 rm -f ${D}file ${D}dfile ${D}{filename}.o
47219 fi
1e9e8aba 47220 exit ${D}{?}
a848cd7e
SC
47221fi
47222EOF
1e9e8aba 47223
a848cd7e
SC
47224 chmod +x bk-make-pch
47225 fi
47226 fi
47227 fi
47228
47229
47230
f10e38c4 47231
a848cd7e
SC
47232 COND_BUILD_DEBUG="#"
47233 if test "x$BUILD" = "xdebug" ; then
47234 COND_BUILD_DEBUG=""
47235 fi
47236
47237 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
47238 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
47239 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
47240 fi
47241
47242 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
47243 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
47244 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
47245 fi
47246
47247 COND_BUILD_DEBUG_UNICODE_0="#"
47248 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
47249 COND_BUILD_DEBUG_UNICODE_0=""
47250 fi
47251
47252 COND_BUILD_DEBUG_UNICODE_1="#"
47253 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
47254 COND_BUILD_DEBUG_UNICODE_1=""
47255 fi
47256
47257 COND_BUILD_RELEASE="#"
47258 if test "x$BUILD" = "xrelease" ; then
47259 COND_BUILD_RELEASE=""
47260 fi
47261
47262 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
47263 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
47264 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
47265 fi
47266
47267 COND_BUILD_RELEASE_UNICODE_0="#"
47268 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
47269 COND_BUILD_RELEASE_UNICODE_0=""
47270 fi
47271
47272 COND_BUILD_RELEASE_UNICODE_1="#"
47273 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
47274 COND_BUILD_RELEASE_UNICODE_1=""
47275 fi
47276
47277 COND_DEBUG_FLAG_1="#"
47278 if test "x$DEBUG_FLAG" = "x1" ; then
47279 COND_DEBUG_FLAG_1=""
47280 fi
47281
47282 COND_DEBUG_INFO_0="#"
47283 if test "x$DEBUG_INFO" = "x0" ; then
47284 COND_DEBUG_INFO_0=""
47285 fi
47286
47287 COND_DEBUG_INFO_1="#"
47288 if test "x$DEBUG_INFO" = "x1" ; then
47289 COND_DEBUG_INFO_1=""
47290 fi
47291
47292 COND_DEPS_TRACKING_0="#"
47293 if test "x$DEPS_TRACKING" = "x0" ; then
47294 COND_DEPS_TRACKING_0=""
47295 fi
47296
47297 COND_DEPS_TRACKING_1="#"
47298 if test "x$DEPS_TRACKING" = "x1" ; then
47299 COND_DEPS_TRACKING_1=""
47300 fi
47301
47302 COND_GCC_PCH_1="#"
47303 if test "x$GCC_PCH" = "x1" ; then
47304 COND_GCC_PCH_1=""
47305 fi
47306
f10e38c4
VZ
47307 COND_ICC_PCH_1="#"
47308 if test "x$ICC_PCH" = "x1" ; then
47309 COND_ICC_PCH_1=""
47310 fi
47311
a848cd7e
SC
47312 COND_MONOLITHIC_0="#"
47313 if test "x$MONOLITHIC" = "x0" ; then
47314 COND_MONOLITHIC_0=""
47315 fi
47316
47317 COND_MONOLITHIC_0_SHARED_0="#"
47318 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
47319 COND_MONOLITHIC_0_SHARED_0=""
47320 fi
47321
47322 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
47323 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
47324 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
47325 fi
47326
90970d69
DE
47327 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
47328 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
47329 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
47330 fi
47331
f10e38c4
VZ
47332 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
47333 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
47334 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
47335 fi
47336
a848cd7e
SC
47337 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
47338 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
47339 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
47340 fi
47341
6671c68b
VZ
47342 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
47343 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
47344 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
47345 fi
47346
a848cd7e
SC
47347 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
47348 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
47349 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
47350 fi
47351
ceec2216
RL
47352 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
47353 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
47354 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
47355 fi
47356
a848cd7e
SC
47357 COND_MONOLITHIC_0_SHARED_1="#"
47358 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
47359 COND_MONOLITHIC_0_SHARED_1=""
47360 fi
47361
47362 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
47363 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
47364 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
47365 fi
47366
90970d69
DE
47367 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
47368 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
47369 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
47370 fi
47371
f10e38c4
VZ
47372 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
47373 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
47374 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
47375 fi
47376
a848cd7e
SC
47377 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
47378 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
47379 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
47380 fi
47381
6671c68b
VZ
47382 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
47383 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
47384 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
47385 fi
47386
a848cd7e
SC
47387 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
47388 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
47389 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
47390 fi
47391
ceec2216
RL
47392 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
47393 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
47394 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
47395 fi
47396
e5efa97e
VZ
47397 COND_MONOLITHIC_0_USE_MEDIA_1="#"
47398 if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
47399 COND_MONOLITHIC_0_USE_MEDIA_1=""
47400 fi
47401
a848cd7e
SC
47402 COND_MONOLITHIC_0_USE_ODBC_1="#"
47403 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
47404 COND_MONOLITHIC_0_USE_ODBC_1=""
47405 fi
47406
47407 COND_MONOLITHIC_1="#"
47408 if test "x$MONOLITHIC" = "x1" ; then
47409 COND_MONOLITHIC_1=""
47410 fi
47411
47412 COND_MONOLITHIC_1_SHARED_0="#"
47413 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
47414 COND_MONOLITHIC_1_SHARED_0=""
47415 fi
47416
47417 COND_MONOLITHIC_1_SHARED_1="#"
47418 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
47419 COND_MONOLITHIC_1_SHARED_1=""
47420 fi
47421
47422 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
47423 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
47424 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
47425 fi
47426
47427 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
47428 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
47429 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
47430 fi
47431
eb730a0c
JS
47432 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
47433 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
47434 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
47435 fi
47436
a848cd7e
SC
47437 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
47438 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
47439 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
47440 fi
47441
47442 COND_PLATFORM_MACOSX_1="#"
47443 if test "x$PLATFORM_MACOSX" = "x1" ; then
47444 COND_PLATFORM_MACOSX_1=""
47445 fi
47446
a30f955f
VS
47447 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
47448 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
47449 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
47450 fi
47451
a848cd7e
SC
47452 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
47453 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
47454 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
47455 fi
47456
47457 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
47458 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
47459 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
47460 fi
47461
47462 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
47463 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
47464 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
47465 fi
47466
fc480dc1
DE
47467 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
47468 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
47469 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
47470 fi
47471
1e9e8aba
DE
47472 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
47473 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47474 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
47475 fi
47476
ebee3cd0
VS
47477 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
47478 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
47479 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
47480 fi
47481
47482 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
47483 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
47484 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
47485 fi
47486
a848cd7e
SC
47487 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
47488 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
47489 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
47490 fi
47491
47492 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
47493 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
47494 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
47495 fi
47496
b48a2016
DE
47497 COND_PLATFORM_MACOS_1="#"
47498 if test "x$PLATFORM_MACOS" = "x1" ; then
47499 COND_PLATFORM_MACOS_1=""
47500 fi
47501
083508af
MW
47502 COND_PLATFORM_MAC_1="#"
47503 if test "x$PLATFORM_MAC" = "x1" ; then
47504 COND_PLATFORM_MAC_1=""
47505 fi
47506
e5efa97e
VZ
47507 COND_PLATFORM_MSDOS_0="#"
47508 if test "x$PLATFORM_MSDOS" = "x0" ; then
47509 COND_PLATFORM_MSDOS_0=""
47510 fi
47511
83d8eb47
MW
47512 COND_PLATFORM_MSDOS_1="#"
47513 if test "x$PLATFORM_MSDOS" = "x1" ; then
47514 COND_PLATFORM_MSDOS_1=""
47515 fi
47516
a848cd7e
SC
47517 COND_PLATFORM_OS2_1="#"
47518 if test "x$PLATFORM_OS2" = "x1" ; then
47519 COND_PLATFORM_OS2_1=""
47520 fi
47521
47522 COND_PLATFORM_UNIX_0="#"
47523 if test "x$PLATFORM_UNIX" = "x0" ; then
47524 COND_PLATFORM_UNIX_0=""
47525 fi
47526
47527 COND_PLATFORM_UNIX_1="#"
47528 if test "x$PLATFORM_UNIX" = "x1" ; then
47529 COND_PLATFORM_UNIX_1=""
47530 fi
47531
47532 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
47533 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
47534 COND_PLATFORM_UNIX_1_USE_GUI_1=""
47535 fi
47536
47537 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
47538 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
47539 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
47540 fi
47541
47542 COND_PLATFORM_WIN32_0="#"
47543 if test "x$PLATFORM_WIN32" = "x0" ; then
47544 COND_PLATFORM_WIN32_0=""
47545 fi
47546
47547 COND_PLATFORM_WIN32_1="#"
47548 if test "x$PLATFORM_WIN32" = "x1" ; then
47549 COND_PLATFORM_WIN32_1=""
47550 fi
47551
47552 COND_SHARED_0="#"
47553 if test "x$SHARED" = "x0" ; then
47554 COND_SHARED_0=""
47555 fi
47556
083508af
MW
47557 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
47558 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
47559 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
47560 fi
47561
47562 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
47563 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
47564 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
47565 fi
47566
47567 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
47568 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
47569 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
47570 fi
47571
a848cd7e
SC
47572 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
47573 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
47574 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
47575 fi
47576
47577 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
47578 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
47579 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
47580 fi
47581
47582 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
47583 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
47584 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
47585 fi
47586
47587 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
47588 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
47589 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
47590 fi
47591
083508af
MW
47592 COND_SHARED_0_USE_XRC_1="#"
47593 if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
47594 COND_SHARED_0_USE_XRC_1=""
47595 fi
47596
a848cd7e
SC
47597 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
47598 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
47599 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
47600 fi
47601
47602 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
47603 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
47604 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
47605 fi
47606
47607 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
47608 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
47609 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
47610 fi
47611
47612 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
47613 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
47614 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
47615 fi
47616
47617 COND_SHARED_1="#"
47618 if test "x$SHARED" = "x1" ; then
47619 COND_SHARED_1=""
47620 fi
47621
47622 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
47623 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
47624 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
47625 fi
47626
083508af
MW
47627 COND_SHARED_1_USE_XRC_1="#"
47628 if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
47629 COND_SHARED_1_USE_XRC_1=""
47630 fi
47631
a30f955f
VS
47632 COND_TOOLKIT_="#"
47633 if test "x$TOOLKIT" = "x" ; then
47634 COND_TOOLKIT_=""
47635 fi
47636
a848cd7e
SC
47637 COND_TOOLKIT_COCOA="#"
47638 if test "x$TOOLKIT" = "xCOCOA" ; then
47639 COND_TOOLKIT_COCOA=""
47640 fi
47641
a49baeab
DE
47642 COND_TOOLKIT_COCOA_USE_GUI_1="#"
47643 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
47644 COND_TOOLKIT_COCOA_USE_GUI_1=""
47645 fi
47646
a848cd7e
SC
47647 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
47648 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47649 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
47650 fi
47651
47652 COND_TOOLKIT_GTK="#"
47653 if test "x$TOOLKIT" = "xGTK" ; then
47654 COND_TOOLKIT_GTK=""
47655 fi
47656
d044deea
MW
47657 COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
47658 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
47659 COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
47660 fi
47661
47662 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
47663 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
47664 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
47665 fi
47666
47667 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
47668 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
47669 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
47670 fi
47671
47672 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
47673 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47674 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
47675 fi
47676
47677 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
47678 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
47679 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
47680 fi
47681
47682 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
47683 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47684 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
47685 fi
47686
a848cd7e
SC
47687 COND_TOOLKIT_GTK_USE_GUI_1="#"
47688 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
47689 COND_TOOLKIT_GTK_USE_GUI_1=""
47690 fi
47691
a848cd7e
SC
47692 COND_TOOLKIT_MAC="#"
47693 if test "x$TOOLKIT" = "xMAC" ; then
47694 COND_TOOLKIT_MAC=""
47695 fi
47696
47697 COND_TOOLKIT_MAC_USE_GUI_1="#"
47698 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
47699 COND_TOOLKIT_MAC_USE_GUI_1=""
47700 fi
47701
47702 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
47703 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47704 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
47705 fi
47706
47707 COND_TOOLKIT_MGL="#"
47708 if test "x$TOOLKIT" = "xMGL" ; then
47709 COND_TOOLKIT_MGL=""
47710 fi
47711
47712 COND_TOOLKIT_MGL_USE_GUI_1="#"
47713 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
47714 COND_TOOLKIT_MGL_USE_GUI_1=""
47715 fi
47716
47717 COND_TOOLKIT_MOTIF="#"
47718 if test "x$TOOLKIT" = "xMOTIF" ; then
47719 COND_TOOLKIT_MOTIF=""
47720 fi
47721
47722 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
47723 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
47724 COND_TOOLKIT_MOTIF_USE_GUI_1=""
47725 fi
47726
47727 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
47728 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47729 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
47730 fi
47731
47732 COND_TOOLKIT_MSW="#"
47733 if test "x$TOOLKIT" = "xMSW" ; then
47734 COND_TOOLKIT_MSW=""
47735 fi
47736
47737 COND_TOOLKIT_MSW_USE_GUI_1="#"
47738 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
47739 COND_TOOLKIT_MSW_USE_GUI_1=""
47740 fi
47741
47742 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
47743 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47744 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
47745 fi
47746
0ee4059d
DE
47747 COND_TOOLKIT_MSW_WXUNIV_0="#"
47748 if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
47749 COND_TOOLKIT_MSW_WXUNIV_0=""
47750 fi
47751
a848cd7e
SC
47752 COND_TOOLKIT_PM="#"
47753 if test "x$TOOLKIT" = "xPM" ; then
47754 COND_TOOLKIT_PM=""
47755 fi
47756
47757 COND_TOOLKIT_PM_USE_GUI_1="#"
47758 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
47759 COND_TOOLKIT_PM_USE_GUI_1=""
47760 fi
47761
47762 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
47763 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47764 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
47765 fi
47766
3fd9c298
DE
47767 COND_TOOLKIT_WINCE="#"
47768 if test "x$TOOLKIT" = "xWINCE" ; then
47769 COND_TOOLKIT_WINCE=""
47770 fi
47771
47772 COND_TOOLKIT_WINCE_USE_GUI_1="#"
47773 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
47774 COND_TOOLKIT_WINCE_USE_GUI_1=""
47775 fi
47776
47777 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
47778 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47779 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
47780 fi
47781
0ee4059d
DE
47782 COND_TOOLKIT_WINCE_WXUNIV_0="#"
47783 if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
47784 COND_TOOLKIT_WINCE_WXUNIV_0=""
47785 fi
47786
a848cd7e
SC
47787 COND_TOOLKIT_X11="#"
47788 if test "x$TOOLKIT" = "xX11" ; then
47789 COND_TOOLKIT_X11=""
47790 fi
47791
47792 COND_TOOLKIT_X11_USE_GUI_1="#"
47793 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
47794 COND_TOOLKIT_X11_USE_GUI_1=""
47795 fi
47796
47797 COND_UNICODE_1="#"
47798 if test "x$UNICODE" = "x1" ; then
47799 COND_UNICODE_1=""
47800 fi
47801
47802 COND_USE_EXCEPTIONS_0="#"
47803 if test "x$USE_EXCEPTIONS" = "x0" ; then
47804 COND_USE_EXCEPTIONS_0=""
47805 fi
47806
47807 COND_USE_EXCEPTIONS_1="#"
47808 if test "x$USE_EXCEPTIONS" = "x1" ; then
47809 COND_USE_EXCEPTIONS_1=""
47810 fi
47811
47812 COND_USE_GUI_0="#"
47813 if test "x$USE_GUI" = "x0" ; then
47814 COND_USE_GUI_0=""
47815 fi
47816
47817 COND_USE_GUI_1="#"
47818 if test "x$USE_GUI" = "x1" ; then
47819 COND_USE_GUI_1=""
47820 fi
47821
47822 COND_USE_GUI_1_WXUNIV_0="#"
47823 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47824 COND_USE_GUI_1_WXUNIV_0=""
47825 fi
47826
47827 COND_USE_GUI_1_WXUNIV_1="#"
47828 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
47829 COND_USE_GUI_1_WXUNIV_1=""
47830 fi
47831
47832 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
47833 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
47834 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
47835 fi
47836
47837 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
47838 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
47839 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
47840 fi
47841
47842 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
47843 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
47844 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
47845 fi
47846
083508af
MW
47847 COND_USE_ODBC_1="#"
47848 if test "x$USE_ODBC" = "x1" ; then
47849 COND_USE_ODBC_1=""
47850 fi
47851
47852 COND_USE_OPENGL_1="#"
47853 if test "x$USE_OPENGL" = "x1" ; then
47854 COND_USE_OPENGL_1=""
47855 fi
47856
f10e38c4
VZ
47857 COND_USE_PCH_1="#"
47858 if test "x$USE_PCH" = "x1" ; then
47859 COND_USE_PCH_1=""
47860 fi
47861
a848cd7e
SC
47862 COND_USE_PLUGINS_0="#"
47863 if test "x$USE_PLUGINS" = "x0" ; then
47864 COND_USE_PLUGINS_0=""
47865 fi
47866
0b78747f
MW
47867 COND_USE_RTTI_0="#"
47868 if test "x$USE_RTTI" = "x0" ; then
47869 COND_USE_RTTI_0=""
47870 fi
47871
47872 COND_USE_RTTI_1="#"
47873 if test "x$USE_RTTI" = "x1" ; then
47874 COND_USE_RTTI_1=""
47875 fi
47876
a848cd7e
SC
47877 COND_USE_SOSYMLINKS_1="#"
47878 if test "x$USE_SOSYMLINKS" = "x1" ; then
47879 COND_USE_SOSYMLINKS_1=""
47880 fi
47881
eb730a0c
JS
47882 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
47883 if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
47884 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
47885 fi
47886
a848cd7e
SC
47887 COND_USE_SOVERLINUX_1="#"
47888 if test "x$USE_SOVERLINUX" = "x1" ; then
47889 COND_USE_SOVERLINUX_1=""
47890 fi
47891
47892 COND_USE_SOVERSION_0="#"
47893 if test "x$USE_SOVERSION" = "x0" ; then
47894 COND_USE_SOVERSION_0=""
47895 fi
47896
47897 COND_USE_SOVERSOLARIS_1="#"
47898 if test "x$USE_SOVERSOLARIS" = "x1" ; then
47899 COND_USE_SOVERSOLARIS_1=""
47900 fi
47901
0b78747f
MW
47902 COND_USE_THREADS_0="#"
47903 if test "x$USE_THREADS" = "x0" ; then
47904 COND_USE_THREADS_0=""
47905 fi
47906
47907 COND_USE_THREADS_1="#"
47908 if test "x$USE_THREADS" = "x1" ; then
47909 COND_USE_THREADS_1=""
47910 fi
47911
a13a7f89
RL
47912 COND_USE_XRC_1="#"
47913 if test "x$USE_XRC" = "x1" ; then
47914 COND_USE_XRC_1=""
47915 fi
47916
eb730a0c
JS
47917 COND_WINDOWS_IMPLIB_1="#"
47918 if test "x$WINDOWS_IMPLIB" = "x1" ; then
47919 COND_WINDOWS_IMPLIB_1=""
47920 fi
47921
a848cd7e
SC
47922 COND_WITH_PLUGIN_SDL_1="#"
47923 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
47924 COND_WITH_PLUGIN_SDL_1=""
47925 fi
47926
1e6eb025
VZ
47927 COND_WXUNIV_0="#"
47928 if test "x$WXUNIV" = "x0" ; then
47929 COND_WXUNIV_0=""
47930 fi
47931
a848cd7e
SC
47932 COND_WXUNIV_1="#"
47933 if test "x$WXUNIV" = "x1" ; then
47934 COND_WXUNIV_1=""
47935 fi
47936
47937 COND_WXUSE_EXPAT_BUILTIN="#"
47938 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
47939 COND_WXUSE_EXPAT_BUILTIN=""
47940 fi
47941
47942 COND_WXUSE_LIBJPEG_BUILTIN="#"
47943 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
47944 COND_WXUSE_LIBJPEG_BUILTIN=""
47945 fi
47946
47947 COND_WXUSE_LIBPNG_BUILTIN="#"
47948 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
47949 COND_WXUSE_LIBPNG_BUILTIN=""
47950 fi
47951
47952 COND_WXUSE_LIBTIFF_BUILTIN="#"
47953 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
47954 COND_WXUSE_LIBTIFF_BUILTIN=""
47955 fi
47956
47957 COND_WXUSE_ODBC_BUILTIN="#"
47958 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
47959 COND_WXUSE_ODBC_BUILTIN=""
47960 fi
47961
47962 COND_WXUSE_REGEX_BUILTIN="#"
47963 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
47964 COND_WXUSE_REGEX_BUILTIN=""
47965 fi
47966
47967 COND_WXUSE_ZLIB_BUILTIN="#"
47968 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
47969 COND_WXUSE_ZLIB_BUILTIN=""
47970 fi
47971
47972
47973
810b94f0
MW
47974 if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
47975 { { 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
47976echo "$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;}
47977 { (exit 1); exit 1; }; }
47978 fi
47979
2057db16
VS
47980 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
47981 { { 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
47982echo "$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;}
47983 { (exit 1); exit 1; }; }
47984 fi
47985
a848cd7e 47986
7afc46ab
KO
47987
47988if test "$wxUSE_MAC" = 1 ; then
47989 if test "$wxUSE_UNIVERSAL_BINARY" = "yes" ; then
47990 sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
47991 mv temp bk-deps
47992 chmod +x bk-deps
47993 fi
47994fi
47995
ceec2216
RL
47996if test "$wxUSE_SHARED" = "yes"; then
47997
47998 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
47999 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
48000
5b674b9d
DE
48001 case "${host}" in
48002 *-pc-os2_emx | *-pc-os2-emx )
48003 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48004 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48005 cp -p ${srcdir}/src/os2/dllnames.sh .
48006 cp -p ${srcdir}/src/os2/dllar.sh .
48007 ;;
48008 esac
ceec2216
RL
48009else
48010
48011 EXE_LINKER="$CXX -o"
48012
48013fi
69120ee4
VZ
48014if test "$wxUSE_OMF" = "yes"; then
48015 case "${host}" in
48016 *-pc-os2_emx | *-pc-os2-emx )
48017 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
48018 LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
48019 WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
48020 ;;
48021 esac
48022fi
a848cd7e 48023
c08ebc62 48024if test $GCC_PCH = 1 ; then
254e8e29 48025 CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
ddd14b14 48026fi
a848cd7e 48027
5ff751d6 48028WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
a848cd7e
SC
48029
48030SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
48031
48032
48033
48034
48035
48036
48037
48038
48039
48040
48041
48042
48043
48044
48045
48046
48047
48048
48049
48050
48051
48052
48053
48054
48055
48056
48057
48058
48059
48060
48061
48062
48063
48064
48065
48066
48067
48068
48069
48070
48071
48072
a848cd7e
SC
48073
48074
48075
48076
48077
48078
48079
48080
48081
48082
48083
48084
a848cd7e
SC
48085
48086
ddd14b14 48087
370d2fd7 48088
8ced02f6 48089
a848cd7e
SC
48090
48091
48092echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
48093echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 48094set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
48095if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
48096 echo $ECHO_N "(cached) $ECHO_C" >&6
48097else
48098 cat >conftest.make <<\_ACEOF
48099all:
48100 @echo 'ac_maketemp="$(MAKE)"'
48101_ACEOF
48102# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
48103eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
48104if test -n "$ac_maketemp"; then
48105 eval ac_cv_prog_make_${ac_make}_set=yes
48106else
48107 eval ac_cv_prog_make_${ac_make}_set=no
48108fi
48109rm -f conftest.make
48110fi
48111if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
48112 echo "$as_me:$LINENO: result: yes" >&5
48113echo "${ECHO_T}yes" >&6
48114 SET_MAKE=
48115else
48116 echo "$as_me:$LINENO: result: no" >&5
48117echo "${ECHO_T}no" >&6
48118 SET_MAKE="MAKE=${MAKE-make}"
48119fi
48120
48121
a848cd7e 48122
ceec2216
RL
48123 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
48124
a848cd7e 48125
5c60e845
MW
48126if test "$USE_WIN32" = 1; then
48127 ac_config_commands="$ac_config_commands
48128 rcdefs.h
48129 "
48130
48131fi
48132
ceec2216 48133 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 48134
a848cd7e 48135
ceec2216 48136 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 48137
ceec2216
RL
48138
48139 ac_config_files="$ac_config_files version-script Makefile"
48140
48141
5c60e845 48142 ac_config_commands="$ac_config_commands wx-config"
a848cd7e
SC
48143
48144
9103d280 48145
1c14217d 48146if test "$wxWITH_SUBDIRS" != "no"; then
a848cd7e
SC
48147if test "$wxUSE_GUI" = "yes"; then
48148 SUBDIRS="samples demos utils contrib"
48149else SUBDIRS="samples utils"
48150fi
48151
48152
48153
48154# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
48155if test "${with_cppunit_prefix+set}" = set; then
48156 withval="$with_cppunit_prefix"
48157 cppunit_config_prefix="$withval"
48158else
48159 cppunit_config_prefix=""
48160fi;
48161
48162# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
48163if test "${with_cppunit_exec_prefix+set}" = set; then
48164 withval="$with_cppunit_exec_prefix"
48165 cppunit_config_exec_prefix="$withval"
48166else
48167 cppunit_config_exec_prefix=""
48168fi;
48169
48170 if test x$cppunit_config_exec_prefix != x ; then
48171 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
48172 if test x${CPPUNIT_CONFIG+set} != xset ; then
48173 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
48174 fi
48175 fi
48176 if test x$cppunit_config_prefix != x ; then
48177 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
48178 if test x${CPPUNIT_CONFIG+set} != xset ; then
48179 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
48180 fi
48181 fi
48182
48183 # Extract the first word of "cppunit-config", so it can be a program name with args.
48184set dummy cppunit-config; ac_word=$2
48185echo "$as_me:$LINENO: checking for $ac_word" >&5
48186echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48187if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
48188 echo $ECHO_N "(cached) $ECHO_C" >&6
48189else
48190 case $CPPUNIT_CONFIG in
48191 [\\/]* | ?:[\\/]*)
48192 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
48193 ;;
48194 *)
48195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48196for as_dir in $PATH
48197do
48198 IFS=$as_save_IFS
48199 test -z "$as_dir" && as_dir=.
48200 for ac_exec_ext in '' $ac_executable_extensions; do
48201 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48202 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
48203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48204 break 2
48205 fi
48206done
48207done
48208
48209 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
48210 ;;
48211esac
48212fi
48213CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
48214
48215if test -n "$CPPUNIT_CONFIG"; then
48216 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
48217echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
48218else
48219 echo "$as_me:$LINENO: result: no" >&5
48220echo "${ECHO_T}no" >&6
48221fi
48222
48223 cppunit_version_min=1.8.0
48224
48225 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
48226echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
48227 no_cppunit=""
48228 if test "$CPPUNIT_CONFIG" = "no" ; then
48229 no_cppunit=yes
48230 else
48231 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
48232 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
48233 cppunit_version=`$CPPUNIT_CONFIG --version`
48234
48235 cppunit_major_version=`echo $cppunit_version | \
48236 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
48237 cppunit_minor_version=`echo $cppunit_version | \
48238 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
48239 cppunit_micro_version=`echo $cppunit_version | \
48240 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
48241
48242 cppunit_major_min=`echo $cppunit_version_min | \
48243 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
48244 cppunit_minor_min=`echo $cppunit_version_min | \
48245 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
48246 cppunit_micro_min=`echo $cppunit_version_min | \
48247 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
48248
48249 cppunit_version_proper=`expr \
48250 $cppunit_major_version \> $cppunit_major_min \| \
48251 $cppunit_major_version \= $cppunit_major_min \& \
48252 $cppunit_minor_version \> $cppunit_minor_min \| \
48253 $cppunit_major_version \= $cppunit_major_min \& \
48254 $cppunit_minor_version \= $cppunit_minor_min \& \
48255 $cppunit_micro_version \>= $cppunit_micro_min `
48256
48257 if test "$cppunit_version_proper" = "1" ; then
48258 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
48259echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
48260 else
48261 echo "$as_me:$LINENO: result: no" >&5
48262echo "${ECHO_T}no" >&6
48263 no_cppunit=yes
48264 fi
48265 fi
48266
48267 if test "x$no_cppunit" = x ; then
c2218763 48268 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
48269 else
48270 CPPUNIT_CFLAGS=""
48271 CPPUNIT_LIBS=""
c2218763 48272 :
a848cd7e
SC
48273 fi
48274
48275
48276
48277
48278
48279for subdir in `echo $SUBDIRS`; do
48280 if test -d ${srcdir}/${subdir} ; then
48281 if test "$wxUSE_GUI" = "yes"; then
48282 if test ${subdir} = "samples"; then
48283 makefiles="samples/Makefile.in $makefiles"
48284 for sample in `echo $SAMPLES_SUBDIRS`; do
48285 if test -d $srcdir/samples/$sample; then
48286 makefiles="samples/$sample/Makefile.in $makefiles"
48287 fi
48288 done
9c112555
MW
48289 else
48290 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
48291 eval "disabled=\$$disabled_var"
48292 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
48293 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"`
a848cd7e
SC
48294 fi
48295 else if test ${subdir} = "samples"; then
48296 makefiles="samples/Makefile.in samples/console/Makefile.in"
48297 elif test ${subdir} = "utils"; then
6537ccf8
VS
48298 makefiles=""
48299 for util in HelpGen tex2rtf ; do
48300 if test -d $srcdir/utils/$util ; then
48301 makefiles="utils/$util/Makefile.in \
48302 utils/$util/src/Makefile.in \
48303 $makefiles"
48304 fi
48305 done
a848cd7e
SC
48306 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
48307 fi
48308 fi
48309
48310 for mkin in $makefiles ; do
48311 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
48312 ac_config_files="$ac_config_files $mk"
48313
48314 done
48315 fi
48316done
1c14217d 48317fi
a848cd7e
SC
48318cat >confcache <<\_ACEOF
48319# This file is a shell script that caches the results of configure
48320# tests run on this system so they can be shared between configure
48321# scripts and configure runs, see configure's option --config-cache.
48322# It is not useful on other systems. If it contains results you don't
48323# want to keep, you may remove or edit it.
48324#
48325# config.status only pays attention to the cache file if you give it
48326# the --recheck option to rerun configure.
48327#
48328# `ac_cv_env_foo' variables (set or unset) will be overridden when
48329# loading this file, other *unset* `ac_cv_foo' will be assigned the
48330# following values.
48331
48332_ACEOF
48333
48334# The following way of writing the cache mishandles newlines in values,
48335# but we know of no workaround that is simple, portable, and efficient.
48336# So, don't put newlines in cache variables' values.
48337# Ultrix sh set writes to stderr and can't be redirected directly,
48338# and sets the high bit in the cache file unless we assign to the vars.
48339{
48340 (set) 2>&1 |
48341 case `(ac_space=' '; set | grep ac_space) 2>&1` in
48342 *ac_space=\ *)
48343 # `set' does not quote correctly, so add quotes (double-quote
48344 # substitution turns \\\\ into \\, and sed turns \\ into \).
48345 sed -n \
ac1cb8d3
VS
48346 "s/'/'\\\\''/g;
48347 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
48348 ;;
48349 *)
48350 # `set' quotes correctly as required by POSIX, so do not add quotes.
48351 sed -n \
ac1cb8d3 48352 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
48353 ;;
48354 esac;
48355} |
48356 sed '
48357 t clear
48358 : clear
48359 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
48360 t end
48361 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
48362 : end' >>confcache
48363if diff $cache_file confcache >/dev/null 2>&1; then :; else
48364 if test -w $cache_file; then
48365 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
48366 cat confcache >$cache_file
48367 else
48368 echo "not updating unwritable cache $cache_file"
48369 fi
48370fi
48371rm -f confcache
48372
48373test "x$prefix" = xNONE && prefix=$ac_default_prefix
48374# Let make expand exec_prefix.
48375test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
48376
48377# VPATH may cause trouble with some makes, so we remove $(srcdir),
48378# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
48379# trailing colons and then remove the whole line if VPATH becomes empty
48380# (actually we leave an empty line to preserve line numbers).
48381if test "x$srcdir" = x.; then
ac1cb8d3 48382 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
48383s/:*\$(srcdir):*/:/;
48384s/:*\${srcdir}:*/:/;
48385s/:*@srcdir@:*/:/;
ac1cb8d3 48386s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 48387s/:*$//;
ac1cb8d3 48388s/^[^=]*=[ ]*$//;
a848cd7e
SC
48389}'
48390fi
48391
48392DEFS=-DHAVE_CONFIG_H
48393
48394ac_libobjs=
48395ac_ltlibobjs=
48396for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
48397 # 1. Remove the extension, and $U if already installed.
48398 ac_i=`echo "$ac_i" |
ac1cb8d3 48399 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
48400 # 2. Add them.
48401 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
48402 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
48403done
48404LIBOBJS=$ac_libobjs
48405
48406LTLIBOBJS=$ac_ltlibobjs
48407
48408
48409
48410: ${CONFIG_STATUS=./config.status}
48411ac_clean_files_save=$ac_clean_files
48412ac_clean_files="$ac_clean_files $CONFIG_STATUS"
48413{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
48414echo "$as_me: creating $CONFIG_STATUS" >&6;}
48415cat >$CONFIG_STATUS <<_ACEOF
48416#! $SHELL
48417# Generated by $as_me.
48418# Run this file to recreate the current configuration.
48419# Compiler output produced by configure, useful for debugging
48420# configure, is in config.log if it exists.
48421
48422debug=false
48423ac_cs_recheck=false
48424ac_cs_silent=false
48425SHELL=\${CONFIG_SHELL-$SHELL}
48426_ACEOF
48427
48428cat >>$CONFIG_STATUS <<\_ACEOF
48429## --------------------- ##
48430## M4sh Initialization. ##
48431## --------------------- ##
48432
48433# Be Bourne compatible
48434if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
48435 emulate sh
48436 NULLCMD=:
48437 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
48438 # is contrary to our usage. Disable this feature.
48439 alias -g '${1+"$@"}'='"$@"'
48440elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
48441 set -o posix
48442fi
ac1cb8d3 48443DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
48444
48445# Support unset when possible.
ac1cb8d3 48446if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
48447 as_unset=unset
48448else
48449 as_unset=false
48450fi
48451
48452
48453# Work around bugs in pre-3.0 UWIN ksh.
48454$as_unset ENV MAIL MAILPATH
48455PS1='$ '
48456PS2='> '
48457PS4='+ '
48458
48459# NLS nuisances.
48460for as_var in \
48461 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
48462 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
48463 LC_TELEPHONE LC_TIME
48464do
ac1cb8d3 48465 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
48466 eval $as_var=C; export $as_var
48467 else
48468 $as_unset $as_var
48469 fi
48470done
48471
48472# Required to use basename.
48473if expr a : '\(a\)' >/dev/null 2>&1; then
48474 as_expr=expr
48475else
48476 as_expr=false
48477fi
48478
48479if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
48480 as_basename=basename
48481else
48482 as_basename=false
48483fi
48484
48485
48486# Name of the executable.
48487as_me=`$as_basename "$0" ||
48488$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
48489 X"$0" : 'X\(//\)$' \| \
48490 X"$0" : 'X\(/\)$' \| \
48491 . : '\(.\)' 2>/dev/null ||
48492echo X/"$0" |
48493 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
48494 /^X\/\(\/\/\)$/{ s//\1/; q; }
48495 /^X\/\(\/\).*/{ s//\1/; q; }
48496 s/.*/./; q'`
48497
48498
48499# PATH needs CR, and LINENO needs CR and PATH.
48500# Avoid depending upon Character Ranges.
48501as_cr_letters='abcdefghijklmnopqrstuvwxyz'
48502as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
48503as_cr_Letters=$as_cr_letters$as_cr_LETTERS
48504as_cr_digits='0123456789'
48505as_cr_alnum=$as_cr_Letters$as_cr_digits
48506
48507# The user is always right.
48508if test "${PATH_SEPARATOR+set}" != set; then
48509 echo "#! /bin/sh" >conf$$.sh
48510 echo "exit 0" >>conf$$.sh
48511 chmod +x conf$$.sh
48512 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48513 PATH_SEPARATOR=';'
48514 else
48515 PATH_SEPARATOR=:
48516 fi
48517 rm -f conf$$.sh
48518fi
48519
48520
48521 as_lineno_1=$LINENO
48522 as_lineno_2=$LINENO
48523 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
48524 test "x$as_lineno_1" != "x$as_lineno_2" &&
48525 test "x$as_lineno_3" = "x$as_lineno_2" || {
48526 # Find who we are. Look in the path if we contain no path at all
48527 # relative or not.
48528 case $0 in
48529 *[\\/]* ) as_myself=$0 ;;
48530 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48531for as_dir in $PATH
48532do
48533 IFS=$as_save_IFS
48534 test -z "$as_dir" && as_dir=.
48535 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
48536done
48537
48538 ;;
48539 esac
48540 # We did not find ourselves, most probably we were run as `sh COMMAND'
48541 # in which case we are not to be found in the path.
48542 if test "x$as_myself" = x; then
48543 as_myself=$0
48544 fi
48545 if test ! -f "$as_myself"; then
48546 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
48547echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
48548 { (exit 1); exit 1; }; }
48549 fi
48550 case $CONFIG_SHELL in
48551 '')
48552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48553for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
48554do
48555 IFS=$as_save_IFS
48556 test -z "$as_dir" && as_dir=.
48557 for as_base in sh bash ksh sh5; do
48558 case $as_dir in
48559 /*)
48560 if ("$as_dir/$as_base" -c '
48561 as_lineno_1=$LINENO
48562 as_lineno_2=$LINENO
48563 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
48564 test "x$as_lineno_1" != "x$as_lineno_2" &&
48565 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
48566 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
48567 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
48568 CONFIG_SHELL=$as_dir/$as_base
48569 export CONFIG_SHELL
48570 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
48571 fi;;
48572 esac
48573 done
48574done
48575;;
48576 esac
48577
48578 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
48579 # uniformly replaced by the line number. The first 'sed' inserts a
48580 # line-number line before each line; the second 'sed' does the real
48581 # work. The second script uses 'N' to pair each line-number line
48582 # with the numbered line, and appends trailing '-' during
48583 # substitution so that $LINENO is not a special case at line end.
48584 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
48585 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
48586 sed '=' <$as_myself |
48587 sed '
48588 N
48589 s,$,-,
48590 : loop
48591 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
48592 t loop
48593 s,-$,,
48594 s,^['$as_cr_digits']*\n,,
48595 ' >$as_me.lineno &&
48596 chmod +x $as_me.lineno ||
48597 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
48598echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
48599 { (exit 1); exit 1; }; }
48600
48601 # Don't try to exec as it changes $[0], causing all sort of problems
48602 # (the dirname of $[0] is not the place where we might find the
48603 # original and so on. Autoconf is especially sensible to this).
48604 . ./$as_me.lineno
48605 # Exit status is that of the last command.
48606 exit
48607}
48608
48609
48610case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
48611 *c*,-n*) ECHO_N= ECHO_C='
48612' ECHO_T=' ' ;;
48613 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
48614 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
48615esac
48616
48617if expr a : '\(a\)' >/dev/null 2>&1; then
48618 as_expr=expr
48619else
48620 as_expr=false
48621fi
48622
48623rm -f conf$$ conf$$.exe conf$$.file
48624echo >conf$$.file
48625if ln -s conf$$.file conf$$ 2>/dev/null; then
48626 # We could just check for DJGPP; but this test a) works b) is more generic
48627 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
48628 if test -f conf$$.exe; then
48629 # Don't use ln at all; we don't have any links
48630 as_ln_s='cp -p'
48631 else
48632 as_ln_s='ln -s'
48633 fi
48634elif ln conf$$.file conf$$ 2>/dev/null; then
48635 as_ln_s=ln
48636else
48637 as_ln_s='cp -p'
48638fi
48639rm -f conf$$ conf$$.exe conf$$.file
48640
48641if mkdir -p . 2>/dev/null; then
48642 as_mkdir_p=:
48643else
ac1cb8d3 48644 test -d ./-p && rmdir ./-p
a848cd7e
SC
48645 as_mkdir_p=false
48646fi
48647
48648as_executable_p="test -f"
48649
48650# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 48651as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
48652
48653# Sed expression to map a string onto a valid variable name.
ac1cb8d3 48654as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
48655
48656
48657# IFS
48658# We need space, tab and new line, in precisely that order.
48659as_nl='
48660'
48661IFS=" $as_nl"
48662
48663# CDPATH.
48664$as_unset CDPATH
48665
48666exec 6>&1
48667
48668# Open the log real soon, to keep \$[0] and so on meaningful, and to
48669# report actual input values of CONFIG_FILES etc. instead of their
48670# values after options handling. Logging --version etc. is OK.
48671exec 5>>config.log
48672{
48673 echo
48674 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
48675## Running $as_me. ##
48676_ASBOX
48677} >&5
48678cat >&5 <<_CSEOF
48679
dd8df4fc 48680This file was extended by wxWidgets $as_me 2.7.0, which was
ac1cb8d3 48681generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
48682
48683 CONFIG_FILES = $CONFIG_FILES
48684 CONFIG_HEADERS = $CONFIG_HEADERS
48685 CONFIG_LINKS = $CONFIG_LINKS
48686 CONFIG_COMMANDS = $CONFIG_COMMANDS
48687 $ $0 $@
48688
48689_CSEOF
48690echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
48691echo >&5
48692_ACEOF
48693
48694# Files that config.status was made for.
48695if test -n "$ac_config_files"; then
48696 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
48697fi
48698
48699if test -n "$ac_config_headers"; then
48700 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
48701fi
48702
48703if test -n "$ac_config_links"; then
48704 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
48705fi
48706
48707if test -n "$ac_config_commands"; then
48708 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
48709fi
48710
48711cat >>$CONFIG_STATUS <<\_ACEOF
48712
48713ac_cs_usage="\
48714\`$as_me' instantiates files from templates according to the
48715current configuration.
48716
48717Usage: $0 [OPTIONS] [FILE]...
48718
48719 -h, --help print this help, then exit
48720 -V, --version print version number, then exit
48721 -q, --quiet do not print progress messages
48722 -d, --debug don't remove temporary files
48723 --recheck update $as_me by reconfiguring in the same conditions
48724 --file=FILE[:TEMPLATE]
ac1cb8d3 48725 instantiate the configuration file FILE
a848cd7e 48726 --header=FILE[:TEMPLATE]
ac1cb8d3 48727 instantiate the configuration header FILE
a848cd7e
SC
48728
48729Configuration files:
48730$config_files
48731
48732Configuration headers:
48733$config_headers
48734
48735Configuration commands:
48736$config_commands
48737
48738Report bugs to <bug-autoconf@gnu.org>."
48739_ACEOF
48740
48741cat >>$CONFIG_STATUS <<_ACEOF
48742ac_cs_version="\\
dd8df4fc 48743wxWidgets config.status 2.7.0
ac1cb8d3 48744configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
48745 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
48746
ac1cb8d3 48747Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
48748This config.status script is free software; the Free Software Foundation
48749gives unlimited permission to copy, distribute and modify it."
48750srcdir=$srcdir
48751INSTALL="$INSTALL"
48752_ACEOF
48753
48754cat >>$CONFIG_STATUS <<\_ACEOF
48755# If no file are specified by the user, then we need to provide default
48756# value. By we need to know if files were specified by the user.
48757ac_need_defaults=:
48758while test $# != 0
48759do
48760 case $1 in
48761 --*=*)
48762 ac_option=`expr "x$1" : 'x\([^=]*\)='`
48763 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
48764 ac_shift=:
48765 ;;
48766 -*)
48767 ac_option=$1
48768 ac_optarg=$2
48769 ac_shift=shift
48770 ;;
48771 *) # This is not an option, so the user has probably given explicit
48772 # arguments.
48773 ac_option=$1
48774 ac_need_defaults=false;;
48775 esac
48776
48777 case $ac_option in
48778 # Handling of the options.
48779_ACEOF
48780cat >>$CONFIG_STATUS <<\_ACEOF
48781 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
48782 ac_cs_recheck=: ;;
48783 --version | --vers* | -V )
48784 echo "$ac_cs_version"; exit 0 ;;
48785 --he | --h)
48786 # Conflict between --help and --header
48787 { { echo "$as_me:$LINENO: error: ambiguous option: $1
48788Try \`$0 --help' for more information." >&5
48789echo "$as_me: error: ambiguous option: $1
48790Try \`$0 --help' for more information." >&2;}
48791 { (exit 1); exit 1; }; };;
48792 --help | --hel | -h )
48793 echo "$ac_cs_usage"; exit 0 ;;
48794 --debug | --d* | -d )
48795 debug=: ;;
48796 --file | --fil | --fi | --f )
48797 $ac_shift
48798 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
48799 ac_need_defaults=false;;
48800 --header | --heade | --head | --hea )
48801 $ac_shift
48802 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
48803 ac_need_defaults=false;;
48804 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
48805 | -silent | --silent | --silen | --sile | --sil | --si | --s)
48806 ac_cs_silent=: ;;
48807
48808 # This is an error.
48809 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
48810Try \`$0 --help' for more information." >&5
48811echo "$as_me: error: unrecognized option: $1
48812Try \`$0 --help' for more information." >&2;}
48813 { (exit 1); exit 1; }; } ;;
48814
48815 *) ac_config_targets="$ac_config_targets $1" ;;
48816
48817 esac
48818 shift
48819done
48820
48821ac_configure_extra_args=
48822
48823if $ac_cs_silent; then
48824 exec 6>/dev/null
48825 ac_configure_extra_args="$ac_configure_extra_args --silent"
48826fi
48827
48828_ACEOF
48829cat >>$CONFIG_STATUS <<_ACEOF
48830if \$ac_cs_recheck; then
48831 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
48832 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
48833fi
48834
48835_ACEOF
48836
48837cat >>$CONFIG_STATUS <<_ACEOF
48838#
48839# INIT-COMMANDS section.
48840#
48841
5c60e845
MW
48842
48843 CPP="$CPP"
48844 infile="$srcdir/include/wx/msw/genrcdefs.h"
48845 outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
48846
48847
ceec2216
RL
48848 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
48849 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
48850 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
48851 LN_S="${LN_S}"
a848cd7e
SC
48852
48853
48854_ACEOF
48855
48856
48857
48858cat >>$CONFIG_STATUS <<\_ACEOF
48859for ac_config_target in $ac_config_targets
48860do
48861 case "$ac_config_target" in
48862 # Handling of arguments.
ceec2216
RL
48863 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
48864 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
48865 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
48866 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
48867 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
5c60e845 48868 "rcdefs.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
ceec2216
RL
48869 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
48870 "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
48871 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
48872echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
48873 { (exit 1); exit 1; }; };;
48874 esac
48875done
48876
48877# If the user did not use the arguments to specify the items to instantiate,
48878# then the envvar interface is used. Set only those that are not.
48879# We use the long form for the default assignment because of an extremely
48880# bizarre bug on SunOS 4.1.3.
48881if $ac_need_defaults; then
48882 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
48883 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
48884 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
48885fi
48886
48887# Have a temporary directory for convenience. Make it in the build tree
48888# simply because there is no reason to put it here, and in addition,
48889# creating and moving files from /tmp can sometimes cause problems.
48890# Create a temporary directory, and hook for its removal unless debugging.
48891$debug ||
48892{
48893 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
48894 trap '{ (exit 1); exit 1; }' 1 2 13 15
48895}
48896
48897# Create a (secure) tmp directory for tmp files.
48898
48899{
48900 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
48901 test -n "$tmp" && test -d "$tmp"
48902} ||
48903{
48904 tmp=./confstat$$-$RANDOM
48905 (umask 077 && mkdir $tmp)
48906} ||
48907{
48908 echo "$me: cannot create a temporary directory in ." >&2
48909 { (exit 1); exit 1; }
48910}
48911
48912_ACEOF
48913
48914cat >>$CONFIG_STATUS <<_ACEOF
48915
48916#
48917# CONFIG_FILES section.
48918#
48919
48920# No need to generate the scripts if there are no CONFIG_FILES.
48921# This happens for instance when ./config.status config.h
48922if test -n "\$CONFIG_FILES"; then
48923 # Protect against being on the right side of a sed subst in config.status.
48924 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
48925 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
48926s,@SHELL@,$SHELL,;t t
48927s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
48928s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
48929s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
48930s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
48931s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
48932s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
48933s,@exec_prefix@,$exec_prefix,;t t
48934s,@prefix@,$prefix,;t t
48935s,@program_transform_name@,$program_transform_name,;t t
48936s,@bindir@,$bindir,;t t
48937s,@sbindir@,$sbindir,;t t
48938s,@libexecdir@,$libexecdir,;t t
48939s,@datadir@,$datadir,;t t
48940s,@sysconfdir@,$sysconfdir,;t t
48941s,@sharedstatedir@,$sharedstatedir,;t t
48942s,@localstatedir@,$localstatedir,;t t
48943s,@libdir@,$libdir,;t t
48944s,@includedir@,$includedir,;t t
48945s,@oldincludedir@,$oldincludedir,;t t
48946s,@infodir@,$infodir,;t t
48947s,@mandir@,$mandir,;t t
48948s,@build_alias@,$build_alias,;t t
48949s,@host_alias@,$host_alias,;t t
48950s,@target_alias@,$target_alias,;t t
48951s,@DEFS@,$DEFS,;t t
48952s,@ECHO_C@,$ECHO_C,;t t
48953s,@ECHO_N@,$ECHO_N,;t t
48954s,@ECHO_T@,$ECHO_T,;t t
48955s,@LIBS@,$LIBS,;t t
48956s,@build@,$build,;t t
48957s,@build_cpu@,$build_cpu,;t t
48958s,@build_vendor@,$build_vendor,;t t
48959s,@build_os@,$build_os,;t t
48960s,@host@,$host,;t t
48961s,@host_cpu@,$host_cpu,;t t
48962s,@host_vendor@,$host_vendor,;t t
48963s,@host_os@,$host_os,;t t
48964s,@target@,$target,;t t
48965s,@target_cpu@,$target_cpu,;t t
48966s,@target_vendor@,$target_vendor,;t t
48967s,@target_os@,$target_os,;t t
48968s,@CC@,$CC,;t t
48969s,@CFLAGS@,$CFLAGS,;t t
48970s,@LDFLAGS@,$LDFLAGS,;t t
48971s,@CPPFLAGS@,$CPPFLAGS,;t t
48972s,@ac_ct_CC@,$ac_ct_CC,;t t
48973s,@EXEEXT@,$EXEEXT,;t t
48974s,@OBJEXT@,$OBJEXT,;t t
48975s,@CPP@,$CPP,;t t
48976s,@EGREP@,$EGREP,;t t
48977s,@CXX@,$CXX,;t t
48978s,@CXXFLAGS@,$CXXFLAGS,;t t
48979s,@ac_ct_CXX@,$ac_ct_CXX,;t t
48980s,@RANLIB@,$RANLIB,;t t
48981s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
48982s,@AR@,$AR,;t t
8c80d384 48983s,@ac_ct_AR@,$ac_ct_AR,;t t
a848cd7e
SC
48984s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
48985s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
48986s,@INSTALL_DATA@,$INSTALL_DATA,;t t
48987s,@STRIP@,$STRIP,;t t
8c80d384 48988s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8ced02f6
DE
48989s,@WINDRES@,$WINDRES,;t t
48990s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
8c80d384
DE
48991s,@DLLTOOL@,$DLLTOOL,;t t
48992s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
a848cd7e
SC
48993s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
48994s,@LN_S@,$LN_S,;t t
48995s,@CXXCPP@,$CXXCPP,;t t
48996s,@subdirs@,$subdirs,;t t
48997s,@PKG_CONFIG@,$PKG_CONFIG,;t t
48998s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
48999s,@GTK_LIBS@,$GTK_LIBS,;t t
49000s,@GTK_CONFIG@,$GTK_CONFIG,;t t
a848cd7e
SC
49001s,@X_CFLAGS@,$X_CFLAGS,;t t
49002s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
49003s,@X_LIBS@,$X_LIBS,;t t
49004s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
49005s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
49006s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
49007s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
49008s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
49009s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
49010s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
8ced02f6 49011s,@REZ@,$REZ,;t t
a848cd7e
SC
49012s,@DEREZ@,$DEREZ,;t t
49013s,@SETFILE@,$SETFILE,;t t
49014s,@LIBICONV@,$LIBICONV,;t t
49015s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
49016s,@SDL_CONFIG@,$SDL_CONFIG,;t t
49017s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
49018s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
49019s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
49020s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
2b850ae1
RR
49021s,@GNOMEVFS_CFLAGS@,$GNOMEVFS_CFLAGS,;t t
49022s,@GNOMEVFS_LIBS@,$GNOMEVFS_LIBS,;t t
3565d135
RR
49023s,@HILDON_CFLAGS@,$HILDON_CFLAGS,;t t
49024s,@HILDON_LIBS@,$HILDON_LIBS,;t t
f10e38c4
VZ
49025s,@GST_CFLAGS@,$GST_CFLAGS,;t t
49026s,@GST_LIBS@,$GST_LIBS,;t t
a848cd7e
SC
49027s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
49028s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
49029s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
49030s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
49031s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
49032s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
49033s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
49034s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
49035s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
49036s,@VENDOR@,$VENDOR,;t t
49037s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
49038s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
49039s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
49040s,@WXUNIV@,$WXUNIV,;t t
49041s,@MONOLITHIC@,$MONOLITHIC,;t t
49042s,@USE_PLUGINS@,$USE_PLUGINS,;t t
49043s,@EXTRALIBS@,$EXTRALIBS,;t t
49044s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
49045s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
49046s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
49047s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
49048s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
49049s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
49050s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 49051s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
2b850ae1 49052s,@EXTRALIBS_GNOMEVFS@,$EXTRALIBS_GNOMEVFS,;t t
3565d135 49053s,@EXTRALIBS_HILDON@,$EXTRALIBS_HILDON,;t t
a848cd7e
SC
49054s,@UNICODE@,$UNICODE,;t t
49055s,@BUILD@,$BUILD,;t t
49056s,@DEBUG_INFO@,$DEBUG_INFO,;t t
49057s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
49058s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
49059s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
49060s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
49061s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
49062s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
49063s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
49064s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
49065s,@SET_MAKE@,$SET_MAKE,;t t
49066s,@MAKE_SET@,$MAKE_SET,;t t
a848cd7e
SC
49067s,@NM@,$NM,;t t
49068s,@ac_ct_NM@,$ac_ct_NM,;t t
49069s,@INSTALL_DIR@,$INSTALL_DIR,;t t
49070s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
49071s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
49072s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
49073s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
49074s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 49075s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
49076s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
49077s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 49078s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
49079s,@SO_SUFFIX@,$SO_SUFFIX,;t t
49080s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
49081s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
49082s,@LIBPREFIX@,$LIBPREFIX,;t t
49083s,@LIBEXT@,$LIBEXT,;t t
49084s,@DLLPREFIX@,$DLLPREFIX,;t t
49085s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
810b94f0 49086s,@dlldir@,$dlldir,;t t
a848cd7e
SC
49087s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
49088s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
49089s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
49090s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
49091s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
49092s,@PIC_FLAG@,$PIC_FLAG,;t t
810b94f0 49093s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t
a848cd7e
SC
49094s,@USE_SOVERSION@,$USE_SOVERSION,;t t
49095s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
49096s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
810b94f0 49097s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t
a848cd7e
SC
49098s,@USE_MACVERSION@,$USE_MACVERSION,;t t
49099s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
49100s,@SONAME_FLAG@,$SONAME_FLAG,;t t
49101s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
49102s,@GCC_PCH@,$GCC_PCH,;t t
f10e38c4 49103s,@ICC_PCH@,$ICC_PCH,;t t
a848cd7e
SC
49104s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
49105s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
49106s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
49107s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
49108s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
49109s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
49110s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
49111s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
49112s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
49113s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
49114s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
49115s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
49116s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
49117s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
49118s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
f10e38c4 49119s,@COND_ICC_PCH_1@,$COND_ICC_PCH_1,;t t
a848cd7e
SC
49120s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
49121s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
49122s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 49123s,@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 49124s,@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 49125s,@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 49126s,@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 49127s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
ceec2216 49128s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
49129s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
49130s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 49131s,@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 49132s,@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 49133s,@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 49134s,@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 49135s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
ceec2216 49136s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
e5efa97e 49137s,@COND_MONOLITHIC_0_USE_MEDIA_1@,$COND_MONOLITHIC_0_USE_MEDIA_1,;t t
a848cd7e
SC
49138s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
49139s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
49140s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
49141s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
49142s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
49143s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
eb730a0c 49144s,@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1,;t t
a848cd7e
SC
49145s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
49146s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 49147s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
49148s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
49149s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
49150s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 49151s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 49152s,@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
49153s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
49154s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
49155s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
49156s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 49157s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
083508af 49158s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
e5efa97e 49159s,@COND_PLATFORM_MSDOS_0@,$COND_PLATFORM_MSDOS_0,;t t
83d8eb47 49160s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t
a848cd7e
SC
49161s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
49162s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
49163s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
49164s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
49165s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
49166s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
49167s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
49168s,@COND_SHARED_0@,$COND_SHARED_0,;t t
083508af
MW
49169s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
49170s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
49171s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
49172s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
49173s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
49174s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
49175s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af 49176s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
49177s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
49178s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
49179s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
49180s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
49181s,@COND_SHARED_1@,$COND_SHARED_1,;t t
49182s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
083508af 49183s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
a30f955f 49184s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 49185s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 49186s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
49187s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
49188s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
d044deea
MW
49189s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_,;t t
49190s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2,;t t
49191s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1,;t t
49192s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0,;t t
49193s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1,;t t
49194s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0,;t t
a848cd7e 49195s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
a848cd7e
SC
49196s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
49197s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
49198s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
49199s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
49200s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
49201s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
49202s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
49203s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
49204s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
49205s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
49206s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 49207s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
a848cd7e
SC
49208s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
49209s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
49210s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
49211s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
49212s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
49213s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 49214s,@COND_TOOLKIT_WINCE_WXUNIV_0@,$COND_TOOLKIT_WINCE_WXUNIV_0,;t t
a848cd7e
SC
49215s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
49216s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
49217s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
49218s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
49219s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
49220s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
49221s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
49222s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
49223s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
49224s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
49225s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
49226s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af
MW
49227s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
49228s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
f10e38c4 49229s,@COND_USE_PCH_1@,$COND_USE_PCH_1,;t t
a848cd7e 49230s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
0b78747f
MW
49231s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
49232s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
a848cd7e 49233s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
eb730a0c 49234s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t
a848cd7e
SC
49235s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
49236s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
49237s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
0b78747f
MW
49238s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
49239s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
a13a7f89 49240s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
eb730a0c 49241s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t
a848cd7e 49242s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 49243s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
49244s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
49245s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
49246s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
49247s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
49248s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
49249s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
49250s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
49251s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 49252s,@SHARED@,$SHARED,;t t
a848cd7e
SC
49253s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
49254s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
49255s,@USE_GUI@,$USE_GUI,;t t
49256s,@AFMINSTALL@,$AFMINSTALL,;t t
49257s,@WIN32INSTALL@,$WIN32INSTALL,;t t
49258s,@TOOLKIT@,$TOOLKIT,;t t
49259s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 49260s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 49261s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e 49262s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
49263s,@WIDGET_SET@,$WIDGET_SET,;t t
49264s,@WX_RELEASE@,$WX_RELEASE,;t t
49265s,@WX_VERSION@,$WX_VERSION,;t t
49266s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
49267s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
49268s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
5ff751d6
VZ
49269s,@WXCONFIG_CPPFLAGS@,$WXCONFIG_CPPFLAGS,;t t
49270s,@WXCONFIG_CFLAGS@,$WXCONFIG_CFLAGS,;t t
49271s,@WXCONFIG_CXXFLAGS@,$WXCONFIG_CXXFLAGS,;t t
49272s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
a848cd7e
SC
49273s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
49274s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
004ee6da 49275s,@WXCONFIG_RESFLAGS@,$WXCONFIG_RESFLAGS,;t t
ceec2216 49276s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 49277s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
49278s,@DISTDIR@,$DISTDIR,;t t
49279s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
49280s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
49281s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
49282s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
49283s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
004ee6da 49284s,@RESCOMP@,$RESCOMP,;t t
a848cd7e
SC
49285s,@RESFLAGS@,$RESFLAGS,;t t
49286s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
49287s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
49288s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
49289s,@LIBWXMACRES@,$LIBWXMACRES,;t t
8ced02f6 49290s,@POSTLINK_COMMAND@,$POSTLINK_COMMAND,;t t
a848cd7e 49291s,@MACSETFILE@,$MACSETFILE,;t t
a848cd7e 49292s,@GCC@,$GCC,;t t
a848cd7e
SC
49293s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
49294s,@LIBOBJS@,$LIBOBJS,;t t
49295s,@LTLIBOBJS@,$LTLIBOBJS,;t t
49296CEOF
49297
49298_ACEOF
49299
49300 cat >>$CONFIG_STATUS <<\_ACEOF
49301 # Split the substitutions into bite-sized pieces for seds with
49302 # small command number limits, like on Digital OSF/1 and HP-UX.
49303 ac_max_sed_lines=48
49304 ac_sed_frag=1 # Number of current file.
49305 ac_beg=1 # First line for current file.
49306 ac_end=$ac_max_sed_lines # Line after last line for current file.
49307 ac_more_lines=:
49308 ac_sed_cmds=
49309 while $ac_more_lines; do
49310 if test $ac_beg -gt 1; then
49311 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
49312 else
49313 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
49314 fi
49315 if test ! -s $tmp/subs.frag; then
49316 ac_more_lines=false
49317 else
49318 # The purpose of the label and of the branching condition is to
49319 # speed up the sed processing (if there are no `@' at all, there
49320 # is no need to browse any of the substitutions).
49321 # These are the two extra sed commands mentioned above.
49322 (echo ':t
49323 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
49324 if test -z "$ac_sed_cmds"; then
ac1cb8d3 49325 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 49326 else
ac1cb8d3 49327 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
49328 fi
49329 ac_sed_frag=`expr $ac_sed_frag + 1`
49330 ac_beg=$ac_end
49331 ac_end=`expr $ac_end + $ac_max_sed_lines`
49332 fi
49333 done
49334 if test -z "$ac_sed_cmds"; then
49335 ac_sed_cmds=cat
49336 fi
49337fi # test -n "$CONFIG_FILES"
49338
49339_ACEOF
49340cat >>$CONFIG_STATUS <<\_ACEOF
49341for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
49342 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
49343 case $ac_file in
49344 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
49345 cat >$tmp/stdin
49346 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
49347 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 49348 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 49349 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
49350 * ) ac_file_in=$ac_file.in ;;
49351 esac
49352
49353 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
49354 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
49355$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
49356 X"$ac_file" : 'X\(//\)[^/]' \| \
49357 X"$ac_file" : 'X\(//\)$' \| \
49358 X"$ac_file" : 'X\(/\)' \| \
49359 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
49360echo X"$ac_file" |
49361 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49362 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49363 /^X\(\/\/\)$/{ s//\1/; q; }
49364 /^X\(\/\).*/{ s//\1/; q; }
49365 s/.*/./; q'`
49366 { if $as_mkdir_p; then
49367 mkdir -p "$ac_dir"
49368 else
49369 as_dir="$ac_dir"
49370 as_dirs=
49371 while test ! -d "$as_dir"; do
49372 as_dirs="$as_dir $as_dirs"
49373 as_dir=`(dirname "$as_dir") 2>/dev/null ||
49374$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
49375 X"$as_dir" : 'X\(//\)[^/]' \| \
49376 X"$as_dir" : 'X\(//\)$' \| \
49377 X"$as_dir" : 'X\(/\)' \| \
49378 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
49379echo X"$as_dir" |
49380 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49381 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49382 /^X\(\/\/\)$/{ s//\1/; q; }
49383 /^X\(\/\).*/{ s//\1/; q; }
49384 s/.*/./; q'`
49385 done
49386 test ! -n "$as_dirs" || mkdir $as_dirs
49387 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
49388echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
49389 { (exit 1); exit 1; }; }; }
49390
49391 ac_builddir=.
49392
49393if test "$ac_dir" != .; then
49394 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
49395 # A "../" for each directory in $ac_dir_suffix.
49396 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
49397else
49398 ac_dir_suffix= ac_top_builddir=
49399fi
49400
49401case $srcdir in
49402 .) # No --srcdir option. We are building in place.
49403 ac_srcdir=.
49404 if test -z "$ac_top_builddir"; then
49405 ac_top_srcdir=.
49406 else
49407 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
49408 fi ;;
49409 [\\/]* | ?:[\\/]* ) # Absolute path.
49410 ac_srcdir=$srcdir$ac_dir_suffix;
49411 ac_top_srcdir=$srcdir ;;
49412 *) # Relative path.
49413 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
49414 ac_top_srcdir=$ac_top_builddir$srcdir ;;
49415esac
ac1cb8d3
VS
49416
49417# Do not use `cd foo && pwd` to compute absolute paths, because
49418# the directories may not exist.
49419case `pwd` in
49420.) ac_abs_builddir="$ac_dir";;
49421*)
49422 case "$ac_dir" in
49423 .) ac_abs_builddir=`pwd`;;
49424 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
49425 *) ac_abs_builddir=`pwd`/"$ac_dir";;
49426 esac;;
49427esac
49428case $ac_abs_builddir in
49429.) ac_abs_top_builddir=${ac_top_builddir}.;;
49430*)
49431 case ${ac_top_builddir}. in
49432 .) ac_abs_top_builddir=$ac_abs_builddir;;
49433 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
49434 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
49435 esac;;
49436esac
49437case $ac_abs_builddir in
49438.) ac_abs_srcdir=$ac_srcdir;;
49439*)
49440 case $ac_srcdir in
49441 .) ac_abs_srcdir=$ac_abs_builddir;;
49442 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
49443 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
49444 esac;;
49445esac
49446case $ac_abs_builddir in
49447.) ac_abs_top_srcdir=$ac_top_srcdir;;
49448*)
49449 case $ac_top_srcdir in
49450 .) ac_abs_top_srcdir=$ac_abs_builddir;;
49451 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
49452 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
49453 esac;;
49454esac
a848cd7e
SC
49455
49456
49457 case $INSTALL in
49458 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
49459 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
49460 esac
49461
a848cd7e
SC
49462 # Let's still pretend it is `configure' which instantiates (i.e., don't
49463 # use $as_me), people would be surprised to read:
49464 # /* config.h. Generated by config.status. */
49465 if test x"$ac_file" = x-; then
49466 configure_input=
49467 else
49468 configure_input="$ac_file. "
49469 fi
49470 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 49471 sed 's,.*/,,'` by configure."
a848cd7e
SC
49472
49473 # First look for the input files in the build tree, otherwise in the
49474 # src tree.
49475 ac_file_inputs=`IFS=:
49476 for f in $ac_file_in; do
49477 case $f in
49478 -) echo $tmp/stdin ;;
49479 [\\/$]*)
ac1cb8d3
VS
49480 # Absolute (can't be DOS-style, as IFS=:)
49481 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
49482echo "$as_me: error: cannot find input file: $f" >&2;}
49483 { (exit 1); exit 1; }; }
ac1cb8d3 49484 echo "$f";;
a848cd7e 49485 *) # Relative
ac1cb8d3
VS
49486 if test -f "$f"; then
49487 # Build tree
49488 echo "$f"
49489 elif test -f "$srcdir/$f"; then
49490 # Source tree
49491 echo "$srcdir/$f"
49492 else
49493 # /dev/null tree
49494 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
49495echo "$as_me: error: cannot find input file: $f" >&2;}
49496 { (exit 1); exit 1; }; }
ac1cb8d3 49497 fi;;
a848cd7e
SC
49498 esac
49499 done` || { (exit 1); exit 1; }
5d7b7554
VZ
49500
49501 if test x"$ac_file" != x-; then
49502 { echo "$as_me:$LINENO: creating $ac_file" >&5
49503echo "$as_me: creating $ac_file" >&6;}
49504 rm -f "$ac_file"
49505 fi
a848cd7e
SC
49506_ACEOF
49507cat >>$CONFIG_STATUS <<_ACEOF
49508 sed "$ac_vpsub
49509$extrasub
49510_ACEOF
49511cat >>$CONFIG_STATUS <<\_ACEOF
49512:t
49513/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
49514s,@configure_input@,$configure_input,;t t
49515s,@srcdir@,$ac_srcdir,;t t
49516s,@abs_srcdir@,$ac_abs_srcdir,;t t
49517s,@top_srcdir@,$ac_top_srcdir,;t t
49518s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
49519s,@builddir@,$ac_builddir,;t t
49520s,@abs_builddir@,$ac_abs_builddir,;t t
49521s,@top_builddir@,$ac_top_builddir,;t t
49522s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
49523s,@INSTALL@,$ac_INSTALL,;t t
49524" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
49525 rm -f $tmp/stdin
49526 if test x"$ac_file" != x-; then
49527 mv $tmp/out $ac_file
49528 else
49529 cat $tmp/out
49530 rm -f $tmp/out
49531 fi
49532
ceec2216
RL
49533 # Run the commands associated with the file.
49534 case $ac_file in
49535 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
49536 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
49537 esac
a848cd7e
SC
49538done
49539_ACEOF
49540cat >>$CONFIG_STATUS <<\_ACEOF
49541
49542#
49543# CONFIG_HEADER section.
49544#
49545
49546# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
49547# NAME is the cpp macro being defined and VALUE is the value it is being given.
49548#
49549# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
49550ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
49551ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
49552ac_dC=' '
49553ac_dD=',;t'
49554# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 49555ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
49556ac_uB='$,\1#\2define\3'
49557ac_uC=' '
49558ac_uD=',;t'
49559
49560for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
49561 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
49562 case $ac_file in
49563 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
49564 cat >$tmp/stdin
49565 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
49566 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 49567 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 49568 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
49569 * ) ac_file_in=$ac_file.in ;;
49570 esac
49571
49572 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
49573echo "$as_me: creating $ac_file" >&6;}
49574
49575 # First look for the input files in the build tree, otherwise in the
49576 # src tree.
49577 ac_file_inputs=`IFS=:
49578 for f in $ac_file_in; do
49579 case $f in
49580 -) echo $tmp/stdin ;;
49581 [\\/$]*)
ac1cb8d3
VS
49582 # Absolute (can't be DOS-style, as IFS=:)
49583 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
49584echo "$as_me: error: cannot find input file: $f" >&2;}
49585 { (exit 1); exit 1; }; }
ac1cb8d3
VS
49586 # Do quote $f, to prevent DOS paths from being IFS'd.
49587 echo "$f";;
a848cd7e 49588 *) # Relative
ac1cb8d3
VS
49589 if test -f "$f"; then
49590 # Build tree
49591 echo "$f"
49592 elif test -f "$srcdir/$f"; then
49593 # Source tree
49594 echo "$srcdir/$f"
49595 else
49596 # /dev/null tree
49597 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
49598echo "$as_me: error: cannot find input file: $f" >&2;}
49599 { (exit 1); exit 1; }; }
ac1cb8d3 49600 fi;;
a848cd7e
SC
49601 esac
49602 done` || { (exit 1); exit 1; }
49603 # Remove the trailing spaces.
ac1cb8d3 49604 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
49605
49606_ACEOF
49607
49608# Transform confdefs.h into two sed scripts, `conftest.defines' and
49609# `conftest.undefs', that substitutes the proper values into
49610# config.h.in to produce config.h. The first handles `#define'
49611# templates, and the second `#undef' templates.
49612# And first: Protect against being on the right side of a sed subst in
49613# config.status. Protect against being in an unquoted here document
49614# in config.status.
49615rm -f conftest.defines conftest.undefs
49616# Using a here document instead of a string reduces the quoting nightmare.
49617# Putting comments in sed scripts is not portable.
49618#
49619# `end' is used to avoid that the second main sed command (meant for
49620# 0-ary CPP macros) applies to n-ary macro definitions.
49621# See the Autoconf documentation for `clear'.
49622cat >confdef2sed.sed <<\_ACEOF
49623s/[\\&,]/\\&/g
49624s,[\\$`],\\&,g
49625t clear
49626: clear
ac1cb8d3 49627s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 49628t end
ac1cb8d3 49629s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
49630: end
49631_ACEOF
49632# If some macros were called several times there might be several times
49633# the same #defines, which is useless. Nevertheless, we may not want to
49634# sort them, since we want the *last* AC-DEFINE to be honored.
49635uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
49636sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
49637rm -f confdef2sed.sed
49638
49639# This sed command replaces #undef with comments. This is necessary, for
49640# example, in the case of _POSIX_SOURCE, which is predefined and required
49641# on some systems where configure will not decide to define it.
49642cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 49643s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
49644_ACEOF
49645
49646# Break up conftest.defines because some shells have a limit on the size
49647# of here documents, and old seds have small limits too (100 cmds).
49648echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 49649echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
49650echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
49651echo ' :' >>$CONFIG_STATUS
49652rm -f conftest.tail
49653while grep . conftest.defines >/dev/null
49654do
49655 # Write a limited-size here document to $tmp/defines.sed.
49656 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
49657 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 49658 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
49659 # Work around the forget-to-reset-the-flag bug.
49660 echo 't clr' >>$CONFIG_STATUS
49661 echo ': clr' >>$CONFIG_STATUS
49662 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
49663 echo 'CEOF
49664 sed -f $tmp/defines.sed $tmp/in >$tmp/out
49665 rm -f $tmp/in
49666 mv $tmp/out $tmp/in
49667' >>$CONFIG_STATUS
49668 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
49669 rm -f conftest.defines
49670 mv conftest.tail conftest.defines
49671done
49672rm -f conftest.defines
49673echo ' fi # grep' >>$CONFIG_STATUS
49674echo >>$CONFIG_STATUS
49675
49676# Break up conftest.undefs because some shells have a limit on the size
49677# of here documents, and old seds have small limits too (100 cmds).
49678echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
49679rm -f conftest.tail
49680while grep . conftest.undefs >/dev/null
49681do
49682 # Write a limited-size here document to $tmp/undefs.sed.
49683 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
49684 # Speed up: don't consider the non `#undef'
ac1cb8d3 49685 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
49686 # Work around the forget-to-reset-the-flag bug.
49687 echo 't clr' >>$CONFIG_STATUS
49688 echo ': clr' >>$CONFIG_STATUS
49689 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
49690 echo 'CEOF
49691 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
49692 rm -f $tmp/in
49693 mv $tmp/out $tmp/in
49694' >>$CONFIG_STATUS
49695 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
49696 rm -f conftest.undefs
49697 mv conftest.tail conftest.undefs
49698done
49699rm -f conftest.undefs
49700
49701cat >>$CONFIG_STATUS <<\_ACEOF
49702 # Let's still pretend it is `configure' which instantiates (i.e., don't
49703 # use $as_me), people would be surprised to read:
49704 # /* config.h. Generated by config.status. */
49705 if test x"$ac_file" = x-; then
49706 echo "/* Generated by configure. */" >$tmp/config.h
49707 else
49708 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
49709 fi
49710 cat $tmp/in >>$tmp/config.h
49711 rm -f $tmp/in
49712 if test x"$ac_file" != x-; then
49713 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
49714 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
49715echo "$as_me: $ac_file is unchanged" >&6;}
49716 else
49717 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
49718$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
49719 X"$ac_file" : 'X\(//\)[^/]' \| \
49720 X"$ac_file" : 'X\(//\)$' \| \
49721 X"$ac_file" : 'X\(/\)' \| \
49722 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
49723echo X"$ac_file" |
49724 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49725 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49726 /^X\(\/\/\)$/{ s//\1/; q; }
49727 /^X\(\/\).*/{ s//\1/; q; }
49728 s/.*/./; q'`
49729 { if $as_mkdir_p; then
49730 mkdir -p "$ac_dir"
49731 else
49732 as_dir="$ac_dir"
49733 as_dirs=
49734 while test ! -d "$as_dir"; do
49735 as_dirs="$as_dir $as_dirs"
49736 as_dir=`(dirname "$as_dir") 2>/dev/null ||
49737$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
49738 X"$as_dir" : 'X\(//\)[^/]' \| \
49739 X"$as_dir" : 'X\(//\)$' \| \
49740 X"$as_dir" : 'X\(/\)' \| \
49741 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
49742echo X"$as_dir" |
49743 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49744 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49745 /^X\(\/\/\)$/{ s//\1/; q; }
49746 /^X\(\/\).*/{ s//\1/; q; }
49747 s/.*/./; q'`
49748 done
49749 test ! -n "$as_dirs" || mkdir $as_dirs
49750 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
49751echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
49752 { (exit 1); exit 1; }; }; }
49753
49754 rm -f $ac_file
49755 mv $tmp/config.h $ac_file
49756 fi
49757 else
49758 cat $tmp/config.h
49759 rm -f $tmp/config.h
49760 fi
49761done
49762_ACEOF
49763cat >>$CONFIG_STATUS <<\_ACEOF
49764
49765#
49766# CONFIG_COMMANDS section.
49767#
49768for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
49769 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
49770 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
49771 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
49772$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
49773 X"$ac_dest" : 'X\(//\)[^/]' \| \
49774 X"$ac_dest" : 'X\(//\)$' \| \
49775 X"$ac_dest" : 'X\(/\)' \| \
49776 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
49777echo X"$ac_dest" |
49778 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49779 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49780 /^X\(\/\/\)$/{ s//\1/; q; }
49781 /^X\(\/\).*/{ s//\1/; q; }
49782 s/.*/./; q'`
ac1cb8d3
VS
49783 { if $as_mkdir_p; then
49784 mkdir -p "$ac_dir"
49785 else
49786 as_dir="$ac_dir"
49787 as_dirs=
49788 while test ! -d "$as_dir"; do
49789 as_dirs="$as_dir $as_dirs"
49790 as_dir=`(dirname "$as_dir") 2>/dev/null ||
49791$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
49792 X"$as_dir" : 'X\(//\)[^/]' \| \
49793 X"$as_dir" : 'X\(//\)$' \| \
49794 X"$as_dir" : 'X\(/\)' \| \
49795 . : '\(.\)' 2>/dev/null ||
49796echo X"$as_dir" |
49797 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49798 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49799 /^X\(\/\/\)$/{ s//\1/; q; }
49800 /^X\(\/\).*/{ s//\1/; q; }
49801 s/.*/./; q'`
49802 done
49803 test ! -n "$as_dirs" || mkdir $as_dirs
49804 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
49805echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
49806 { (exit 1); exit 1; }; }; }
49807
a848cd7e
SC
49808 ac_builddir=.
49809
49810if test "$ac_dir" != .; then
49811 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
49812 # A "../" for each directory in $ac_dir_suffix.
49813 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
49814else
49815 ac_dir_suffix= ac_top_builddir=
49816fi
49817
49818case $srcdir in
49819 .) # No --srcdir option. We are building in place.
49820 ac_srcdir=.
49821 if test -z "$ac_top_builddir"; then
49822 ac_top_srcdir=.
49823 else
49824 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
49825 fi ;;
49826 [\\/]* | ?:[\\/]* ) # Absolute path.
49827 ac_srcdir=$srcdir$ac_dir_suffix;
49828 ac_top_srcdir=$srcdir ;;
49829 *) # Relative path.
49830 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
49831 ac_top_srcdir=$ac_top_builddir$srcdir ;;
49832esac
ac1cb8d3
VS
49833
49834# Do not use `cd foo && pwd` to compute absolute paths, because
49835# the directories may not exist.
49836case `pwd` in
49837.) ac_abs_builddir="$ac_dir";;
49838*)
49839 case "$ac_dir" in
49840 .) ac_abs_builddir=`pwd`;;
49841 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
49842 *) ac_abs_builddir=`pwd`/"$ac_dir";;
49843 esac;;
49844esac
49845case $ac_abs_builddir in
49846.) ac_abs_top_builddir=${ac_top_builddir}.;;
49847*)
49848 case ${ac_top_builddir}. in
49849 .) ac_abs_top_builddir=$ac_abs_builddir;;
49850 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
49851 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
49852 esac;;
49853esac
49854case $ac_abs_builddir in
49855.) ac_abs_srcdir=$ac_srcdir;;
49856*)
49857 case $ac_srcdir in
49858 .) ac_abs_srcdir=$ac_abs_builddir;;
49859 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
49860 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
49861 esac;;
49862esac
49863case $ac_abs_builddir in
49864.) ac_abs_top_srcdir=$ac_top_srcdir;;
49865*)
49866 case $ac_top_srcdir in
49867 .) ac_abs_top_srcdir=$ac_abs_builddir;;
49868 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
49869 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
49870 esac;;
49871esac
a848cd7e
SC
49872
49873
49874 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
49875echo "$as_me: executing $ac_dest commands" >&6;}
49876 case $ac_dest in
5c60e845
MW
49877 rcdefs.h )
49878 mkdir -p $outdir &&
49879 $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
49880 ;;
ceec2216
RL
49881 wx-config ) rm -f wx-config
49882 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
49883 ;;
a848cd7e
SC
49884 esac
49885done
49886_ACEOF
49887
49888cat >>$CONFIG_STATUS <<\_ACEOF
49889
49890{ (exit 0); exit 0; }
49891_ACEOF
49892chmod +x $CONFIG_STATUS
49893ac_clean_files=$ac_clean_files_save
49894
49895
49896# configure is writing to config.log, and then calls config.status.
49897# config.status does its own redirection, appending to config.log.
49898# Unfortunately, on DOS this fails, as config.log is still kept open
49899# by configure, so config.status won't be able to write to it; its
49900# output is simply discarded. So we exec the FD to /dev/null,
49901# effectively closing config.log, so it can be properly (re)opened and
49902# appended to by config.status. When coming back to configure, we
49903# need to make the FD available again.
49904if test "$no_create" != yes; then
49905 ac_cs_success=:
49906 ac_config_status_args=
49907 test "$silent" = yes &&
49908 ac_config_status_args="$ac_config_status_args --quiet"
49909 exec 5>/dev/null
49910 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
49911 exec 5>>config.log
49912 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
49913 # would make configure fail if this is the last instruction.
49914 $ac_cs_success || { (exit 1); exit 1; }
49915fi
49916
49917#
49918# CONFIG_SUBDIRS section.
49919#
49920if test "$no_recursion" != yes; then
49921
49922 # Remove --cache-file and --srcdir arguments so they do not pile up.
49923 ac_sub_configure_args=
49924 ac_prev=
49925 for ac_arg in $ac_configure_args; do
49926 if test -n "$ac_prev"; then
49927 ac_prev=
49928 continue
49929 fi
49930 case $ac_arg in
49931 -cache-file | --cache-file | --cache-fil | --cache-fi \
49932 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
49933 ac_prev=cache_file ;;
49934 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
49935 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
49936 | --c=*)
49937 ;;
49938 --config-cache | -C)
49939 ;;
49940 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
49941 ac_prev=srcdir ;;
49942 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
49943 ;;
49944 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
49945 ac_prev=prefix ;;
49946 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
49947 ;;
49948 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
49949 esac
49950 done
49951
49952 # Always prepend --prefix to ensure using the same prefix
49953 # in subdir configurations.
49954 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
49955
49956 ac_popdir=`pwd`
49957 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
49958
49959 # Do not complain, so a configure script can configure whichever
49960 # parts of a large source tree are present.
49961 test -d $srcdir/$ac_dir || continue
49962
49963 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
49964echo "$as_me: configuring in $ac_dir" >&6;}
49965 { if $as_mkdir_p; then
49966 mkdir -p "$ac_dir"
49967 else
49968 as_dir="$ac_dir"
49969 as_dirs=
49970 while test ! -d "$as_dir"; do
49971 as_dirs="$as_dir $as_dirs"
49972 as_dir=`(dirname "$as_dir") 2>/dev/null ||
49973$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
49974 X"$as_dir" : 'X\(//\)[^/]' \| \
49975 X"$as_dir" : 'X\(//\)$' \| \
49976 X"$as_dir" : 'X\(/\)' \| \
49977 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
49978echo X"$as_dir" |
49979 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49980 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49981 /^X\(\/\/\)$/{ s//\1/; q; }
49982 /^X\(\/\).*/{ s//\1/; q; }
49983 s/.*/./; q'`
49984 done
49985 test ! -n "$as_dirs" || mkdir $as_dirs
49986 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
49987echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
49988 { (exit 1); exit 1; }; }; }
49989
49990 ac_builddir=.
49991
49992if test "$ac_dir" != .; then
49993 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
49994 # A "../" for each directory in $ac_dir_suffix.
49995 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
49996else
49997 ac_dir_suffix= ac_top_builddir=
49998fi
49999
50000case $srcdir in
50001 .) # No --srcdir option. We are building in place.
50002 ac_srcdir=.
50003 if test -z "$ac_top_builddir"; then
50004 ac_top_srcdir=.
50005 else
50006 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
50007 fi ;;
50008 [\\/]* | ?:[\\/]* ) # Absolute path.
50009 ac_srcdir=$srcdir$ac_dir_suffix;
50010 ac_top_srcdir=$srcdir ;;
50011 *) # Relative path.
50012 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
50013 ac_top_srcdir=$ac_top_builddir$srcdir ;;
50014esac
ac1cb8d3
VS
50015
50016# Do not use `cd foo && pwd` to compute absolute paths, because
50017# the directories may not exist.
50018case `pwd` in
50019.) ac_abs_builddir="$ac_dir";;
50020*)
50021 case "$ac_dir" in
50022 .) ac_abs_builddir=`pwd`;;
50023 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
50024 *) ac_abs_builddir=`pwd`/"$ac_dir";;
50025 esac;;
50026esac
50027case $ac_abs_builddir in
50028.) ac_abs_top_builddir=${ac_top_builddir}.;;
50029*)
50030 case ${ac_top_builddir}. in
50031 .) ac_abs_top_builddir=$ac_abs_builddir;;
50032 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
50033 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
50034 esac;;
50035esac
50036case $ac_abs_builddir in
50037.) ac_abs_srcdir=$ac_srcdir;;
50038*)
50039 case $ac_srcdir in
50040 .) ac_abs_srcdir=$ac_abs_builddir;;
50041 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
50042 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
50043 esac;;
50044esac
50045case $ac_abs_builddir in
50046.) ac_abs_top_srcdir=$ac_top_srcdir;;
50047*)
50048 case $ac_top_srcdir in
50049 .) ac_abs_top_srcdir=$ac_abs_builddir;;
50050 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
50051 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
50052 esac;;
50053esac
a848cd7e
SC
50054
50055
50056 cd $ac_dir
50057
50058 # Check for guested configure; otherwise get Cygnus style configure.
50059 if test -f $ac_srcdir/configure.gnu; then
50060 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
50061 elif test -f $ac_srcdir/configure; then
50062 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
50063 elif test -f $ac_srcdir/configure.in; then
50064 ac_sub_configure=$ac_configure
50065 else
50066 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
50067echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
50068 ac_sub_configure=
50069 fi
50070
50071 # The recursion is here.
50072 if test -n "$ac_sub_configure"; then
50073 # Make the cache file name correct relative to the subdirectory.
50074 case $cache_file in
50075 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
50076 *) # Relative path.
ac1cb8d3 50077 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
50078 esac
50079
50080 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
50081echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
50082 # The eval makes quoting arguments work.
50083 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
50084 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
50085 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
50086echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
50087 { (exit 1); exit 1; }; }
50088 fi
50089
5d7b7554 50090 cd "$ac_popdir"
a848cd7e
SC
50091 done
50092fi
50093
50094
50095echo
77ffb593 50096echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 50097echo ""
4d4ff94c 50098echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 50099echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 50100
77ffb593
JS
50101echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
50102echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
50103echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 50104
77ffb593 50105echo " What level of wxWidgets compatibility should be enabled?"
dee1a63f
MB
50106echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-no}"
50107echo " wxWidgets 2.6 ${WXWIN_COMPATIBILITY_2_6:-yes}"
a848cd7e 50108
77ffb593 50109echo " Which libraries should wxWidgets use?"
a848cd7e
SC
50110echo " jpeg ${wxUSE_LIBJPEG-none}"
50111echo " png ${wxUSE_LIBPNG-none}"
50112echo " regex ${wxUSE_REGEX}"
50113echo " tiff ${wxUSE_LIBTIFF-none}"
50114if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
50115echo " xpm ${wxUSE_LIBXPM-none}"
50116fi
50117echo " zlib ${wxUSE_ZLIB}"
50118echo " odbc ${wxUSE_ODBC}"
50119echo " expat ${wxUSE_EXPAT}"
50120echo " libmspack ${wxUSE_LIBMSPACK}"
50121echo " sdl ${wxUSE_LIBSDL}"
6d1ce868 50122echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}"
2b850ae1 50123echo " gnomevfs ${wxUSE_LIBGNOMEVFS-none}"
3565d135 50124echo " hildon ${wxUSE_LIBHILDON-none}"
a848cd7e
SC
50125
50126echo ""
50127